Last active
July 30, 2017 01:51
-
-
Save alwalker/0b866a3100669cdbf14ffb9426d876f9 to your computer and use it in GitHub Desktop.
Instructions for building a media box with NZBGet + Sonarr + Couchpotato + Headphones + Plex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#disable password access /etc/ssh/sshd_config | |
#set to no password 'ALL=NOPASSWD: ALL' | |
#change /etc/network/interfaces | |
#reboot | |
#update sources | |
sudo apt-get update | |
sudo apt-get upgrade | |
#reboot | |
#needed packages | |
sudo apt-get install git nfs-common python-lxml python-pip libffi-dev libssl-dev mono-devel open-vm-tools atop | |
#####################setup file system######################################################## | |
sudo mkdir /plex-qnap | |
sudo mkdir /plex-newsgroup | |
sudo mkdir /nzbget-workspace | |
sudo mkdir /nzbget-destination | |
sudo chown alwalker /plex-newsgroup/ | |
sudo chown alwalker /plex-qnap/ | |
sudo chown alwalker /nzbget-workspace | |
sudo chown alwalker /nzbget-destination | |
fdisk /dev/sdX | |
#n | |
#p | |
#defaults | |
#t | |
#83 | |
#w | |
sudo mkfs.ext3 /dev/sdX1 | |
sudo echo '192.168.2.100:/Multimedia /plex-qnap nfs auto 0 0' >> /etc/fstab | |
sudo echo '192.168.2.100:/Newsgroup /plex-newsgroup nfs auto 0 0' >> /etc/fstab | |
sudo echo '/dev/sda1 /nzbget-workspace ext3 defaults 0 0' >> /etc/fstab | |
################################################################################################### | |
############################################NZBGet################################################# | |
wget -O - http://nzbget.net/info/nzbget-version-linux.json | sed -n "s/^.*stable-download.*: \"\(.*\)\".*/\1/p" | wget --no-check-certificate -i - -O nzbget-latest-bin-linux.run || echo "*** Download failed ***" | |
chmod u+x nzbget-latest-bin-linux.run | |
./nzbget-latest-bin-linux.run | |
sudo mv nzbget /opt/ | |
cat " | |
description "NZBGet Application" | |
start on runlevel [2345] | |
exec sudo -u alwalker /opt/nzbget/nzbget -D | |
" >> /etc/init/nzbget.conf | |
################################################################################################### | |
############################################Sonarr################################################# | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FDA5DFFC | |
echo "deb http://apt.sonarr.tv/ master main" | sudo tee /etc/apt/sources.list.d/sonarr.list | |
sudo apt-get update | |
sudo apt-get install nzbdrone | |
sudo chown -R alwalker /opt/nzbdrone | |
https://github.com/Sonarr/Sonarr/wiki/Autostart-on-Linux | |
sudo start nzbdrone | |
################################################################################################### | |
############################################CouchPotato############################################ | |
git clone https://github.com/CouchPotato/CouchPotatoServer.git | |
mv CouchPotatoServer /opt/couchpotato | |
cd /opt/couchpotato/ | |
sudo pip install --upgrade pyopenssl | |
sudo cp /opt/couchpotato/init/ubuntu /etc/init.d/couchpotato | |
sudo cp /opt/couchpotato/init/ubuntu.default /etc/default/couchpotato | |
sudo vim /etc/default/couchpotato #change username from couchpotato to alwalker | |
sudo vim /etc/init.d/couchpotato | |
sudo chmod +x /etc/init.d/couchpotato | |
sudo update-rc.d couchpotato defaults | |
sudo service couchpotato start | |
################################################################################################### | |
############################################Headphones############################################# | |
git clone https://github.com/rembo10/headphones.git | |
#change http_host in config.ini | |
mv headphones /opt | |
cd /opt/headphones | |
sudo echo "HP_USER=alwalker" >> /etc/default/headphones | |
sudo chmod +x /opt/headphones/init-scripts/init.ubuntu | |
sudo ln -s /opt/headphones/init-scripts/init.ubuntu /etc/init.d/headphones | |
sudo update-rc.d headphones defaults | |
sudo update-rc.d headphones enable | |
sudo service headphones start | |
############################################Plex################################################### | |
wget https://downloads.plex.tv/plex-media-server/0.9.16.3.1840-cece46d/plexmediaserver_0.9.16.3.1840-cece46d_amd64.deb | |
dpkg -i plexmediaserver_0.9.16.3.1840-cece46d_amd64.deb | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment