{"id":72,"date":"2016-04-11T15:00:26","date_gmt":"2016-04-11T15:00:26","guid":{"rendered":"https:\/\/pure-media.info\/?p=72"},"modified":"2017-04-06T03:52:28","modified_gmt":"2017-04-06T03:52:28","slug":"how-to-install-sonarr-on-ubuntu-14-04","status":"publish","type":"post","link":"https:\/\/pure-media.info\/index.php\/2016\/04\/11\/how-to-install-sonarr-on-ubuntu-14-04\/","title":{"rendered":"How to Install Sonarr on Ubuntu 14.04+"},"content":{"rendered":"<p><a href=\"https:\/\/i0.wp.com\/pure-media.info\/wp-content\/uploads\/2016\/04\/sonarr-banner.png?ssl=1\" rel=\"attachment wp-att-73\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"73\" data-permalink=\"https:\/\/pure-media.info\/index.php\/2016\/04\/11\/how-to-install-sonarr-on-ubuntu-14-04\/sonarr-banner\/\" data-orig-file=\"https:\/\/i0.wp.com\/pure-media.info\/wp-content\/uploads\/2016\/04\/sonarr-banner.png?fit=500%2C176&amp;ssl=1\" data-orig-size=\"500,176\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"sonarr-banner\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/pure-media.info\/wp-content\/uploads\/2016\/04\/sonarr-banner.png?fit=300%2C106&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/pure-media.info\/wp-content\/uploads\/2016\/04\/sonarr-banner.png?fit=500%2C176&amp;ssl=1\" class=\"aligncenter wp-image-73\" src=\"https:\/\/i0.wp.com\/pure-media.info\/wp-content\/uploads\/2016\/04\/sonarr-banner.png?resize=403%2C142&#038;ssl=1\" alt=\"sonarr-banner\" width=\"403\" height=\"142\"><\/a><\/p>\n<p>This guide will show you how to install Sonarr (NZBDrone) on a Ubuntu 14.04+ Box, Be sure to check back from my how to configure guide of Sonarr. This guide asumes you are a SUDO user on the system and not the root user, if root please omit the &#8220;sudo&#8221; at the start of the command<\/p>\n<h4>Add Software to our Source List<\/h4>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FDA5DFFC<\/code><\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">echo \"deb http:\/\/apt.sonarr.tv\/ master main\" | sudo tee \/etc\/apt\/sources.list.d\/sonarr.list<\/code><\/p>\n<h4>&nbsp;Now refresh the software source list<\/h4>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">sudo apt-get update &amp;&amp; sudo apt-get upgrade<\/code><\/p>\n<h4>&nbsp;Now lets install Sonarr (NZBDrone)<\/h4>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">sudo apt-get install nzbdrone <\/code><\/p>\n<h4>&nbsp;You can start Sonarr (NZBDrone) with this command<\/h4>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">mono --debug \/opt\/NzbDrone\/NzbDrone.exe<\/code><\/p>\n<h4>Browsing to this address will allow you to access the application<\/h4>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">http:\/\/localhost:8989<\/code><\/p>\n<h4>Autostart Sonarr (NzbDrone)<\/h4>\n<p>Manually starting Sonarr (NzbDrone) all the time can be cumbersome. Therefore, after you install Sonarr (NzbDrone) on Ubuntu, I recommend making it autostart at boot as described here. There are multiple ways to autostart Sonarr (NzbDrone) on Ubuntu Linux. One way is using Upstart. First, create the file sonarr.conf inside \/etc\/init folder:<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">sudo nano \/etc\/init\/nzbdrone.conf<\/code><\/p>\n<p>Then copy and paste the following contents into the file:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">author \"Reaper - Pure-Media\"\r\ndescription \"Upstart Script to run Sonarr as a service on Ubuntu\/Debian based systems, as well as others\"\r\n\r\n#Set username for the process. Should probably be what you use for logging in\r\nsetuid yourusername\r\n\r\n#This is the install directory. If you installed using a deb package or the Repository you do not need to change this\r\nenv DIR=\/opt\/NzbDrone\r\n\r\nsetgid nogroup\r\nstart on runlevel [2345]\r\nstop on runlevel [016]\r\n\r\nrespawn\r\n\r\nexec mono $DIR\/NzbDrone.exe<\/pre>\n<p>Replace <code>yourusername<\/code> with your username that you use to login. Then save (Ctrl X and then Y) and exit the editor. Then give it execute permissions:<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">sudo chmod +x \/etc\/init\/sonarr.conf<\/code><\/p>\n<p>Finally, issue the following command to start, stop and restart Sonarr:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">sudo start nzbdrone\r\n\r\nsudo stop nzbdrone\r\n\r\nsudo restart nzbdrone<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This guide will show you how to install Sonarr (NZBDrone) on a Ubuntu 14.04+ Box, Be sure to check back<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[85],"tags":[63,62,61,16,59,40,43,10,49,3,35,58,55,2,64,15,4,11,54,5,13,14,9,8,7,37,57],"class_list":["post-72","post","type-post","status-publish","format-standard","hentry","category-tech-tip","tag-63","tag-api","tag-automation","tag-command","tag-download","tag-guide","tag-how-to","tag-install","tag-manager","tag-media","tag-notifications","tag-nzb","tag-nzbdrone","tag-plex","tag-pvr","tag-restart","tag-server","tag-setup","tag-sonarr","tag-ssh","tag-start","tag-stop","tag-tahr","tag-trusty","tag-ubuntu","tag-upstart","tag-usenet"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":false,"jetpack_shortlink":"https:\/\/wp.me\/p7oBs4-1a","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/posts\/72","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/comments?post=72"}],"version-history":[{"count":0,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/posts\/72\/revisions"}],"wp:attachment":[{"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/media?parent=72"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/categories?post=72"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/tags?post=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}