Useful Snippets

Welcome!


This blog is used to collect useful snippets related to Linux, PHP, MySQL and more. Feel free to post comments with improvements or questions!

RSS Latest posts from my personal blog


Most viewed posts


Subscribe to RSS feed


Installing SABnzbd on Debian

Stanislav KhromovStanislav Khromov

Add a contrib line to /etc/apt/sources.list like this:

deb http://http.debian.net/debian wheezy main non-free
deb http://http.debian.net/debian wheezy contrib

Then:

sudo apt-get update
sudo apt-get install sabnzbdplus

Now we’re gonna edit the configuration:

vim /etc/default/sabnzbdplus

Now set:

USER=root

Note

USER should ideally be set to an unprivileged user, but it doesn’t seem to be working properly on Debian Wheezy, which still runs SABnzbd 0.6.15.

Now we’re enabling it on boot and starting it:

chkconfig sabnzbdplus on
service sabnzbdplus start

After this you can browse to the following address to finish configuration in your browser: http://127.0.0.1:8080/sabnzbd

(Or exchange 127.0.0.1 for the remote IP where you are installing SABnzbd)

Source

Web Developer at Aftonbladet (Schibsted Media Group)
Any opinions on this blog are my own and do not reflect the views of my employer.
LinkedIn
Twitter
WordPress.org Profile
Visit my other blog

Comments 9
  • MountainDew
    Posted on

    MountainDew MountainDew

    Reply Author

    I found your site and got SAB running on OpenMediaVault (it’s Debian based). When I try to run the chkconfig command though, it won’t work. Is there another way to get this to auto start?


    • Stanislav Khromov
      Posted on

      Stanislav Khromov Stanislav Khromov

      Reply Author

      Hey Mountain,
      Did you try installing chkconfig first? To install, run:
      sudo apt-get install chkconfig

      After that, run the provided command to enable startup. Cheers!


  • willem
    Posted on

    willem willem

    Reply Author

    Thanks, Very helpful!


  • Nathan Davis
    Posted on

    Nathan Davis Nathan Davis

    Reply Author

    I followed your guide however even though the service appears to be running and netstat -apon | grep -i listen | grep -vi listening
    says that SAB is running on 8080 I can’t load a web page for 10.1.10.5:8080 on my LAN. Any ideas?


    • Stanislav Khromov
      Posted on

      Stanislav Khromov Stanislav Khromov

      Reply Author

      Check netstat -lntp if sabnzbd is listening on 0.0.0.0. (or on your network ip, 10.x.x.x), if not, need to configure Host: http://wiki.sabnzbd.org/configure-general-0-7

      Also, from local computer (where sabnzbd is installed) try:

      wget -O - http://127.0.0.1:8080/sabnzbd
      

      If you get output back, means service is working, but only listening locally.

      Hope that helps.


      • Nathan Davis
        Posted on

        Nathan Davis Nathan Davis

        Reply Author

        I get
        wget: missing URL
        Usage: wget [OPTION]… [URL]…

        Try `wget –help’ for more options.
        from the wget command

        and
        Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
        tcp 0 0 127.0.0.1:85 0.0.0.0:* LISTEN 195763/pvedaemon
        tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 180482/sshd
        tcp 0 0 0.0.0.0:3128 0.0.0.0:* LISTEN 195865/spiceproxy
        tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2749/master
        tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 163964/smbd
        tcp 0 0 0.0.0.0:8006 0.0.0.0:* LISTEN 195829/pveproxy
        tcp 0 0 127.0.0.1:27017 0.0.0.0:* LISTEN 172572/mongod
        tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 191238/mysqld
        tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 163964/smbd
        tcp 0 0 0.0.0.0:46766 0.0.0.0:* LISTEN 2308/rpc.statd
        tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 2291/rpcbind
        tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN 201420/python
        tcp 0 0 127.0.0.1:28017 0.0.0.0:* LISTEN 172572/mongod
        tcp6 0 0 :::55411 :::* LISTEN 2308/rpc.statd
        tcp6 0 0 :::22 :::* LISTEN 180482/sshd
        tcp6 0 0 ::1:25 :::* LISTEN 2749/master
        tcp6 0 0 :::445 :::* LISTEN 163964/smbd
        tcp6 0 0 :::139 :::* LISTEN 163964/smbd
        tcp6 0 0 :::111 :::* LISTEN 2291/rpcbind
        tcp6 0 0 :::80 :::* LISTEN 199106/apache2
        from netstat


        • Stanislav Khromov
          Posted on

          Stanislav Khromov Stanislav Khromov

          Reply Author

          I missed a dash, the proper command is:

          wget -O - http://127.0.0.1:8080/sabnzbd
          

          But you can see the python process is listening on 127.0.0.1:8080 so there’s your problem, change the config file Host info, as per my first post. You can find the config file easily with this command:

          find / -name sabnzbd.ini
          

          • Nathan Davis
            Posted on

            Nathan Davis Nathan Davis

            Reply Author

            Sorry I am being difficult. I get an output of
            /root/.sabnzbd/sabnzbd.ini
            and my file looks like this

            version = 19
            [misc]
            queue_complete = “”
            https_port = 9090
            folder_rename = 1
            allow_64bit_tools = 1
            password_file = “”
            rss_rate = 60
            https_key = server.key
            cleanup_list = ,
            cache_limit = “”
            ignore_unrar_dates = 0
            par_option = “”
            web_color = “”
            replace_spaces = 0
            web_color2 = “”
            dirscan_speed = 5
            enable_filejoin = 1
            create_group_folders = 0
            api_key = acc711385c975b88e8737e2c6f0aabda
            never_repair = 0
            no_penalties = 0
            bandwidth_limit = 0
            dirscan_dir = “”
            disable_api_key = 0
            email_to = ,
            rss_filenames = 0
            password = “”
            permissions = “”
            auto_disconnect = 1
            use_pickle = 0
            enable_date_sorting = 0
            replace_dots = 0
            movie_sort_extra = -cd%1
            ionice = “”
            enable_unzip = 1
            download_free = “”
            port = 8080
            email_dir = “”
            pre_script = None
            email_full = 0
            log_dir = logs
            admin_dir = admin
            nzb_backup_dir = “”
            tv_sort_countries = 1
            date_categories = tv,
            ssl_type = v23
            sfv_check = 1
            date_sort_string = “”
            schedlines = ,
            host = localhost
            ignore_samples = 0
            enable_tsjoin = 1
            “sabnzbd.ini” 178L, 3333C 1,1 Top

            I don’t see the setting change that you are talking about but I understand what I need to change now. Thanks for your time.