Automatic 1-step AtoMiC CouchPotato installer script for Ubuntu

As you may know by now CouchPotato is a great little app that automates your media center. In this post, I will present an automatic 1-step CouchPotato installer script for Ubuntu. For simplicity, I am going to call this script AtoMiC CouchPotato Installer (Automated Media Center).

Update (April 2015): AtoMiC Script has evolved into AtoMiC ToolKit with lot more features. AtoMiC Script is no longer maintained. Please use AtoMiC ToolKit instead.

Installation on Windows can be very simple but installing CouchPotato on Ubuntu requires several steps. Essentially, this script will automatically run through various steps described in my Ubuntu CouchPotato installation guide with little or no effort from the user. It will automatically install and start CouchPotato for you but if you prefer to do this yourself you are welcome to follow my full guide. In fact, I strongly urge that you read the full guide first and then come back here if you still prefer to use the 1-step CouchPotato installer script. This way you will know what the script does. So here we go.

Usenet is Better Than Torrents:
For apps like Sonarr, Radarr, SickRage, and CouchPotato, Usenet is better than Torrents. Unlimited plans from Newshosting (US Servers), Eweka (EU Servers), or UsenetServer, which offer >3000 days retention, SSL for privacy, and VPN for anonymity, are better for HD content.

ProviderRatingFeaturesMonthlyYearly
Newshosting
>3000 days, unlimited, SSL, VPN$9.99 $99.99 ($8.33 / month)
Editors Pick
UsenetServer
>3000 days, unlimited, SSL, VPN$9.99 $99.99 ($8.33 / month)
Eweka
>3000 days, unlimited, SSL, EU Serversโ‚ฌ7,50 (Special!!!) 
For more plans that may fit your needs please read our Usenet plan selection guide.

What does the AtoMiC CouchPotato Installer script do?

When you run the CouchPotato installer script, it first gives your basic instructions and warnings, then updates packages, installs essential packages, checks and backups previous CouchPotato installations, downloads the latest CouchPotato from github, creates and installs an autostart script for you, and starts CouchPotato in the browser for initial setup. Below is a summary of what you will see in your commandline when the script runs:

user@ubuntu:~$ ./cp-installer.sh
--->CouchPotato installation will start soon. Please read the following carefully.
1. The script has been confirmed to work on Ubuntu and other Ubuntu based distros, including Mint, Kubuntu, Lubuntu, and Xubuntu.
2. While several testing runs identified no known issues, htpcbeginner.com or the author cannot be held accountable for any problems that might occur due to the script.
3. If you did not run this script with sudo, you maybe asked for your root password during installation.
4. If git and python are not installed they will be installed during the process. These packages are required for CouchPotato to run.

Press y/Y and enter to AGREE and continue with the installation or any other key to exit: y
--->Updating Packages...
...
--->Installing git and python...
...
--->Checking for previous versions of CouchPotato...
--->Any running CouchPotato processes killed
--->Existing CouchPotato init scripts removed
...
--->Downloading latest CouchPotato...
...
--->Creating new default and init scripts...
...
--->Copying init script...
--->Updating rc.d to start CouchPotato at boot time...
...
--->All done. CouchPotato should start within 10 seconds and your browser should open. If not you can start it using "sudo /etc/init.d/couchpotato" start command. Then open http://localhost:5050 in your browser.

***If this script worked for you, please visit https://www.smarthomebeginner.com and like/follow us. Thank you for using the CouchPotato installer script from htpcbeginner.com.***

Starting CouchPotato
user@ubuntu:~$

Downloading and Running AtoMiC CouchPotato Installer Script

Download the script using the download button below:

Version: 1.0 (March 29, 2013) - Initial release
Version: 1.1 (October 03, 2013) - Bugfixes
Version: 2.0 (April 13, 2014) - Updated script to work with Trusty Tahr

Update (April 2015): AtoMiC Script has evolved into AtoMiC ToolKit with lot more features. AtoMiC Script is no longer maintained. Please use AtoMiC ToolKit instead.

For some reason if you would like to open/edit the script in Windows, use Notepad++ (Windows Notepad may not open the script correctly). After downloading, ensure that the script has execute privileges:

sudo chmod +x cp-installer.sh

Then, run the CouchPotato installer script using the following command:

sudo ./cp-installer.sh

Unless you encounter any errors during installation, CouchPotato V2 should open up in a browser in about 10-20 seconds after the 1-step CouchPotato installer script finishes. You may watch the whole process in action in the video guide below.

Automatic 1-step AtoMiC CouchPotato installer

Accessing CouchPotato Web Interface

Unlike CouchPotato V1 (uses port 5000), V2 runs on port 5050 by default. So you can access the CouchPotato web interface by going to:

http://localhost:5050

If your CouchPotato server is on your internal network and doesn't block port 5050 you can also access it through its network IP address (see example below):

http://192.168.0.20:5050

If you have port forwarding enabled on your router and you have a domain name referring your server running CouchPotato, you may also view your CouchPotato App through the internet using your domain name:

http://domain.com:5050

For now, http://localhost:5050 should be enough.

Configure CouchPotato V2

After you install CouchPotato, you can configure it as described in the following post: How to Configure CouchPotato V2?. It explains all the settings in detail with screenshots. After configuring your CouchPotato, you may return to this post and continue. In order to make CouchPotato function properly, you will have to install and configure SABnzbd to listen to download requests from CouchPotato. Please refer to my SABnzbd installation guide and configuration guide to properly automate downloading movies. As mentioned earlier, you also require a reliable Usenet account. You may get a free Usenet account as described in this post, or go with a reliable Usenet service from Newshosting or Astraweb.

Best Standalone Bittorrent Downloaders:

Starting and Stopping CouchPotato

This script automatically enables autostarting CouchPotato during boot. You can manually start and stop CouchPotato using the webui menu or using the following commands:

sudo /etc/init.d/couchpotato start
sudo /etc/init.d/couchpotato stop

Alternatively, you can create bash_aliases to simplify starting, stopping, and restarting CouchPotato using shortcut commands

Optional Improvements

That's it. If the AtoMiC CouchPotato installer script worked for you, please like us or the post, or share your experiences in the comments. Enjoy.

Be the 1 in 200,000. Help us sustain what we do.
32 / 150 by Dec 31, 2024
Join Us (starting from just $1.67/month)

Anand

Anand is a self-learned computer enthusiast, hopeless tinkerer (if it ain't broke, fix it), a part-time blogger, and a Scientist during the day. He has been blogging since 2010 on Linux, Ubuntu, Home/Media/File Servers, Smart Home Automation, and related HOW-TOs.