scraps
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| scraps [2024/05/17 13:25] – [Raspberry Pi Heartbeat] admin | scraps [2025/07/14 13:07] (current) – [Image and Compress Disk] millerjs | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| Bits and pieces I want to be able to grab quickly. This page will change frequently. | Bits and pieces I want to be able to grab quickly. This page will change frequently. | ||
| + | ===== GNSS Related ===== | ||
| + | ==== PowerRename bulk NRCAN-PPP Results ==== | ||
| + | Rename '' | ||
| + | |||
| + | |||
| + | Regular Expression: '' | ||
| + | Replace with: '' | ||
| + | |||
| + | {{:: | ||
| + | ===== Anydesk Debian Setup ===== | ||
| + | 1) Confirm X (not wayland!) | ||
| + | |||
| + | - Run '' | ||
| + | |||
| + | - Check the session types: '' | ||
| + | |||
| + | 2) Add anydesk deb repository: https:// | ||
| + | < | ||
| + | # Add the AnyDesk GPG key | ||
| + | sudo apt update | ||
| + | sudo apt install ca-certificates curl apt-transport-https | ||
| + | sudo install -m 0755 -d / | ||
| + | sudo curl -fsSL https:// | ||
| + | sudo chmod a+r / | ||
| + | |||
| + | # Add the AnyDesk apt repository | ||
| + | echo "deb [signed-by=/ | ||
| + | |||
| + | # Update apt caches and install the AnyDesk client | ||
| + | sudo apt update | ||
| + | sudo apt install anydesk | ||
| + | </ | ||
| + | |||
| + | 3) set password for unattended access: '' | ||
| + | |||
| + | 4) Get ID: '' | ||
| + | |||
| + | https:// | ||
| ===== Disable power button shutdown ===== | ===== Disable power button shutdown ===== | ||
| Line 38: | Line 76: | ||
| kpartx -d -v myimage.disk | kpartx -d -v myimage.disk | ||
| + | </ | ||
| + | |||
| + | Decompress and write back to a drive: | ||
| + | < | ||
| + | unlz4 < backup-name.dd.lz4 | dd bs=100M of=/dev/sda status=progress oflag=dsync ; sync | ||
| </ | </ | ||
| ===== ntplogtemp ===== | ===== ntplogtemp ===== | ||
| Line 51: | Line 94: | ||
| </ | </ | ||
| - | ===== 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 119: | ||
| </ | </ | ||
| - | ===== Raspberry Pi ===== | + | ==== Heartbeat LED === |
| - | ====== Heartbeat LED ===== | + | |
| set in config.txt | set in config.txt | ||
| Line 78: | Line 127: | ||
| </ | </ | ||
| - | ===== Grow partition on first boot ===== | + | ==== Grow partition on first boot ==== |
| Add to the end of / | Add to the end of / | ||
| Line 212: | Line 261: | ||
| 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 | ||
| </ | </ | ||
scraps.1715952313.txt.gz · Last modified: (external edit)
