Ubuntu VM Appliance. Update Jun 06, 2014.


Recommended Posts

Ubuntu ServicesServer

 

Edit the xen cfg ServicesServer.cfg

Adjust the mac address and update the location of the img file,

to where you extracted the download or from where you wish to run the vm from.

2qn9jbo.png

 

VM Info:

Username: sysadmin

Password: sysadmin

 

All services run from docker containers.

The only down fall of this is that when docker containers are built with volumes that point to symlinks,

the container actually doesn't use the symlink, rather it use the full path.

What this means is that if you unRAID hostname is something other than "Tower" you will need to re-create all the containers.

 

Setup the network:

Edit "/etc/network/interfaces" adjust values according to your network, and change the ip if you desire.

15gcqw8.png

 

If you want to change the hostname:

Issue the following command:

sudo hostname your-new-hostname

Additionally edit "/etc/hosts" and overwrite ServicesServer with your-new-hostname

6pz21v.png

 

Setup Mount Points for unraid shares:

Edit the file /etc/defaults/autocifs

Share names with spaces are not supported.

Edit the file server name, meaning replace "Tower" with the hostname of your unRAID server.

Ensure the directory /media/$FILE_SERVER exists.

2m429gh.png

 

Finalize:

Manual start:

service autocifs start

Log file:

/var/log/upstart/autocifs.log

Enable upstart script for autocifs:

rm /etc/init/autocifs.override

Edit the symlink /opt/downloads

rm /opt/downloads
ln -s /media/$FILE_SERVER /opt/downloads

 

Setup MySql for XBMC:

The mysql service is configured as a docker container from the following:

repo https://index.docker.io/u/tutum/mysql/

Only visit the link if you are interested in more info, otherwise continue reading.

Command to pull docker image (Info Only, not needed.):

docker pull tutum/mysql

Command to Create docker container (Info Only, not needed.):

docker run -d --net=host  -v /opt/appdata/xbmc-database:/var/lib/mysql --name xbmc-database tutum/mysql

ROOT

User: admin

Pass: a7qK90SS8tgf

XBMC

User: xbmc

Pass: xbmc

Manual start:

docker run xbmc-database

or

service xbmc-database start

Enable Service:

rm /etc/init/xbmc-database.override

 

Setup Headless XBMC-Server:

COMMAND to pull docker image (Info Only, not needed.):

#docker pull wernerb/docker-xbmc-server

Command to Create docker container (Info Only, not needed.):

docker run -d --net=host -v /opt/appdata/xbmc-server/xbmcdata:/opt/xbmc-server/portable_data --name xbmc-server wernerb/docker-xbmc-server

Headless xbmc-serverport is 8085.

Manual start:

docker run xbmc-server

Enable Service:

rm /etc/init/xbmc-server.override

Web-gui might crash the xbmc-server container.

I don't use it whatsoever.

I just let sickbeard and couchpotato submit library update request to the headless server.

 

Setup SABnzbd:

User: user

Pass: user

Command to pull docker image (Info Only, not needed.):

docker pull hurricane/docker-sabnzbd

Command to remove container (run if unRAID hostname not Tower):

docker rm sabnzbd

Command to Create docker container (run if unRAID hostname not Tower):

docker run -d --net=host -v /opt/appdata/sabnzbd:/config -v /opt/downloads:/downloads -v /opt/tmp:/temp --name=sabnzbd hurricane/docker-sabnzbd

SABnzbd port is 8081.

Manual start:

service sabnzbd start

or

docker run sabnzbd

Enable Service:

rm /etc/init/sabnzbd.override

 

Setup SickBeard:

User: user

Pass: user

Command to pull docker image (Info Only, not needed.):

docker pull hurricane/docker-sickbeard

Command to remove container (run if unRAID hostname not Tower):

docker rm sickbeard

Command to Create docker container (Re-run if unRAID hostname not Tower):

docker run -d --net=host -v /opt/appdata/sickbeard:/config -v /opt/downloads:/downloads -v /opt/tmp:/temp --name=sickbeard hurricane/docker-sickbeard

Info:

SickbBeard port is 8082.

Manual start:

service sickbeard start

or

docker run sickbeard

Enable Service:

rm /etc/init/sickbeard.override

 

Setup CouchPotato:

User: user

Pass: user

Command to pull docker image (Info Only, not needed.):

docker pull hurricane/docker-couchpotato

Command to remove container (run if unRAID hostname not Tower):

docker rm couchpotato

Command to Create docker container (Re-run if unRAID hostname not Tower):

docker run -d --net=host -v /opt/appdata/couchpotato:/config -v /opt/downloads:/downloads -v /opt/tmp:/temp --name=couchpotato hurricane/docker-couchpotato

Info:

CouchPotato port is 8083.

Manual start:

service couchpotato start

or

