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
Last revision Both sides next revision
other:chip [2016/10/18 05:33]
matthias [Recipe] add php for 1.1
other:chip [2016/12/02 16:44]
matthias [ChiPirate-BOX: the chipest and cheapest Pirate-BOX ever]
Line 4: Line 4:
 How to build a Piratebox using ONLY[[http://​nextthing.co/​pages/​chip|a C.H.I.P computer]]. ​ How to build a Piratebox using ONLY[[http://​nextthing.co/​pages/​chip|a C.H.I.P computer]]. ​
  
 +After everything is correctly setup, the following parameters are valid:
 +
 +  * IP Address via wifi: 192.168.77.1 (use ssh)
 +  * SSID: PirateBox - Share Freely
 +  * IP Range: 192.168.77.10 - 192.168.77.250
 +  * Hostname: piratebox.lan
 ===== Recipe ===== ===== Recipe =====
 Get a Chip, a.k.a. Chip 9$, the 9$ computer, Next Thing co. Chip, NTChip. (The one I used was flashed with ChipOS, i.e. the full-fledged Debian with GUI). Get a Chip, a.k.a. Chip 9$, the 9$ computer, Next Thing co. Chip, NTChip. (The one I used was flashed with ChipOS, i.e. the full-fledged Debian with GUI).
Line 9: Line 15:
 Install some extra debian packets: Install some extra debian packets:
  
-   sudo apt-get install perl lighttpd dnsmasq hostapd ​python2 ​php5-cgi ​+   sudo apt-get update 
 +   sudo apt-get install perl lighttpd dnsmasq hostapd ​python ​php5-cgi ​zip avahi-daemon
  
 (perl and hostadp should be already installed). (perl and hostadp should be already installed).
  
-Prevent the deamons ​from automatic loading.+Prevent the daemons ​from automatic loading.
  
   sudo systemctl stop lighttpd   sudo systemctl stop lighttpd
Line 19: Line 26:
   sudo systemctl stop dnsmasq   sudo systemctl stop dnsmasq
   sudo systemctl disable dnsmasq   sudo systemctl disable dnsmasq
 +  sudo systemctl stop hostapd
 +  sudo systemctl disable hostapd
 +
  
 Get the piratebox code: Get the piratebox code:
Line 28: Line 38:
   sudo ln -s /​opt/​piratebox/​init.d/​piratebox /​etc/​init.d/​   sudo ln -s /​opt/​piratebox/​init.d/​piratebox /​etc/​init.d/​
  
-All the files shared ​by this piratebox will be stored in ''/​opt/​piratebox/​share''​. In case you want to use an external USB memory key or disk mount it there:+On CHIP, it is needed to delay the startup ​by 30 seconds:
  
-  ​mount /dev/sda1 /​opt/​piratebox/​share+  ​echo "sleep 30" >> ​/opt/piratebox/​bin/​hooks/​hook_piratebox_start.sh  
 +  sed -i -e 's|^# echo|echo|' ​ /​opt/​piratebox/​bin/​hooks/​hook_piratebox_start.sh 
 + 
 +All the files shared by this piratebox will be stored in ''​/​opt/​piratebox/​share''​.
   ​   ​
 It is a good idea to have a look and edit some configuration parameters (if you like) in the following files: ''/​opt/​piratebox/​conf/​piratebox.conf''​ and ''/​opt/​piratebox/​conf/​hostapd.conf''​. (It is not strictly needed it works out-of-the-box). It is a good idea to have a look and edit some configuration parameters (if you like) in the following files: ''/​opt/​piratebox/​conf/​piratebox.conf''​ and ''/​opt/​piratebox/​conf/​hostapd.conf''​. (It is not strictly needed it works out-of-the-box).
Line 55: Line 68:
   systemctl enable piratebox   systemctl enable piratebox
  
-Use disable instead of enable to undo this operation.  ​+Use ''​disable'' ​instead of ''​enable'' ​to undo this operation.  ​ 
 + 
 +===== USB Stick ===== 
 +It is recommended to use an USB stick to store your files.  
 + 
 +You can follow the instructions listed [[raspberry_pi:​mods#​usb_fat-storage|Raspberry Pi(rate)Box Mods - USB FAT Storage]].
  
 ===== Trouble? ===== ===== Trouble? =====
 As this is more like an unsupported build, please ask in [[https://​forum.piratebox.cc/​read.php?​18,​16719|this thread]] for assistance. As this is more like an unsupported build, please ask in [[https://​forum.piratebox.cc/​read.php?​18,​16719|this thread]] for assistance.
  
 +==== Disable management of wifi card in NetworkManager ====
 +The NetworkManager is a comfort feature, which tend to disturb a smoothness running PirateBox. You can disable the management of wlan0 of the NetworkManagement daemon, run:
 +
 +   if ! grep -q wlan0 /​etc/​NetworkManager/​NetworkManager.conf ; then
 +      sudo sed -i -e '​s|unmanaged-devices=interface-name|unmanaged-devices=;​interface-name|'​ \
 +                  /​etc/​NetworkManager/​NetworkManager.conf
 +      sudo sed -i -e '​s|unmanaged-devices=|unmanaged-devices=interface-name:​wlan0|'​ \
 +                 /​etc/​NetworkManager/​NetworkManager.conf
 +   fi
 +===== Want to modify your CHIPiratebox?​ =====
 +Have a look at the [[raspberry_pi:​mods|Raspberry Pi(rate)Box Mods]], which will mostly apply to the CHIP as well!