Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Ubuntu Server 12.04 Guide (Updates with: transmission, plex, couch and sick)

Featured Replies

I made a little guide to install Ubuntu Server 12.04 into Unraid Xen. If you have any questions or comments please let me know. Im no Linux experts but a google alot :)

 

2aexldg.png

 

In the above image i use htop

sudo apt-get install htop

start it

htop

 

I also like Midnight Commander file browser

sudo apt-get install mc

start it

mc

 

Ubuntu 12.04 LTS op Xen

 

In this guide I assume you have basic knowledge about unRaid and its console and have a cache drive.

 

Make sure unRaid boots into Xen mode by default. Following IronicBadger his guide:

 

 

Enable internet bride so we can share our connection to our new VM

 

Setup bridge: YES

Bridge name: br0

 

5o9maa.jpg

 

Enable SMB sharing in the unraid settings

 

erwidk.png

 

In your shares enable SMB to the folder you want to share

 

In my case its hidden but that is optional

 

2i9i4nr.png

 

Lets go into our unraid console (I have a Mac and use iTerm app)

ssh root@ipadresofyourunraid

 

2q1x9c0.png

 

Lets make a directory for our virtual machine

 

mkdir /mnt/cache/VM
cd /mnt/cache/VM
mkdir /mnt/cache/VM/ubuntu
cd /mnt/cache/VM/ubuntu

 

In our newly added directory's we start the following downloads:

wget http://archive.ubuntu.com/ubuntu/dists/precise-updates/main/installer-amd64/current/images/netboot/xen/initrd.gz

wget http://archive.ubuntu.com/ubuntu/dists/precise-updates/main/installer-amd64/current/images/netboot/xen/vmlinuz

 

Make and edit our VM config using nano

nano ubuntu.cfg

ctrl+x quits the editor and select YES to safe

 

Copy paste this into our ubuntu.cfg

name = "ubuntu"
#bootloader = "pygrub"
kernel = "/mnt/cache/VM/ubuntu/vmlinuz"
ramdisk = "/mnt/cache/VM/ubuntu/initrd.gz"
memory = 2048
vcpus = '2'
disk = ['phy:/mnt/cache/VM/ubuntu/ubuntu.img,xvda,w',]
vif = [ 'mac=00:16:3e:aa:bb:cc,bridge=br0' ]
extra = "debian-installer/exit/always_halt=true -- console=hvc0"

 

Create a 50GB drive

truncate -s 50G ubuntu.img

 

Fire up ubuntu!

xl create ubuntu.cfg -c

 

- proceed the installation setup, after succesvol installation you will go back to your unraid command prompt

 

Edit ubuntu.cfg again

nano ubuntu.cfg

 

Make the following changes

name = "ubuntu"
bootloader = "pygrub"
#kernel = "/mnt/cache/VM/ubuntu/vmlinuz"
#ramdisk = "/mnt/cache/VM/ubuntu/initrd.gz"
memory = 2048
vcpus = '2'
disk = ['phy:/mnt/cache/VM/ubuntu/ubuntu.img,xvda,w',]
vif = [ 'mac=00:16:3e:aa:bb:cc,bridge=br0' ]
#extra = "debian-installer/exit/always_halt=true -- console=hvc0"

 

Register Ubuntu in unraid so we can start/stop it from the unraid gui

xenman register /mnt/cache/VM/ubuntu/ubuntu.cfg

 

optionalIf you want a cool icon of ubuntu in your unraid gui do the following

 

cd /boot/config/domains/

find a 48px by 48px PNG image on e.g. google https://www.google.nl/search?q=ubuntu+icon+png&es_sm=91&biw=1395&bih=792&tbm=isch&source=lnt&tbs=isz:ex,iszw:48,iszh:48&sa=X&ei=T1VRU5rGDsXOOYXSgKgD&ved=0CCcQpwUoBQ

 

wget --no-check-certificate pastelinktoimagehere.png

 

rename it to icon.png

 

mv pastelinktoimagehere.png ubuntu.png

 

Now we can start stop using the gui of unraid!

 

2moa0za.png

 

Start ubuntu using unraid gui and lets get back to console. Make sure you are in the ubuntu directory (cd /mnt/cache/VM/ubuntu

 

To go into your ubuntu console type the following

xl console ubuntu

 

To go back to unraid console press on your keyboard

ctrl  +(plus)  ]

 

if you are using putty to access the ubuntu vm console then to switch back to unraid console press on your keyboard

ctrl  +(plus)  5

 

Find your ubuntu ip adress

ifconfig

 

