Raspberry Pi setup#
Bought a Raspberry Pi 4 model B with 2 GB memory.
- on GUI disable wifi, and set boot to cli - apt install iotop vim apache2 libapache2-mod-jk docker.io mariadb-server mariadb-client knockd - a2enmod proxy_http - a2enmod ssl - a2enmod rewrite - /etc/dhcpcd.conf : static IP naar 192.168.2.99 (192.168.2.3 wil niet, kan router al niet pingen) - create /etc/systemd/system/iptables-setup.service => pointing to /home/pi/iptables-setup.service ==> werkt nog niet goed, de uptimerobot IPs komen niet - echo "syntax on" > ~/.vimrc - mysql: create user 'piwigo_user'@'%' identified by "piwigopswd"; create database piwigo; grant all privileges on piwigo.* to piwigo_user@'%'; - vim /etc/mysql/mariadb.conf.d/50-server.cnf => bind-address to 0.0.0.0 - go to www.computerhok.nl:8081 ==> setup dialog =: 192.168.2.399 piwigo_user piwigopswd ..... - copy all restored album folders to /appl/piwigo/config/www/gallery/galleries - do the "Tools => Database synchronization with files" on the UI - docker run -d --name pihole -p 53:53/tcp -p 53:53/udp -p 2080:80 -p 2443:443 -e "IPv6=False" -e "TZ=Europe/Amsterdam" -e "ServerIP=192.168.2.99" -e "VIRTUAL_HOST=www.computerhok.nl:2080" -e "WEBPASSWORD=<see keepass>" -v "$(pwd)/etc-pihole/:/etc/pihole/" -v "$(pwd)/etc-dnsmasq.d/:/etc/dnsmasq.d/" --restart=unless-stopped --cap-add=NET_ADMIN pihole/pihole:latest - go to http://192.168.2.99:2080/admin/ - tweak the /etc/knockd.conf - systemctl disable avahi-daemon.service - systemctl disable avahi-daemon.sock - remove wpa-supplicant and wireless-tools from /etc/networking

