Networking Pi

$ cat /etc/debian_version
12.5
$ nmcli con sho
<code>NAME UUID TYPE DEVICE
Wired connection 1 d9f338e0-4b03-3577-90d4-76968372a617 ethernet eth0
Wi-Fi connection 5 17761da0-3919-442b-b736-ec640e4ac950 wifi wlan0
lo 3b78d5c1-8cf0-41e6-aef1-2d1d6d7230e2 loopback lo
Wi-Fi connection 2.4 b117bade-51b4-4c95-bde9-7cc44605ca3c wifi —code>

Times

Before 7am Start

-0:45 Wake Up/Dress/Breakfast/Pack
-1:15 Leave

At/After 7am Start

-0:45 Wake Up/Dress/Breakfast/Pack
-1:30 Leave

After 12pm Start

-1:00 Wake Up / Shower
-0:45 Lunch/Eat
-0:30 Dress/Pack
-1:30 Leave
-0:00 Start

Bedtimes

8Hrs before wakeup
16Hrs after last wakeup

Apache Log

Checking the apache log on a DS920+ NAS.

william@DiskStation:/volume1/@appdata/Apache2.4/log$ pwd
/volume1/@appdata/Apache2.4/log
william@DiskStation:/volume1/@appdata/Apache2.4/log$

X-Trail Radio

“With the key turned to ACC or on, and the radio off, press (6) and the (Tune Seek ▼) together. This toggles the clock display on and off.

Then, to set the time, press the (Audio) for more than 3 seconds. The time will flash. Press the (1) to advance the hours and (2) to advance the minutes. Press (Audio) again once you have the correct time and the clock will be set.”

Persistant iptables

For debian 10…

apt install iptables-persistent
iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -s 87.121.72.216 -j ACCEPT
iptables -P INPUT DROP
dpkg-reconfigure iptables-persistent

Lighttpd vhost config.

cat /etc/lighttpd/conf-available/10-vhost.conf
server.modules += ( "mod_openssl" )
 
$SERVER["socket"] == "[2404:9400:213c:6b01:0000:0000:0000:0001]:443" {
        ssl.engine  = "enable"
        ssl.privkey= "/etc/letsencrypt/live/1.mygeekvps.net/privkey.pem"
        ssl.pemfile = "/etc/letsencrypt/live/1.mygeekvps.net/cert.pem"
        ssl.ca-file= "/etc/letsencrypt/live/1.mygeekvps.net/chain.pem"
        ssl.cipher-list = "HIGH"
        server.document-root        = "/var/www/html1"
}
 
$SERVER["socket"] == "[2404:9400:213c:6b01:0000:0000:0000:0002]:443" {
        ssl.engine  = "enable"
        ssl.privkey= "/etc/letsencrypt/live/2.mygeekvps.net/privkey.pem"
        ssl.pemfile = "/etc/letsencrypt/live/2.mygeekvps.net/cert.pem"
        ssl.ca-file= "/etc/letsencrypt/live/2.mygeekvps.net/chain.pem"
        ssl.cipher-list = "HIGH"
        server.document-root        = "/var/www/html2"
}
 
$SERVER["socket"] == "[2404:9400:213c:6b01:0000:0000:0000:0003]:443" {
        ssl.engine  = "enable"
        ssl.privkey= "/etc/letsencrypt/live/3.mygeekvps.net/privkey.pem"
        ssl.pemfile = "/etc/letsencrypt/live/3.mygeekvps.net/cert.pem"
        ssl.ca-file= "/etc/letsencrypt/live/3.mygeekvps.net/chain.pem"
        ssl.cipher-list = "HIGH"
        server.document-root        = "/var/www/html3"
}