User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
howto:linux:install:ubuntu12-04 [2012/11/09 16:40]
eltoro1966 created
howto:linux:install:ubuntu12-04 [2015/02/27 04:33] (current)
webclaw fix formatting
Line 1: Line 1:
-====== Ubuntu 12.04 Installation Guide ======+<note important>This guide assumes you've installed a fresh (default) installation of Ubuntu 12.04.5 and assumes you have two storage devices - one for the OS and one for your media. I choose Ubuntu 12.04.5 as newer versions of Ubuntu (at the time of writing this) have some nasty VNC and SAMBA bugs (personally, I hate workarounds).</note>
-==== Prerequisites ==== +<note warning> 
-For Ubuntu 12.05 , the ffmpeg should be installed from the terminalMoreover, additional codecs and libraries should be installed to ensure flawless operation of ServiioRecommend you do the following using Terminal:+NOTE: If you plan on using SAMBA to share media you need to be aware of some SAMBA bugs in Ubuntu 12.04.5If you set your NIC(s) to use a static IP address SAMBA will not function properly. Use a DHCP reservation (via router) instead.</note>
-== Install missing codecs (including latest Lame): == +Tested and working without any issues, log warnings, etc. with Serviio 1.5
-<code>sudo apt-get install ubuntu-restricted-extras</code> +When entering commands, change <usernameto whatever usename you have (but not root!).
-== Install DVD playback libraries: == +
-<code>sudo apt-get install libdvdread4</code> +
-<code>sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list$(lsb_release -cs).list +
-sudo apt-get --quiet update +
-sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring +
-sudo apt-get --quiet update</code> +
-<code>sudo apt-get install libdvdcss2</code> +
-== Install ffmpeg: == +
-<code>sudo apt-get install libxine1-ffmpeg gxine mencoder mpeg2dec vorbis-tools id3v2 mpg321 mpg123 libflac++6 ffmpeg totem-mozilla icedax tagtool easytag id3tool lame nautilus-script-audio-convert libmad0 libjpeg-progs flac faac faad sox ffmpeg2theora libmpeg2-4 uudeview flac libmpeg3-1 mpeg3-utils mpegdemux liba52-0.7.4-dev libquicktime2</code>+
-== Install Gstreamer: == +Let'get started...
-<code>sudo apt-get install gstreamer0.10-ffmpeg gstreamer0.10-fluendo-mp3 gstreamer0.10-gnonlin gstreamer0.10-sdl gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly totem-plugins-extra gstreamer-dbus-media-service gstreamer-tools</code>+
-==== 1.Download Serviio  (credit to forum member NOTOC) ==== +#openssh-server install, run this in terminal via GUI 
-<code>wget</code>+<code>sudo apt-get install openssh-server</code>
-==== 2.Extract Serviio ==== +#bandwidth tracking application (to be responsible about ISP usage): 
-<code>tar xvf serviio-1.0.1-linux.tar.gz+#run through terminal every once in a while to see bandwidth usage and realtime traffic 
 +<code>sudo apt-get install vnstat iftop</code> 
 +#base codec install - installs dependancies used in ffmpeg and x264: 
 +<code>apt-get install dcraw libfaac-dev libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libva-dev libvdpau-dev libvorbis-dev libx11-dev libxfixes-dev texi2html zlib1g-dev libssl1.0.0 libssl-dev libxvidcore-dev libxvidcore4 libass-dev librtmp-dev</code> 
 +<note warning>Installing newer git obtainable versions of ffmpeg break Serviio's transcoding functions (cause stuttering, player disconnections, poor quality video, etc.).</note> 
 +#custom serviio version of ffmpeg install (compiled by me), always use Petr's (Serviio developer) customized version of ffmpeg to ensure proper serviio function: 
 +<code>cd /tmp 
 +#install the custom serviio packages: 
 +<code>sudo dpkg -i ffmpeg_201502201629-git-1_amd64.deb 
 +sudo dpkg -i x264_0.144.2525+git40bb568-1_amd64.deb 
 +sudo dpkg -i rtmpdump_201502201618-git-1_amd64.deb
 </code> </code>
