User Tools

Site Tools


howto:linux:install:ubuntu12-04

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
howto:linux:install:ubuntu12-04 [2015/02/23 19:52]
webclaw updated for Serviio 1.5.X, included szbNZBd, CouchPotato, Ubuntu 12.05.5, and Java 8 revisions / requirements.
howto:linux:install:ubuntu12-04 [2015/02/27 04:32]
webclaw updated to Serviio 1.5.1
Line 1: Line 1:
-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 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>
  
-NOTE: If you plan on using SAMBA to share media you need to be aware of some SAMBA bugs in Ubuntu 12.04.5. If you set your NIC(s) to use a static IP address SAMBA will not function properly. Use a DHCP reservation (via router) instead.+<note warning> 
 +NOTE: If you plan on using SAMBA to share media you need to be aware of some SAMBA bugs in Ubuntu 12.04.5. If you set your NIC(s) to use a static IP address SAMBA will not function properly. Use a DHCP reservation (via router) instead.</note>
  
 Tested and working without any issues, log warnings, etc. with Serviio 1.5. Tested and working without any issues, log warnings, etc. with Serviio 1.5.
Line 9: Line 10:
  
 #openssh-server install, run this in terminal via GUI #openssh-server install, run this in terminal via GUI
-sudo apt-get install openssh-server+<code>sudo apt-get install openssh-server</code>
  
 #bandwidth tracking application (to be responsible about ISP usage): #bandwidth tracking application (to be responsible about ISP usage):
 #run through terminal every once in a while to see bandwidth usage and realtime traffic #run through terminal every once in a while to see bandwidth usage and realtime traffic
-sudo apt-get install vnstatiftop+<code>sudo apt-get install vnstat iftop</code>
  
 #base codec install - installs dependancies used in ffmpeg and x264: #base codec install - installs dependancies used in ffmpeg and x264:
-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>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: #custom serviio version of ffmpeg install (compiled by me), always use Petr's (Serviio developer) customized version of ffmpeg to ensure proper serviio function:
-#installing newer git obtainable versions of ffmpeg break Serviio's transcoding functions (cause stuttering, player disconnections, poor quality video, etc.). +<code>cd /tmp 
-cd /tmp +wget http://webclaw.info/downloads/serviio-1.5/ffmpeg_201502201629-git-1_amd64.deb 
-wget http://209.148.82.207/downloads/ffmpeg_201502201629-git-1_amd64.deb +wget http://webclaw.info/downloads/serviio-1.5/x264_0.144.2525+git40bb568-1_amd64.deb 
-wget http://209.148.82.207/downloads/x264_0.144.2525+git40bb568-1_amd64.deb +wget http://webclaw.info/downloads/serviio-1.5/rtmpdump_201502201618-git-1_amd64.deb</code>
-wget http://209.148.82.207/downloads/rtmpdump_201502201618-git-1_amd64.deb+
  
 #install the custom serviio packages: #install the custom serviio packages:
 +<code>
 sudo dpkg -i ffmpeg_201502201629-git-1_amd64.deb sudo dpkg -i ffmpeg_201502201629-git-1_amd64.deb
 sudo dpkg -i x264_0.144.2525+git40bb568-1_amd64.deb sudo dpkg -i x264_0.144.2525+git40bb568-1_amd64.deb
 sudo dpkg -i rtmpdump_201502201618-git-1_amd64.deb sudo dpkg -i rtmpdump_201502201618-git-1_amd64.deb
 +</code>
  
 #java 8 install: #java 8 install:
 +<code>
 sudo add-apt-repository ppa:webupd8team/java sudo add-apt-repository ppa:webupd8team/java
 sudo apt-get update sudo apt-get update
 sudo apt-get install oracle-java8-installer sudo apt-get install oracle-java8-installer
 +</code>
  
 #serviio 1.5 download: #serviio 1.5 download:
-wget http://download.serviio.org/releases/serviio-1.5-linux.tar.gz+<code> 
 +wget http://download.serviio.org/releases/serviio-1.5.1-linux.tar.gz
 tar xzf serviio-1.5-linux.tar.gz tar xzf serviio-1.5-linux.tar.gz
 +</code>
  
 #we keep everything neat and organized on our user profile directory: #we keep everything neat and organized on our user profile directory:
-mkdir /home/<username>/Programs +<code>mkdir /home/<username>/Programs 
-cp -r serviio-1.5 /home/<username>/Programs+cp -r serviio-1.5.1 /home/<username>/Programs</code>
  
 #make serviio start automatically after network is active: #make serviio start automatically after network is active:
-sudo nano /etc/init/serviio.conf+<code>sudo nano /etc/init/serviio.conf</code>
  
 +#add startup script:
 +<code>
 start on started networking start on started networking
 script script
-/home/<username>/Programs/serviio-1.5/bin/serviio.sh+/home/<username>/Programs/serviio-1.5.1/bin/serviio.sh
 end script end script
 +</code>
  
 #latest sabnzbd install #latest sabnzbd install
