|
|
@ -1,24 +1,30 @@
|
|
|
|
+++
|
|
|
|
---
|
|
|
|
title = 'OpenBSD notes'
|
|
|
|
title: OpenBSD notes
|
|
|
|
date = '2023-11-14T09:31:48+0100'
|
|
|
|
date: 2023-11-14T09:31:48+0100
|
|
|
|
#lastmod = ''
|
|
|
|
#lastmod:
|
|
|
|
|
|
|
|
tags:
|
|
|
|
#showDate = false
|
|
|
|
- openbsd
|
|
|
|
showReadingTime = false
|
|
|
|
- python
|
|
|
|
showWordCount = false
|
|
|
|
- cloudlog
|
|
|
|
showPagination = false
|
|
|
|
- zsh
|
|
|
|
#showAuthor = false
|
|
|
|
|
|
|
|
showBreadcrumbs = true
|
|
|
|
#showDate: false
|
|
|
|
|
|
|
|
showReadingTime: false
|
|
|
|
feed_exclude = true
|
|
|
|
showWordCount: false
|
|
|
|
# site_exclude = true
|
|
|
|
showPagination: false
|
|
|
|
|
|
|
|
#showAuthor: false
|
|
|
|
draft = true
|
|
|
|
showBreadcrumbs: true
|
|
|
|
|
|
|
|
|
|
|
|
+++
|
|
|
|
feed_exclude: true
|
|
|
|
|
|
|
|
# site_exclude: true
|
|
|
|
These are my notes that I want to summarize about the OpenBSD
|
|
|
|
|
|
|
|
operating system.
|
|
|
|
draft: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
These are random notes -- more or less about OpenBSD. Some may
|
|
|
|
|
|
|
|
not fit here well, but they could relate to OpenBSD or similar
|
|
|
|
|
|
|
|
operating systems in some way...
|
|
|
|
|
|
|
|
|
|
|
|
## Get some filesystem information
|
|
|
|
## Get some filesystem information
|
|
|
|
|
|
|
|
|
|
|
@ -28,60 +34,22 @@ magic 19540119 (FFS2) time Thu Nov 16 21:14:34 2023
|
|
|
|
[...] (snip; lots of output...)
|
|
|
|
[...] (snip; lots of output...)
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This can be helpful if you want to know, which filesystem you actually
|
|
|
|
|
|
|
|
use on your OpenBSD box.
|
|
|
|
|
|
|
|
|
|
|
|
## Python
|
|
|
|
## Python
|
|
|
|
|
|
|
|
|
|
|
|
### ModuleNotFoundError
|
|
|
|
### ModuleNotFoundError
|
|
|
|
|
|
|
|
|
|
|
|
I recently tried to look at CHIRP, a tool to program (amateur) radios.
|
|
|
|
Install python modules with pip.
|
|
|
|
But at its start I only got an error:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
~~~console
|
|
|
|
~~~console
|
|
|
|
$ chirp
|
|
|
|
$ python3 -m pip install --user --upgrade ${example_module}
|
|
|
|
09:29:10: Debug: Adding duplicate image handler for 'Windows bitmap file'
|
|
|
|
|
|
|
|
09:29:10: Debug: Adding duplicate animation handler for '1' type
|
|
|
|
|
|
|
|
09:29:10: Debug: Adding duplicate animation handler for '2' type
|
|
|
|
|
|
|
|
09:29:10: Debug: Adding duplicate image handler for 'Windows bitmap file'
|
|
|
|
|
|
|
|
09:29:10: Debug: Adding duplicate animation handler for '1' type
|
|
|
|
|
|
|
|
09:29:10: Debug: Adding duplicate animation handler for '2' type
|
|
|
|
|
|
|
|
09:29:10: Debug: Adding duplicate image handler for 'Windows bitmap file'
|
|
|
|
|
|
|
|
09:29:10: Debug: Adding duplicate animation handler for '1' type
|
|
|
|
|
|
|
|
09:29:10: Debug: Adding duplicate animation handler for '2' type
|
|
|
|
|
|
|
|
Traceback (most recent call last):
|
|
|
|
|
|
|
|
File "/usr/local/bin/chirp", line 8, in <module>
|
|
|
|
|
|
|
|
sys.exit(chirpmain())
|
|
|
|
|
|
|
|
File "/usr/local/lib/python3.10/site-packages/chirp/wxui/__init__.py", line 36, in chirpmain
|
|
|
|
|
|
|
|
from chirp.wxui import main
|
|
|
|
|
|
|
|
File "/usr/local/lib/python3.10/site-packages/chirp/wxui/main.py", line 49, in <module>
|
|
|
|
|
|
|
|
from chirp.wxui import printing
|
|
|
|
|
|
|
|
File "/usr/local/lib/python3.10/site-packages/chirp/wxui/printing.py", line 18, in <module>
|
|
|
|
|
|
|
|
import yattag
|
|
|
|
|
|
|
|
ModuleNotFoundError: No module named 'yattag'
|
|
|
|
|
|
|
|
~~~
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Most of these kind of errors look like this and it's quite clear: we need to install
|
|
|
|
|
|
|
|
a package called yattag -- more precisely it is a python module.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
I do install python modules this way:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
~~~console
|
|
|
|
|
|
|
|
$ python3 -m pip install --user --upgrade yattag
|
|
|
|
|
|
|
|
Collecting yattag
|
|
|
|
|
|
|
|
Downloading yattag-1.15.2.tar.gz (28 kB)
|
|
|
|
|
|
|
|
Installing build dependencies ... done
|
|
|
|
|
|
|
|
Getting requirements to build wheel ... done
|
|
|
|
|
|
|
|
Preparing metadata (pyproject.toml) ... done
|
|
|
|
|
|
|
|
Building wheels for collected packages: yattag
|
|
|
|
|
|
|
|
Building wheel for yattag (pyproject.toml) ... done
|
|
|
|
|
|
|
|
Created wheel for yattag: filename=yattag-1.15.2-py3-none-any.whl size=15667 sha256=115df1349df26ea2ad2c0fdbf25c808a79242711fe2d7d44c97a0868a5454dd1
|
|
|
|
|
|
|
|
Stored in directory: /home/dominic/.cache/pip/wheels/3f/6e/e5/d526243c27041915f63eacc0804babeb86b6973b0bc1991f06
|
|
|
|
|
|
|
|
Successfully built yattag
|
|
|
|
|
|
|
|
Installing collected packages: yattag
|
|
|
|
|
|
|
|
Successfully installed yattag-1.15.2
|
|
|
|
|
|
|
|
~~~
|
|
|
|
~~~
|
|
|
|
|
|
|
|
|
|
|
|
## Git
|
|
|
|
## Git
|
|
|
|
|
|
|
|
|
|
|
|
## Cloudlog
|
|
|
|
## Cloudlog (server)
|
|
|
|
|
|
|
|
|
|
|
|
Cloudlog is a webapplication written in PHP that allows ham radio amateurs
|
|
|
|
Cloudlog is a webapplication written in PHP that allows ham radio amateurs
|
|
|
|
to log contacts online. I host my own instance on my server and I finally
|
|
|
|
to log contacts online. I host my own instance on my server and I finally
|
|
|
@ -113,6 +81,38 @@ php80_fpm(ok)
|
|
|
|
php80_fpm(ok)
|
|
|
|
php80_fpm(ok)
|
|
|
|
~~~
|
|
|
|
~~~
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Cloudlog (client)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Use of the online logging tool Cloudlog on my OpenBSD machine.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
First off, connect the TX-500 with the computer (CAT cable) and
|
|
|
|
|
|
|
|
start `rigctld`:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```console
|
|
|
|
|
|
|
|
$ rigctld -m 2014 -r /dev/cuaU0 -s 9600 -v
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
I use `2014` which is actually a Kenwood TS-2000 -- but on OpenBSD hamlib is currently
|
|
|
|
|
|
|
|
at version 4.4 and the TX-500 is only available on
|
|
|
|
|
|
|
|
[version ≥4.5](https://github.com/Hamlib/Hamlib/blob/master/NEWS#L199).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
For newer hamlib versions (≥4.5) use the rig 2050 like:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```console
|
|
|
|
|
|
|
|
$ rigctld -m 2050 -r /dev/cuaU0 -s 9600 -v
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
On another terminal start [`cloudlogbashcat.sh`](https://github.com/g0wfv/CloudlogBashCat):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```console
|
|
|
|
|
|
|
|
$ cloudlogbashcat.sh
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Now, if you open the website of your Cloudlog installation (and if you have
|
|
|
|
|
|
|
|
setup your rigs) and select the radio that uses cloudlogbashcat.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
![cloudlog radio selection dialog](cloudlog-radio.png "You can select your pre-defined radio in the Live QSO tab")
|
|
|
|
|
|
|
|
|
|
|
|
## Z-Shell
|
|
|
|
## Z-Shell
|
|
|
|
|
|
|
|
|
|
|
|
### Where is this alias defined?
|
|
|
|
### Where is this alias defined?
|
|
|
@ -123,6 +123,8 @@ I defined an alias `ls` but I forgot where it was.
|
|
|
|
$ PS4='+%x:%I>' zsh -i -x -c '' |& grep ls
|
|
|
|
$ PS4='+%x:%I>' zsh -i -x -c '' |& grep ls
|
|
|
|
~~~
|
|
|
|
~~~
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
There will be a lot of screen output probably.
|
|
|
|
|
|
|
|
|
|
|
|
### Renaming multiple directories
|
|
|
|
### Renaming multiple directories
|
|
|
|
|
|
|
|
|
|
|
|
~~~console
|
|
|
|
~~~console
|
|
|
|