Installazione PirateBox su Raspberry PI (A/B) – #loptis

Riassumo qui la procedura di installazione aggiornata con le ultime modifiche.

Si inizia regolarmente con la sequenza descritta in http://www.piratebox.cc/raspberry_pi


Stuff You’ll Need

  1. Raspberry Pi version A/B (Amazon) (Newegg) (Farnell) Raspberry Pi version B+ (Amazon) (Farnell)
  2. SD Card 8GB Card (Amazon) Class 10 SDHC
  3. USB Wi-Fi Adapter (compatible devices)
  4. 5 volt power supply
  5. USB Flash Drive (formatted FAT32 with a single partition) The Kingston DT 16GB works well (Amazon) (Newegg)
  6. Ethernet cable
  7. Computer with ethernet port
  8. 5V/USB Battery (optional)

Installation

  1. First, using a BitTorrent client (Transmission for OS X and Linux) (Deluge for Windows, OS X or Linux) on your computer, download a copy of the Raspberry Pi(rate)Box 1.0 image. Note: Please help seed this file for other PirateBox downloaders!
  2. Extract the ArchLinuxARM-2014.05-PirateBox*.zip file and follow the Raspberry Pi SD Card Setup instructions (OS X instructions) (Windows instructions) (Linux instructions): to install the image to your SD card.
  3. Once you’ve finished copying the Raspberry Pi(rate)Box image to your SD card, insert it into the Raspberry Pi and connect it via ethernet cable to your home router. Be sure your USB Wi-Fi adapter and FAT32 formatted USB drive are both plugged in (see “Stuff You’ll Need” section above for more info on compatible devices).
  4. Wait 2-3 minutes for your Pi to fully boot and then open a terminal window (for OS X, go to Applications > Utilities > Terminal; for Windows, install and open PuTTY) and ssh into your PirateBox:

ssh root@alarmpi

The password is: root


Qui va detto che a me non risolve subito l’indirizzo simbolico in quello fisico, succede solo quando ho finito tutto il processo. Per scoprire l’indirizzo fisico che il mio router ha assegnato al R.PI, con i miei setting di rete, faccio, come utente root:

nmap -sP 192.168.2.0/24

Poi uso l’indirizzo IP così scoperto:

ssh root@192.168.2.101

Quindi si continua con le istruzioni di Matthias


  1. Once you’ve logged in, change your password (to something you’ll remember!) by using the password command: passwd Note: you will be prompted to enter and then confirm your new password.
  2. Next you should issue the following command to start your PirateBox: systemctl start piratebox
  3. You should also issue the following command to enable PirateBox to start automatically when you boot your Pi: systemctl enable piratebox
  4. Now remove the ethernet cable from your Pi and disconnect the power. You’re now ready to activate the Kareha Image and Discussion Board and the UPnP server. See the Post-Installation instructions below for details. Post-Installation

Once you have installed or upgraded your PirateBox, follow these final steps to activate the Kareha Image and Discussion Board and configure and start the UPnP media server.


NO: ecco qui prima va applicata la correzione suggerita da Matthias in

http://forum.piratebox.cc/read.php?7,11437 – quella che funziona sempre, non la prima che funziona a volte, ovvero:


Edit /etc/systemd/system/piratebox.service

so that it looks like

[Unit]
Description=PirateBox Service

[Service]
Type=idle
RemainAfterExit=yes
ExecStart=/opt/piratebox/init.d/piratebox_alt start
ExecStop=/opt/piratebox/init.d/piratebox_alt stop
#Restart=/opt/piratebox/init.d/piratebox_alt restart
#PIDFile=/var/run/piratebox.pid

[Install]
WantedBy=multi-user.target


Ora si può continuare


  1. Power up your PirateBox (make sure it is not connected via ethernet cable) and join the SSID “PirateBox: Share freely” network. Then open a terminal window (for OS X, go to Applications > Utilities > Terminal; for Windows, install and open PuTTY) and ssh into your PirateBox: ssh root@192.168.77.1
  2. Activate the Kareha Image and Discussion Board by using the vi text editor (vi cheat sheet) to change the admin username and password (ADMIN_PASS and SECRET). Don’t forget to remove a leading # in the both lines, if exists: vi /opt/piratebox/www/board/config.pl
  3. Activate the “timesave functionality” once: /opt/piratebox/bin/timesave.sh /opt/piratebox/conf/piratebox.conf install
  4. Point your browser to http://piratebox.lan/board/kareha.pl for the first initialization.
  5. Activate the UPnP Media Server by copying over the config file: cp /etc/minidlna.conf /etc/minidlna.conf.bkp cp /opt/piratebox/src/linux.example.minidlna.conf /etc/minidlna.conf Note: Optionally, you can edit the config file (change the display name, etc) with: vi /etc/minidlna.conf
  6. Finally, start the UPnP Media Server with: systemctl start minidlna systemctl enable minidlna
  7. Your PirateBox 1.0 should be ready to use! Be sure to also check out the Raspberry Pi(rate)Box discussion board on our PirateBox Forum. Table of Contents

5 pensieri riguardo “Installazione PirateBox su Raspberry PI (A/B) – #loptis”

  1. Salve, ho seguito le indicazioni alla lettera ma alla fine mi ritrovo con piratebox.lan che non dirige all’ip del rasp. Se, nel browser, specifico l’indirizzo, posso vedere l’interfaccia grafica che però ha dei problemi in quanto è impostata per dirigersi a piratebox.lan. inoltre ho difficoltà a vedere la pendrive (ne ho provate una decina…) urgh..

    1. Ciao, l’IP del Raspberry dovrebbe essere 192.168.77.1 – è così? E l’indirizzo piratebox.lan in che IP si risolve? Mi ricordo che a una mia amica non funzionava perché lei aveva settato nel suo computer un dns fisso.

      Per quanto riguarda la pendrive, di default il sistema lavora tutto sulla scheda di memoria. Se si vogliono tenere i contenuti sulla penna allora occorre fare queste modifiche.

Rispondi

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo di WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione /  Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione /  Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione /  Modifica )

Connessione a %s...

%d blogger hanno fatto clic su Mi Piace per questo: