Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
raspberry_pi:mods [2017/05/01 06:15] matthias new Section AP isolation |
raspberry_pi:mods [2017/07/07 07:40] (current) matthias [Raspberry Pi(rate)Box Mods] added mesh howto |
||
---|---|---|---|
Line 4: | Line 4: | ||
Additional Mods: | Additional Mods: | ||
*[[raspberry_pi:mods:sfpg|Set up Single File PHP Gallery]] | *[[raspberry_pi:mods:sfpg|Set up Single File PHP Gallery]] | ||
+ | *[[http://blog.danielpecos.com/2013/09/raspberrypi-custom-command-button/#more-648|RaspberryPI Shutdown button via GPIO]] | ||
+ | *[[laptop:mods|PirateBox Mods]] for PirateBox itself and not RPi or one-chip specific. | ||
+ | *A very hardcore plain howto to get Mesh on RPi up and running: [[raspberry_pi:mods:mesh|Mesh RPi]] | ||
===== Switch used wifi adapter ===== | ===== Switch used wifi adapter ===== | ||
Line 9: | Line 12: | ||
If you want to use multiple USB cards or you have issues with alternating links between ''wlan0'' and the real device, you might need to create a [[https://wiki.archlinux.org/index.php/udev|udev rule]] to assign static names. **Tipp:** Use names with ''wlan_'' that other wifi-udev-rules are working. | If you want to use multiple USB cards or you have issues with alternating links between ''wlan0'' and the real device, you might need to create a [[https://wiki.archlinux.org/index.php/udev|udev rule]] to assign static names. **Tipp:** Use names with ''wlan_'' that other wifi-udev-rules are working. | ||
===== Temporary client mode ===== | ===== Temporary client mode ===== | ||
+ | :!: On 1.1.3 is a bug, that the command is not executed correctly, run the following lines once to fix that: | ||
+ | |||
+ | sed -i -e 's|/rpi/run_client.sh|/rpi/bin/run_client.sh|g' \ | ||
+ | /opt/piratebox/rpi/bin/do_switch_client.sh | ||
+ | |||
Since 1.1.3, it is possible to switch from AP to client mode with a command. Before booting your RPi Piratebox, edit the ''wpa_supplicant.conf'' file on your computer. After the file is adjusted, boot your PirateBox and connect with it via ssh, like in the post installation. Execute the following command: | Since 1.1.3, it is possible to switch from AP to client mode with a command. Before booting your RPi Piratebox, edit the ''wpa_supplicant.conf'' file on your computer. After the file is adjusted, boot your PirateBox and connect with it via ssh, like in the post installation. Execute the following command: | ||
sudo /opt/piratebox/rpi/bin/switch_to_client.sh | sudo /opt/piratebox/rpi/bin/switch_to_client.sh | ||
- | While executing the command, the wifi connection will drop and the ssh session **will freeze**. This is expected. If you can not connect to your RPi, verify your ''wpa_supplicant.conf''. To switch back to normal AP mode, reboot your PI. | + | While executing the command, the wifi connection will drop and the ssh session **will freeze**. This is expected. If you can not connect to your RPi, verify your ''wpa_supplicant.conf'' (which you find in ''/boot'' - the first SDCard partition). To switch back to normal AP mode, reboot your PI. |
If you have issues with resolving hostnames, verify if ''/etc/resolv.conf'' has a content (vi,cat). If you get strange error messages, run the following commands | If you have issues with resolving hostnames, verify if ''/etc/resolv.conf'' has a content (vi,cat). If you get strange error messages, run the following commands | ||
Line 83: | Line 91: | ||
**Sidenote:** If you use multiple USB-Stick, it is strongly discouraged of using ''/dev/sda1'' as a reference for mounting the devices. It may happen, that one of two devices is named sda per random. For circumventing this issue, use the device ''UUID''(Universally Unique Identifier) instead. [[http://www.cyberciti.biz/faq/linux-finding-using-uuids-to-update-fstab/|Follow this instructions]] for a stable setup. | **Sidenote:** If you use multiple USB-Stick, it is strongly discouraged of using ''/dev/sda1'' as a reference for mounting the devices. It may happen, that one of two devices is named sda per random. For circumventing this issue, use the device ''UUID''(Universally Unique Identifier) instead. [[http://www.cyberciti.biz/faq/linux-finding-using-uuids-to-update-fstab/|Follow this instructions]] for a stable setup. | ||
+ | |||
+ | ===== Enable WPA for the hotspot ===== | ||
+ | Change the following configuration file ''/opt/piratebox/conf/hostapd.conf'', those options will enable the functionality: | ||
+ | |||
+ | interface=wlan0 | ||
+ | driver=rtl871xdrv | ||
+ | ssid=PrivateBox | ||
+ | hw_mode=g | ||
+ | channel=1 | ||
+ | ieee80211n=1 | ||
+ | wmm_enabled=0 | ||
+ | wpa=1 | ||
+ | auth_algs=1 | ||
+ | wpa_passphrase=first123 | ||
+ | wpa_key_mgmt=WPA-PSK | ||
+ | wpa_pairwise=TKIP | ||
+ | rsn_pairwise=CCMP | ||
+ | macaddr_acl=0 | ||
+ | |||
+ | |||
===== PirateBox on SDCard ===== | ===== PirateBox on SDCard ===== | ||
Line 169: | Line 197: | ||
--- //[[wacomalt@gmail.com|WACOMalt]] 2014/11/08 03:52// | --- //[[wacomalt@gmail.com|WACOMalt]] 2014/11/08 03:52// | ||
- | ===== Enable WPA for the hotspot ===== | ||
- | Change the following configuration file ''/opt/piratebox/conf/hostapd.conf'', those options will enable the functionality: | ||
- | |||
- | interface=wlan0 | ||
- | driver=rtl871xdrv | ||
- | ssid=PrivateBox | ||
- | hw_mode=g | ||
- | channel=1 | ||
- | ieee80211n=1 | ||
- | wmm_enabled=0 | ||
- | wpa=1 | ||
- | auth_algs=1 | ||
- | wpa_passphrase=first123 | ||
- | wpa_key_mgmt=WPA-PSK | ||
- | wpa_pairwise=TKIP | ||
- | rsn_pairwise=CCMP | ||
- | macaddr_acl=0 | ||