{"id":10167,"date":"2019-08-08T09:35:31","date_gmt":"2019-08-08T07:35:31","guid":{"rendered":"https:\/\/nzbusenet.com\/install-jackett-command-line-ubuntu\/"},"modified":"2023-07-23T12:28:20","modified_gmt":"2023-07-23T10:28:20","slug":"jackett-install-command-line-ubuntu","status":"publish","type":"post","link":"https:\/\/nzbusenet.com\/en\/jackett-install-command-line-ubuntu\/","title":{"rendered":"Install Jackett Ubuntu command line for additional Torrent"},"content":{"rendered":"\n<p>In this Jackett install Ubuntu. We are going to install the Jackett program. On a Ubuntu system. So you have extra Torrent providers at your disposal. For exapample for Sonnar, CouchPotato or SickRage.<\/p>\n<div class='code-block code-block-8' style='margin: 8px 0; clear: both; width: 700px; height: 250px;'>\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-4833496329174552\"\n     crossorigin=\"anonymous\"><\/script>\n<!-- nzbusenetinberichten2021 -->\n<ins class=\"adsbygoogle\"\n     style=\"display:inline-block;width:700px;height:250px\"\n     data-ad-client=\"ca-pub-4833496329174552\"\n     data-ad-slot=\"6745544931\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/div>\n\n\n<p>We have to install the necessary software for Jackett.<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>sudo apt-get install libcurl4-openssl-dev bzip2 -y<\/p>\n<\/blockquote>\n\n<p>We&#8217;re going to download Jackett.<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>jackettver=$(wget -q https:\/\/github.com\/Jackett\/Jackett\/releases\/latest -O &#8211; | grep -E \\\/tag\\\/ | awk -F &#8220;[&gt;<\/p>\n<\/blockquote>\n\n<p>We&#8217;re going to unpack Jackett now.<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>tar -xvf Jackett*<\/p>\n<\/blockquote>\n\n<p>We make a folder for Jackett.<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>sudo mkdir \/opt\/jackett<\/p>\n<\/blockquote>\n\n<p>Now we are going to move the contents of the extracted files. To Jackett&#8217;s folder<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>sudo mv Jackett\/* \/opt\/jackett<\/p>\n<\/blockquote>\n\n<p>We must now set the permissions folder correctly to the Jackket folder.<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>sudo chown -R username:username \/opt\/jackett<\/p>\n<\/blockquote>\n\n<p>Now we are testing whether Jackett starts.<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>mono \/opt\/jackett\/JackettConsole.exe<\/p>\n<\/blockquote>\n\n<p>If Jackett, is started at &#8220;http:\/\/your-ip-address: 9117&#8221;. Then you need Jackett. To close again with CTRL + C.<\/p>\n\n<h2 class=\"wp-block-heading\">Jackett auto start Ubuntu<\/h2>\n\n<p>We are now going to make a startup script for Jackett.<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>sudo nano \/etc\/init.d\/jackett<\/p>\n<\/blockquote>\n\n<p>Paste the following script here. Beware! Customize the user name. To your own.<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>#location where the ap is,<br \/>APP_PATH=\/opt\/jackett<\/p>\n\n\n\n<p># User<br \/>RUN_AS=username<\/p>\n\n\n\n<p># Path to Mono bin<br \/>DAEMON=$(which mono)<\/p>\n\n\n\n<p># Location where the PID is<br \/>PID_FILE=\/var\/run\/jackett\/jackett.pid<br \/>PID_PATH=$(dirname $PID_FILE)<\/p>\n\n\n\n<p># script name<br \/>NAME=jackett<\/p>\n\n\n\n<p># app name<br \/>DESC=Jackett<\/p>\n\n\n\n<p># opstart<br \/>EXENAME=&#8221;JackettConsole.exe&#8221;<br \/>DAEMON_OPTS=&#8221; &#8220;$EXENAME<\/p>\n\n\n\n<p>JACKETT_PID=`ps auxf | grep $EXENAME | grep -v grep | awk &#8216;{print $2}&#8217;`<\/p>\n\n\n\n<p>test -x $DAEMON || exit 0<\/p>\n\n\n\n<p>set -e<\/p>\n\n\n\n<p>#Look for PID and create if doesn&#8217;t exist<br \/>if [ ! -d $PID_PATH ]; then<br \/>mkdir -p $PID_PATH<br \/>chown $RUN_AS $PID_PATH<br \/>fi<\/p>\n\n\n\n<p>if [ ! -d $DATA_DIR ]; then<br \/>mkdir -p $DATA_DIR<br \/>chown $RUN_AS $DATA_DIR<br \/>fi<\/p>\n\n\n\n<p>if [ -e $PID_FILE ]; then<br \/>PID=`cat $PID_FILE`<br \/>if ! kill -0 $PID &gt; \/dev\/null 2&gt;&amp;1; then<br \/>echo &#8220;Removing stale $PID_FILE&#8221;<br \/>rm $PID_FILE<br \/>fi<br \/>fi<\/p>\n\n\n\n<p>echo $JACKETT_PID &gt; $PID_FILE<\/p>\n\n\n\n<p>case &#8220;$1&#8221; in<br \/>start)<br \/>if [ -z &#8220;${JACKETT_PID}&#8221; ]; then<br \/>echo &#8220;Starting $DESC&#8221;<br \/>rm -rf $PID_PATH || return 1<br \/>install -d &#8211;mode=0755 -o $RUN_AS $PID_PATH || return 1<br \/>start-stop-daemon -d $APP_PATH -c $RUN_AS &#8211;start &#8211;background &#8211;pidfile $PID_FILE &#8211;exec $DAEMON &#8212; $DAEMON_OPTS<br \/>else<br \/>echo &#8220;Jackett already running.&#8221;<br \/>fi<br \/>;;<br \/>stop)<br \/>echo &#8220;Stopping $DESC&#8221;<br \/>echo $JACKETT_PID &gt; $PID_FILE<br \/>start-stop-daemon &#8211;stop &#8211;pidfile $PID_FILE &#8211;retry 15<br \/>;;<\/p>\n\n\n\n<p>restart|force-reload)<br \/>echo &#8220;Restarting $DESC&#8221;<br \/>start-stop-daemon &#8211;stop &#8211;pidfile $PID_FILE &#8211;retry 15<br \/>start-stop-daemon -d $APP_PATH -c $RUN_AS &#8211;start &#8211;background &#8211;pidfile $PID_FILE &#8211;exec $DAEMON &#8212; $DAEMON_OPTS<br \/>;;<br \/>status)<br \/># Use LSB function library if it exists<br \/>if [ -f \/lib\/lsb\/init-functions ]; then<br \/>. \/lib\/lsb\/init-functions<br \/>if [ -e $PID_FILE ]; then<br \/>status_of_proc -p $PID_FILE &#8220;$DAEMON&#8221; &#8220;$NAME&#8221; &amp;&amp; exit 0 || exit $?<br \/>else<br \/>log_daemon_msg &#8220;$NAME is not running&#8221;<br \/>exit 3<br \/>fi<\/p>\n\n\n\n<p>else<br \/># Use Basic Functions<br \/>if [ -e $PID_FILE ]; then<br \/>PID=`cat $PID_FILE`<br \/>if kill -0 $PID &gt; \/dev\/null 2&gt;&amp;1; then<br \/>echo &#8221; * $NAME is running&#8221;<br \/>exit 0<br \/>fi<br \/>else<br \/>echo &#8221; * $NAME is not running&#8221;<br \/>exit 3<br \/>fi<br \/>fi<br \/>;;<br \/>*)<br \/>N=\/etc\/init.d\/$NAME<br \/>echo &#8220;Usage: $N {start|stop|restart|force-reload|status}&#8221; &gt;&amp;2<br \/>exit 1<br \/>;;<br \/>esac<\/p>\n\n\n\n<p>exit 0<\/p>\n<\/blockquote>\n\n<p>Make the script executable.<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>sudo chmod +x \/etc\/init.d\/jackett<\/p>\n<\/blockquote>\n<div class='code-block code-block-8' style='margin: 8px 0; clear: both; width: 700px; height: 250px;'>\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-4833496329174552\"\n     crossorigin=\"anonymous\"><\/script>\n<!-- nzbusenetinberichten2021 -->\n<ins class=\"adsbygoogle\"\n     style=\"display:inline-block;width:700px;height:250px\"\n     data-ad-client=\"ca-pub-4833496329174552\"\n     data-ad-slot=\"6745544931\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/div>\n\n\n<p>Now update the Ubuntu boot.<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>sudo update-rc.d jackett defaults<\/p>\n<\/blockquote>\n\n<p>Now we can start Jackett.<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>sudo service jackett start<\/p>\n<\/blockquote>\n\n<p>Now we have to make a startup for Jackett.<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>sudo nano \/etc\/init\/jackett.conf<\/p>\n<\/blockquote>\n\n<p>Copy and paste the below.<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>#startups script<\/p>\n\n\n\n<p>env DIR=\/opt\/jackett<br \/>setuid user<br \/>setgid nogroup<\/p>\n\n\n\n<p>start on runlevel  [2345]<\/p>\n\n\n\n<p>stop on runlevel  [016]<\/p>\n\n\n\n<p>exec mono $DIR\/JackettConsole.exe<\/p>\n<\/blockquote>\n\n<p>You are now done with the installation of Jackett.<\/p>\n\n<p><strong>Jackett Ubuntu tutorial<\/strong><\/p>\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/nzbusenet.com\/en\/jackett-tutorial\/\">Jackett tutorial<\/a>.<\/li>\n\n\n\n<li><a href=\"https:\/\/nzbusenet.com\/en\/jackett-install-command-line-ubuntu\/\">Jackett installing Ubuntu<\/a>.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>In this Jackett install Ubuntu. We are going to install the Jackett program. On a Ubuntu system. So you have extra Torrent providers at your disposal. For exapample for Sonnar, CouchPotato or SickRage. We have <a class=\"mh-excerpt-more\" href=\"https:\/\/nzbusenet.com\/en\/jackett-install-command-line-ubuntu\/\" title=\"Install Jackett Ubuntu command line for additional Torrent\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":12223,"featured_media":50292,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[713],"tags":[],"class_list":{"0":"post-10167","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-jackett-tutorial"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/nzbusenet.com\/wp-content\/uploads\/2016\/06\/Jackett-installeren-Ubuntu.gif","_links":{"self":[{"href":"https:\/\/nzbusenet.com\/en\/wp-json\/wp\/v2\/posts\/10167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nzbusenet.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nzbusenet.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nzbusenet.com\/en\/wp-json\/wp\/v2\/users\/12223"}],"replies":[{"embeddable":true,"href":"https:\/\/nzbusenet.com\/en\/wp-json\/wp\/v2\/comments?post=10167"}],"version-history":[{"count":0,"href":"https:\/\/nzbusenet.com\/en\/wp-json\/wp\/v2\/posts\/10167\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nzbusenet.com\/en\/wp-json\/wp\/v2\/media\/50292"}],"wp:attachment":[{"href":"https:\/\/nzbusenet.com\/en\/wp-json\/wp\/v2\/media?parent=10167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nzbusenet.com\/en\/wp-json\/wp\/v2\/categories?post=10167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nzbusenet.com\/en\/wp-json\/wp\/v2\/tags?post=10167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}