Outdoor Technologist

Random thoughts spewed in the digital realm

Docker Setup

Instructions from: https://docs.docker.com/engine/install/debian/ Setup apt repository Install docker Packages Latest Version: Verify

MQTT Setup

Create Directory Structure – mqtt – config – data – log Create file: mqtt/docker-compose.yml Create file: mqtt/mosquitto/config/mosquitto.conf Startup service:

Debian Install

Debian Install https://docs.docker.com/engine/install/debian/ Point to remote repository Comment out the first line in the /etc/apt/sources.list to remove the cdrom line Add users to sudoer Add users to sudoer: https://linuxize.com/post/how-to-add-user-to-sudoers-in-debian/ Remove Games from: https://unix.stackexchange.com/a/676505

WSL install on Windows 11

Install using Command prompt in Administrative mode Execute: wsl –install I didn’t reboot my machine, because the instructions I was following didn’t say to, and I was curious. So I went on to see the distros available. See below: See the linux releases by typing: I accidentally typed wsl -install again and it automagically told…

Continue Reading

View Git History of Specific Line

Sometimes you want to know when a line of code changed and who changed it – This is how. Source: https://stackoverflow.com/questions/50469927/view-git-history-of-specific-line Example (placeholder):

Parse files with grep and cut – wait cut??

I had a few log files with microsecond timers that I needed to parse quickly and I figured I could do it with grep, but then I found out I could do it even more efficiently by piping to ‘cut’ I learned this here: https://unix.stackexchange.com/a/548716/438718 Example:

dd for Windows 10

Copying SD to SD card https://rufus.ie/ https://www.balena.io/etcher/ https://sourceforge.net/projects/win32diskimager/ Backup Image to File on Windows10 Use win32diskimager and these directions: https://beebom.com/how-clone-raspberry-pi-sd-card-windows-linux-macos/ General SD Card Formatting The SD Card group has put out their own formatter created by Tuxera. Link: https://www.sdcard.org/downloads/formatter/ Direct links to the files are below: Windows: https://www.sdcard.org/downloads/formatter/eula_windows/index.html Mac: https://www.sdcard.org/downloads/formatter/eula_mac/index.html

Don’t sudo hungover

Twice now, since working with Linux again, I’ve managed to be a fool and delete my windows partition… This happens because I’m hungover, and because I take the extra steps of deleting the partitions on the SD Cards before I reimage them to ensure that I don’t mess up and test the wrong build, again!…

Continue Reading

Linux default Programs

For text mimeopen -d file.txt Once it is open it gives you the choices – select the one you want. Info: https://superuser.com/questions/474079/how-do-i-set-notepad-as-the-default-editor

SCP – PuTTY or WinSCP

PSCP Transferring files between my linux and Windows10 machine for quicker transfer vs downloading larger files https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html Specific file: https://the.earth.li/~sgtatham/putty/latest/w64/pscp.exe WinSCP It has a GUI, so I’ll use it until I get comfortable with command line again. https://winscp.net/eng/download.php Direct Download: https://winscp.net/download/WinSCP-5.17.7-Setup.exe

1 2