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:mesh [2017/05/26 09:17] matthias [Mesh config script] |
raspberry_pi:mods:mesh [2018/02/23 16:54] (current) matthias [Mesh config script] without cd but use homedir |
||
|---|---|---|---|
| Line 17: | Line 17: | ||
| - Configure Avahi to announce PirateBox | - Configure Avahi to announce PirateBox | ||
| - | ===== Software bridge ===== | + | ===== Prereq. ===== |
| - | Create the network configuration file for the bridge: | + | Check the internet is working and sudo is active: |
| - | + | ||
| sudo touch /tmp/sudo_test | sudo touch /tmp/sudo_test | ||
| + | sudo rm /etc/resolv.conf | ||
| + | sudo sh -c 'echo "nameserver 8.8.8.8" > /etc/resolv.conf' | ||
| + | dig google.de | grep -q -e 192.168.77.1 && echo "error, Internet is not working!" | ||
| - | Then: | ||
| + | ===== Software bridge ===== | ||
| + | Create the network configuration file for the bridge: | ||
| + | | ||
| cat <<EOF > piratebox_bridge | cat <<EOF > piratebox_bridge | ||
| Description="General bridge interface for PirateBox" | Description="General bridge interface for PirateBox" | ||
| Line 92: | Line 97: | ||
| sudo sh -c 'echo "br_netfilter" > /etc/modules-load.d/netfilter.conf' | sudo sh -c 'echo "br_netfilter" > /etc/modules-load.d/netfilter.conf' | ||
| sudo modprobe br_netfilter | sudo modprobe br_netfilter | ||
| + | sudo pacman -Sy --noconfirm batctl | ||
| wget https://github.com/PirateBox-Dev/PirateBox-Mesh/releases/download/1.1.4/piratebox-mesh_1.1.4_all_NON_WRT.sh | wget https://github.com/PirateBox-Dev/PirateBox-Mesh/releases/download/1.1.4/piratebox-mesh_1.1.4_all_NON_WRT.sh | ||
| chmod a+x piratebox-mesh_1.1.4_all_NON_WRT.sh | chmod a+x piratebox-mesh_1.1.4_all_NON_WRT.sh | ||
| Line 102: | Line 108: | ||
| Create a start/stop script: | Create a start/stop script: | ||
| - | cat <<EOF > mesh.service | + | cat <<EOF > ~/mesh.service |
| [Unit] | [Unit] | ||
| Description=PirateBox Mesh Service | Description=PirateBox Mesh Service | ||
| Line 116: | Line 122: | ||
| WantedBy=multi-user.target | WantedBy=multi-user.target | ||
| EOF | EOF | ||
| - | sudo mv mesh.service /etc/systemd/system | + | sudo mv ~/mesh.service /etc/systemd/system |
| sudo systemctl daemon-reload | sudo systemctl daemon-reload | ||
| sudo systemctl start mesh.service | sudo systemctl start mesh.service | ||