scraps
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
scraps [2023/03/01 17:40] – [Build LinuxPTP on Alpine] millerjs | scraps [2025/03/13 13:08] (current) – millerjs | ||
---|---|---|---|
Line 9: | Line 9: | ||
uncomment HandPowerKey, | uncomment HandPowerKey, | ||
+ | ===== Get & Set date w/ epoch time ===== | ||
+ | |||
+ | Get from good machine: | ||
+ | |||
+ | < | ||
+ | |||
+ | |||
+ | Set on another: | ||
+ | < | ||
===== Image and Compress Disk ===== | ===== Image and Compress Disk ===== | ||
< | < | ||
Line 42: | Line 51: | ||
</ | </ | ||
- | ===== Quick Pi ID ===== | + | ===== cycle systemd logs ===== |
+ | < | ||
+ | |||
+ | ==== show systemd logs from boot ==== | ||
+ | < | ||
+ | |||
+ | ===== Raspberry Pi ===== | ||
+ | ==== Quick Pi ID ==== | ||
Easy way to get a quick visual indicator to ID a Pi you're remoted into: | Easy way to get a quick visual indicator to ID a Pi you're remoted into: | ||
Line 60: | Line 76: | ||
</ | </ | ||
- | ===== Raspberry Pi Heartbeat ===== | + | ==== Heartbeat |
set in config.txt | set in config.txt | ||
Line 69: | Line 84: | ||
</ | </ | ||
+ | ==== Grow partition on first boot ==== | ||
+ | Add to the end of / | ||
+ | |||
+ | < | ||
+ | quiet init=/ | ||
+ | </ | ||
===== chronyc tracking ===== | ===== chronyc tracking ===== | ||
Line 176: | Line 197: | ||
chronyc cyclelogs | chronyc cyclelogs | ||
+ | </ | ||
+ | |||
+ | ===== chrony.conf ptp as pps refclock ===== | ||
+ | < | ||
+ | server time-a.nist.gov | ||
+ | server time-a-wwv.nist.gov | ||
+ | |||
+ | refclock SHM 0 poll 3 refid GPS | ||
+ | refclock PHC / | ||
+ | |||
+ | logdir / | ||
+ | log statistics tracking measurements | ||
+ | |||
+ | driftfile / | ||
+ | |||
+ | dumpdir / | ||
+ | |||
+ | rtcsync | ||
+ | |||
+ | allow | ||
+ | cmdallow | ||
+ | </ | ||
+ | |||
+ | ===== Set NIC to promiscuous mode at boot ===== | ||
+ | Using systemd: | ||
+ | |||
+ | `/ | ||
+ | |||
+ | < | ||
+ | [Unit] | ||
+ | Description=Control promiscuous mode for interface eth0 | ||
+ | After=network.target | ||
+ | |||
+ | [Service] | ||
+ | Type=oneshot | ||
+ | ExecStart=/ | ||
+ | ExecStop=/ | ||
+ | RemainAfterExit=yes | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
+ | </ | ||
+ | |||
+ | ===== Proxmox ===== | ||
+ | ==== re-number VM ==== | ||
+ | |||
+ | 1) shut down VM | ||
+ | 2) rename the storage | ||
+ | < | ||
+ | 3) rename the configuration file | ||
+ | < | ||
+ | export vgNAME=vg-images newVMID=173 oldVMID=175 ; \ | ||
+ | sed -i " | ||
+ | unset vgNAME newVMID oldVMID; | ||
</ | </ |
scraps.1677692445.txt.gz · Last modified: 2024/11/14 02:30 (external edit)