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

brononius

  • Guru
  • ****
  • Posts: 376
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog (runs on ... linuxmce server)
[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 1004 (v 2012-07-01)
Extra's: Cacti, webmin, phpmyadmin, joomla

Server: MSI MS-7519 / E7400 2,8GB / 4GB / SSD 60GB / Radeon HD4350 / RTL8111 - 3C905C-TX
Orbiters: HTC Desire Z, HP PocketPC, Samsung Galaxy S, iPAD, ASUS eeePAD
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7940, Cisco 7960
Camera's: IPCAM02

posde

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2974
  • 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: 5497
  • 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

posde

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2974
  • 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: 376
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog (runs on ... linuxmce server)
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 1004 (v 2012-07-01)
Extra's: Cacti, webmin, phpmyadmin, joomla

Server: MSI MS-7519 / E7400 2,8GB / 4GB / SSD 60GB / Radeon HD4350 / RTL8111 - 3C905C-TX
Orbiters: HTC Desire Z, HP PocketPC, Samsung Galaxy S, iPAD, ASUS eeePAD
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7940, Cisco 7960
Camera's: IPCAM02

brononius

  • Guru
  • ****
  • Posts: 376
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog (runs on ... linuxmce server)
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 1004 (v 2012-07-01)
Extra's: Cacti, webmin, phpmyadmin, joomla

Server: MSI MS-7519 / E7400 2,8GB / 4GB / SSD 60GB / Radeon HD4350 / RTL8111 - 3C905C-TX
Orbiters: HTC Desire Z, HP PocketPC, Samsung Galaxy S, iPAD, ASUS eeePAD
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7940, Cisco 7960
Camera's: IPCAM02

posde

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2974
  • 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.