Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
other:chip [2016/10/30 13:35] matthias [Trouble?] add USB |
other:chip [2017/01/03 04:57] (current) matthias [Recipe] added missing sudo |
||
---|---|---|---|
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 32: | 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 | + | sudo sh -c 'echo "sleep 30" >> /opt/piratebox/bin/hooks/hook_piratebox_start.sh' |
+ | sudo 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 40: | Line 49: | ||
Finalize the installation: | Finalize the installation: | ||
- | /opt/piratebox/bin/install_piratebox.sh /opt/piratebox/conf/piratebox.conf part2 | + | sudo /opt/piratebox/bin/install_piratebox.sh /opt/piratebox/conf/piratebox.conf part2 |
- | /opt/piratebox/bin/install_piratebox.sh /opt/piratebox/conf/piratebox.conf imageboard | + | sudo /opt/piratebox/bin/install_piratebox.sh /opt/piratebox/conf/piratebox.conf imageboard |
To activate the board, run the following command: | To activate the board, run the following command: | ||
- | /opt/piratebox/bin/board-autoconf.sh | + | sudo /opt/piratebox/bin/board-autoconf.sh |
Everything is now ready. It is possible to start your ChiPirate-Box: | Everything is now ready. It is possible to start your ChiPirate-Box: | ||
- | /etc/init.d/piratebox start | + | sudo /etc/init.d/piratebox start |
Obviously the ChiPirate-Box can be turned off in this way: | Obviously the ChiPirate-Box can be turned off in this way: | ||
- | /etc/init.d/piratebox stop | + | sudo /etc/init.d/piratebox stop |
Systemd can be instructed to start your ChiPirateBox at boot time: | Systemd can be instructed to start your ChiPirateBox at boot time: | ||
- | systemctl enable piratebox | + | sudo systemctl enable piratebox |
- | + | ||
- | Use disable instead of enable to undo this operation. | + | |
+ | Use ''disable'' instead of ''enable'' to undo this operation. | ||
===== USB Stick ===== | ===== USB Stick ===== |