LinuxMCE Forums

General => Users => Topic started by: brononius on October 06, 2012, 08:51:33 AM

Title: [SOLVED] 'Hide' the tnj-files in network share
Post by: brononius on October 06, 2012, 08:51:33 AM
Hey,

Linuxmce is created tnj files of all images. No problem so far.
But it's a bit annoying when you browse your files, all these tnj-files are also shown.

Is there a way to make them hidden?
Title: Re: 'Hide' the tnj-files in network share
Post by: Marie.O on October 07, 2012, 09:56:41 AM
Look at man 5 smb.conf hide files. Maybe that gives you a hint or two. Just make sure that whatever change you make is carried out in /etc/samba/smb.conf and in /usr/pluto/templates/smb.conf.template.
Title: Re: 'Hide' the tnj-files in network share
Post by: tschak909 on October 08, 2012, 09:59:29 PM
Should we do this by default?

-Thom
Title: Re: 'Hide' the tnj-files in network share
Post by: Marie.O on October 08, 2012, 11:32:23 PM
It never bothered me...
Title: Re: 'Hide' the tnj-files in network share
Post by: brononius on October 09, 2012, 12:28:51 PM
My girlfriend goes crazy when she wants to browse/search some pictures.  :-X
'Double' files when she's searching something.
A picture viewer/slideshow gives 2 images each time (good quality and bad one)... I've also noticed this with fe the PS3 as client.

I think it's better to add this by default to have a userfriendly system, no?
If we're not able to provide a 'nice and clean' system to the dummies, they simply won't use it...



Next to it, i'm trying the option hide file out:
Quotehide files = /.*/*.tnj/*.id3/
This evening, i'll give it a try when i've got access to a windows machine.
Title: Re: 'Hide' the tnj-files in network share
Post by: brononius on October 09, 2012, 05:40:28 PM
Ok, it works... ;)

What i've done is added the line 'hide file' at the end of the global section:

sudo vi /etc/samba/smb.conf
Quote[global]
        hide files = /.*/*.tnj/*.id3/

sudo vi /usr/pluto/templates/smb.conf.template
Quote[global]
        hide files = /.*/*.tnj/*.id3/

Next a restart of the service, and it works great.
Quotesudo service smbd restart

Title: Re: [SOLVED] 'Hide' the tnj-files in network share
Post by: Marie.O on October 09, 2012, 08:29:48 PM
Nice. tnj's I might be able to understand. ID3 I would *NOT* exclude, as there might be things that want the ID3 files.