Skip to content

Instantly share code, notes, and snippets.

View shortword's full-sized avatar

Mike Bergeron shortword

View GitHub Profile
@shortword
shortword / install_gpsd.sh
Created October 6, 2018 23:57
Install gpsd
sudo apt install -y gpsd gpsd-clients
@shortword
shortword / gpsd
Created October 7, 2018 00:00
/etc/default/gpsd explicit device
DEVICES="/dev/gps"
@shortword
shortword / restart_gpsd.sh
Created October 7, 2018 00:02
Restart gpsd
sudo service gpsd restart
@shortword
shortword / yubikey_install_cmd
Last active January 17, 2019 23:25
Ubuntu install Yubikey PIV
sudo apt install -y yubikey-piv-manager
@shortword
shortword / tmux_ubuntu_bionic_user_build.sh
Created January 29, 2019 01:24
Building tmux on Ubuntu 18.04
sudo apt install build-essential libevent-dev libncurses5-dev autoconf git
git clone https://github.com/tmux/tmux.git
cd tmux
git checkout 2.8 # Always check for newer versions
sh autogen.sh
# NOTE: The prefixes used here are under ~/local; e.g. ~/local/src, ~/local/bin
# Many people simply have their PREFIX under $HOME
./configure --prefix=$HOME/local
make -j`nproc` # -j`nproc` parallelizes the build; omit for compatibility but slower build
make install
@shortword
shortword / dmesg
Created February 8, 2019 01:03
Yaesu FT991a Plug dmesg
[333394.108738] usb 1-1.4.3: new high-speed USB device number 46 using xhci_hcd
[333394.224822] usb 1-1.4.3: New USB device found, idVendor=0424, idProduct=2512
[333394.224831] usb 1-1.4.3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[333394.225778] hub 1-1.4.3:1.0: USB hub found
[333394.225823] hub 1-1.4.3:1.0: 2 ports detected
[333394.516732] usb 1-1.4.3.1: new full-speed USB device number 47 using xhci_hcd
[333394.618823] usb 1-1.4.3.1: New USB device found, idVendor=10c4, idProduct=ea70
[333394.618829] usb 1-1.4.3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=5
[333394.618834] usb 1-1.4.3.1: Product: CP2105 Dual USB to UART Bridge Controller
[333394.618838] usb 1-1.4.3.1: Manufacturer: Silicon Labs
@shortword
shortword / udevadm_monitor
Created February 8, 2019 01:14
Yaesu FT991a udevadm monitor output
KERNEL[334072.416640] add /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.3 (usb)
KERNEL[334072.417238] add /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.3/1-1.4.3:1.0 (usb)
KERNEL[334072.418795] bind /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.3/1-1.4.3:1.0 (usb)
KERNEL[334072.418902] bind /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.3 (usb)
UDEV [334072.431794] add /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.3 (usb)
UDEV [334072.437466] add /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.3/1-1.4.3:1.0 (usb)
UDEV [334072.440708] bind /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.3/1-1.4.3:1.0 (usb)
UDEV [334072.443294] bind /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.3 (usb)
KERNEL[334072.814377] add /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.3/1-1.4.3.1 (usb)
KERNEL[334072.815475] add /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.3/1-1.4.3.1/1-1.4.3.1:1.0 (usb)
@shortword
shortword / udevadm_info_yaesu
Created February 8, 2019 01:25
udevadm info attribute walk yaesu ttyUSB
looking at device '/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.3/1-1.4.3.1/1-1.4.3.1:1.0/ttyUSB0/tty/ttyUSB0':
KERNEL=="ttyUSB0"
SUBSYSTEM=="tty"
DRIVER==""
looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.3/1-1.4.3.1/1-1.4.3.1:1.0/ttyUSB0':
KERNELS=="ttyUSB0"
SUBSYSTEMS=="usb-serial"
DRIVERS=="cp210x"
ATTRS{port_number}=="0"
@shortword
shortword / 99-yaesu-ft991a.rules
Created February 8, 2019 01:45
udev yaesu ft991a rules
#FT991a UART Interfaces
SUBSYSTEM=="tty", DRIVERS=="cp210x", ATTRS{interface}=="Enhanced*", SYMLINK+="yaesu991e"
SUBSYSTEM=="tty", DRIVERS=="cp210x", ATTRS{interface}=="Standard*", SYMLINK+="yaesu991s"
@shortword
shortword / udevadm_monitor_makerselect
Created February 8, 2019 02:00
udevadm monitor for Monoprice Maker Select 3D v2
KERNEL[336840.110293] add /devices/pci0000:00/0000:00:14.0/usb1/1-8 (usb)
KERNEL[336840.113238] add /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0 (usb)
KERNEL[336840.113306] add /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/ttyUSB3 (usb-serial)
KERNEL[336840.113701] add /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/ttyUSB3/tty/ttyUSB3 (tty)
KERNEL[336840.113770] bind /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/ttyUSB3 (usb-serial)
KERNEL[336840.113851] bind /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0 (usb)
KERNEL[336840.113943] bind /devices/pci0000:00/0000:00:14.0/usb1/1-8 (usb)
UDEV [336840.146597] add /devices/pci0000:00/0000:00:14.0/usb1/1-8 (usb)
UDEV [336840.153069] add /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0 (usb)
UDEV [336840.157093] add /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/ttyUSB3 (usb-serial)