News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

[SOLVED] 'Hide' the tnj-files in network share

Started by brononius, October 06, 2012, 08:51:33 AM

Previous topic - Next topic

brononius

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?
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

Marie.O

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.
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

tschak909


Marie.O

If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

brononius

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.
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

brononius

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

Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

Marie.O

Nice. tnj's I might be able to understand. ID3 I would *NOT* exclude, as there might be things that want the ID3 files.
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]