hurricanehrndz Posted May 30, 2014 Share Posted May 30, 2014 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. 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. 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 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. 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. 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. 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. Quote Link to comment
Loch Posted May 30, 2014 Share Posted May 30, 2014 I'm interested. How much RAM/HDD space? A write-up would be excellent. Quote Link to comment
hurricanehrndz Posted June 1, 2014 Author Share Posted June 1, 2014 4 gb of ram, but i have never seen it use more than 2 gb when running all services. I will make it available soon with some documentation. Quote Link to comment
ironicbadger Posted June 1, 2014 Share Posted June 1, 2014 What does this bring to the table that Tretflix does not out of interest? Quote Link to comment
lonix Posted June 1, 2014 Share Posted June 1, 2014 Well Honestly ? I Really don't think we need Another Tretflix (Ubuntu+sabstack) in my opinion. That is unless you improved it significantly or somehow offer something else totaly uniq for the ubuntuVM Quote Link to comment
BRiT Posted June 1, 2014 Share Posted June 1, 2014 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. Quote Link to comment
hurricanehrndz Posted June 2, 2014 Author Share Posted June 2, 2014 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. Quote Link to comment
hurricanehrndz Posted June 4, 2014 Author Share Posted June 4, 2014 Sorry for the delay, I have almost completed the documentation. Additionally, I have a couple services where I am changing the configuration and/or setup . So a release will be out shortly. Quote Link to comment
Recommended Posts
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.