Beta Release

This commit is contained in:
2017-11-09 13:46:58 +01:00
parent b379570033
commit e3e1387117
62 changed files with 32013 additions and 26 deletions
@@ -0,0 +1,3 @@
# Delete Old Directories
10 5 * * * beieli find /home/beieli/tmp/* -type d -ctime +5 -exec rm -rf {} \; 2>/dev/null
10 6 * * * beieli find /home/beieli/web-csv/* -type d -ctime +5 -exec rm -rf {} \; 2>/dev/null
+1
View File
@@ -0,0 +1 @@
@reboot root /usr/local/bin/gsm_poweron.py
+34
View File
@@ -0,0 +1,34 @@
# This file has five functions:
# 1) to completely disable starting dnsmasq,
# 2) to set DOMAIN_SUFFIX by running `dnsdomainname`
# 3) to select an alternative config file
# by setting DNSMASQ_OPTS to --conf-file=<file>
# 4) to tell dnsmasq to read the files in /etc/dnsmasq.d for
# more configuration variables.
# 5) to stop the resolvconf package from controlling dnsmasq's
# idea of which upstream nameservers to use.
# For upgraders from very old versions, all the shell variables set
# here in previous versions are still honored by the init script
# so if you just keep your old version of this file nothing will break.
#DOMAIN_SUFFIX=`dnsdomainname`
#DNSMASQ_OPTS="--conf-file=/etc/dnsmasq.alt"
# Whether or not to run the dnsmasq daemon; set to 0 to disable.
ENABLED=1
# By default search this drop directory for configuration options.
# Libvirt leaves a file here to make the system dnsmasq play nice.
# Comment out this line if you don't want this. The dpkg-* are file
# endings which cause dnsmasq to skip that file. This avoids pulling
# in backups made by dpkg.
CONFIG_DIR=/etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new
# If the resolvconf package is installed, dnsmasq will use its output
# rather than the contents of /etc/resolv.conf to find upstream
# nameservers. Uncommenting this line inhibits this behaviour.
# Note that including a "resolv-file=<filename>" line in
# /etc/dnsmasq.conf is not enough to override resolvconf if it is
# installed: the line below must be uncommented.
#IGNORE_RESOLVCONF=yes
IGNORE_RESOLVCONF=yes
+21
View File
@@ -0,0 +1,21 @@
# Defaults for hostapd initscript
#
# See /usr/share/doc/hostapd/README.Debian for information about alternative
# methods of managing hostapd.
#
# Uncomment and set DAEMON_CONF to the absolute path of a hostapd configuration
# file and hostapd will be started during system boot. An example configuration
# file can be found at /usr/share/doc/hostapd/examples/hostapd.conf.gz
#
#DAEMON_CONF=""
DAEMON_CONF="/etc/hostapd/hostapd.conf"
# Additional daemon options to be appended to hostapd command:-
# -d show more debug messages (-dd for even more)
# -K include key data in debug messages
# -t include timestamps in some debug messages
#
# Note that -B (daemon mode) and -P (pidfile) options are automatically
# configured by the init.d script and must not be added to DAEMON_OPTS.
#
#DAEMON_OPTS=""
+10
View File
@@ -0,0 +1,10 @@
interface=wlan0
listen-address=192.168.255.1
dhcp-range=192.168.255.10,192.168.255.250,255.255.255.0,1h
dhcp-option=6,192.168.255.1
port=0
resolv-file=
no-resolv
no-poll
server=/hotspot.local/192.168.255.1
domain=local
+34
View File
@@ -0,0 +1,34 @@
# First we configure the interface we'll be listening on
interface=wlan0
# The interface to listen on
driver=nl80211
# The driver that is being used by the WiFi adapter, this could be different for everyone
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
# These 2 are just parameters so that the hostap daemon runs.
# Now onto the important WiFi configuration
ssid=beielipi
# First up, the SSID or Network name. This is what other devices will see when they try to connect.
hw_mode=g
# I'm setting this to Wireless G mode. A, B, and G are available here.
channel=1
# This is setting the channel that the WiFi is on, valid channels are from 1-11, or 1-14 depending on location.
# Wifi Security Settings
#wpa=2 # This sets the security settings to WPA2
#wpa_psk=928519398acf811e96f5dcac68a11d6aa876140599be3dd49612e760a2aaac0e
# The line above sets the wpa passphrase to "raspiwlan", this is obtained via the wpa_passphrase command.
# However, you can also set a passphrase like the line below.
#wpa_passphrase=raspiwlan
#wpa_key_mgmt=WPA-PSK
#wpa_pairwise=CCMP
#rsn_pairwise=CCMP
# I've set these to WPA-PSK to indicate that we are using a Pre-Shared Key with CCMP encryption.
# Otherwise, hostapd also has a built in RADIUS server that we can use for authentcation
# But I'll leave that to another post.
# Other settings
beacon_int=100 # This sets how often the WiFi will send a beacon out.
auth_algs=3
wmm_enabled=1
+7
View File
@@ -0,0 +1,7 @@
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.1.1 beielipi
192.168.255.1 beielipi.local
@@ -0,0 +1,4 @@
iface wlan0 inet static
address 192.168.255.1
netmask 255.255.255.0
wireless-power off
@@ -0,0 +1,15 @@
[Unit]
Description=beielimon service
After=syslog.target
After=network.target
[Service]
Type=simple
User=beieli
Group=beieli
WorkingDirectory=/home/beieli/bin
ExecStart=/home/beieli/bin/beielimon.py
Restart=always
[Install]
WantedBy=multi-user.target
@@ -0,0 +1,19 @@
[Unit]
Description=dnsmasq - A lightweight DHCP and caching DNS server
Requires=network.target
Wants=nss-lookup.target
Before=nss-lookup.target
After=dnsmasq.service
[Service]
ExecStart=/usr/bin/python /home/beieli/root-bin/fakedns.py
ExecStop=/usr/bin/pkill -f '/usr/bin/python /home/beieli/root-bin/fakedns.py'
WorkingDirectory=/home/beieli/root-bin
Restart=always
StandardOutput=/var/log/fakedns
StandardError=/var/log/fakedns
User=root
Group=root
[Install]
WantedBy=multi-user.target
@@ -0,0 +1,14 @@
[Unit]
Description=Beielimon Web Server
After=syslog.target
After=network.target
[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/home/beieli/root-bin
ExecStart=/home/beieli/root-bin/my_web_server.py
[Install]
WantedBy=multi-user.target