docker run couchpotato[/code
[u][size=12pt]Enable Service:[/size][/u]
[code]rm /etc/init/couchpotato.override

 

Setup BTSync:

Command to pull docker image (Info Only, not needed.):

docker pull hurricane/docker-btsync

Command to remove container (run if unRAID hostname not Tower):

docker rm btsync

Command to Create docker container (Re-run if unRAID hostname not Tower):

docker run -d --net=host  -v /opt/appdata/btsync:/config -v /opt/downloads/btsync:/sync --name=btsync hurricane/docker-btsync

Info:

WebPort: 8888

Setup:

Configure the sync folder as you like. Update "/opt/downloads/btsync" as you see fit.

When you add a folder ensure you select the "sync" folder.

90n5ll.png

Manual start:

docker start btsync

Or

service btsync start

Enable Service:

rm /etc/init/btsync.override

 

Setup Plex:

Command to pull docker image (Info Only, not needed.):

docker pull timhaak/plex

Command to remove container (run if unRAID hostname not Tower):

docker rm plexserver

Command to Create docker container (Re-run if unRAID hostname not Tower):

docker run -d --net=host  -v /opt/appdata/plex:/config -v /opt/downloads:/data --name=plexserver timhaak/plex

Setup:

Edit the Preferences.xml file, locate at: /opt/appdata/plex/Library/Application Support/Plex Media Server

Adjust allowedNetworks="192.168.1.0/255.255.255.0" 

according to your network configuration.

Delete the MachineIdentifer and the ProcessedMachineIdentifier.

25pr288.png

Manual start:

docker start plexserver

Or

service plexserver start

You might need to run (docker start plexserver) a couple of times before the docker container remains on.

This is normal  for the first time, because it needs to generate the Identifiers.

Enable Service:

rm /etc/init/plexserver.override

 

Setup Dropbox:

Command to pull docker image:

Dropbox was not installed on the VM, so please follow the instructions and post any question you might have.

docker pull hurricane/docker-dropbox

Command to remove container (Info only.):

docker rm DropboxDaemon

Command to Create docker container.:

docker run -d --net=host -v /opt/downloads/dropbox:/Dropbox --name=DropboxDaemon hurricane/docker-dropbox

Get URL to link Docker Container to your Dropbox account.:

docker logs DropboxDaemon

Manual start:

docker run DropboxDaemon

Enable Service:

Create an upstart script using your favourite editor.

/etc/init/DropboxDaemon.conf

Copy and paste the following code:

# DropboxDaemon
description "DropboxDaemon container"
author "Me"
start on stopped autocifs
stop on runlevel [!2345]

console log

env FLAGFILE=/run/.DropboxDaemon_started

pre-start script
  if [ -e $FLAGFILE ]; then
    stop
  fi
end script

script
  # Wait for docker to finish starting up first.
  FILE=/var/run/docker.sock
  while [ ! -e $FILE ] ; do
    inotifywait -t 2 -e create $(dirname $FILE)
  done
  echo "[`date +%Y-%m-%dT%H:%M:%S`] Starting DropboxDaemon container."
  exec /usr/bin/docker start DropboxDaemon
  touch $FLAGFILE
end script

Enable the upstart script

ln -s /lib/init/upstart-job /etc/init.d/DropboxDaemon

 

Setup Subsonic:

Command to pull docker image:

Subsonic was not installed on the VM, so please follow the instructions and post any question you might have.

docker pull hurricane/docker-subsonic

Command to remove container (Info only.):

docker rm subsonic

Command to Create docker container.:

docker run -d --net=host -v /opt/appdata/subsonic:/subsonic -v /opt/downloads/music:/music -v /opt/downloads/podcasts:/podcasts --name=subsonic hurricane/docker-subsonic

Adjust the volumes as you see accordingly.

Manual start:

docker run subsonic

Enable Service:

Create an upstart script using your favourite editor.

/etc/init/subsonic.conf

Copy and paste the following code:

# subsonic
description "subsonic container"
author "Me"
start on stopped autocifs
stop on runlevel [!2345]

console log

env FLAGFILE=/run/.subsonic_started

pre-start script
  if [ -e $FLAGFILE ]; then
    stop
  fi
end script

script
  # Wait for docker to finish starting up first.
  FILE=/var/run/docker.sock
  while [ ! -e $FILE ] ; do
    inotifywait -t 2 -e create $(dirname $FILE)
  done
  echo "[`date +%Y-%m-%dT%H:%M:%S`] Starting subsonic container."
  exec /usr/bin/docker start subsonic
  touch $FLAGFILE
end script

Enable the upstart script

ln -s /lib/init/upstart-job /etc/init.d/subsonic

 

 

Download Here.

Link to comment

I'm always for more options.

 

If we never tried out new things, we'd never have features or addons like preclear or cache_disk or unRAID in full Slackware, or unRAID in full Slackware 64bit, or unRAID 64bit, or Xen or the plugin system in unRAID. Well, you get the idea.

 

Hopefully these two can bring about synergy and offer continued improvements.

Link to comment

Not much to be honest, I just didn't like the Tretflix vm. I made a configuration that was suitable to me. I wanted more control and I wanted to figure out something for the mounting of shares. Anyhow I made this little vm for myself and myself alone. I was just going to make it available if people were interested.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.