Thecus N5200 Ubuntu Install #5

Continuation of the installation and configuration guide for Ubuntu on the Thecus N5200 NAS. Initial post here
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 —–# 

Links: 
www.thingyson.me.uk/2010/11/02/installing-twonkyserver-on-ubuntu-lucid-lunx-10-04-1/

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:
sh twonky…… 

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
vi /etc/network/interfaces
Add this to bottom:
# Adding a multicast static route for Twonkymedia Server
up route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0

Config automatic startup: 
update-rc.d twonkyserver defaults 99 20

Access at <IPaddress>:9000





#—– Squeezebox Server —–# 

Links:
havetheknowhow.com/Install-the-software/Install-Squeezebox-server.html
theskreegs.blogspot.com/2009/02/mythtv-squeezecenter-squeezeslave.html


If you don’t have a squeezebox then this will be pretty useless to you.
>>>>> Add source <<<<<
vi /etc/apt/sources.list
Add:
#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

apt-get update

>>>>> 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:
/etc/init.d/apparmor stop

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:
cd /etc/init.d/
squeezeboxserver –httpport 9010

Kill with Ctrl+C and restart as a service: 
service squeezeboxserver start





#—– SUBSONIC —–# 

Links:
www.subsonic.org/pages/installation.jsp#

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 <<<<<
www.activeobjects.no/subsonic/forum/viewtopic.php?t=1634


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 —–#

Links:
help.ubuntu.com/community/Ps3MediaServer 
ps3mediaserver.org/forum/viewtopic.php?f=3&t=4253 
ps3mediaserver.org/forum/viewtopic.php?f=3&t=254 

Not installed it as Twonky is great for me. Heard it is good though but needs a bit of configuration to work.





#—– System monitoring —–# 

www.ubuntugeek.com/monitoring-ubuntu-services-using-monit.html


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 #

Links:
randomspark.wordpress.com/2007/09/02/map-your-windows-shared-folder-into-linux-kubuntu/
wiki.ubuntu.com/MountWindowsSharesPermanently


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:
vi /etc/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>

Leave a Reply

(email optional)