Author Topic: [SOLVED] 'Hide' the tnj-files in network share  (Read 4669 times)

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
[SOLVED] 'Hide' the tnj-files in network share
« 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?
« Last Edit: October 09, 2012, 05:40:50 pm by brononius »
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

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: 'Hide' the tnj-files in network share
« Reply #1 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.

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: 'Hide' the tnj-files in network share
« Reply #2 on: October 08, 2012, 09:59:29 pm »
Should we do this by default?

-Thom

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: 'Hide' the tnj-files in network share
« Reply #3 on: October 08, 2012, 11:32:23 pm »
It never bothered me...

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: 'Hide' the tnj-files in network share
« Reply #4 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:
Quote
hide 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

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: 'Hide' the tnj-files in network share
« Reply #5 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.
Quote
sudo 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

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: [SOLVED] 'Hide' the tnj-files in network share
« Reply #6 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.