Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
raspberry_pi:diy:manual [2014/11/23 04:09] darts created |
raspberry_pi:diy:manual [2017/07/02 07:59] (current) matthias [Manual install] added php |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Raspberry Pi(rate)Box 1.0 DIY ===== | + | ===== Raspberry Pi(rate)Box 1.0 & 2.0 DIY ===== |
- | + | ||
- | **Note:** The Raspberry Pi(rate)Box 1.0 is currently under development. The instructions below will be updated when the new Raspberry Pi(rate)Box 1.0 image is completed. In the interim, check out the **[[http://forum.daviddarts.com/list.php?7|PirateBox Forum - Raspberry Pi]]** discussion board for more info and support. | + | |
+ | <wrap tip> | ||
+ | **Note:** This howto is for crafting your own PirateBox image. Currently we have prebuild images for all RaspberryPi versions available. You find further instructions on [[:raspberry_pi:diy|the Raspberry Pi DIY]] page. | ||
+ | </wrap> | ||
---- | ---- | ||
- | **Known working USB Wifi-dongles:** [[piratebox_wifi_compatibility|RaspberryPI PirateBox compatibility list]] | ||
- | [[http://blog.danielpecos.com/2013/09/raspberrypi-custom-command-button/#more-648|RaspberryPI Shutdown button via GPIO]] | ||
- | ==== Custom Image ==== | + | **Known working USB Wifi-dongles:** [[:raspberry_pi:piratebox_wifi_compatibility|RaspberryPI PirateBox compatibility list]] |
- | :!: :!: Custom image seems broken :!: :!: | + | [[http://blog.danielpecos.com/2013/09/raspberrypi-custom-command-button/#more-648|RaspberryPI Shutdown button via GPIO]] |
- | + | ||
- | Support-Thread for Image-Issues: http://forum.daviddarts.com/read.php?2,6298 | + | |
- | + | ||
- | * Download this imagefile: [[http://downloads.piratebox.de/2013-02-06-wheezy-raspbian-PBx06F.zip| 2013-02-06-wheezy-raspbian-PBx06F.zip]] (MD5SUM fba9dea3aa404460184ee3d145a8f4fc) | + | |
- | * Install Raspberry as normal: http://elinux.org/RPi_Easy_SD_Card_Setup (But use the image above instead) | + | |
- | * Boot as normal with a Monitor, Keyboard & connected LAN (DHCP with Internet access) :!: | + | |
- | * Do the following steps in Raspi-Config | + | |
- | * Enable SSH Server via raspberry-config | + | |
- | * change Password | + | |
- | * Expand FS | + | |
- | * Finish & reboot now | + | |
- | + | ||
- | * After this you have can enable it with | + | |
- | + | ||
- | # sudo /etc/init.d/piratebox start | + | |
- | + | ||
- | * And if PirateBox should start via startup, run the following line | + | |
- | + | ||
- | # sudo update-rc.d piratebox defaults | + | |
Line 50: | Line 30: | ||
* Install needed packages and prepare some stuff: | * Install needed packages and prepare some stuff: | ||
- | # sudo apt-get update | + | sudo apt-get update |
- | # sudo apt-get -y install lighttpd | + | sudo apt-get -y install lighttpd |
- | # sudo /etc/init.d/lighttpd stop | + | sudo /etc/init.d/lighttpd stop |
- | # sudo update-rc.d lighttpd remove | + | sudo update-rc.d lighttpd remove |
- | # sudo apt-get -y install dnsmasq | + | sudo apt-get -y install dnsmasq |
- | # sudo /etc/init.d/dnsmasq stop | + | sudo /etc/init.d/dnsmasq stop |
- | # sudo update-rc.d dnsmasq remove | + | sudo update-rc.d dnsmasq remove |
- | # sudo apt-get -y install hostapd | + | sudo apt-get -y install hostapd |
- | # sudo /etc/init.d/hostapd stop | + | sudo /etc/init.d/hostapd stop |
- | # sudo update-rc.d hostapd remove | + | sudo update-rc.d hostapd remove |
- | # sudo apt-get -y install iw | + | sudo apt-get -y install iw php-cli php-cgi |
- | # sudo rm /bin/sh | + | sudo rm /bin/sh |
- | # sudo ln /bin/bash /bin/sh | + | sudo ln /bin/bash /bin/sh |
- | # sudo chmod a+rw /bin/sh | + | sudo chmod a+rx /bin/sh |
Line 81: | Line 61: | ||
* Fetch and copy over PirateBox Source | * Fetch and copy over PirateBox Source | ||
- | # wget http://downloads.piratebox.de/piratebox-ws_current.tar.gz | + | wget http://downloads.piratebox.de/piratebox-ws_current.tar.gz |
- | # tar xzf piratebox-ws_current.tar.gz | + | tar xzf piratebox-ws_current.tar.gz |
- | # cd piratebox | + | cd piratebox |
- | # sudo mkdir -p /opt | + | sudo mkdir -p /opt |
- | # sudo cp -rv piratebox /opt | + | sudo cp -rv piratebox /opt |
- | # cd /opt/piratebox | + | cd /opt/piratebox |
- | # sudo sed 's:DROOPY_USE_USER="no":DROOPY_USE_USER="yes":' -i /opt/piratebox/conf/piratebox.conf | + | sudo sed 's:DROOPY_USE_USER="no":DROOPY_USE_USER="yes":' -i /opt/piratebox/conf/piratebox.conf |
- | # sudo ln -s /opt/piratebox/init.d/piratebox /etc/init.d/piratebox | + | sudo ln -s /opt/piratebox/init.d/piratebox /etc/init.d/piratebox |
- | # sudo update-rc.d piratebox defaults | + | sudo update-rc.d piratebox defaults |
- | # sudo /etc/init.d/piratebox start | + | sudo /etc/init.d/piratebox start |
Line 137: | Line 117: | ||
- | After this, the box is accessible under 192.168.77.1 (instead of 192.168.1.1 on OpenWRT) | + | After this, the box is accessible under 192.168.77.1 (instead of 192.168.1.1 on OpenWRT) |
+ | |||
+ | ===== Post-Installation ===== | ||
+ | |||
+ | ==== Activate the Kareha Image and Discussion Board ==== | ||
+ | |||
+ | Enable the Kareha Image and Discussion Board on the piratebox: | ||
+ | |||
+ | sudo /opt/piratebox/bin/install_piratebox.sh /opt/piratebox/conf/piratebox.conf imageboard | ||
+ | |||
+ | Use the vi text editor ([[http://www.lagmonster.org/docs/vi.html|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: | ||
+ | |||
+ | sudo vi /opt/piratebox/www/board/config.pl | ||
+ | |||
+ | ==== Activate Timesave Functionality ==== | ||
+ | |||
+ | Enable Timesave support on the piratebox: | ||
+ | |||
+ | sudo /opt/piratebox/bin/timesave.sh /opt/piratebox/conf/piratebox.conf install | ||
+ | |||
+ | ==== Activate the UPnP Media Server ==== | ||
+ | |||
+ | First, install minidlna if it is not present on the system. WARNING: your raspberry pi must be connected to the Internet to download remote packages: | ||
+ | |||
+ | sudo apt-get install minidlna | ||
+ | |||
+ | Then, save minidlna default config file and replace it with the one provided with piratebox: | ||
+ | |||
+ | sudo cp /etc/minidlna.conf /etc/minidlna.conf.bkp | ||
+ | sudo cp /opt/piratebox/src/linux.example.minidlna.conf /etc/minidlna.conf | ||
+ | |||
+ | Finally, configure the system to automatically start minidlna when power up: | ||
+ | |||
+ | sudo update-rc.d minidlna defaults | ||
+ | sudo service minidlna start | ||
+ | |||
+ | The minidlna should start. | ||
+ | |||
+ | |||
+ |