[[scraps]]

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
scraps [2020/12/28 14:53]
john
scraps [2021/10/22 16:07] (current)
john
Line 1: Line 1:
 ====== Scraps ====== ====== Scraps ======
 +Bits and pieces I want to be able to grab quickly. This page will change frequently.
 +
 +===== ntplogtemp =====
 +<code>
 +#!/bin/bash
 +/usr/local/bin/ntplogtemp -o -l /chronyLogs/temps
 +sed '/ZONE0/d' -i /chronyLogs/temps
 +sed '/sensor/d' -i /chronyLogs/temps
 +sed -i 's/LM0/CPU/g' /chronyLogs/temps
 +sed -i 's/LM1/CPU/g' /chronyLogs/temps
 +</code>
 +
 +===== Quick Pi ID =====
 +Easy way to get a quick visual indicator to ID a Pi you're remoted into:
 +
 +Blink pwr LED at 1Hz:
 +<code>echo timer | sudo tee /sys/class/leds/led1/trigger</code>
 +
 +Set pwr LED back to monitor voltage:
 +<code>echo input | sudo tee /sys/class/leds/led1/trigger</code>
 +
 +
 +===== Build GPSD =====
 +<code>
 +scons target_python=python3.7 pps=yes bluez=no tsip=no tripmate=no tnt=no \
 +superstar2=no skytraq=no sirf=no oncore=no navcom=no mtk3301=no itrax=no \
 +geostar=no fv18=no fury=no evermore=no earthmate=no ashtech=no aivdm=no
 +</code>
 +===== Disable GUI Ubuntu/Debian =====
 +<code>
 +sudo systemctl set-default multi-user
 +</code>
 ===== Raspberry Pi Heartbeat ===== ===== Raspberry Pi Heartbeat =====
 <code file=config.txt> <code file=config.txt>
Line 14: Line 46:
  
 ===== chronyc tracking ===== ===== chronyc tracking =====
 +-m flag combines commands. For example: sources -v, tracking, sourcestats -v
 <code> <code>
-chronyc -m  tracking 'sourcestats -v'+chronyc -m 'sources -v' tracking 'sourcestats -v'
 </code> </code>
 +
 +===== DHCP and Static IP on the same interface =====
 +Ubuntu Server 20.04, should apply to netplan in general.
 +
 <code> <code>
-chronyc -m 'sources -v' tracking 'sourcestats -v'+network: 
 +  version: 2 
 +  ethernets: 
 +    eno1: 
 +      dhcp4: true 
 +      addresses: 
 +        172.16.1.20/22 
 +      gateway4: 172.16.0.1 
 +      nameservers: 
 +        search: 
 +          syninf.lan 
 +        addresses: 
 +          172.16.0.2 
 +          - 172.16.0.3 
 +          - 4.2.2.1
 </code> </code>
scraps.1609167193.txt.gz · Last modified: 2020/12/28 14:53 by john
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0