Er mogen op dit forum GEEN verzoekjes of requests gevraagd worden, dit staat ook in de regels die je accepteert bij het registreren op dit forum, hiervoor krijg je direct een permanente ban.

Spotweb on a Raspberry Pi

This Forum is created for our international residents in The Netherlands.
It is not permitted to link to NZB indexes / copyrighted content in this forum.
We only provide support for technical problems regarding different applications.

Have fun in this English support section!

Moderator: Moderator Team

Forumregels
LEES: Forum Regels!
Gebruikersavatar

Topicstarter
Wheaten
Supporter
Berichten: 838
Lid geworden op: 11 sep 2012, 18:43
Reputation: 0
Usenet: Sunny
Internet: Ziggo
Locatie: Brabant
Leeftijd: 109

Spotweb on a Raspberry Pi

#1

Bericht door Wheaten »

Finally a Raspberry Pi.

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
Afbeelding

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
Open putty and make a connection to the Pi:
Afbeelding


Update the distro:
pi@raspberrypi:~$ sudo apt-get update
pi@raspberrypi:~$ sudo apt-get upgrade
update the firmware of your Raspberry Pi:
pi@raspberrypi:~$ sudo rpi-update
pi@raspberrypi:~$ sudo reboot
Open putty and make a connection to the Pi:

Install Apache and PHP:
pi@raspberrypi:~$ sudo apt-get install apache2 php5 libapache2-mod-php5
If you get an installation error, run:
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
Now restart the service:
pi@raspberrypi:~$ sudo service apache2 restart
Install MySQL:
pi@raspberrypi:~$ sudo apt-get install mysql-server mysql-client php5-mysql
Take ownership of the web root:
pi@raspberrypi:~$ sudo chown -R Pi /var/www
pi@raspberrypi:~$ sudo reboot
Open putty and make a connection to the Pi:

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
Once apache is back up, setup mySQL database:
pi@raspberrypi ~ $ sudo mysql -u root -p
enter your password if you selected one during mySQL install. if not, leave blank and press enter. Read these next lines carefully before pressing enter.
mysql> CREATE DATABASE spotweb;
mysql> GRANT ALL PRIVILEGES ON spotweb.* TO "spotweb"@"localhost" IDENTIFIED BY "Your_NEW_db_Password";
mysql> \q
Define default timezone in php.ini:
pi@raspberrypi:~$ sudo nano /etc/php5/apache2/php.ini
Press Ctrl+W and search for “[Date]”
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"
Press successively: Ctrl+o, Enter, Ctrl+x
pi@raspberrypi:~$ sudo service apache2 restart
Install spotweb.
pi@raspberrypi:~$ cd /var/www/ 
pi@raspberrypi:~$ git clone https://github.com/spotweb/spotweb.git
Goto:
http://<ip-address>/spotweb/install.php

If everything went ok, you see something like this:
Afbeelding

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
Copy the data into dbsettings.inc.php

Code: Selecteer alles

<?php 
$dbsettings['engine'] = 'mysql';
$dbsettings['host'] = 'localhost';
$dbsettings['dbname'] = 'xxx';
$dbsettings['user'] = 'xxx';
$dbsettings['pass'] = 'xxx';
Press successively: Ctrl+o, Enter, Ctrl+x

If everything went well you can go to: http://<ip-address>/spotweb

Spotweb is loaded
Afbeelding

Create crontab entries to run the update scripts on a regular basis.
pi@raspberrypi:~$ crontab -e
(add this to bottom)

Code: Selecteer alles

*/30 * * * * php /var/www/spotweb/retrieve.php
*/30 * * * * php /var/www/spotweb/upgrade-db.php
Ensure cron is running
pi@raspberrypi:~$ ps ax |grep cron
There should be a process ID for /usr/sbin/cron if you are using raspbian.
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:~$
Now we can retrieve the spots and take a nap :o
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
Spotweb is retrieving spots.

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
Con:
  • Slow
  • 100M network
  • Really slow
Neem je online privacy serieus en gebruik een VPN verbinding!

Met een VPN verbinding van IPVanish wordt uw gehele internet verbinding versleuteld

U kunt dus veilig browsen, Torrents downloaden, Usenet downloaden en onderling versleutelde verbindingen opzetten.


Gebruikersavatar

Blauwbek
Moderator Team Leider
Berichten: 2761
Lid geworden op: 04 mar 2011, 17:29
Reputation: 0
Usenet: UNS
Internet: UPC
Locatie: Blauwbek-PC
Contacteer:

Re: Spotweb on a Raspberry Pi

#2

Bericht door Blauwbek »

You might want to install pdo_mysql too, as the mysql extension is deprecated. (viewtopic.php?f=120&t=6375)
The spotweb refactor will be supporting pdo_mysql afaik.
Regels/Rules | pySabRename

Er zijn weer spotnet updates, klik hier!

API's kijken doe je maar in de dierentuin!
Gebruikersavatar

Artifex
Berichten: 668
Lid geworden op: 30 mar 2011, 03:09
Reputation: 0
Usenet: sunnyusenet
Internet: ziggo
Leeftijd: 48

Re: Spotweb on a Raspberry Pi

#3

Bericht door Artifex »

Heel mooi :) , maar is een raspberry pi niet meer geschikt voor XBMC?

Blauwbek's translation service (limited availability):
Very nice :) but isn't a raspberry pi more suitable for using XBMC?
Gebruikersavatar

Topicstarter
Wheaten
Supporter
Berichten: 838
Lid geworden op: 11 sep 2012, 18:43
Reputation: 0
Usenet: Sunny
Internet: Ziggo
Locatie: Brabant
Leeftijd: 109

Re: Spotweb on a Raspberry Pi

#4

Bericht door Wheaten »

I believe that people using a raspberry Pi and go ballistic suffer from the Stockholm Syndrome.
Even with the recommend distro for XBMC you neeeeeeeed patience.
At least while scanning, loading and buffering. when this is done the movie plays without many interruptions.
Spoiler: show
Ik denk zelf dat mensen met de Raspberry Pi, die beweren dat het zo geweldig is, aan het stockholm syndroom lijden. Ook met XBMC is dat ding niet vooruit te krijgen.
Tenminste met scannen media, laden pagina's en bufferen film. Als de Pi dat allemaal gedaan heeft speelt een film redelijk af.
Gebruikersavatar

BitsOfSkin
Berichten: 78
Lid geworden op: 17 jul 2011, 03:15
Reputation: 0
Usenet: SuperUsenet
Internet: XS4ALL/Ziggo
Locatie: Ergens in het zuidwesten
Leeftijd: 41

Re: Spotweb on a Raspberry Pi

#5

Bericht door BitsOfSkin »

Ik heb thuis 3 Pi's, ik gebruik er een als portable mediacenter, de tweede als draagbare 'hackbox' en de derde als interface met wat X10's en wat andere automatisering gadgets, werkt allemaal prima...
Kwestie van de juiste distro voor de juiste toepassingsvorm, en tweaken tot je er bij neervalt.
'T zal nooit gaan presteren als een desktop PC of als een Laptop, maar ja, daar zijn ze ook niet voor bedoeld.

English translation redone by me, because PANCAKES !! :
I have 3 Rpi's at home, the first is used as a portable mediacenter/XBMC hub, the second as 'hackbox', and the third as an interface for some home automation gadgets, all work just fine...
The trick is in choosing the right distro for the right use and tweaking it until your fingers rott off.
They will never perform like a desktop PC or laptop but, but they're not exactly meant to be, so...
Laatst gewijzigd door BitsOfSkin op 07 nov 2013, 10:14, 1 keer totaal gewijzigd.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/S d+pu s+: a C++ UBL++++@ P-- L++@ !E--- W++$ N++++>$ o-- K++@ w O- M-- V+ PS? PE>$ Y++@ PGP---- t 5 X- R++ tv-- b+++>$ DI++ D+++ G+ e+++(-)>$ h r y++**@
------END GEEK CODE BLOCK------
Gebruikersavatar

Gup
Algemeen Manager
Berichten: 1722
Lid geworden op: 18 feb 2011, 12:09
Reputation: 3
Usenet: 8 diverse
Internet: ???
Locatie: Deep Ocean
Leeftijd: 48

Re: Spotweb on a Raspberry Pi

#6

Bericht door Gup »

please continue this conversation in English :goed:
Need Support? click this link for the search engine or start a new subject

D3r @nt1 R00tk17 M31st3r :ssst:
Gebruikersavatar

Blauwbek
Moderator Team Leider
Berichten: 2761
Lid geworden op: 04 mar 2011, 17:29
Reputation: 0
Usenet: UNS
Internet: UPC
Locatie: Blauwbek-PC
Contacteer:

Re: Spotweb on a Raspberry Pi

#7

Bericht door Blauwbek »

Translated the dutch messages
Regels/Rules | pySabRename

Er zijn weer spotnet updates, klik hier!

API's kijken doe je maar in de dierentuin!

MdemiC
Berichten: 7
Lid geworden op: 26 jan 2014, 17:34
Reputation: 0
Usenet: Sunnyusenet
Internet: Glashelder
Locatie: Aalst-Waalre
Leeftijd: 30

Re: Spotweb on a Raspberry Pi

#8

Bericht door MdemiC »

English (See dutch in the spoiler)
Hello,

After the crontab -e you say to put */30 * * * * php /var/www/spotweb/update-db.php in it but i cant find the file update-db.php.

I guess it should be upgrade-db.php instead.
Spoiler: show
Hallo,

Na crontab -e zeg je dat we */30 * * * * php /var/www/spotweb/update-db.php moeten invoeren maar ik kan het bestand update-db.php niet vinden.

Ik denk dat het upgrade-db.php moet zijn!!
Gebruikersavatar

Topicstarter
Wheaten
Supporter
Berichten: 838
Lid geworden op: 11 sep 2012, 18:43
Reputation: 0
Usenet: Sunny
Internet: Ziggo
Locatie: Brabant
Leeftijd: 109

Re: Spotweb on a Raspberry Pi

#9

Bericht door Wheaten »

nooooooooo................... :shock:
Afbeelding

Corrected it, typo. :facepalm:
Plaats reactie Vorig onderwerpVolgend onderwerp
Spot-net.nl Forums : Disclaimer