-sudo add-apt-repository ppa:jcfp/ppa+<code>sudo add-apt-repository ppa:jcfp/ppa
 sudo apt-get update sudo apt-get update
-sudo apt-get install sabnzbdplus+sudo apt-get install sabnzbdplus<code>
  
-sudo nano /etc/default/sabnzbdplus+#edit sabnzbd configuration: 
 +<code>sudo nano /etc/default/sabnzbdplus</code>
  
 +#add proper configuration:
 +<code>
 USER=<username> USER=<username>
 HOST=0.0.0.0 HOST=0.0.0.0
 +</code>
  
 #Couchpotato installation: #Couchpotato installation:
-cd /home/<username>/Programs+<code>cd /home/<username>/Programs
 sudo apt-get install git sudo apt-get install git
 git clone https://github.com/RuudBurger/CouchPotatoServer.git git clone https://github.com/RuudBurger/CouchPotatoServer.git
-sudo cp /home/<username>/Programs/CouchPotatoServer/init/ubuntu.default /etc/default/couchpotato+sudo cp /home/<username>/Programs/CouchPotatoServer/init/ubuntu.default /etc/default/couchpotato</code>
  
-sudo nano /etc/default/couchpotato+#setup couchpotato default config: 
 +<code>sudo nano /etc/default/couchpotato
 CP_USER=<username> CP_USER=<username>
-CP_HOME=/home/<username>/Programs/CouchPotatoServer+CP_HOME=/home/<username>/Programs/CouchPotatoServer</code>
  
-sudo ln -s /home/<username>/Programs/CouchPotatoServer/init/ubuntu /etc/init.d/couchpotato +#make couchpotato start when user logs into the system: 
-sudo update-rc.d couchpotato defaults+<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): #SickRage installation - I suggest using dev version once installed (supports more indexers):
-git clone git://github.com/echel0n/SickRage.git +<code>git clone git://github.com/echel0n/SickRage.git</code>
-sudo nano /etc/default/sickbeard+
  
 +#setup sickbeard default config:
 +<code>sudo nano /etc/default/sickbeard
 SB_USER=<username> SB_USER=<username>
-SB_HOME=/home/<username>/Programs/SickRage+SB_HOME=/home/<username>/Programs/SickRage</code>
  
-sudo ln -s /home/<username>/Programs/SickRage/init.ubuntu /etc/init.d/sickbeard +#make sickrage start when user logs into the system 
-sudo update-rc.d sickbeard defaults+<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): #create media storage using gparted (aligns disk correctly, Ubuntu 12.04.5 native Disk utility does not):
-#disks which are not aligned properly perform very poorly and can cause Serviio to stutter / jitter when transcoding! +<note important>Disks which are not aligned properly perform very poorly and can cause Serviio to stutter / jitter when transcoding!</note> 
-sudo apt-get install gparted+<code>sudo apt-get install gparted</code>
  
 #select your disk (eg: sdb) can create a partition table, format as ext4: #select your disk (eg: sdb) can create a partition table, format as ext4:
 #now let's mount the new storage: #now let's mount the new storage:
-sudo mkdir /media/storage+<code>sudo mkdir /media/storage</code>
  
 #automatically mount storage after a reboot: #automatically mount storage after a reboot:
 +<code>
 sudo nano -Bw /etc/fstab sudo nano -Bw /etc/fstab
 /dev/sdb1       /media/storage  ext4    defaults        0       2 /dev/sdb1       /media/storage  ext4    defaults        0       2
 +</code>
  
 #remount the storage so we can take ownership: #remount the storage so we can take ownership:
-sudo mount -a+<code>sudo mount -a
 sudo chown -R <username>:<username> /media/storage sudo chown -R <username>:<username> /media/storage
 +</code>
  
 #reboot to make our changes effective: #reboot to make our changes effective:
-sudo reboot -n+<code>sudo reboot -n</code>
  
 Create directories on storage as required (you can do this via the GUI) on /media/storage/ Create directories on storage as required (you can do this via the GUI) on /media/storage/
-data 
 > data > movies > data > movies
 > data > television > data > television
Line 113: Line 134:
 > downloads > television > downloads > television
  
-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 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: #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 trancoding directory (eg: /media/storage/trancoding)+#defemine media storage location as the transcoding dump for Serviio hence the transcoding directory (eg: /media/storage/trancoding) 
 +<code>
 cd /home/<username>/Programs/serviio-1.5/bin cd /home/<username>/Programs/serviio-1.5/bin
 sudo ./serviio-console.sh sudo ./serviio-console.sh
 +</code>
  
-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. +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).
-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. #reboot is required for shares to work.
-sudo reboot -n+<code>sudo reboot -n</code>
  
 #if not done already, enable port forwarding (your router) as follows: #if not done already, enable port forwarding (your router) as follows:
howto/linux/install/ubuntu12-04.txt · Last modified: 2015/02/27 04:33 by webclaw