Get ubuntu to connect to our unraid shares

sudo nano /etc/hosts

 

Copy Paste the following

yourunraidip   Tower

 

Install cifs so we can connect thru samba

sudo apt-get install cifs-utils

 

Make our mounting points

sudo mkdir /media/Movies
sudo mkdir /media/TV

 

Edit fstab so we can connect the mounts on boot

sudo nano /etc/fstab

 

Edit and paste the following

//Tower/Movies /media/Movies cifs noauto,credentials=/home/ubuntuUser/.smbcredentials,noperm,noserverino,uid=nobody,gid=users 0 0
//Tower/TV /media/TV cifs noauto,credentials=/home/ubuntuUser/.smbcredentials,noperm,noserverino,uid=nobody,gid=users 0 0

 

No auto makes sure its mount after boot

sudo nano /etc/rc.local

 

Paste the follwing

mount /media/Movies
mount /media/TV

 

Edit the smb credentials

sudo nano ~/.smbcredentials

 

Past the following

username=yoursmbusername
password=yoursmbpassword

 

Protect it

chmod 600 ~/.smbcredentials

 

I also have guides to install Sickbeard, Couchpotato, Plex Media Server and Transmission please let me know if someone wants these update

 

PLEX

 

The following steps are in ubuntu console

 

Get the avahi deamon for plex

sudo apt-get install avahi-daemon

 

wget -c http://downloads.plexapp.com/plex-media-server/0.9.9.7.429-f80a8d6/plexmediaserver_0.9.9.7.429-f80a8d6_amd64.deb

 

You can also use the plex pass edition. Change the url accordingly

 

Install it

sudo dpkg -i plexmediaserver_0.9.9.7.429-f80a8d6_amd64.deb

Tip: if you type the first letter or number of the filename then press the tab key on your keyboard and the filename will auto complete

 

If you get a error to get supporting packages, than run the install command again

sudo apt-get install -f

 

Now you have your Plex media server running at yourunraidipadress:32400/web and it starts on boot by default

 

To update, download the new version using wget and sudo dpkg -i it again

 

SICKBEARD

 

First we most install GIT to download the package

sudo apt-get install git

 

I use the SickBeard-TVRage because its supports subtitles and torrents and I install it in the home directory

git clone https://github.com/echel0n/SickBeard-TVRage.git .sickbeard

 

Go into our sickbeard directory and copy the startup script

cd .sickbeard
sudo cp init.ubuntu /etc/init.d/sickbeard

 

Make it executable

sudo chmod +x /etc/init.d/sickbeard
sudo update-rc.d sickbeard defaults

 

Edit the newly copied file and copy paste the following

 

sudo nano /etc/default/sickbeard

 

SB_USER=yourubuntuuser
SB_HOME=/home/yourubuntuuser/.sickbeard
SB_DATA=/home/yourubuntuuser/.sickbeard/sickbeard_data
SB_PIDFILE=/home/yourubuntuuser/.sickbeard/pid

 

Lets install some dependencies

sudo apt-get install python python-cheetah

 

And finally lets start it up!

sudo service sickbeard start

 

Lets see if it works

go to: yourunraidipadres:8081 in your browser

 

COUCHPOTATO

 

Got into your home directory

cd ~

 

Download the files

git clone https://github.com/RuudBurger/CouchPotatoServer.git .couchpotato

 

Go into our new couchpotato folder

cd .couchpotato

 

Copy the boot file

sudo cp init/ubuntu /etc/init.d/couchpotato

 

Make it executable

sudo chmod +x /etc/init.d/couchpotato
sudo update-rc.d couchpotato defaults

 

Edit the file and copy paste the following

sudo nano /etc/default/couchpotato

CP_USER=yourubuntuuser
CP_HOME=/home/yourubuntuuser/.couchpotato
CP_DATA=/home/yourubuntuuser/.couchpotato
CP_PIDFILE=/home/tomyourubuntuuser.couchpotato/pid

 

And finally lets start it up!

sudo service couchpotato start

 

Lets see if it works

go to: yourunraidipadres:5050 in your browser

 

TRANSMISSION

 

I like to run tranmission under my own username (ubuntuuser)

 

Installation is simple

sudo apt-get install transmission-daemon

 

Lets stop it because we want to make some changes

sudo service transmission-daemon stop

 

Edit the config file and change the user to ubuntuuser

sudo nano /etc/init.d/transmission-daemon

USER=ubuntuser

 

Also change the following and search for the line CONFIG_DIR

sudo nano /etc/default/transmission-daemon

 

