-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #296 from tomeshnet/develop
Release Candidate V0.4
- Loading branch information
Showing
84 changed files
with
3,143 additions
and
624 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
# Install batman adv | ||
sudo apt-get install -y batctl | ||
|
||
# Configure batman-adv | ||
sudo modprobe batman-adv | ||
sudo batctl if add wlan0 | ||
sudo ifconfig bat0 up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
|
||
if [ -z "$1" ] && [ -z "$2" ]; then | ||
echo Syntax | ||
echo setid \[git-hub login\] | ||
exit 0 | ||
fi | ||
|
||
git config --global user.email "$1@users.noreply.github.com" | ||
git config --global user.name "$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
|
||
# Backup file | ||
if ! [ -f "/etc/hostapd/nat.sh.bak" ]; then | ||
sudo cp /etc/hostapd/nat.sh /etc/hostapd/nat.sh.bak | ||
fi | ||
|
||
# Redirect all IPv4 80 traffic to the pi | ||
echo iptables -t nat -I PREROUTING -i wlan-ap -p tcp --dport 80 -j DNAT --to-destination 10.0.0.1:80 | sudo tee --append /etc/hostapd/nat.sh > /dev/null | ||
|
||
# Prevent masquerading out IPv4 | ||
# This is to prevent IPTUNNEL and routing to the internet (Exit node) | ||
sudo sed -i "/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE/d" /etc/hostapd/nat.sh | ||
|
||
# Set nginx to redirect any 404 errors to / | ||
sed -i '$i error_page 404 =200 /index.html;' /etc/nginx/sites-enabled/main.conf | ||
sudo systemctl restart hostapd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
|
||
# Install SDR drivers | ||
sudo apt-get install -y cmake git libusb-1.0-0-dev | ||
git clone git://git.osmocom.org/rtl-sdr.git | ||
cd rtl-sdr | ||
mkdir build | ||
cd build | ||
cmake ../ -DINSTALL_UDEV_RULES=ON | ||
make | ||
sudo make install | ||
sudo ldconfig | ||
|
||
# Make drivers work | ||
sudo cp ../rtl-sdr.rules /etc/udev/rules.d/ | ||
echo blacklist dvb_usb_rtl28xxu | sudo tee /etc/modprobe.d/blacklist-rtl.conf > /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
deb http://__PREFIX__.mirror.tomesh.net/armbian/apt/ __CODENAME__ main __CODENAME__-utils __CODENAME__-desktop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
deb http://apt.armbian.com __CODENAME__ main __CODENAME__-utils __CODENAME__-desktop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
deb http://httpredir.debian.org/debian __CODENAME__ main contrib non-free | ||
#deb-src http://httpredir.debian.org/debian __CODENAME__ main contrib non-free | ||
|
||
deb http://httpredir.debian.org/debian __CODENAME__-updates main contrib non-free | ||
#deb-src http://httpredir.debian.org/debian __CODENAME__-updates main contrib non-free | ||
|
||
deb http://httpredir.debian.org/debian __CODENAME__-backports main contrib non-free | ||
#deb-src http://httpredir.debian.org/debian __CODENAME__-backports main contrib non-free | ||
|
||
deb http://security.debian.org/ __CODENAME__/updates main contrib non-free | ||
#deb-src http://security.debian.org/ __CODENAME__/updates main contrib non-free |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
deb http://__PREFIX__.mirror.tomesh.net/debian __CODENAME__ main contrib non-free | ||
#deb-src http://__PREFIX__.mirror.tomesh.net/debian __CODENAME__ main contrib non-free | ||
|
||
deb http://__PREFIX__.mirror.tomesh.net/debian __CODENAME__-updates main contrib non-free | ||
#deb-src http://__PREFIX__.mirror.tomesh.net/debian __CODENAME__-updates main contrib non-free | ||
|
||
deb http://__PREFIX__.mirror.tomesh.net/debian __CODENAME__-backports main contrib non-free | ||
#deb-src http:/__PREFIX__.mirror.tomesh.net/debian __CODENAME__-backports main contrib non-free | ||
|
||
deb http://__PREFIX__.mirror.tomesh.net/debian-security __CODENAME__/updates main contrib non-free | ||
#deb-src http://__PREFIX__.mirror.tomesh.net/debian-security __CODENAME__/updates main contrib non-free |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
deb http://archive.raspberrypi.org/debian/ __CODENAME__ main ui | ||
# Uncomment line below then 'apt-get update' to enable 'apt-get source' | ||
#deb-src http://archive.raspberrypi.org/debian/ __CODENAME__ main ui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
deb http://raspbian.raspberrypi.org/raspbian/ __CODENAME__ main contrib non-free rpi | ||
# Uncomment line below then 'apt-get update' to enable 'apt-get source' | ||
#deb-src http://raspbian.raspberrypi.org/raspbian/ __CODENAME__ main contrib non-free rpi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
deb http://__PREFIX__.mirror.tomesh.net/raspberrypi/debian/ __CODENAME__ main ui | ||
# Uncomment line below then 'apt-get update' to enable 'apt-get source' | ||
#deb-src http://__PREFIX__.mirror.tomesh.net/raspberrypi/debian/ __CODENAME__ main ui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
deb http://__PREFIX__.mirror.tomesh.net/raspbian/raspbian __CODENAME__ main contrib non-free rpi | ||
# Uncomment line below then 'apt-get update' to enable 'apt-get source' | ||
#deb-src http://__PREFIX__.mirror.tomesh.net/raspbian/raspbian __CODENAME__ main contrib non-free rpi |
Oops, something went wrong.