Tune PostgreSQL and PHP settings for Nextcloud inside Docker container on RPi 5

Published on Author admin

Tune PostgreSQL and PHP settings for Nextcloud inside Docker container on RPi 5 PostgreSQL settings change variables inside PG_DATA/postgresql.conf config file shared_buffers = 256MB work_mem = 8MB restart PostgreSQL database: docker restart nextcloud-postgres verify: docker exec -it nextcloud-postgres psql -U nextcloud -d nextcloud -c "SHOW shared_buffers" docker exec -it nextcloud-postgres psql -U nextcloud -d nextcloud… Continue reading Tune PostgreSQL and PHP settings for Nextcloud inside Docker container on RPi 5

[Raspberry Pi] NTP time synchronization

Published on Author admin

Configure proper timezone according to your physical location by using following wizard: sudo dpkg-reconfigure tzdata Enable NTP: timedatectl set-ntp true Check time and date settings: timedatectl status Install ntpdate tool: apt install ntpdate Fix problem with ToS (Type of Service) field value in IP packet. By default ToS is set to 0xc0 value by ntpd… Continue reading [Raspberry Pi] NTP time synchronization

[Raspberry Pi] script for auto reconnecting WiFi connection

Published on Author admin

Create script file: touch /home/volumio/wifi-reconnect.sh with following content: #!/bin/bash   SSID=$(/sbin/iwgetid --raw) if [ -z "$SSID" ] then     echo "`date -Is` WiFi interface is down, trying to reconnect" >> /home/volumio/wifi-log.txt     systemctl restart wireless fi echo "WiFi check finished" Make new file executable: chmod +x /home/volumio/wifi-reconnect.sh Install cron: sudo apt-get install cron… Continue reading [Raspberry Pi] script for auto reconnecting WiFi connection