-==== 3.Serviio as a Startup Applications ==== 
-Add Serviio server as a startup application. 
-==== 4.Enabling Remote Console Access From Windows (credit to forum member tvkdlna==== +#java 8 install: 
-Edit C:\Program Files\Serviio\bin\ServiioConsole.exe.vmoptions adding+<code>sudo add-apt-repository ppa:webupd8team/java 
-<code>-Dserviio.remoteHost=XXX.XXX.X.XXX</code> +sudo apt-get update 
-Replacing XXX.XXX.X.XXX with the IP Address of the remote server +sudo apt-get install oracle-java8-installer 
 +#serviio 1.5 download: 
 +tar xzf serviio-1.5-linux.tar.gz</code> 
 +#we keep everything neat and organized on our user profile directory: 
 +<code>mkdir /home/<username>/Programs 
 +cp -r serviio-1.5.1 /home/<username>/Programs</code> 
 +#make serviio start automatically after network is active: 
 +<code>sudo nano /etc/init/serviio.conf</code> 
 +#add startup script: 
 +<code>start on started networking 
 +end script 
 +#latest sabnzbd install 
 +<code>sudo add-apt-repository ppa:jcfp/ppa 
 +sudo apt-get update 
 +sudo apt-get install sabnzbdplus<code> 
 +#edit sabnzbd configuration: 
 +<code>sudo nano /etc/default/sabnzbdplus</code> 
 +#add proper configuration: 
 +#Couchpotato installation: 
 +<code>cd /home/<username>/Programs 
 +sudo apt-get install git 
 +git clone 
 +sudo cp /home/<username>/Programs/CouchPotatoServer/init/ubuntu.default /etc/default/couchpotato</code> 
 +#setup couchpotato default config: 
 +<code>sudo nano /etc/default/couchpotato 
 +#make couchpotato start when user logs into the system: 
 +<code>sudo ln -s /home/<username>/Programs/CouchPotatoServer/init/ubuntu /etc/init.d/couchpotato 
 +sudo update-rc.d couchpotato defaults</code> 
 +#SickRage installation - I suggest using dev version once installed (supports more indexers): 
 +<code>git clone git://</code> 
 +#setup sickbeard default config
 +<code>sudo nano /etc/default/sickbeard 
 +#make sickrage start when user logs into the system 
 +<code>sudo ln -s /home/<username>/Programs/SickRage/init.ubuntu /etc/init.d/sickbeard 
 +sudo update-rc.d sickbeard defaults</code> 
 +#create media storage using gparted (aligns disk correctly, Ubuntu 12.04.5 native Disk utility does not): 
 +<note important>Disks which are not aligned properly perform very poorly and can cause Serviio to stutter / jitter when transcoding!</note> 
 +<code>sudo apt-get install gparted</code> 
 +#select your disk (eg: sdb) can create a partition table, format as ext4: 
 +#now let's mount the new storage: 
 +<code>sudo mkdir /media/storage</code> 
 +#automatically mount storage after a reboot: 
 +<code>sudo nano -Bw /etc/fstab 
 +/dev/sdb1       /media/storage  ext4    defaults        0       2 
 +#remount the storage so we can take ownership: 
 +<code>sudo mount -a 
 +sudo chown -R <username>:<username> /media/storage</code> 
 +#reboot to make our changes effective: 
 +<code>sudo reboot -n</code> 
 +Create directories on storage as required (you can do this via the GUI) on /media/storage/ 
 +> data > movies 
 +> data > television 
 +downloads > completed 
 +> downloads > movies 
 +> downloads > television 
 +<note important>Downloads go into downloads folder and once complete the applicable sudirectory (by sabNZBd) then are post-processed / moved to "data > movies" or "data > television"</note> 
 +#run the Serviio console to define what media is to be shared and set transcoding directory: 
 +#defemine media storage location as the transcoding dump for Serviio hence the transcoding directory (eg: /media/storage/trancoding) 
 +cd /home/<username>/Programs/serviio-1.5/bin 
 +sudo ./ 
 +Via GUI and enable file sharing (right click on directory) - you'll be asked to install 2 packages (samba and libpasswd - an automatic process), just click install. I would enable guest access (but not RW access) other other players that don't require transcoding can play video (eg: KODI). 
 +#reboot is required for shares to work. 
 +<code>sudo reboot -n</code> 
 +#if not done already, enable port forwarding (your router) as follows: 
 +#crappy routers additionally require you turn on UPNP and enable IPv4 multicast support. 
 +MediaBrowser: <LAN-IP>:23424 (UDP + TCP) 
 +SickRage: <LAN-IP>:8081 (TCP) 
 +sabNZBd: <LAN-IP>:8080 (TCP) 
 +Couchpotato: <LAN-IP>:5050 (TCP)
-~~ElToro1966~~+LAN computers can access your shares via: 
 +Windows: \\<LAN-IP> or \\<MACHINENAME> 
 +Linux / Mac OS: smb://<LAN-IP> or smb://<MACHINENAME>
 +If you want to access services outside your LAN I strongly suggest using SSL.
howto/linux/install/ubuntu12-04.1352479202.txt.gz · Last modified: 2012/11/09 16:40 by eltoro1966