CONFIG_DIR="/home/ubuntuusername/.config/transmission-daemon"

 

Start transmission so it creates the config file we need and then stop it again

sudo service transmission-daemon start

sudo service transmission-daemon stop

 

Edit this config file

sudo nano .config/transmission-daemon/settings.json

 

Look for the line that says RPC-WHITELIST and change it to

RPC-WHITELIST: *.*.*.*

 

start it again

sudo service transmission-daemon start

 

Lets see if it works

go to: yourunraidipadres:51413 in your browser

 

you can change the portnummer in the settings.json, look for the line RPC-PORT

 

14.04 update

Change setuid and setgid to match your username

 sudo nano /etc/init/transmission-daemon.conf

 

setuid debian-transmission -> ubuntuUser
setgid debian-transmission -> ubuntuUser

 

There's also a small bug that stop us for starting it on boot... see https://bugs.launchpad.net/ubuntu/+source/transmission/+bug/1261192

 

Change this:

start on (filesystem and net-device-up IFACE=lo)

to:

start on (filesystem and net-device-up IFACE!=lo)

 

SABNZBD

 

By peter_sm on Ubuntu 14.04 (not tested on 12.04)

sudo apt-get install sabnzbdplus

 

Change host, port  and user to your need

sudo nano /etc/default/sabnzbdplus

 

Sab will start on the next boot, but you can manually start is by

sudo service sabnzbdplus start

 

Now your done and have couchpotato, sickbeard, transmission and plex start on boot.

I didnt had the time to test on 14.04 yet so be aware. If you have anyone problems and solutions please post them!

  • Replies 86
  • Views 24.7k
  • Created
  • Last Reply

Thanks for the guidance  :) Saved me a lot of googling and i got a server up and running in no time  ;)

 

This might be a stupid question, but is this a HVM or a PV? I would think a HVM, since we don't inject/install any xen specific packages?

Also, is it better to install a new VM using netboot compared to downloading a full .iso to install from?

This is pv

 

This guide is not using the iso to install from. It is using the netboot vmlinuz and initrd.gz

This is pv

 

This guide is not using the iso to install from. It is using the netboot vmlinuz and initrd.gz

 

Ah, i see. Thanks for clearing that up - i guess i still have some pv vs. hvm reading to do ;-)

Long story short, pv is better than hvm. But windows doesn't work as pv. So you use hvm for windows and pv for Linux :-)

  • 2 weeks later...

Thank you for this, solved my fstab problems, and yes, please please please post those guides

 

Sent from my SCH-I605 using Tapatalk

 

 

mmm... looks like this method should work for 14.04 LTS to be released on Thursday with no changes, no?

Thanks for this....  a few niggles from a first timer.  You have to boot into unraid xen mode and the br0 interface isn't there by default so has to be enabled in the unraid gui.

 

Also...  once ubuntu reboots,  how do you start it up again and how do you find out it's IP or perhaps connect to the console?

 

(I figured all of this out by the way!)

Also...  once ubuntu reboots,  how do you start it up again and how do you find out it's IP or perhaps connect to the console?

 

You can start and stop the VM from the Xen manager (Extensions/Xen Domains).

If your VM doesn't show up there, it needs to be "registered" as described in the beta4 thread first post by Limetech.

Also...  once ubuntu reboots,  how do you start it up again and how do you find out it's IP or perhaps connect to the console?

 

You can start and stop the VM from the Xen manager (Extensions/Xen Domains).

If your VM doesn't show up there, it needs to be "registered" as described in the beta4 thread first post by Limetech.

 

Thanks,  missed that bit,  wondered if there was supposed to be something in the gui :)

  • Author

I didn't know about the Xen Manager, thanks for the tip!

 

I'm glad I could help people install Ubuntu unraid Xen. I will update the guide with the following:

  • Bridge Internet in unRaid gui
  • Enable NFS shares in unRaid gui
  • Tips to flip back and forth from console ubuntu to console unrRaid
  • Register Ubuntu in unRaid and make it auto start
  • Install Couchpotato and make it autostart on boot
  • Install Sickbeard and make it autostart on boot
  • Install Plex media server and make it autostart on boot
  • Install Transmission and make it autostart on boot

 

I also didn't know Ubuntu 14.04LTS is released today, I will try that one, nothing in the guide should change, so you could try it yourself. I did try the current 13.10 release but I ran into some problems with Couchpotato and found 12.10 to be much more stable.

 

After some reading up, 14.04 should have a lot improvements in speed in mysql and php, so its worth the try.

 

tomf,

 

Thanks for the excellent guide.

