Original location where I first posted it in 2011 here: http://thecususergroup.proboards.com/thread/4226+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+Last installment…
I have already shown you how to set up your server with what I consider essential services. The following a brief guides to other services I installed because I want a full media server.
These guides will be a lot briefer with fewer comments. If you have gotten this far you should be familiar with what is happening and not need so much hand-holding.
#—– TWONKYMEDIA SERVER —–#
Tried and tested best media server for streaming media to the PS3.
Download the linux version to a shared folder or using wget.
Navigate to the download directory and run file:
Config network interface file if you can’t access Twonky on http:// <IPaddress>:9000 (I didn’t need this step)
cp /etc/network/interfaces /etc/network/interfaces.old
Add this to bottom:
# Adding a multicast static route for Twonkymedia Server
up route add -net 22.214.171.124 netmask 240.0.0.0 dev eth0
Config automatic startup:
update-rc.d twonkyserver defaults 99 20
Access at <IPaddress>:9000
#—– Squeezebox Server —–#
If you don’t have a squeezebox then this will be pretty useless to you.
>>>>> Add source <<<<<
#Squeezebox Server Source
deb debian.slimdevices.com testing main
This will allow you to install the stable beta version. This didn’t work for me so I had to change the source to deb debian.slimdevices.com stable main
>>>>> Install & Configure <<<<<
Beware of some issues with AppArmor where squeezeboxserver refuses to install properly. So stop it just in case, it will restart automatically next time you reboot:
apt-get install squeezeboxserver
Kill Squeezeboxserver after install:
ps -A lists all running processes
kill #### kill relevant process id
Run on new port to avoid conflict with Twonky:
squeezeboxserver –httpport 9010
Kill with Ctrl+C and restart as a service:
service squeezeboxserver start
#—– SUBSONIC —–#
Subsonic is a music streaming service. It can stream music to computers in your house or over the internet to other PCs or your phone over wifi or 3G. It doesn’t require the webserver to be installed.
Download the Debian installer (subsonic-x.x.deb) and place in a shared folder so that you can access it. Or download with wget.
>>>>> Install Java & Media codecs <<<<<
apt-get install openjdk-6-jre lame flac faad vorbis-tools ffmpeg
>>>>> Install Subsonic <<<<<
Navigate to where you downloaded the subsonic setup file.
mkdir -p /var/subsonic/standalone
tar -C /var/subsonic/standalone -zvxf subsonic-x.x.x.tar.gz
>>>>> Configure to run on startup <<<<<
Access the configuration on <server IP>:4040
#—– NAIL —–#
Simple email client for command line reading of /var/mail/*
apt-get install nail
#—– PS3 MEDIASERVER – I’ve not used yet but heard it’s good —–#
Not installed it as Twonky is great for me. Heard it is good though but needs a bit of configuration to work.
#—– System monitoring —–#
Not set up yet. Webmin allows you to set up email alerts for a lot of stuff anyway. I will probably get round to playing with this but not in any rush.
# Extra Guide: How to map shares (e.g. windows folders) in Ubuntu #
Thought I’d throw in a bit of useful info on mapping Windows shares in Ubuntu. It’s really helpful if you’re restoring backups or just trying to do some transfers from Windows to Ubuntu.
smbmount //servername/sharename /media/mountname -o cifs username=myusername,password=mypassword,iocharset=utf8,file_mode=0777,dir_mode=0777
This is the command I used to map my N5200 Thecus share to an Ubuntu share while playing in VirtualBox (get the admin UID,GID from /etc/passwd file on Thecus). I think this will work with any Linux or Mac share.
mount -t cifs //<Thecus share directory> /mnt/network/N5200/ -o user=<username>,pass=<password>,uid=<UID>,gid=<GID>
To create persisent mounts so that they don’t disappear at next reboot, add entry to fstab:
For a SMB (Windows) share, add:
//servername/sharename /media/mountname cifsusername=myusername,password=mypassword,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
For a N5200 (or probably any other Linux/MAC) share:
//<Thecus share directory> /mnt/network/N5200/ cifs user=<username>,pass=<password>,uid=<UID>,gid=<GID>