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
- Raspberry Pi version A/B (Amazon) (Newegg) (Farnell) Raspberry Pi version B+ (Amazon) (Farnell)
- SD Card 8GB Card (Amazon) Class 10 SDHC
- USB Wi-Fi Adapter (compatible devices)
- 5 volt power supply
- USB Flash Drive (formatted FAT32 with a single partition) The Kingston DT 16GB works well (Amazon) (Newegg)
- Ethernet cable
- Computer with ethernet port
- 5V/USB Battery (optional)
Installation
- 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!
- 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.
- 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).
- 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
- 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.
- Next you should issue the following command to start your PirateBox: systemctl start piratebox
- You should also issue the following command to enable PirateBox to start automatically when you boot your Pi: systemctl enable piratebox
- 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
- 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
- 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
- Activate the “timesave functionality” once: /opt/piratebox/bin/timesave.sh /opt/piratebox/conf/piratebox.conf install
- Point your browser to http://piratebox.lan/board/kareha.pl for the first initialization.
- 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
- Finally, start the UPnP Media Server with: systemctl start minidlna systemctl enable minidlna
- 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
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..
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.
E’ già! Era proprio il DNS impostato sul portatile con il quale mi connettevo all’ap! Grazie mille
Ganzo!
🙂