Not sure why this happens, but I think it is a change of the upstream repository run “pkg update” since you are likely down-level – set the IGNORE_OSVERSION=yes select Y for ignore mismatch. root@freebsd12_3:/home/jon2allen/test27/weather_obs # pkg search pico pkg: repository FreeBSD contains packages for wrong OS version: FreeBSD:12:amd64 root@freebsd12_3:/home/jon2allen/test27/weather_obs # pkg -v 1.20.8 root@freebsd12_3:/home/jon2allen/test27/weather_obs # pkg update Updating FreeBSD repository […]
FreeBSD – repository contains packages for wrong OS version
ChatGPT – creating a C++ file search with csv output
I first started with Python and that worked well. I then did a perl version. That went well. So, I thought – why not go for the jugular – write a c++ one. I call it file_audit – save a csv formatted file so I can review and sort by date to see what I need to save or delete. […]
FreeBSD – increasing size of root disk with KVM/QEMU
Here is how to to increase the size of the disk for FreeBSD. I am using FreeBSD 12.3 here running inside a Fedora Linux. Here are some starting requirements One needs to have qcow2 type disk. the virtual machine must be shutdown No snapshots against the virtual machine So, I cloned out the machine to test: [jon2allen@fedora Downloads]$ ll freebsd*.qcow2 […]
Find command – listing last modify path with full dir
Some examples of this command from Linux Debian and FreeBSD Here is how to do this with GNU Linux – %p gives full path name user1@f1-google-joniowa:~$ find . -name “weather_obs.log” -printf “%p\t%TY-%Tm-%Td\n” ./test27/weather_obs/weather_obs.log 2023-05-16 ./test26/weather_obs/weather_obs.log 2022-12-08 ./test28/weather_obs/weather_obs.log 2023-02-28 ./test25/weather_obs/weather_obs.log 2022-08-18 ./python/weather_obs/weather_obs.log 2021-05-24 ./test24/weather_obs/weather_obs.log 2022-11-22 Here is a bsd version – uses exec [user1@freebsd12_3 ~]$ find . -name […]
FreeBSD – setting up serial logins with Linux/KVM
FreeBSD – virsh serial howto Goal is to setup FreeBSD so you can connect to virtual serial port for login Add serials to KVM instance. Use Virtual Manager one is usually the default – you can add up to 3 more. In the virtual FreeBSD machine, edit the /etc/ttys Change the 3wire/ ttyu0 to std.9600. Secure means root can login […]
Use sed command to change column names in csv files
Problem: – You have several CSV file that have a title that needs to change. In my example I had a column name that was need to change from “Time(edt)” to just “Time” To run a test: note: no special backslash needed for “(” or “)” You can glob the files and it will do all of them. sed ‘s/Time(edt)/Time/g’ […]