System

MacOS - Kernel Extensions

see: https://nektony.com/how-to/remove-kext-on-mac System Extensions > ll /System/Library/Extensions/ |head total 0 drwxr-xr-x@ 3 root wheel 96 May 13 00:29 AFKACIPCKext.kext drwxr-xr-x@ 3 root wheel 96 May 13 00:29 AFTK_Kext.kext drwxr-xr-x@ 3 root wheel 96 May 13 00:29 AGXFirmwareKextG13GRTBuddy.kext drwxr-xr-x@ 3 root wheel 96 May 13 00:29 AGXFirmwareKextG13XRTBuddy.kext drwxr-xr-x@ 3 root wheel 96 May 13 00:29 AGXFirmwareKextG14GRTBuddy.kext drwxr-xr-x@ 3 root wheel 96 May 13 00:29 AGXFirmwareKextG14PRTBuddy.kext drwxr-xr-x@ 3 root wheel 96 May 13 00:29 AGXFirmwareKextG14XRTBuddy.

Vim

as i’m using vim almost every day, why not make some notes to improve the skillz ? Source: https://www.computerhope.com/unix/vim.htm and others … .vimrc my vim config file. do backup of the old file first! test -f ~/.vimrc && cp ~/.vimrc ~/.vimrc.bak-$(date "+%s") cat << 'EOF' > ~/.vimrc " sample .vimrc from https://blog.stoege.net/posts/vim/ " Use 2 spaces for tabs set shiftwidth=2 set tabstop=2 set expandtab set softtabstop=0 set ruler set mouse=r " Disable backup and swap files because they cause more problems than they solve set nobackup set noswapfile " Display line numbers set number " Color syntax on " colorscheme delek EOF show whitespaces :set list show numbers :set numbers ignore case :set ignorecase Convert File to xxd (hex editor) :%!

OpenBSD 7.3 - Diskusage

New Proposal for 7.3 there is an request for at least 1.1GB free Storage at the /usr Partition when upgrading your systeme with sysupgrade. so, i have to adapt my settings a bit for new vm’s with at least 25GB Storage. Example with 20GB a 4G / a 1G swap a 1G /tmp a 4G /var a 6G /usr a * /home (ca. 4 GB) Example with 25GB (Vultr) a 4G / a 2G swap a 2G /tmp a 6G /var a 6G /usr a * /home (ca.

FreeBSD - Upgrade to 13.2

Upgrade FreeBSD 13.1 to 13.2 reading some NewFeeds, FreeBSD 13.2 got released … Let’s do an upgrade and see if it’s working fine. https://www.freebsd.org/releases/13.2R/installation/ https://www.freebsd.org/releases/13.2R/relnotes/ Patch it first freebsd-update fetch freebsd-update install reboot may not needed, but you have to boot anyway a few times … Fetch and Upgrade to 13.2 this needs some time ! depending on your internet speed, and specially to power and filesystem performance of your machine.

Softraid on OpenBSD

Softraid Inspired by a book from MWL - OpenBSD Mastery Filesystems, here some Notes .. Target build a RAID with 3 Disks, add some Data, destroy one Disk, and rebuild the Raid (and it’s Data). Requirements OpenBSD 7.2 Running added 3 Disk with 20G each: sd0, sd1, sd2 Find Disks root@puffy # dmesg |grep -i sec wd0: 64-sector PIO, LBA, 20480MB, 41943040 sectors sd0: 20480MB, 512 bytes/sector, 41943040 sectors sd1: 20480MB, 512 bytes/sector, 41943040 sectors sd2: 20480MB, 512 bytes/sector, 41943040 sectors sd0, sd1, sd2 are New Disks for RAID

Sensorsd - UPS Shutdown

Shutdown Hosts on Power Outages Everybody is talking about Power Outages. Let’s assume you have a Smart-UPS for your Playground and you’d like to shut some Infrastructure to avoid some troubles with corrupt filesystems, broken vm’s and things like that. Connection UPS to APU via USB Cable dmesg show the UPS connected APU# dmesg uhidev0 at uhub0 port 3 configuration 1 interface 0 "American Power Conversion Smart-UPS_1500 ... uhidev0: iclass 3/0, 142 report ids upd0 at uhidev0 uhid0 at uhidev0 reportid 1: input=0, output=0, feature=1 uhid1 at uhidev0 reportid 2: input=0, output=0, feature=1 .

JC - JSON from CLI

how to build json from cli we all like json, do we ? https://kellyjonbrazil.github.io/jc/docs/parsers/ping add package doas pkg_add jc try ping openbsd-box # ping -c 3 1.1.1.1 |jc --ping -p 2>/dev/null { "destination_ip": "1.1.1.1", "data_bytes": 56, "pattern": null, "destination": "1.1.1.1", "packets_transmitted": 3, "packets_received": 3, "packet_loss_percent": 0.0, "duplicates": 0, "round_trip_ms_min": 9.219, "round_trip_ms_avg": 9.826, "round_trip_ms_max": 10.158, "round_trip_ms_stddev": 0.43, "responses": [ { "type": "reply", "bytes": 64, "response_ip": "1.1.1.1", "icmp_seq": 0, "ttl": 59, "time_ms": 10.

Ubuntu 20.04 LTS & Netplan

Assume you got a fresh Machine with DHCP … Ubuntu with DHCP Config cat /etc/netplan/01-netcfg.yaml # This is the network config written by 'subiquity' network: ethernets: ens192: dhcp4: true version: 2 and you’d like to switch to Static IP, ask google how todo it an give try: Static IP with Netplan # This is the network config written by 'subiquity' network: version: 2 ethernets: ens192: addresses: - 1.2.3.4/24 gateway4: 1.1.1.1 nameservers: addresses: - 8.

FreeBSD bhyve

bhyve, pronounced “beehive” is a hypervisor/virtual machine manager for FreeBSD that supports most Intel and AMD processors that report the “POPCNT” (POPulation Count) processor feature in dmesg(8). Download ISO and boot it … in a new Virtual Machine … cat << 'EOF' > run_bhyve.sh #!/usr/bin/env bash iso=FreeBSD-13.1-RELEASE-amd64-bootonly.iso vm=guest.img # Load Module if needed kldstat |grep vmm.ko || kldload vmm ifconfig tap0 create sysctl net.link.tap.up_on_open=1 ifconfig ifconfig bridge0 create ifconfig bridge0 addm vmx0 addm tap0 ifconfig bridge0 create ifconfig bridge0 up # Get ISO test -f $iso || fetch https://download.

FreeBSD - Upgrade 13.0 to 13.1

Upgrade FreeBSD 13.0 to 13.1 should be a easy task, right ? https://www.freebsd.org/releases/13.1R/installation/ https://www.freebsd.org/releases/13.1R/relnotes/ Patch it first freebsd-update fetch freebsd-update install reboot may not needed, but you have to boot anyway a few times … Fetch and Upgrade to 13.1 this needs some time ! depending on your internet speed, and specially to power and filesystem performance of your machine. 20-30min for a common VM is not unreal :( time freebsd-update upgrade -r 13.