User Tools

Site Tools


scraps


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
scraps [2024/05/17 13:25] – [Raspberry Pi Heartbeat] adminscraps [2025/03/13 13:08] (current) millerjs
Line 51: Line 51:
 </code> </code>
  
-===== Quick Pi ID =====+===== cycle systemd logs ===== 
 +<code>sudo journalctl --rotate ; sudo journalctl --vacuum-time=1s</code> 
 + 
 +==== show systemd logs from boot ==== 
 +<code>sudo journalctl -b</code> 
 + 
 +===== 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:
 </code> </code>
  
-===== Raspberry Pi ===== +==== Heartbeat LED ===
-====== Heartbeat LED =====+
 set in config.txt set in config.txt
  
Line 78: Line 84:
 </code> </code>
  
-===== Grow partition on first boot =====+==== Grow partition on first boot ====
 Add to the end of /boot/cmdline.txt Add to the end of /boot/cmdline.txt
  
Line 212: Line 218:
 allow allow
 cmdallow cmdallow
 +</code>
 +
 +===== Set NIC to promiscuous mode at boot =====
 +Using systemd:
 +
 +`/etc/systemd/system/promisc-eth0.service`
 +
 +<code>
 +[Unit]
 +Description=Control promiscuous mode for interface eth0
 +After=network.target
 +
 +[Service]
 +Type=oneshot
 +ExecStart=/usr/bin/ip link set eth0 promisc on
 +ExecStop=/usr/bin/ip link set eth0 promisc off
 +RemainAfterExit=yes
 +
 +[Install]
 +WantedBy=multi-user.target
 </code> </code>
  
scraps.1715952313.txt.gz · Last modified: 2024/11/14 02:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki