donderdag 23 december 2010

Livebox automount of usb HD

Ok, I'm streaming from my Mobistar Livebox to my PS3, but no thumbnails, bad directory structure, ...
So, I'd also have Mediatomb installed on my laptop, and want to be able to use that too.

Mediatomb needs a mounted filesystem however, whereas I now connect to it via smb://livebox/DisquesUSB/HD204UI/data/ in Dolphin.

So here how I mount that on the different systems:
cd /media/
sudo mkdir liveboxUsbHD
test it:
sudo mount -t smbfs -o username=theuser,password=hispass //livebox/DisquesUSB/HD204UI /media/liveboxUsbHD
The directory /media/liveboxUsbHD should contain the files.
For automatic mounting:
cd /etc/init.d
sudo kate start_smb
And have this file contain the above line
sudo mount -t smbfs -o username=theuser,password=hispass //livebox/DisquesUSB/HD204UI /media/liveboxUsbHD
So we use smbfs, cifs should work too and is even needed if a real windows share. Anyway, the file contains your password, so hide it and give it correct permissions:
sudo chmod 550 start_smb
sudo update-rc.d start_smb defaults
In case the samba share is not available on start-up, you can create the link on a later time with:
sudo ./etc/init.d/start_smb
That's it!

Geen opmerkingen: