Can't find sabnzbd.ini file on Raspberry Pi

Support for the Debian/Ubuntu package, created by JCFP.
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.
bigdavethehorn
Newbie
Newbie
Posts: 23
Joined: March 11th, 2011, 2:08 pm

Can't find sabnzbd.ini file on Raspberry Pi

Post by bigdavethehorn »

This one is totally my fault. I installed Raspbian onto my Raspberry Pi tonight and used "apt-get install sabnzbdplus" which installed SAB perfectly.

Halfway through the install wizard, I enter a complex password for http access to SAB. All well so far. SAB is nearing completion of the wizard (I think) and asks me to enter the password, which I do, incorrectly.

I've read the FAQ, I know that I need to edit the sabnzbd.ini which, on a Unix system should be here ~/.sabnzbd/sabnzbd.ini, but I don't know where that location is!

I've opened Leafpad on the Pi, ready to edit the .ini file, if only I could find it.

Thank you for any assistance.
User avatar
sander
Release Testers
Release Testers
Posts: 8832
Joined: January 22nd, 2008, 2:22 pm

Re: Can't find sabnzbd.ini file on Raspberry Pi

Post by sander »

The location is ~/.sabnzbd/sabnzbd.ini (with a tilde): the tilde means "home directory". So

Code: Select all

pi@raspbian-armhf-SJ ~ $ ls -al ~/.sabnzbd/sabnzbd.ini
-rw------- 1 pi pi 3234 Aug 31 07:34 /home/pi/.sabnzbd/sabnzbd.ini
pi@raspbian-armhf-SJ ~ $

If you want to avoid this (possibly difficult) tilde-character stuff, you can do this:

login in your Raspi, make sure sabnzbd is NOT running, and then:

Code: Select all

cd
cd .sabnzbd
rm sabnzbd.ini
... and then start sabnzbdplus.

HTH
bigdavethehorn
Newbie
Newbie
Posts: 23
Joined: March 11th, 2011, 2:08 pm

Re: Can't find sabnzbd.ini file on Raspberry Pi

Post by bigdavethehorn »

Thanks so much! I'm sure I looked in the home folder already, and it was empty, will check later.

If I remove the .ini file will that prompt a restart of the setup wizard?
User avatar
sander
Release Testers
Release Testers
Posts: 8832
Joined: January 22nd, 2008, 2:22 pm

Re: Can't find sabnzbd.ini file on Raspberry Pi

Post by sander »

bigdavethehorn wrote:Thanks so much! I'm sure I looked in the home folder already, and it was empty, will check later.

If I remove the .ini file will that prompt a restart of the setup wizard?
The directory ".sabnzbd" starts with a ... ".". That means it is invisible. You won't see.

So ... just execute the commands I gave you, and share your experience.
bigdavethehorn
Newbie
Newbie
Posts: 23
Joined: March 11th, 2011, 2:08 pm

Re: Can't find sabnzbd.ini file on Raspberry Pi

Post by bigdavethehorn »

Thanks Sander, your instructions worked and automatically restarted the wizard for me at the next restart.

I'm off to find instructions to install unrar-free now, they're either on this forum or on raspberrypi.org.
User avatar
sander
Release Testers
Release Testers
Posts: 8832
Joined: January 22nd, 2008, 2:22 pm

Re: Can't find sabnzbd.ini file on Raspberry Pi

Post by sander »

bigdavethehorn wrote:Thanks Sander, your instructions worked and automatically restarted the wizard for me at the next restart.

I'm off to find instructions to install unrar-free now, they're either on this forum or on raspberrypi.org.
Assuming you're using Raspbian, see here: http://www.raspberrypi.org/phpBB3/viewt ... c6#p151313
bigdavethehorn
Newbie
Newbie
Posts: 23
Joined: March 11th, 2011, 2:08 pm

Re: Can't find sabnzbd.ini file on Raspberry Pi

Post by bigdavethehorn »

That's the post I was thinking of! Thanks Sander.

Can I copy and paste the code as is, or should it be entered line by line?
User avatar
sander
Release Testers
Release Testers
Posts: 8832
Joined: January 22nd, 2008, 2:22 pm

Re: Can't find sabnzbd.ini file on Raspberry Pi

Post by sander »

bigdavethehorn wrote:That's the post I was thinking of! Thanks Sander.

Can I copy and paste the code as is, or should it be entered line by line?
Line by line is safer; check each output.
bigdavethehorn
Newbie
Newbie
Posts: 23
Joined: March 11th, 2011, 2:08 pm

Re: Can't find sabnzbd.ini file on Raspberry Pi

Post by bigdavethehorn »

Ok, when I copy and paste line one, the Pi repeats it to me, minus the quotation marks.

When I copy and paste line two, the Pi advises that there is a syntax error near unexpected token "I".
So, I retype line two, without "I" at the start and pi@raspberrypi disappears. The SSH session remains open however.

Some time later, pi@raspberrypi has reappeared. It now advises me that:
E: Type 'sudo' is not known on line 2 in source list /etc/apt/sources.list
E: The list of sources could not be read.

I'm guessing this isn't going well?
User avatar
sander
Release Testers
Release Testers
Posts: 8832
Joined: January 22nd, 2008, 2:22 pm

Re: Can't find sabnzbd.ini file on Raspberry Pi

Post by sander »

How many lines do you see? Six or five? Hint: Six is wrong. (EDIT)

Post the terminal (thus what you type and what you get back) as text here in this forum
bigdavethehorn
Newbie
Newbie
Posts: 23
Joined: March 11th, 2011, 2:08 pm

Re: Can't find sabnzbd.ini file on Raspberry Pi

Post by bigdavethehorn »

Would you like me to start from the beginning, and post the text from the terminal?
User avatar
sander
Release Testers
Release Testers
Posts: 8832
Joined: January 22nd, 2008, 2:22 pm

Re: Can't find sabnzbd.ini file on Raspberry Pi

Post by sander »

bigdavethehorn wrote:Would you like me to start from the beginning, and post the text from the terminal?
Open a terminal, and copy-paste the commands below. You can stop if you get an error.

Code: Select all

echo "deb-src http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get build-dep unrar-nonfree
sudo apt-get source -b unrar-nonfree
sudo dpkg -i unrar_4.1.4-1_armhf.deb
bigdavethehorn
Newbie
Newbie
Posts: 23
Joined: March 11th, 2011, 2:08 pm

Re: Can't find sabnzbd.ini file on Raspberry Pi

Post by bigdavethehorn »

We have an error!

pi@raspberrypi ~ $ sudo apt-get update
E: Type 'sudo' is not known on line 2 in source list /etc/apt/sources.list
E: The list of sources could not be read.
User avatar
sander
Release Testers
Release Testers
Posts: 8832
Joined: January 22nd, 2008, 2:22 pm

Re: Can't find sabnzbd.ini file on Raspberry Pi

Post by sander »

bigdavethehorn wrote:We have an error!

pi@raspberrypi ~ $ sudo apt-get update
E: Type 'sudo' is not known on line 2 in source list /etc/apt/sources.list
E: The list of sources could not be read.
There should not be a word "sudo" in /etc/apt/sources.list

What is the output of

Code: Select all

cat /etc/apt/sources.list
Post it here
bigdavethehorn
Newbie
Newbie
Posts: 23
Joined: March 11th, 2011, 2:08 pm

Re: Can't find sabnzbd.ini file on Raspberry Pi

Post by bigdavethehorn »

pi@raspberrypi ~ $ cat /etc/apt/sources.list
deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
sudo apt-get update

sudo apt-get update
deb-src http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
pi@raspberrypi ~ $
Post Reply