A dessert trolley full of cakes and fruit

๐Ÿ’ป Dessert Resources ๐Ÿงฎ ๐Ÿ‘ฉโ€๐Ÿ’ป โœจ

Again we are back to naming things, the new network device naming policy is very sweetโ€ฆ ...

October 22, 2023 ยท 1 min ยท Jas
Raspberry Pi header with power wires

๐Ÿ’ป Yocto Linux build for Raspberry Pi 4 ๐Ÿ“ ๐Ÿฅง ๐Ÿ‘ฉโ€๐Ÿ’ป

Letโ€™s build our own Linux operating system for a Raspberry Pi 4 First we need a big build box, something 16 VPC and 32GB RAM from AWS should do the trick. I like this machine: c4.4xlarge Set up the development environment sudo apt update && sudo apt -qy dist-upgrade && sudo apt -qy install gawk wget git diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev xterm sed cvs subversion coreutils texi2html docbook-utils python-pysqlite2 help2man desktop-file-utils libgl1-mesa-dev libglu1-mesa-dev mercurial autoconf automake groff curl lzop asciidoc u-boot-tools cpio sudo rsync linux-headers-$(uname -r) locales Additional requirements:...

January 27, 2023 ยท 3 min ยท Jas
An old Monopoly board

๐Ÿ’ป Naming Resources ๐Ÿงฎ ๐Ÿ‘ฉโ€๐Ÿ’ป โœจ

And we are back to naming things, this is my latest network device naming policyโ€ฆ ...

March 31, 2022 ยท 1 min ยท Jas
Raspberry Pi header with power wires

๐Ÿ’ป OpenBSD 6.9 on Raspberry Pi 4 ๐Ÿ“ ๐Ÿฅง ๐Ÿ‘ฉโ€๐Ÿ’ป

I wondered if I could use my Raspberry Pi 4 as a gateway device to shape and filter my network traffic. It only has one NIC, but OpenBSD supports many USB-NIC devices out of the box. Letโ€™s see how successful this idea is. Update firmware on Raspberry Pi 4 Instructions here: https://github.com/AshyIsMe/openbsd-rpi4 Installing OpenBSD 6.9 on Raspberry Pi 4 Download and checksum install69.img from the OpenBSD 6.9 FTP site. Put the install69....

March 30, 2022 ยท 4 min ยท Jas
C programming indent rules from Plan 9

๐Ÿ’ป Style9 Indent Rules on Linux/OpenBSD ๐Ÿง ๐Ÿก ๐Ÿ‘ฉโ€๐Ÿ’ป

Get that lovely Plan9 source feel in your C code on Linux or OpenBSD Kernel Normal Form Kernel normal form 1, or KNF, is the coding style used in the development of code for the BSD operating systems. According to the OpenBSD man pages 2: This file specifies the preferred style for kernel source files in the OpenBSD source tree. It is also a guide for preferred userspace code style....

March 11, 2022 ยท 2 min ยท Jas
Trinity from Matrix hacking on the Linux commandline

๐Ÿ’ป Linux CLI Reminder ๐Ÿ‘ฉโ€๐Ÿ’ป ๐Ÿ“บ ๐Ÿง

I find myself Google-ing for command-line fu a lot more than I should, here are some favouritesโ€ฆ rsync with ssh Although this should be the default by now, really, who trusts the defaults? Manage it yourself with something like this: rsync -avP -e "ssh -i ssh_key_file -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" /home/jas/local-dir/* remote-user@webhost.com:/home/server/www/yourdomain.com/ Rainbow Shell Prompt Put this in .bashrc or wherever is appropriate for your OS: export PS1="\[$(tput bold)\]\[$(tput setaf 1)\]\u\[$(tput setaf 208)\]@\[$(tput setaf 3)\h\[$(tput setaf 2)\]:\d \[$(tput setaf 4)\]\@:\[$(tput setaf 55)\]\w\n$PROMPT_COLOR\$ \[$(tput sgr0)\]" YouTube-dl on Linux Obtain it from here: https://github....

February 10, 2022 ยท 5 min ยท Jas
Trinity from Matrix hacking on the Linux commandline

๐Ÿ’ป Strip Image EXIF Data ๐Ÿ“ธ ๐Ÿ‘ฉโ€๐Ÿ’ป ๐Ÿง

Did you know that all of your images contain a bunch of metadata? This is mostly harmless. But actually some of the metadata is not harmless. Dianne Feinstein, an American, famously said, post-Snowden, that โ€œOur courts have consistently recognized that there is no reasonable expectation of privacy in this type of metadata information and thus no search warrant is required to obtain itโ€. Yikes! Also, note that the EFF have thoughts on fingerprinting of digital cameras, printers, CD ROM burners, and MAC addresses in routing devices....

December 21, 2021 ยท 4 min ยท Jas
Raspberry Pi header with power wires

๐Ÿ’ป Raspberry Pi 4 Serial Console ๐Ÿ“ ๐Ÿฅง ๐Ÿ‘ฉโ€๐Ÿ’ป

Raspberry Pi has been through a few revisions now, and the data available on the www tends to get stale very fast. This is the right way of connecting to a Raspberry Pi 4 via a serial consoles. Which GPIO pins are used for the serial console? As can be seen in the image above and the cartoon here, the TX (PIN8) and RX (PIN10) pins for the serial port are next to the 5V power (PIN2) and GND (PIN6) pins on the top left....

April 19, 2020 ยท 4 min ยท Jas