scraps
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
scraps [2024/01/21 19:37] – [Disable power button shutdown] admin | scraps [2025/03/13 13:08] (current) – millerjs | ||
---|---|---|---|
Line 51: | 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 69: | Line 76: | ||
</ | </ | ||
- | ===== Raspberry Pi Heartbeat ===== | + | ==== Heartbeat |
set in config.txt | set in config.txt | ||
Line 78: | Line 84: | ||
</ | </ | ||
+ | ==== Grow partition on first boot ==== | ||
+ | Add to the end of / | ||
+ | |||
+ | < | ||
+ | quiet init=/ | ||
+ | </ | ||
===== chronyc tracking ===== | ===== chronyc tracking ===== | ||
Line 206: | Line 218: | ||
allow | allow | ||
cmdallow | 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.1705865842.txt.gz · Last modified: 2024/11/14 02:30 (external edit)