Home » HTPC » All in one HTPC and Internet PVR How-To

All in one HTPC and Internet PVR How-To

Always wanted to come home to all your tv shows right at your fingertips? Never want to sit at your computer for hours getting everything configured? You’re at home here! In this guide we will use 4 programs running on Ubuntu Server 14.04. I assume you are starting with a formatted computer. We will be installing Ubuntu Server followed by Kodi, SABnzbd, Sonarr, and CouchPotato.

This script may not work on Ubuntu 16.04 and above. We recommend using AToMiC ToolKit, which has more features, is constantly updated, and well supported on GitHub.

If you are not familiar with Ubuntu Server it is basically a version of Ubuntu that has been stripped down to the base necessities to run. There is no desktop or GUI. Dont worry though, this is just a starting point. When we are done you will have a quick starting beautiful media center. [Read: Install Ubuntu Server 14.04 Trusty Tahr as a home server]

Easy Kodi, Couchpotato, Sonarr, and Couchpotato installer

The first piece of software we are going to install on Ubuntu is Kodi. Kodi is the new name of XBMC. It is a great piece of work that will bring all your media to life in no time. If you want more info on Kodi check out http://kodi.tv

After we install Kodi we will install SABnzbd (Usenet Downloader), Sonarr (TV grabber), and CouchPotato (Movie Grabber). With these three apps all your favorite tv shows and movies will be automatically downloaded and organized so they appear just right in Kodi.

Before proceeding please review our disclaimer. Lets get started!

Get a computer

The first thing we need is a computer. There are tons of options out there. You don’t need a whole lot for this project. I personally use the ASRock q1900-itx motherboard mounted in a closet with two 2TB USB 3.0 HDD. It is a basic dual core Intel Celeron based all in one motherboard with 4GB of ram. It runs Kodi, SABnzbd, Sonarr, and Couchpotato without breaking a sweat. I can play full lossless dts videos without a hitch. Check back for a review and tour of my setup. [Read: Low-power budget HTPC build 2014 for a HTPC NAS Combo]

ASRock q1900-ITX. Hide it anywhere!
ASRock q1900-ITX. Hide it anywhere!

Since keeping a keyboard on the couch is not all that appealing I suggest a remote. Any MCE remote with a USB receiver will do. Ebay is a great source for these. I have the GP-IR02BK. E-bay is a good source, these work straight out of the box and are easy to use. [Read: A simple yet awesome IR XBMC remote control for $5]

The first thing we need to do to start is install Ubuntu Server 14.04.1 LTS which is available here: http://www.ubuntu.com/download/server. You can burn this to a CD or use The Universal USB Installer program for windows to make a thumb drive installer. Boot to the CD/USB and install Ubuntu. We have already shown you the Ubuntu Server installation process. The only important options are:

  1. The username has to be “kodi”. All lowercase. You can create another user after the install if you need it but for this guide all we need is the kodi user. You can set any password you want but one must be set.
  2. DO NOT encrypt your home directory. This requires a password at start and you wont have any way to enter it.
  3. When the installer asks you to select additional applications to install select OpenSSH.

Let the installer finish and restart. [Read: The easiest way to install Ubuntu Server from USB]

The best way to do the following would be through SSH. In Windows, install PuTTY. Once PuTTY is installed you will need the IP address of your Ubuntu machine. In Ubuntu type sudo ifconfig You should see at least two interfaces shown. The IP will look like 192.168.1.34. One will have the IP 127.0.0.1. Do not use that one. If there are more than one IP besides the 127.0.0.1 just try each of them until you are connected.

Putty Screenshot
Enter the IP of your server.
Ubuntu SSH Login Putty
Login to SSH

Install Kodi

Once you are connected, login as kodi Then enter the commands below. You can copy and right click in putty to paste.

wget https://github.com/jknight2014/xbmc-ubuntu-minimal/raw/patch-1/12.10/kodi-ubuntu-installer.sh
sudo su
bash ./kodi-ubuntu-installer.sh

The Kodi installer will ask you some questions and start working away. You can leave everything default unless you know what you are doing. Some points might take awhile. Please be patient.

During the install you will be asked to select the LIRC remote profile. You will need to select Windows Media Center transceivers/remotes (all)

LIRC Select Profile
Screenshot of the LIRC profile selector

You can select none when it asks for a IR Transmitter. When that is done your computer should restart and you should be greeted with a beautiful yet empty Kodi media center. Dont worry, we will set that up with everything else. Thank Hack-kid from the kodi forms for this script.

Install SABnzbd, Sonarr, and Couchpotato

Before you start, ensure that you have a good Usenet Index Provider and a reliable Newsgroup Account. Go back to Putty and enter these commands:

wget https://github.com/jknight2014/Kodi-IPVR-setup-script/raw/master/IPVR-setup.sh
sudo bash ./IPVR-setup.sh

Some dependencies will install and then you will be asked a few questions.

  1. The username your running as is kodi
  2. The username and password you want to log in with can be anything you want. It will be used for logging into Sonarr, CouchPotato, and SABnzbd.
  3. Then you will be asked to enter the directory to store your files. Your home directory is the best location but you can also set other mounts if necessary.
  4. The next 6 questions are about your Usenet Provider. Check with your provider for the details you need.
  5. You then will answer 3 questions about your Usenet Indexer. You can only enter a newsnab indexer here. Such as Oznzb or nzb.su. If you dont have one you can leave these blank and enter them later in Sonarr and Couchpotato.
  6. Select which apps you want to install. (all are selected by default) and press enter to start the installation.

When the apps are installed you will get a message asking if you want to install the reverse proxy. Select yes and let the installer finish. Once the installer is finished you can access your IPVR programs at:

https://UBUNTUIP/sonarr
https://UBUNTUIP/couchpotato
https://UBUNTUIP/sabnzbd

Of course, replace UBUNTUIP with the IP address of your Ubuntu system. If you do not know your IP address run ifconfig command on PuTTY and look for the IP address after inet addr. You may be warned that the connection is not secure or the certificate is unverified. You can ignore this error. The certificate if signed by your Ubuntu IPVR and will secure your connection. You can login with the Username and Password you entered in steps 2 and 3.

That’s it. Start entering shows in Sonarr and movies in CouchPotato. The Sonarr, Couchpotato, and SABnzbd installer was written by me, and while I have changed pretty much every line of the script I got my start with the AtoMiC CouchPotato, SickBeard, and Transmission installers from htpcBeginner.

We Are Hiring: Familiar with Media Streaming, HTPC, Home Server, Smart Home, and Home Automation topics? Write about it and earn money. No writing experience needed. APPLY HERE.

Get 20% OFF with IPVanish VPN:

♦   Hide your browsing and streaming activity: No logs and no tracking
♦   Access geo-restricted content from anywhere
♦   Encrypt and anonymize: Kodi, Plex, Downloads, Personal Info
♦   Windows, Mac, Linux, Android, iOS, Router, and more.
♦   Money back guarantee - Sign Up Now

About the author

Joe

I am a major movie lover and system admin. I spend a lot of free time working on my movie theater. Keeping everything running. Over the last 4 years I have gotten my system so stable I never have to think about it.

Archives

Join the other 110,000 followers