openenergymonitor / EmonScripts

Emoncms Stack Installation and Update scripts
16 stars 30 forks source link

31st Jan build notes #193

Closed TrystanLea closed 9 months ago

TrystanLea commented 9 months ago

1. MAKE SURE TO LOAD CORRECT FSTAB:

proc            /proc           proc    defaults          0       0
/dev/mmcblk0p1  /boot/firmware  vfat    defaults          0       2
/dev/mmcblk0p2  /               ext4    defaults,noatime,nodiratime  0  1
/dev/mmcblk0p3  /var/opt/emoncms   ext2    defaults,noatime,nodiratime  0  2
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that

tmpfs           /tmp                   tmpfs   nodev,nosuid,size=30M,mode=1777 0  0
tmpfs           /var/tmp               tmpfs   nodev,nosuid,size=128M,mode=1777  0  0
tmpfs           /var/lib/php/sessions  tmpfs   nodev,nosuid,size=1M,mode=1777  0  0

2. Used sudo raspi-config to enable I2C, one-wire (SPI already enabled)

3. Edited /boot/firmware/config.txt manually to set DS18B20 pin GPIO17

sudo nano /boot/firmware/config.txt 
dtoverlay=w1-gpio,gpiopin=17

4. Enabled one-wire modprobe support:

sudo modprobe w1-gpio
sudo modprobe w1-therm

5. emonSD image version in /boot (this may not be available on vfat partition??)

sudo mv /boot/emonSD-10Nov22 /boot/emonSD-01Feb24
sudo cp /boot/emonSD-01Feb24 /boot/firmware

6. Docker disabled by default:

sudo systemctl disable --now docker.service

7. Set docker usermod:

sudo usermod -aG docker pi

8. Set dns=dnsmasq

sudo nano /etc/NetworkManager/NetworkManager.conf

[main]
plugins=ifupdown,keyfile
dns=dnsmasq

9. sudo rm /var/log/rotated_logs. I had to create log.old manually:

sudo mkdir /var/log.old
TrystanLea commented 9 months ago

all should be automatic now, retest time!