diverse Korrekturen

This commit is contained in:
Joerg Lehmann 2017-11-13 18:03:54 +01:00
parent e0bf37da1f
commit 8eb3b6f911
5 changed files with 22 additions and 5 deletions

View File

@ -40,12 +40,15 @@ Software installieren:
# apt-get install hostapd # apt-get install hostapd
# apt-get install ntpdate # apt-get install ntpdate
# apt-get install dnsmasq # apt-get install dnsmasq
# apt-get install python-bottle
Firmware-Update: Firmware-Update:
# rpi-update # rpi-update
``` ```
### Zugang ermöglichen per WLAN ### Zugang ermöglichen
#### per WLAN
``` ```
# cat /etc/wpa_supplicant/wpa_supplicant.conf # cat /etc/wpa_supplicant/wpa_supplicant.conf
country=CH country=CH
@ -57,6 +60,14 @@ network={
psk="XXXXXXXXXXXX" psk="XXXXXXXXXXXX"
} }
``` ```
#### per LAN
```
root@beielipi:~# cat /etc/network/interfaces.d/eth0
auto eth0
iface eth0 inet static
address 192.168.0.50
netmask 255.255.255.0
```
### Variante A ### Variante A
``` ```
@ -138,15 +149,23 @@ $ cd beielipi
$ tar cvf /var/tmp/beielipi-git-files.tar . $ tar cvf /var/tmp/beielipi-git-files.tar .
# cd /home/beieli && tar xvf /var/tmp/beielipi-git-files.tar # cd /home/beieli && tar xvf /var/tmp/beielipi-git-files.tar
# chown -R beieli:beieli /home/beieli
# chown -R root:root /home/beieli/root-bin
# chown -R root:root /home/beieli/web-root
# su - beieli # su - beieli
beieli@beielipi:~ $ mkdir config_backups data send_sms_queue tmp web-csv beieli@beielipi:~ $ mkdir config_backups data send_sms_queue tmp web-csv
beieli@beielipi:~ $ exit beieli@beielipi:~ $ exit
# cd /home/beieli/install_files # cd /home/beieli/install_files
# for i in $(find . -type f); do echo cp $i /$i ; done # for i in $(find . -type f); do echo cp $i /$i ; done
# for i in $(find . -type f); do cp $i /$i ; done
Fuer Variante A wieder loeschen: Fuer Variante A wieder loeschen:
# rm /etc/cron.d/gsm_poweron # rm /etc/cron.d/gsm_poweron
# systemctl enable beielimon
# systemctl enable smsmon
# systemctl disable dhcpcd
Reboot: Reboot:
# init 6 # init 6

View File

@ -110,7 +110,7 @@ class ScaleUSB_PCE(Scale):
class ScaleDummy(Scale): class ScaleDummy(Scale):
def __init__(self,scale_config): def __init__(self,scale_config):
Scale.__init__(self, scale_config) Scale.__init__(self, scale_config)
self.AppendReading(random.randint(500,1000)) self.last_values = [ random.randint(500,1000) ]
def Read(self): def Read(self):
# Gewichts- Zu/Abnahme ist Random, manchmal gibt es einen # Gewichts- Zu/Abnahme ist Random, manchmal gibt es einen

View File

@ -1,4 +1,3 @@
iface wlan0 inet static iface wlan0 inet static
address 192.168.255.1 address 192.168.255.1
netmask 255.255.255.0 netmask 255.255.255.0
wireless-power off

View File

@ -8,6 +8,7 @@ Type=simple
User=beieli User=beieli
Group=beieli Group=beieli
WorkingDirectory=/home/beieli/bin WorkingDirectory=/home/beieli/bin
ExecStartPre=/bin/sleep 60
ExecStart=/home/beieli/bin/beielimon.py ExecStart=/home/beieli/bin/beielimon.py
Restart=always Restart=always

View File

@ -10,8 +10,6 @@ ExecStart=/usr/bin/python /home/beieli/root-bin/fakedns.py
ExecStop=/usr/bin/pkill -f '/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 WorkingDirectory=/home/beieli/root-bin
Restart=always Restart=always
StandardOutput=/var/log/fakedns
StandardError=/var/log/fakedns
User=root User=root
Group=root Group=root