SABnzbd Packaging for CentOS 7.x

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
User avatar
l2g
Newbie
Newbie
Posts: 12
Joined: October 28th, 2016, 10:47 pm
Contact:

SABnzbd Packaging for CentOS 7.x

Post by l2g »

In case anyone is looking, you can get CentOS 7.x / Red Hat 7.x RPM packages to set you up here.

But in short:

Code: Select all

# link to the repository
cat << _EOF > /etc/yum.repos.d/nuxref.repo
[nuxref]
name=NuxRef Core - Enterprise Linux \$releasever - \$basearch
baseurl=http://repo.lead2gold.org/centos/\$releasever/en/\$basearch/custom
enabled=0
priority=1
gpgcheck=0
 
[nuxref-shared]
name=NuxRef Shared - Enterprise Linux \$releasever - \$basearch
baseurl=http://repo.lead2gold.org/centos/\$releasever/en/\$basearch/shared
enabled=0
priority=1
gpgcheck=0
 
[nuxref-testing]
name=NuxRef Testing - Enterprise Linux \$releasever - \$basearch
baseurl=http://repo.lead2gold.org/centos/\$releasever/en/\$basearch/testing
enabled=0
priority=1
gpgcheck=0
_EOF
Then you can install it:

Code: Select all

# Download and install SABnzbd plus the Notification Addon
# on CentOS 7.x using the nuxref repositories located
# here: http://nuxref.com/repo/
yum install -y --enablerepo=nuxref \
               --enablerepo=nuxref-shared \
               sabnzbd sabnzbd-script-notify
Or just go grab the RPMs manually if you like here. If you want the extra notify script on my GitHub page you can get the RPM to make your life easier here.

The paths and everything are already identified in my blog in greater detail, but in short:

Code: Select all

# as root; start up SABnzbd:
systemctl start sabnzbd.service

# Now you should be able to access it at http://your.server:8080

# (optionally) keep it running to survive a reboot:
systemctl enable sabnzbd.service
Things worth noting:
  • All of your log files will show up in /var/log/sabnzbd/sabnzbd.log
  • All of configuration will get written to /etc/sabnzbd/sabnzbd.conf
  • All of the variable data (file processing, etc) will be located in /var/lib/sabnzbd/*. In fact this is a very important directory because unless you configure things differently, all downloaded content will appear in /var/lib/sabnzbd/complete.
Ideally, you should leave the configuration as it is, but you're welcome to change it. I figured people who should have access would add themselves to the sabnzb group lik so:

Code: Select all

# where myuserid is the user account you want to add
# to the sabnzbd group
usermod -a -G sabnzbd myuserid

# Now myuserid can freely access content in /var/lib/sabnzbd
# This of course includes /var/lib/sabnzbd/complete
That very same user can make their life easy by just creating a link to the folder in their home directory. This way we have multi-user support for others:

Code: Select all

# create a link for users who are part of the group:
ln -s /var/lib/sabnzbd/complete /home/myuserid/SABnzbdDownloads
Easy peasy!
Post Reply