I had to figure a few things out on my own to get 14.04 installed, but I managed.

Here are my observations.

 

you will need to start the ubuntu vm before this step:

Get ubuntu to connect to our unraid shares

 

you will need to remove the space preceeding noperms in these two lines:

//Tower/Movies /media/Movies cifs noauto,credentials=/home/ubuntuUser/.smbcredentials, noperms,uid=nobody,gid=users 0 0

//Tower/TV /media/TV cifs noauto,credentials=/home/ubuntuUser/.smbcredentials, noperms,uid=nobody,gid=users 0 0

  • Author

tomf,

 

Thanks for the excellent guide.

I had to figure a few things out on my own to get 14.04 installed, but I managed.

Here are my observations.

 

you will need to start the ubuntu vm before this step:

Get ubuntu to connect to our unraid shares

 

you will need to remove the space preceeding noperms in these two lines:

//Tower/Movies /media/Movies cifs noauto,credentials=/home/ubuntuUser/.smbcredentials, noperms,uid=nobody,gid=users 0 0

//Tower/TV /media/TV cifs noauto,credentials=/home/ubuntuUser/.smbcredentials, noperms,uid=nobody,gid=users 0 0

 

Your welcome, glad i could help!

 

I removed the space between and added some more content  :D

tomf,

 

Thanks for the updated content, this will come in handy.

 

I have one more thing to add:

if you are using putty to access the ubuntu vm console then to switch back to unraid console press on your keyboard

ctrl+5

  • Author
You can start and stop the VM from the Xen manager (Extensions/Xen Domains).

If your VM doesn't show up there, it needs to be "registered" as described in the beta4 thread first post by Limetech.

 

Thanks! I didn't know this, so I added it to the guide

tomf,

 

Do you by chance have a guide for sabnzbd?

  • Author

tomf,

 

Do you by chance have a guide for sabnzbd?

 

No, sorry. I dont use usenet anymore. But there plenty of guides around the web for installing sabnzbd on ubuntu. After a quick scan you could use http://www.gizmojunkee.com/2013/10/setup-sabzndb-on-ubuntu-12-04-server/ and skip step 1.

 

If you are succesvol at installing could you post your guide here?

Did someone finally had time to try this guide with the new Ubuntu Server 14.04 LTS ?

 

I'll receive all my gear soon (in max 2 weeks) and plan on having some Ubuntu Server VM (for Web hosting, Sab, Couch, Sick and Plex too).

I did try to upgrade my 12.04 to 14.04. But unfortunately I couldn't get a 2d desktop gui to load (I didn't try that hard). Without gpu passthrough, there is no 3d capable video card, so 12.04 falls back on gnome 2 (I believe). In 14.04 I couldn't get a 2d gui to load. I start an rdp session and just get a blank screen. I tried installing the packages for gnome fallback and flashback and etc. but it didn't seem to work, never got a proper desktop session

tomf,

 

I saw this error in the ubuntu vm console during boot:

 

[  123.813699] CIFS: Unknown mount option "noperms"
mount error(22): Invalid argument
Refer to the mount.cifs( manual page (e.g. man mount.cifs)

 

I changed noperms to noperm in these two lines and restarted the vm with no error messages.

 

//Tower/Movies /media/Movies cifs noauto,credentials=/home/ubuntuUser/.smbcredentials,noperms,uid=nobody,gid=users 0 0

//Tower/TV /media/TV cifs noauto,credentials=/home/ubuntuUser/.smbcredentials,noperms,uid=nobody,gid=users 0 0

tomf,

 

Do you by chance have a guide for sabnzbd?

on 14.04 it's easy

 

just do this

 

sudo apt-get install sabnzbdplus

 

sudo nano /etc/default/sabnzbdplus

change host, port  and user

 

 sudo service sabnzbdplus start

 

//Peter

 

//Peter

  • Author

tomf,

 

I saw this error in the ubuntu vm console during boot:

 

[  123.813699] CIFS: Unknown mount option "noperms"
mount error(22): Invalid argument
Refer to the mount.cifs( manual page (e.g. man mount.cifs)

 

I changed noperms to noperm in these two lines and restarted the vm with no error messages.

 

//Tower/Movies /media/Movies cifs noauto,credentials=/home/ubuntuUser/.smbcredentials,noperms,uid=nobody,gid=users 0 0

//Tower/TV /media/TV cifs noauto,credentials=/home/ubuntuUser/.smbcredentials,noperms,uid=nobody,gid=users 0 0

 

Thanks! Strange enough this was also in my live unraid version... anyway I changed.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.