Accessing upnp server from ubuntu
I have a mediatomb server running on my desktop and use it to stream content to my ps3.
As I’ve got my laptop back today, I thought it would be useful if I could also connect to it from my laptop.
This task seemed not so trivial as I thought.
For some reason I was in the illusion that I could easily connect to it using either vlc for videos and any audio player for music.
That wasn’t the case.
Rhythmbox has a upnp plugin but you’ll have to install some lib’s from the repo and even then I couldn’t use it.
I could connect to the server using firefox (entering the address for the server), but that’s isn’t very useful.
The only decent option available for ubuntu is to mount the server as drive.
This can be done with a program called djmount and needs the fuse package to work.
I found a website that cleary stated the steps to do, but there where a few steps missing.
I’ll just “steal” the steps from there and add the ones that were missing.
note: all commands should be entered in the terminal. The terminal can be accessed from “applications -> accessories”.
If you want to copy/paste the code, press the “plain view” link for each code.
1. install build-essential
sudo apt-get install build-essential
2. install fuse
sudo apt-get install libfuse-dev
3. install dj mount
wget http://downloads.sourceforge.net/djmount/djmount-0.71.tar.gz?modtime=1156717401&big_mirror=0 tar -zxvf djmount-0.71.tar.gz cd djmount-0.71 ./configure make sudo make install
4. make a mount point in /media
cd /media sudo mkdir upnp sudo chmod 777 upnp
change upnp to the name you want to give the drive
5. load fuse and mount the filesystem
sudo modprobe fuse sudo djmount -o allow_other /media/upnp
6. load fuse and mount the filesystem when you start the pc
Must be done with a little script.
Drag the folder(s) you often use to the side bar in nautilus so they show up under “places”.