-
Notifications
You must be signed in to change notification settings - Fork 1
/
notes.txt
96 lines (72 loc) · 2.84 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
Production.sh: ro nfs, rw tmpfs, /boot not mounted.
etc/overlayroot.conf: overlayroot="tmpfs"
Maitance: rw nfs, /boot mounted
etc/overlayroot.conf: overlayroot=""
common:
cmdline.txt
root=/dev/nfs nfsroot=10.21.0.1:/srv/nfs/rpi/impish/root/merged rw
fstab
10.21.0.1:/srv/nfs/rpi/impish/boot/merged /boot nfs defaults,noauto,rw
pi@raspberrypi:~ $ time sudo apt upgrade --assume-yes
...
real 12m50.374s
user 2m11.070s
sys 1m26.465s
export http_proxy=http://192.168.86.70:8000/
export http_proxy=http://10.1.10.148:8000/
To keep net boot server negk laptop on when lid closed
/etc/systemd/logind.conf
HandleLidSwitch=ignore
sudo systemctl restart systemd-logind.service
# [FAILED] Failed to start Set console font and keymap.
systemctl disable console-setup.service
# setsid sh -c 'exec setupcon -k --force <> /dev/tty1 >&0 2>&1'o
# dpkg-reconfigure keyboard-configuration
# dpkg-reconfigure -f noninteractive keyboard-configuration
# invoke-rc.d keyboard-setup start
# setsid sh -c 'exec setupcon -k --force <> /dev/tty1 >&0 2>&1'
# udevadm trigger --subsystem-match=input --action=change
serial number things
https://forums.raspberrypi.com/viewtopic.php?f=29&t=8985
https://raspberrypi.stackexchange.com/questions/2086/how-do-i-get-the-serial-number
netboot things
https://forums.raspberrypi.com/viewtopic.php?f=29&t=253314
cat /sys/firmware/devicetree/base/model
printf "\n\nSerial Number:"
cut -c "9-" /sys/firmware/devicetree/base/serial-number
if vcgencmd otp_dump | grep 17:3020000a; then echo this pi set to NetBoot; fi
# because we now have an initrd, and:
# initramfs-tools: NFSv4 not supported for root fs
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=409271
# remove vers=4 and proto from cmdline.txt
# sed -i "/nfsroot/s/,nfsvers=.*proto=tcp//" /boot/cmdline.txt
# #ed out becuase we always boot with vers=3 from the start
https://wiki.archlinux.org/title/NFS
# ufw (not used, now using firewall role in dc-v ansible)
https://gist.github.com/kimus/9315140
https://help.ubuntu.com/community/Router#Enable_IP_forwarding_and_Masquerading
# enable rescue mode
https://lists.debian.org/debian-user/2017/09/msg00813.html
https://www.raspberrypi-spy.co.uk/2014/04/how-to-change-the-command-line-font-size/
/etc/default/console-setup
FONTFACE="Terminus"
FONTSIZE="16x32"
Netgear S3300-52X-PoE+
Sytem, SNMP, Community Configuration,
Management Station IP: 10.21.0.1 (server's eth-local IP)
Management Station IP Mask: 255.255.255.255 (only the server)
Community String: pib (used in netgear/poe.sh)
Access Mode: ReadWrite
Status: Enable
(Add)
raspivid -md 4 -t 0 -l -o tcp://10.21.0.226:22681 --vflip --hflip
1. acrylic, black wire
Camera Name ov5647
2. acrylic, rotate
Camera Name ov5647
3. fish eye
Camera Name ov5647
pi 4
ov5647
Pi image fixer: https://github.com/gitbls/sdm
https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspberry-pi-4-boot-flow