Q:
Will the Pi be able to run spotweb?
A:
Yes it is possible. However don't expect miracles.
What do we need:
• Raspberry Pi Model B
• Suitable USB Drive
• Clean SD-Card > 256 MB (Only needed to boot the Pi)
• Putty
Since the SD-Card isn’t that big, 8 GB I decided to use the SD card only for booting purpose and install the OS to an external USB drive.
Be aware that the Pi isn’t a power plant, so use an external powered USB drive.
I’ve tested this with an 2,5” HyperX case form Kingston and didn’t need an extra powersupply.
To have the OS running from an External disk, we can go the easy or the hard way. Thankfully there is a great tool, called: berryboot. Follow the instructions as mentioned on the webpage.
This tutorial is written for the recommended Raspian distro.
If everything went well, your Raspberry boots and using the USB disk as file system.
On first boot you enter Raspi-config, make sure to enable SHH.
It’s located under:
8. Advanced options
Reboot the Pi.
Watch to the screen to see the ip-address of the Pi or go to the console and type: ifconfig
pi@raspberrypi:~$ ifconfig eth0 Link encap:Ethernet HWaddr xxxxxxxxxx inet addr:192.168.1.127 Bcast:192.168.1.255 Mask:255.255.255.0
Update the distro:
pi@raspberrypi:~$ sudo apt-get update pi@raspberrypi:~$ sudo apt-get upgrade
pi@raspberrypi:~$ sudo rpi-update pi@raspberrypi:~$ sudo reboot
Install Apache and PHP:
pi@raspberrypi:~$ sudo apt-get install apache2 php5 libapache2-mod-php5
pi@raspberrypi:~$ sudo groupadd www-data pi@raspberrypi:~$ sudo usermod -g www-data www-data pi@raspberrypi:~$ sudo apt-get install apache2 php5 libapache2-mod-php5
pi@raspberrypi:~$ sudo service apache2 restart
pi@raspberrypi:~$ sudo apt-get install mysql-server mysql-client php5-mysql
pi@raspberrypi:~$ sudo chown -R Pi /var/www pi@raspberrypi:~$ sudo reboot
For spotweb, the following additional packages are needed:
pi@raspberrypi:~$ sudo apt-get install php5-curl pi@raspberrypi:~$ sudo apt-get install php5-gmp pi@raspberrypi:~$ sudo apt-get install php5-gd
pi@raspberrypi:~$ sudo service apache2 restart
pi@raspberrypi ~ $ sudo mysql -u root -p
mysql> CREATE DATABASE spotweb; mysql> GRANT ALL PRIVILEGES ON spotweb.* TO "spotweb"@"localhost" IDENTIFIED BY "Your_NEW_db_Password"; mysql> \q
pi@raspberrypi:~$ sudo nano /etc/php5/apache2/php.ini
Replace:
Code: Selecteer alles
; date.timezone =
With:
Code: Selecteer alles
date.timezone = "Europe/Amsterdam"
Code: Selecteer alles
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = "Europe/Amsterdam"
pi@raspberrypi:~$ sudo service apache2 restart
pi@raspberrypi:~$ cd /var/www/ pi@raspberrypi:~$ git clone https://github.com/spotweb/spotweb.git
http://<ip-address>/spotweb/install.php
If everything went ok, you see something like this:
Press: verify database
Fill info for the Usenet server:
Press: verify usenet server
Pick your type of installation and fill required info:
Single user
shared
public
Press: Create system
If everything goes wel, you'll see the settings for dbsettings.inc.php on your webpage:
pi@raspberrypi:~$ sudo nano /var/www/spotweb/dbsettings.inc.php
Code: Selecteer alles
<?php
$dbsettings['engine'] = 'mysql';
$dbsettings['host'] = 'localhost';
$dbsettings['dbname'] = 'xxx';
$dbsettings['user'] = 'xxx';
$dbsettings['pass'] = 'xxx';
If everything went well you can go to: http://<ip-address>/spotweb
Spotweb is loaded
Create crontab entries to run the update scripts on a regular basis.
pi@raspberrypi:~$ crontab -e
Code: Selecteer alles
*/30 * * * * php /var/www/spotweb/retrieve.php
*/30 * * * * php /var/www/spotweb/upgrade-db.php
pi@raspberrypi:~$ ps ax |grep cron
If not, start cron
pi@raspberrypi:~$ ps ax |grep cron 2103 ? Ss 0:00 /usr/sbin/cron 5032 pts/0 S+ 0:00 grep cron pi@raspberrypi:~$
pi@raspberrypi:~$ php /var/www/spotweb/retrieve.php --force
Retrieving 2004 till 3005 (parsed 1001 headers, 0 full, verified 0, moderated 0, skipped 0 of 1001 total messages) in 3.57 seconds Retrieving 3005 till 4006 (parsed 1001 headers, 0 full, verified 0, moderated 0, skipped 0 of 1001 total messages) in 1.53 seconds Retrieving 4006 till 5007 (parsed 1001 headers, 0 full, verified 0, moderated 0, skipped 0 of 1001 total messages) in 2.78 seconds Retrieving 5007 till 6008 (parsed 1001 headers, 0 full, verified 0, moderated 0, skipped 0 of 1001 total messages) in 1.61 seconds
Installation succeded.
NZBget
SabNZBd is a bit heavy to run on the Pi, unless you like waitiing a lot.
A good alternative is NZBget., lighter and less options.
Please use the link for a tutorial.
Pro:
- Cheap: $35,00 + old USB disk
- Low power consumption
- Quiet
- Slow
- 100M network
- Really slow