User Tools

Site Tools


raspberry

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
raspberry [2012/10/07 19:31]
matthias
— (current)
Line 1: Line 1:
-====== PirateBox on Raspberry ====== 
  
-**This Page is currently under construction! It may work, its more like a draft. It's tested with Raspbian 2012-09-18-wheezy-raspbian.zip and Wifi-USB TP-Link TL-WN722N **  
- 
-**Help:** [[http://​forum.daviddarts.com/​read.php?​2,​5090,​5104|PirateBox Forum - Raspberry Pi Thread]] 
- 
-The following steps describes the procedure, if you want to store your files on the SD-Card. __Additional steps are required, if you want you uploaded data on a USB drive.__ 
- 
- 
-  * Download: Raspbian “wheezy” ​  ​http://​www.raspberrypi.org/​downloads 
-  * Install Raspberry as normal: ​ http://​elinux.org/​RPi_Easy_SD_Card_Setup 
-  * 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  ​ 
-  * Wait until reboot is finished- needs a while because the OS is resizing the filesystem during this reboot 
-  * Install needed packages and prepare some stuff: 
- 
-   # sudo apt-get update 
-   # sudo apt-get -y install lighttpd 
-   # sudo /​etc/​init.d/​lighttpd stop 
-   # sudo update-rc.d lighttpd remove 
-   # sudo apt-get -y install dnsmasq ​ 
-   # sudo /​etc/​init.d/​dnsmasq ​ stop 
-   # sudo update-rc.d dnsmasq remove ​ 
-   # sudo apt-get -y  install hostapd 
-   # sudo /​etc/​init.d/​hostapd ​ stop 
-   # sudo update-rc.d hostapd remove ​ 
-   # sudo apt-get -y install iw 
-   # sudo rm /bin/sh 
-   # sudo ln /bin/bash /bin/sh 
-   # sudo chmod a+rw /bin/sh 
-    
- 
-  * Fetch and copy over PirateBox Source 
- 
-   # wget  https://​github.com/​downloads/​MaStr/​PirateBoxScripts_Webserver/​piratebox-ws_0.3.1.tar.gz ​ 
-   # tar xzf piratebox-ws_0.3.1.tar.gz 
-   # cd piratebox 
-   # sudo mkdir -p  /opt 
-   # sudo cp -rv  piratebox /opt 
-   # cd /​opt/​piratebox 
-   # sed '​s:​DROOPY_USE_USER="​yes":​DROOPY_USE_USER="​no"'​ -i  /​opt/​piratebox/​conf/​piratebox.conf 
-   # sudo ln /​opt/​piratebox/​init.d/​piratebox /​etc/​init.d/​piratebox 
-   # sudo update-rc.d piratebox ​ defaults ​ 
-   # sudo /​etc/​init.d/​piratebox start 
-   # sudo touch /​opt/​piratebox/​conf/​init_done ​ 
- 
- 
-:!: After this, the PirateBox should be run on default-startup. PirateBox works only on Wifi-Access with redirect. Network on Ethernet-Port is a normal "​dhcp-client",​ so no interference with your home network :!: 
- 
----- 
- 
-Sidenotes for a later image: 
-  * Enable SSH default 
- 
----- 
-====== PirateBox on RaspberryPI without Wifi ====== 
- 
-Before starting the piratebox first time... 
- 
-FIXME 
- 
-Do you want to run your PirateBox without a wifi device. This is no problem. Make sure you have changed the following parameters in your /​opt/​piratebox/​conf/​piratebox.conf ​ 
- 
-  DO_IFCONFIG="​yes"​ 
-  DO_IW="​no"​ 
-  USE_APN="​no"​ 
-  # The following can be set to no, too. Depends if the device shouldn'​t be a DHCP & DNS Server (no redirect to piratebox.lan) 
-  USE_DNSMASQ="​yes"​ 
-  INTERFACE="​eth0"​ 
-  DNSMASQ_INTERFACE="​eth0"​ 
-  ​ 
- 
-After this, the box is accessible under 192.168.77.1 (instead of 192.168.1.1 on OpenWRT)  ​ 
raspberry.1349631084.txt.gz · Last modified: 2012/10/07 17:31 (external edit)