Abstract

Svipul is a private documentation article, this is knowledge I have found that is worth to remember for me, but feel free to use all of it.

The name Svipul comes from Norse mythology, and the domain is only taken because it was free and I wanted a domain name with Scandinavian reference.

The documentation is made with AsciiDoc and tools from AsciiDoctor.

All references that includes computer Operating Systems is for (Linux) Debian, FreeBSD or OpenBSD, so do not expect to find any help in the world of other Operating Systems.

The information can be picked up here as a svipul.pdf file.

2024-02-27 21:38:24 +0100

Information Technology

top

Systems being used, FreeBSD, OpenBSD and Linux Debian.

FreeBSD

Tips and trix in my setup of FreeBSD, configuration and use.

FreeBSD Work Station

Initial Steps

After a new install of FreeBSD is there several tasks and scripts to be performed.

root perform:

# freebsd-update fetch install
# mkdir /usr/local/etc/pkg
# mkdir /usr/local/etc/pkg/repos
# cp /etc/pkg/FreeBSD.conf /usr/local/etc/pkg/repos/
# sed -i '' -e 's/quarterly/latest/g' /usr/local/etc/pkg/repos/FreeBSD.conf (1)
1 The change in the pkg handling is because I prefer "latest" instead of the "quaterly".

Add power user to the groups: wheel dialer staff operator video u2f

Normal user perform:

$ rsync -avuzb --exclude '*~' 192.168.0.5:bin .
$ mkdir doc
$ rsync -avuzb --exclude '*~' 192.168.0.5:doc/defaults doc/
$ bin/init_dotfiles.sh

When all is running correct (X, xfce etc..), copy the rest of the files from the server:

$ rsync_server.sh new
The scrips mentioned above (ending in .sh) is own scripts.
Find a lot of extra information in ports installation files.
  • Check /etc/wpa_supplicant.conf (both 5G and 2.4G)

  • Check bin/inst_pkg.lst

  • Run bogofilter for ham and spam to build initial database

  • Run freshclam for latest virus database.

  • Fetch ports from git server, see Handbook.

  • Make zfs ready for jail and install jail, check /etc/rc.conf.local.

  • SMTP to be set, either "msmtp" or the new base "dma".

Configuration

For the terminal with messages in english, edit .login_conf:

me:\
	:charset=UTF-8:\
	:lang=en_GB.UTF-8:\
	:setenv=LC_MESSAGES=en_GB.ISO8859-1,LC_NUMERIC=da_DK.UTF-8,LC_COLLATE=C:

For Lynx browser, add environment variabel (here tcsh) to .tcshrc:

setenv LYNX_CFG ~/.lynxrc

Then create .lynxrc with minimum following:

CHARACTER_SET:utf-8
ASSUME_CHARSET:utf-8

For shell scripts (sh) to supply correct locale if called from cron, add the LANG variabel to the shell script:

LANG=en_GB.UTF-8
Using HeadPhones

To fix the headphone connector/jack (Lenovo T470s) on left side of the computer, find address:

$ sysctl -a |grep Headphones
dev.hdaa.0.nid33_original: 0x03211020 as=2 seq=0 device=Headphones
	conn=Jack ctype=1/8 loc=Left color=Black misc=0

dev.hdaa.0.nid33_config: 0x2121101f as=1 seq=15 device=Headphones
	conn=Jack ctype=1/8 loc=Ext-Rear color=Black misc=0

dev.hdaa.0.nid33: pin: Headphones (Black Jack)

Pin config: 0x2121101f as=1 seq=15 device=Headphones conn=Jack
	ctype=1/8 loc=Ext-Rear color=Black misc=0

So, it is hdaa.0.nid33_original that is on left side.

Now add to /boot/device.hints:

hint.hdaa.0.nid33_original="as=1 seq=15"

Z File System

Useful commands for the zfs, as root or sudo:

History of commands and actions in the zfs.

# zpool history

FreeBSD Server

Currently is the server a Lenovo ThinkCentre.

ZFS
Internal SSD:
+-------+
| zroot |
+-------+
      \
       +--------+
       | ada0p4 |
       +--------+

USB SSD for backup:
+---------+
| zbackup |
+----+----+
     |
+----+-----+
| mirror-0 |
+----------+
/           \
+-------+    +-------+
| da0p1 |    | da1p1 |
+-------+    +-------+

SQLite3 Compiler

Use the gcc compiler, clang will not work…​ also add -lsqlite3 to the command line.

Garmin Quirks

To make FreeBSD "see" Garmin devices (on Lenovo T470s) when connected to USB and the device not is listed in the source code, add to /boot/loader.conf:

# Below is for Garmin to make it USB available or both LUNs available
#
hw.usb.quirk.0="0x091e 0x0d8a 0x0000 0xffff UQ_MSC_NO_INQUIRY"
#                       ^^^
#                       Instinct Solar
#
hw.usb.quirk.1="0x091e 0x23c0 0x0000 0xffff UQ_MSC_NO_INQUIRY"
#                       ^^^
#                       Dakota 20
#
hw.usb.quirk.2="0x091e 0x26c8 0x0000 0xffff UQ_MSC_NO_INQUIRY"
#                       ^^^
#                       Edge Touring+
hw.usb.quirk.3="0x091e 0x272c 0x0000 0xffff UQ_MSC_NO_INQUIRY"
#                       ^^^
#                       Edge 1030

See also the sourcecode in head/sys/dev/usb/quirk/usb_quirk.c and head/sys/dev/usb/usbdevs.

NanoVNA/TinySA Firmware

Install the dfu-util port to the FreeBSD system.

Make device enter DFU mode by one of following methods.

Jumper BOOT0 pin at powering device …​or Select menu Config→DFU (needs recent firmware)

Then, flash firmware using dfu-util via USB.

$ dfu-util -d 0483:df11 -a 0 -s 0x08000000:leave -D build/ch.bin
The "-D" option is the path and name of the .bin file.

Arduino

More information about Arduino and the port arduino.

Install the avrdude port.

Command line uploads with avrdude, in the examples below the blink.c object code blink.hex is uploaded.

The hex code from the Arduino IDE (after it is compiled/verified), is placed in "/tmp/build*/\*.cpp.hex".

Arduino Duemilanove

For the board Arduino Duemilanove:

$ avrdude -V -F -c stk500v1 -p m328p -b 57600 -P /dev/cuaU0 -U flash:w:blink.hex
Arduino Uno

For the board Arduino Uno:

$ avrdude -V -F -c stk500v1 -p m328p -b 115200 -P /dev/cuaU0 -U flash:w:blink.hex

To get the serial communication to the USB/Serial port, use "cu":

$ cu -l /dev/cuaU0 -s 9600

Convert Mail eml to mbox

Install procmail that includes formail.

$ formail < file.eml > file.mbox

Open the mbox file with neomutt.

$ neomutt -f file.mbox

Hosted at Hetzner

Web site and NextCloud is hosted in Germany / Iceland / Finland.

sFTP and FTP access is at following addresses, for sFTP is public keys uploaded to the "konsole" interface for each computer that need access (laptop and server):

$ ftp -N .netrc www163.your-server.de
$ sftp -i .ssh/id_rsa name@www163.your-server.de

Incoming and outgoing mail server is mail.your-server.de

For server fingerprint when using ssh/sftp/scp, see Hetzner Documentation.

ImageMagick

Mogrify Batch to Reduce Image Size

To reduce several images to 20% and orientate to correct orientation:

$ mogrify -verbose -auto-orient -enhance -resize 20% *.jpg

To change the image format from for example (iOs) *.heic to jpg:

$ mogrify -verbose -auto-orient -format jpg *.heic
the -enhance option will increase the time to convert/resize.

Webcam on FreeBSD

  • pkg install webcamd

  • rc.conf.local webcamd="YES"

  • service webcamd start

  • devfs.rules add path 'video\*' mode 0660 group operator

  • use in browsers pkg install v4l-utils v4l_compat

  • test webcam with pwcview -d /dev/video0

Network File System NFS

The NFS system to mount a server filesystem on the laptop when a firewall is running will need changes to the server mountd to start with a fixed port. This involves:

  • /etc/rc.conf.local

    • mountd_flags="-r -S -p xxx"

    • mountd_enable="YES"

  • /usr/local/etc/pf.conf

    • add port xxx

Printing

Current printer is a Brother HL-2375DW.

The printer is PCL6 compatible.

Avoid stair stepping of text with "Print → HP Laserjet → Auto CR on"

Files in pdf format should be latest version 1.7, print with lpr.

Use of ghostscript to make pdf for printing, for example ps2pdfwr, use option -sDEVICE=pxlmono

See the FreeBSD Handbook for filtering pdf and ps files.

Using VPN

Using Mullvad VPN with the Wireguard protocol.

See the wg_connect.sh and mullvad_info.sh scripts (own scripts).

Make streaming working with the Firefox Mullvad extension, select proxy server for country where the streaming is coming from.

On hotels and similar with captive browser login, change rc.conf and wpa_supplicant.conf to only use DHCP (no WPA) and psk_mgmt=NONE.

Translate to Other Base

Translate for example from Hexadecimal to Binary:

$ echo "obase=2;ibase=16;AF6D" |bc
1010111101101101
$

Always obase first!!

See the bc man page bc(1).

If obase not is set will it be base 10.

If obase must be 10, do not set obase.

Same calculation, now with dc(1), the RPN (Reverse Polish Notation) calculator.

$ echo "2 o 16 i AF6D" | dc
1010111101101101
$

Format USB and CF Cards

Format an USB stick with FAT32, example /dev/da1:

# gpart create -s MBR da1
# gpart add -t fat32 da1
# gpart set -a active -i 1 da1
# newfs_msdos -L thumbdrive /dev/da1s1

Format CF Card to FAT16:

Example card registered as /dev/da1.

Maximum 4Gb CF Cards.

# gpart delete -i 1 da1
# gpart destroy da1
# gpart create -s MBR da1
# gpart add -t fat16
# gpart set -a active -i 1 da1
# newfs_msdos -L CF4000 /dev/da1s1
The "-L" for disk "label", max 11 characters.

Asciidoc

Current setup, use:

$ asciidoctor -d book example.adoc

and for pdf

$ asciidoctor-pdf -d book example.adoc

QEMU

Install from cdrom iso, drive d

qemu-system-x86_64 -smp cpus=4 -cdrom Downloads/install72.iso \
-boot order=d -drive file=vm/fbsd.img,format=raw

Start installed system

qemu-system-x86_64 -smp cpus=4 -boot order=c -drive file=vm/fbsd.img,format=raw

Wine

Use Wine as 32bit system, at the sh CLI:

$ WINEARCH=win32 WINEPREFIX=path_to_wineprefix winecfg
$ WINEPREFIX=path_to_wineprefix wine start /unix path_to_installer

RRD

Round Robin Database used for weather tracking, see the RRD web site.

SQLite

SQLite is used for several small databases, see the SQLite web site.

Yubikey

Using Yubikey, see FreeBSD Yubikey Authentication

# pkg install py39-yubikey-manager yubico-piv-tool pcsc-lite ccid
# service pcscd enable
# service pcscd start

Add users to the group u2f

OpenSSH CA

Certficat Authority

Using certificates authorized by CA instead of the public key being send around to all machines.

  • The CA machine can be both client and host.

  • Use a dedicated machine for signing keys.

  • Use different private keys for signing host keys and user keys.

  • All machines can be both client and host.

  • Never transport a private key over network.

  • Public keys and certificates can be transported on the network.

  • The CA private keys should really be kept off-line.

CA Machine Set-up:

Create directories for each user and each host:

  • /usr/local/sshca/

    • hosts/laptop

    • hosts/server

      • users/hmj@laptop

      • users/hmj@server

  • Create the host key with pass-phrase, ca_host_key

  • Create the user key with pass-phrase, ca_user_key

Create ca_user_key and ca_host_key, both with a pass phrase, the private part must be moved to an offline device.

Edit the file /etc/ssh/sshd_config to list:

  • HostKey (private key)

  • HostCertificate (-cert.pub)

  • TrustedUserCAKeys (ca_user_key.pub)

On Client and Host Machines:

In the /etc/hosts file is the first names after the numerical ip address used for "look-up" by ssh.

cat ca_host_key.pub to /etc/ssh_known_hosts on all clients and hosts, just copy between machines. (hosts only machines, not needed, if not used as client).

Edit /etc/ssh/ssh_known_hosts so first line starts with a keyword and all hosts this key is valid for (clients only machines, not needed):

  • @cert-authority laptop,server,fedora ssh-rsa…​

  • copy ca_user_key.pub to /etc/ssh/

Host Machine Set-up:

change sshd_conf to have all host keys (primary) and host certificates path:

  • HostKey /etc/ssh/ssh_host_rsa_key

  • HostKey /etc/ssh/ssh_host_ecdsa_key

  • HostKey /etc/ssh/ssh_host_ed25519_key

  • HostCertificate /etc/ssh/ssh_host_ecdsa_key-cert.pub

  • HostCertificate /etc/ssh/ssh_host_ed25519_key-cert.pub

  • HostCertificate /etc/ssh/ssh_host_rsa_key-cert.pub

change sshd_conf to include path to ca_user_key.pub:

  • TrustedUserCAKeys /etc/ssh/ca_user_key.pub

Client Machine:
  • Place the certificate id_rsa-cert.pub in ~/.ssh/

  • remove authorized_keys from ~/.ssh/

  • you can remove known_hosts from ~/.ssh/

OpenBSD

OpenBSD tips and trix.

Find Wireless Card

mugin$ dmesg |less -S

Look out for a line like:

iwn0 at pci2 dev 0 function 0 "Intel Centrino Advanced-N 6205" rev 0x34: msi, MIMO 2T2R, MoW, address 6c:88:14:bb:f7:88

Download and install the firmware.

Setup the hostname.iwn0
join "LOCAL_SSID" wpakey PASSWORD
dhcp
up powersave

Firewall

OpenSMTP

XFCE4

Linux Debian

Set-up information for Debian on Laptop 2.

Check the Debian Wiki.

Computer Hardware

For FreeBSD installations check the FreeBSD Wiki Laptops.

Lenovo ThinkPad

T530 (Laptop 2)
  • Intel Core i5-3230M @ 2.6GHz, HD Graphics 4000,

  • 8GiB Ram, 250GiB SSD

  • Type: 2429-7ZG

  • S/N: R9-ZTX9C

  • 13/07

Installed Linux Debian that has good support for HamRadio.

T470s (Laptop 1)
  • Intel Core i5-6300U @ 2,50 GHz, Intel HD Graphics 520, Wireless AC 8260.

  • 8GiB Ram, 256GiB SSD

  • Type: 20JT-S0W800

  • S/N: PC-0ZK5J9

  • 18/11

Installed with FreeBSD and ZFS filesystem, zroot on the SSD.

FreeBSD Wiki about the T470s.

ThinkCentre M83 Tiny

  • Intel Core i3-4150T, 3 GHz, 8 GB DDR3, 120GB SSD,

  • Intel® HD Graphics 4400, Bluetooth, Grade A

  • Type: MT-M10E9-S01Y00

  • S/N: S4T41506

Installed with FreeBSD and ZFS filesystem, zroot on the SSD.

Two USB disks in a mirror set-up attached for music, pictures and backup from the laptop computers.

The laptop is frequently synching Maildir/, bin/ and doc/ to the ThinkCentre SSD.

Cycling

top

Bike Information

I use two different cycling computers / navigation devices:

Road Bike

Canyon Endurance CF SL 7 AXS eTap (2022)

Roadbike, carbon, stealth grey, size "L", 8.52kg.

Spare Parts

Details
  • Frame Axle Dimension: 12 x 142 mm

  • Frame Brake mount: flat mount

  • Fork Canyon FK0098 CF Disc

  • Fork Axle dimensions: 12 x 100 mm

  • Fork Brake mount: flat mount

  • Fork Steerer: 1 1/4"

  • Gear system SRAM Rival eTap AXS

  • Maximum cassette 36T

  • Cassette SRAM Rival XG-1250, 12-speed, 10-36

  • 10,11,12,13,15,17,19,21,24,28,32,36

  • Crank, SRAM Rival AXS Powermeter, battery AAA

  • Crank arm 172.5mm

  • Chainring 35/48T

  • Bottom Bracket SRAM Pressfit RED DUB, Pressfit BB386 road standard

  • Chain, SRAM Rival solid pin 12s flattop, 120 links, D1 PowerLock

  • Left brake / shift lever SRAM Rival eTap AXS 2s

  • Right brake / shift lever SRAM Rival eTap AXS 12s

  • Brake Rotor SRAM Paceline, 160mm / 160mm, centerlock

  • Brake Calipers, Rival AXS HRD, delivered with organic/steel brake pads (Level)

  • Front Wheel, DTSwiss Endurance LN, disc centerlock

  • Front wheel thru axle 12x100mm

  • Front wheel width 24mm, weight 805g (without disc)

  • Aft wheel, DTSwiss Endurance LN XDR, disc centerlock

  • Aft wheel thru axle 12x142mm

  • Aft wheel width 24mm, weigt 975g (without disc and cassette)

  • Tires, Continental GP5000s TR, width 30mm

  • Cockpit, Canyon H31 Ergocockpit CF, reach 70mm, drop 128mm

  • Cockpit 110-420

  • Saddle Fizik Tempo Argo R3

  • Seatpost Canyon S15 VCLS 2.0 CF, setback 13mm / 25mm, diameter 27.5mm, length 350mm, Technology: VCLS 2.0 | Fliphead

  • Canyon E388-16 Front Derailleur Hanger

  • Canyon GP7172-01 Headset-Kit

  • Canyon GP7031-01 Protection Foil

  • Canyon GP7024-01 Seatpost Screw

  • Derailleur Hanger GP0211-01

  • Canyon E289-16 Chainsuck Plate

  • Canyon GP7009-01 Battery Holder

  • Wahoo Speedplay Comp

Frame geometry for a size "L":

Canyon
Figure 1. Canyon CF SL 7

Frame Geometry

Details
Geometry Parameter Measure

Body Height in cm

184-190

Seat Height in mm (A)

743-843

Seat Tube Length in mm (B)

552

Top Tube Length in mm ©

568

Head Tube Lenght in mm (D)

184

Head Tube Angle (E)

73

Seat Tube Angle (F)

73.5

Chainstay Length in mm (G)

415

Wheel Base in mm (H)

1006

Stack in mm (I)

604

Reach in mm (J)

389

Stand-Over Height in mm (K)

832

Bottom Bracket Offset in mm (L)

73

Stack+ in mm

708

Reach+ in mm

475

Components Geometry

Component Geometry Dimension

Spacer in mm

27.5

Cockpit Dimensions

110-420

Crank Lenght mm

172.5

Chain Ring Size

48/35

Seat Post Diameter in mm

27.2

Seat Post Length in mm

350

Max Post insertion Depth mm

107

Wheel Size

28"

Disc Size mm

160 / 160

SwissStop26
Figure 2. SwissStop Brake Pad Disc 26 types.
SRAM
Figure 3. SRAM AXS Brake Parts.

Use SwissStop 26 C (green)

Gravel Bike

Pronghorn Gravel SRAM Apex 1x11 (2019)

Pronghorn Gravel 2019

The carbon gravel bike.

Spare parts

Details
  • Frame: CX Carbon Disc

  • Fork: Full Carbon

  • Wheelset: DT SWISS X 1700 SPLINE® 22.5mm, with XD™ driver body, DTSwiss hub 350 with Ball bearing 6902 Ø 15/28x7mm (SKF 61902), weight front 764g, rear 882g (1646g).

  • Tires: Ritchey Shield 35c

  • Groupset: SRAM Apex 1X11, Hyd. Disc

  • Chainring: SRAM Apex 1x 42t (Rival 5 holes)

  • Rear derailleur: SRAM Apex 1X Long Cage

  • Shifters: SRAM APEX 1X

  • Brakes: SRAM Apex 1, Hyd. Disc (brake pad = SRAM Level / Monoblock HydroR Caliper). DOT 5.1 Oil.

  • Cassette: SRAM XG-1150, 11s, 10/42

  • 10,12,14,16,18,21,24,28,32,36,42

  • Chain: SRAM PC1130

  • Stem: ALU - LITE

  • Bar: Ritchey ergo alu race bar

  • Seat Post: Alu Lite 31.6/380

  • Saddle: San Marco Monza Sort

  • Grips: Fizik

  • GXP Crank set, BSA threaded, spindle diameter 22/24mm.

  • Replacement crank box from [Danish Bike][danishbike]:

  • BSA 1,37"X24 68mm steel bearings, Tripeak part number EMA-IB24-SHSBBR-EMA-BB-SR24/22, including GXP kit. (bearing 6805RS or SKF 61805-2RS1)

  • Wheel circumference for speed sensor 24dec2019 = 2155mm.

  • Alternative tyre, Continental Race King Protection.

  • Alternative tyre, Continental Terra Trail ProTection, 40mm - 700x40C (40x622).

  • Alternative tyre, Tufo Gravel Thundero or Swampero, 40mm (made in Czech Republic)

  • Alternative tyre, Schwalbe G-One Bite, 40mm

  • Tubeless setup with 45mm Orange Seal valve (presta).

  • Tubeless sealant: Orange Regular / Stans Tire Sealant.

For tubeless, 2 rounds protection tape, 40mm tyre needs 0.070L of fluid.

APEX
Figure 4. SRAM Apex1 Brake Spare Parts
SwissStop32
Figure 5. SwissStop Brake Pad Disc 32

Brake pad type (use SwissStop grey/silver "Disc 32 E").

Winter/Transport Bike

Canyon AL (2008)

Spare parts

Details
  • Tyre, Swalbe Durano Plus

  • Wheel circumference for speed sensor 24dec2019 = 2110mm

  • Wheels, Fulcrum Racing 7 LG with Camp.

  • Front Brake Campagnolo, SwissStop Pro Original Black, PN:P100002482

  • Rear Brake SRAM Force ,SwissStop Pro Original Black, PN:P100001815

  • (or Full Flash with mount/screw PN:P100001881)

Miscellaneous Equipment

Details
  • Backpack, Deuter Superbike 18 Exp

  • Backpack, Deuter Road One (Citrus-Graphite)

  • Cleaning, Sonax Bike Reiniger (Bauhaus).

  • Sonax Spezial Oil, for brake lever, deraillur etc.

  • Sonax Spray Wax, protections

  • Akaso Brave 4

  • Akaso Brave 6 Plus

  • Racing Bike Shoes: Giro Cadet size 46

  • wishlist: MTB/Gravel shoes: Specialized Recon 2.0 MTB

  • Saddle, Selle Italia SLR Boost Superflow S

  • Schwalbe Cykelslange 700x28/45C, 60mm Racerventil (SV17L)

  • Chain Lube: X-Sauce Eco-Lube Classic

Body Information

  • Inseam 86cm

  • Left foot width=113mm, lenght=288mm. Right foot width=118mm, length=287mm.

  • Specialized translates these into shoe size 46.5

Motorcycle

top

Motorcycle Information

Honda NC700XA, model 2013, first time registered in February 2017, I got it as third owner at 9200km August 2023. This one is the 35kW model, but should be possible to get 38kW by removing the restrictor in the air supply.

Personal equipment

Details
  • Helmet, Nolan N80-8

  • Jacket, Richa INFINITY 2 FLARE JACKET, XL

  • Trousers, Richa 7SS, 3XL

  • Gloves, Richa 5WR, XL

  • Boots, Triumph

Honda NC700XA

Details
  • GPS, Beeline

  • MotoTech centerstand

  • MotoTech engine crash bars

  • Shad SH45 topbox, including rack

  • Shad rach for the SH36 sideboxes

  • Taller windscreen (OEM Honda)

  • RAM ballmount

  • XCP Cleaner and Degreaser, or kerosine (DK: petroleum)

  • XCP Rust Blocker

  • XCP Chain Lubricant Professinal, or Maxima Chain Wax,
    or S100 White Chain Spray 2.0 or gear oil 85W/140

  • Engine Oil, Castrol POWER1 Racing 4T 10W-30

  • Engine Coolant Liquid "EngineIce"

  • AGM Battery (Yuasa type YTZ12S),
    width x depth x height = 151mm x 87mm x 110mm, 11Ah
    (see part number 80-832 at BilTema)

  • Spark Plug NGK IFR6G-11K (5/8 = 16mm hex)

  • Front Wheel Bearings, 6204-2RS, seal D772

Tool Kit

Details
  • 2 Tire Iron Spoon, 350 mm

  • 1 Wrench, fixed 10 mm

  • 2 Wrench, fixed 12 mm

  • 2 Wrench, fixed 14 mm

  • 1 Wrench, fixed 22 mm

  • 1 Wrench, fixed 27 mm

  • 1 Wrench, fixed 8 mm

  • 1 Magnet

  • 1 Fuse tool

  • 1 Bitholder screwdriver, 13 bits.

  • 1 Rachet for sparkplugs, two sockets, 5/8 inch(15.9mm) and 13/16 inch(20.6mm)

  • 9 Allen Keys (H1.5, H2, H2.5, H3, H4, H5, H6, H8, H10)

  • 1 Multimeter

  • 1 Multitool, Gerber Suspension NTX

  • 1 Jumpstart battery

  • 1 Tubeless repair kit, Givi S450 Tubeless Tyres Repair Kit

Motorcycle Wishlist

Details
  • Honda NC700XA

    • Oxford Premium Paddock Stand

    • Puig 6002W Touring Windshield with Visor

    • Magura Hymec hydraulic Clutch (2100001), see at Louis Moto

  • Honda XL750 Transalp

    • Tires, Bridgestone Battlax Adventure Cross AX41 or Adventure Trail AT41

    • Exhaust

    • Windscreen

    • AGM Battery

    • Yoshimura Exhaust

    • 3D Cycle Parts Light Kit

    • Tractive Suspension

    • Barkbuster Handguards

    • Motoz Adventure Rallz Tires

    • Outback Motortek Crash Bars and Skid Plate

    • Altrider Footpegs (coming soon for the Transalp)

    • Antigravity Battery (ATZ-10)

    • Tusk Olympus Tank Bag (sm)

    • Sedici Dry Bags

    • Puig Wind Visor

    • Tusk Tubes

  • Equipment

    • Sena Spider ST1 Mesh Intercom Headset
      (note: the RT1 is similar, but with buttons instead of the jog-wheel on ST1)

    • Blaupunkt Valencia 200 DAB BT car radio w. DAB+ and Bluetooth

    • Raincover, iXS Rain Suit 1.0

    • Tent: Nordisk Oppland 2 PU

    • Tent: Robens - Challenger 2 (GrejFreak (DK))

    • SHAD SH36 Side Cases Set, see at FCMoto (DE)

    • Noco Boost Sport GB20 Jumpstarter 500A (ComputerSalg)

    • Noco Genius5 Charger (ComputerSalg)

    • First Aid Kit, see at FirstAidKits

    • Chain Tool, Kellermann Kettentrennwerkzeug KTW 2.5

    • Shoei NXR2 Helmet (22.06)

GNSS Satellite

top

Using GNSS and tools around own devices for cycling and trekking.

GPSbabel

GPSBabel is the SwissKnife tool for converting between several formats of tracks, waypoints, routes and extensive filtering.

Export .fit file to .gpx version 1.1:

$ gpsbabel -i garmin_fit -f input.fit -o gpx,gpxver=1.1 -F output.gpx

Fit Files SDK / ANT+

See ThisIsANT, and the FIT SDK download page.

QMapShack

See the documentation QMapShack Wiki, and also for Routino

For OSM maps, check OSM Map on Garmin.

For the routing *.osm.pbf can planetsplitter be used directly, if not working correct from QMapShack:

planetsplitter --dir=Downloads/velomap prefix=dk.routino denmark-latest.osm.pbf

For the height files *.hgt, build a *.vrt file with gdalbuildvrt:

gdalbuildvrt Downloads/veloheight/world_height.vrt Downloads/veloheight/*.hgt

Wahoo Bicycle Computer

Synch

The Wahoo Elemnt v2 is set for automatic upload synch to:

  • Dropbox

  • RideWithGPS

wahoo
Figure 6. Wahoo Elemnt Bolt v2

Wahoo Pages Setting

Details
  • Power

    • Target Power

    • Avg Power (3 sec)

    • Cadence

    • Heart Rate

    • Remaining Time (interval)

    • Remaining Time (workout)

  • Route

    • Current Speed (vs workout avg)

    • Distance Next Cue

    • Distance Lap

    • Distance (workout)

  • Map

    • Current speed (vs workout avg)

  • Speed

    • Current Speed (vs workout avg)

    • Distance (workout)

    • Time of Day

    • Avg Speed (lap)

  • Heart

    • Heart Rate % Max

    • Cadence

    • Power (vs workout avg)

    • Power to Weight (Watts/kg)

    • Current Speed (vs workout avg)

  • Lap Data (visible after first lap)

    • Current Speed (vs lap avg)

    • Distance (lap)

    • Current Lap Active Time

    • Lap Number

    • Avg Heart Rate (lap)

    • Cadence

    • Avg Speed (lap)

    • Avg Speed (last lap)

Hammerhead Karoo 2

Bicycle Computer

The Hammerhead display legends

k2
Figure 7. Hammerhead Karoo v2
k2button
Figure 8. Hammerhead Karoo v2 Buttons

Garmin Bike/Wear

  • Garmin Edge Touring Plus

  • Garmin Instinct Solar

  • Garmin Edge 1040 Solar

touring
Figure 9. Garmin Touring Edge+
instinct
Figure 10. Garmin Instinct Solar
edge1040
Figure 11. Garmin Edge 1040 Solar

Garmin Edge 1040 Solar

Change the course line colour in directory Garmin/MAPTHEMES/HighContrast.kmtf field MPM_ACTV_CRS_CLR, the primary is the main colour, second is the edge colour.

Choose the colour-set in the profile/navigation/map/apperance.

Android Auto

Add Stop

While navigating, you can add a stop to your route on the way to your final destination.

  1. Tap add a stop on the route summary screen

  2. Search for a location

  3. Tap the location, and then add a stop

Your stop is marked on your route by a blue pin. It’s also listed on the ETA screen above your final destination.

If you want to change your final destination instead of adding a stop, tap New drive instead of Add a stop.

Stops can’t be removed from routes on Android Auto.

It is also possible to plan the multistop route on the mobile phone, start navigation on the phone, and then connect in the car / Android Auto.

Math

top

Math Hints

sohcahtoa
Figure 12. SOH CAH TOA
triangel
Figure 13. Triangle Side and Angle Letters
tangens
Figure 14. Tangens Unit Circle
cos
Figure 15. Cosinus Unit Circle
figures
Figure 16. Calculations for different figures

Calculators

HP and SwissMicros

  • Tips and trix related to the HP/SwissMicros

  • DM15 key functions

  • My own DM15L Programs

  • My own DM41X Programs

Calculators Owned

DM15/DM15L Flash or Load

For loading or flashing on a FreeBSD release 13.0 system, all required tools are part of the standard or package system…​ after finding the serial port (on my system /dev/cuaU3), start a cu communication, either as root or use sudo:

Load or Download Memory
$ sudo cu -s 38400 -l /dev/cuaU3

…​and activate serial console on the DM15L, "C" + "on":

dm15cu
Figure 17. Serial Console with FreeBSD cu command

…​possible options shown with "?" + "Enter":

dm15list
Figure 18. Serial Console list

…​dump the memory with "s" + "Enter"

dm15save
Figure 19. Serial Console dump or save

…​leave/drop cu with ~. (tilde and dot).

Flashing Software

For flashing the DM15L, install the package lpc21isp and just follow the procedure described in the DM15L manual.

…​command line for flashing:

$ sudo lpc21isp /tmp/DM15_M1B_31.hex /dev/cuaU3 115200 12000
dm15flash
Figure 20. Flashing the DM15L

…​press "Enter" and then reset on the DM15:

dm15end
Figure 21. Flashing Success

…​and when finished, reset the DM15 and disconnect from the computer.

DM15 Programs

Bicycle Calculations

Little program for calculating distance and speed for bicycle cassette, chainring wheel circumference and cadence input:

Set USER mode, set up matrix A, insert R2, R3 and R4 and perform LBL B

USER mode
R0 automatic increment of matrix X
R1 automatic increment of matrix Y
Matrix A = 1x10 (cassette)
Matrix B = Matrix A divided by chainring

R2 = chainring
R3 = wheel circumference in meter
R4 = cadence
X><Y will showe current sprocket, after label A.

Program:
LBL A
Recal matrix B item, PSE and * 1/X
RTN

LBL B
Set result matrix to B
Recall Matrix A
RCL R2 and divide
RTN

LBL C (clear all registers)
clear X
clear registers
place matrix counter at 1,1
RTN

LBL D (distance in meter per cadence revolution, after LBL B)
recall R3 and multiply
RTN

LBL E (km/t, after LBL D)
recall R4 and multiply
60 multiply
1000 divide
RTN

Dump from calculator DM15L:

DM15_M1B
00  00000000000000  01412381250001  03200000000001  0a4300031ff000
04  000000fffff000  00000000000008  0000000000000c  0f001001001eae
08  00000000000000  2faf8befbf2280  00000000000000  00000000000000
10  00000000000000  00000000000000  00000000000000  06000000000998
14  f0000000000029  1b2d3838383a3a  000000000005fb  00000000000000
18  00000000000000  010b000000007f  02010000b07080  00000000000000
2c  00000000000000  01000000000001  01200000000001  01400000000001
30  01600000000001  01800000000001  02100000000001  02400000000001
34  02800000000001  03200000000001  03600000000001  04200000000001
38  03700000000001  01600000000001  00000000000000  00000000000000
f8  00000000000000  00000000000000  00000000000000  0000b2fcf6f0c0
fc  c4cf0eb2c3cf0d  b2fd327a8b0bb2  91ffa5a20cb2ce  dc3bbf5a31300a
A: 000000fffff000  B: 000000fffffeae  C: 0f001001001eae
S: 00001000000000
M: 0000000000000b  N: 00000000000000  G: 04

Mnenomics:

LBL A
RCL 0
RCL 1
RCL g A
uRCL B
PSE
1/x
RTN
LBL C
CLx
CLR_REG
MATRIX 1
RTN
LBL B
RESULT B
RCL MATRIX A
RCL 2
/
RTN
LBL D
RCL*3
RTN
LBL E
RCL*4
.06
*
RTN

Code dump (uRCL=matrix recall):

001  LBL A        | 42,21,11
002  RCL 0        |    45  0
003  RCL 1        |    45  1
004  RCL g A      | 45,43,11
005  uRCL B       | u 45  12
006  PSE          |   42  31
007  1/x          |       15
008  RTN          |   43  32
009  LBL C        | 42,21,13
010  CLx          |   43  35
011  CLR_REG      |   42  34
012  MATRIX 1     | 42,16, 1
013  RTN          |   43  32
014  LBL B        | 42,21,12
015  RESULT B     | 42,21,15
016  RCL MATRIX A | 45,16,11
017  RCL 2        |    45  2
018  /            |       10
019  RTN          |   43  32
020  LBL D        | 42,21,14
021  RCL*3        | 45,20, 3
022  RTN          |   43  32
023  LBL E        | 42,21,15
024  RCL*4        | 45,20, 4
025  .            |       48
026  0            |        0
027  6            |        6
028  *            |       20
029  RTN          |   43  32

Converted to the [HP-15C simulator][simulator] (Torsten Manz):

001 {    42 21 11 } f LBL A
002 {       45  0 } RCL 0
003 {       45  1 } RCL 1
004 {    45 43 11 } RCL g A
005 {     45 12 u } uRCL B USER mode
006 {       42 31 } f PSE
007 {          15 } 1/x
008 {       43 32 } g RTN
009 {    42 21 13 } f LBL C
010 {       43 35 } g CLx
011 {       42 34 } f CLEAR REG
012 {    42 16  1 } f MATRIX 1
013 {       43 32 } g RTN
014 {    42 21 12 } f LBL B
015 {    42 26 12 } f RESULT B
016 {    45 16 11 } RCL MATRIX A
017 {       45  2 } RCL 2
018 {          10 } /
019 {       43 32 } g RTN
020 {    42 21 14 } f LBL D
021 {    45 20  3 } RCL * 3
022 {       43 32 } g RTN
023 {    42 21 15 } f LBL E
024 {    45 20  4 } RCL * 4
025 {          48 } .
026 {           0 } 0
027 {           6 } 6
028 {          20 } *
029 {       43 32 } g RTN

Games

top

Games we have:

Spil navn Forklaring

Kvit eller dobbelt

ligegyldig paratviden

Ticket to Ride Europe

Byg jernbaner mellem storbyer i Europa

Risk (Hasbro Gaming)

.

Trivial Pursuit

Mastergame udgave for unge spillere

Trivial Pursuit

Familieudgave

Monopoly

.

Matador

.

Bezzerwizzer

.

Partners

.

Sig det videre

.

Sequence

stor spilleplade

Linkee

.

Duel

Seven Wonders [online manual][duel]

Pakkespil

.

Backgammon

Carcassonne

Star Wars Edition

  • Carcassonne

    • Inns & Cathedrals Burgfraulein und Drache

    • Der Turm

    • Traders & Builders

    • Abbey & Mayor

    • The River (2001) mini expansion

    • The river II mini expansion

    • Cult Places (Shrines and Heretics) mini expansion

The original Carcassonne with expansions

HamRadio

top

My interest is in digital radio and satellite, so voice mode will most likely not be covered here.

See my collection of HamRadio related links.
See my collection of Electronics related links

Computer installation is on my Lenovo Thinkpad T530.

Linux HamRadio

Linux focused HamRadio software packages, my installation is with Debian.

APRS

Be aware of there is digital APRS and analog APRS, some radios do only have one of these. Anytone AT-D878UVII PLUS has both.
TNC=Terminal Node Controller, radio modem.
See also APRS Wiki

PinPoint APRS, free software that allows you to visually track and communicate with people using Amateur Radio (”Ham Radio”) equipment.

Xastir APRS, Xastir provides mapping, tracking, messaging, weather, weather alerts, and Search & Rescue features over radio or internet.

APRS on DMR+

Send GPS position to talkgroup (Denmark):

  • 5050 = without SSID (SSID-0)

  • 5055 = House QTH (SSID-5)

  • 5056 = Camping (SSID-6)

  • 5057 = Walking (SSID-7)

  • 5058 = Boat (SSID-8)

  • 5059 = Car (SSID-9)

It should also be possible use a private call to the destination address 238999 (Denmark). The SSID-9 is then used here.

DMR

See also:

  1. DMR for Dummies.

  2. Brandmeister Wiki.

  3. Brandmeister Network.

  4. DMR UK

  5. QDMR a GUI application and command line tool to program DMR radios, available for Linux.

  6. AmateurRadio.digital DMR Digital Contacts Download.

FLrig

FLrig (and FLdigi) help pages for all the software from W1HKJ.

Configuration

On Linux will the USB to serial be a device like /dev/ttyUSB0.

Make sure to have the permission to use this device, add the user to the dialout group.

FLdigi

Configuration

WSJT-X

See the documentation on the web site WSJT-X

Configuration

USB SoundBlaster

SoundBlaster Play! 3 USB on Lenovo T530.

  • Linux Fedora "Output Device / Speaker" = -2,61dB (90%)

  • Linux Fedora "Input Device / Microphone" = +11dB (153%)

  • WSJT-X Audio Input SB analog.stereo, set to mono

  • WSJT-X Audio Output SB analog.stereo, set to both

  • WSJT-X Pwr set to -7.4dB

  • Xiegu G90 (fw 1.78b01) Aux In = 15

  • Xiegu G90 Aux Out = 12

  • Xiegu Pre-Amp = on

  • Xiegu set to 5W

With these settings is transmitted power 5.3W and ALC 012 and the input is \~40dB.

Digital Frequencies

FT4

Band Frequency

80m

3.57500

40m

7.04750

30m

10.14000

20m

14.08000

17m

18.10400

FT8

Band Frequency

80m

3.57300

40m

7.07400

30m

10.13600

20m

14.07400

17m

18.10000

JT65

Band Frequency

80m

3.57000

40m

7.07600

30m

10.13800

20m

14.07600

17m

18.10200

JS8CALL

Band Frequency

80m

3.57800

40m

7.07800

30m

10.13000

20m

14.07800

17m

APRS Frequencies

Band Frequency MHz

2m

144.800

70cm

432.500

Analog Frequencies

RTTY

Band

Frequency

80m

3.59000

40m

7.04300

30m

10.14300

20m

14.08300

17m

18.10600

CW

Band Frequency

80m

3.56000

40m

7.03000

30m

10.10600

20m

14.06000

17m

18.09600

VHF / UHF Frequencies

Band Frequency MHz Channel

2m

145.000

Amateur V17

Own Equipment

Details
  • QRP Labs order 15719: QCX CW transceiver kit (40m) Serial Number is: 2829 (assembled).

  • Firmware revision T1.00e (upgrade IC 1.03 installed), PCB board revision 3.

  • QRP Labs QLG1 GPS receiver kit. (assembled).

  • QRP Labs QCU Clock kit, PCB Revision 4, firmware c1.02a. (assembled).

  • The Limerick Sudden Z-Match Kit from the G-QRP Club

  • The Ultimate Keyer from Midnight Design Solutions

  • Dual Band Trap Dipole Antenna 20/40 meter, from Pacific Antenna. (assembled).

  • Vector Network Analyzer, nanoVNA (brand: AllAboutFun), accepts nanoVNA-H, nanoVNA original firmware.

  • Firmware installed: hugen79/NanoVNA-H20210130.bin

  • …​next time, make sure to order the NooElec nanoVNA, better quality.

  • Vector Network Analyzer, nanoVNA-H (brand: Hang Shan Store).

  • Firmware installed: hugen79/NanoVNA-H20210130.bin.

  • Antenna cable attic to shack, RF400 LTA, solid center, velocity ratio=84%, inner resistance=3.2 ohm/km, braid resistance=7.5 ohm/km.

  • TennaDipper II from QRPkits Pacific Antenna, determining the 50 ohm resonant frequency of an HF antenna or antenna tuner.

  • TAR1090 ADS-B Reciever (only local network).

  • ADS-B Exchange - MyIP - check all is working (only local network).

  • ADS-B Exchange - My Feed.

  • My RaspberryPi: Aircraft Map - Grafana Dashboard - ADSBexchange Status (pi adsb123 or admin adsb123).

  • Seven AM Radio Electronic DIY Kit, Electronic Learning Kit.

  • Seven AM Youtube assembly by Lockdown Electronics.

  • The tinySA Spectrum Analyzer from Banggood turned out to be a clone that fails test 5 and 7, serial number AD1210200008 :-/

update tinySA or nanoVNA firmware on a FreeBSD system.

The wish list.

  • Mobile/shack, Anytone AT-D578 III Plus (APRS digital and analog, receive APRS, Bluetooth, GPS, Airband)

  • Kent Twin Paddle Brass, Base plate Steel, Kit, see [Wimo DE][wimo]

VHF/UHF Radio.

Retevis RT3s

The TYT MD-380/MD-390 should be more or less same radio.
Software Version

On the radio:

  • Firmware P019.006

  • CP Ver: V1.12

Retevis RT3S GPS Handheld

  • Retevis Web page for more information.

  • Retevis RT3S Web page for specifik RT3S information.

CodePlug

The CodePlug information.

Use of MS Windows for CodePlug file.

Ailunce HD1

  • Shift to VFO mode: press [EXIT]

  • Shift from DMR to FM (switch from digital to analog): in VFO mode, press and hold [EXIT]

  • Shift between single and dual band: press [*]

Software Version

On the device serial HD11101676:

  • Firmware 2020/3/25 Version: V1.7.8-GPS

CodePlug

Retevis RT23

Software Version
Cross Band Repeater
Retevis RT23 used as crossband repeater

Use with CTCSS at 103.5 Hz (or what is preferred).

TYT TH-UV8000D

TYT TH-UV8000D dualband 10 Watt with cross band repater.

Software Version

Anytone AT-D878UVII Plus

Software Version
  • Firmware Ver 2.05

  • Hardware Ver 1.10(GD)

  • Radio Data Ver 1.00

  • Sct 3258 Ver 2.01.07BA

  • BT Ver ET12_AQQX_V10036

  • Aprs Bord Ver V103

CodePlug

HF Radio.

The Xiegu G90

G90
Figure 22. Xiegu G90
Software Version

1.78b01

See also:

  • Product home for the Xiegu G90 and other items.

  • See Xiegu.EU in Sweden.. and the download page.

  • The Groups.io has a lot of Xiegu G90 information.

  • Sinotel in UK have good information about the Xiegu products, also check the download area.

  • Radioddity with Xiegu information.

Firmware Updater

A command line tool for firmware update web-site from Dale Farnsworth. Source code is on GitHub.

  • Programming serial cable plugged in.

  • Power disconnected from the G90.

  • Start the g90updatefw

  • Re-connect the power cable.

  • G90 power on, and the program will run.

This g90updatefw will work in FreeBSD with the Linux binaries installed, and then just download the g90fwupdatefw Linux/amd64 executable from Dale Farnsworth web site.

For FreeBSD is <serial_device> connection something like /dev/cuaU3.

# g90updatefw <firmware_file> <serial_device>

DispUnit
Display
Figure 23. Display FW

Example for DispUnit update with firmware 1.77.

MainUnit
Main
Figure 24. Main Unit FW

Example for MainUnit update with firmware 1.77.

Hook-Up
Antenna

Dipole antenna.

Mobile Phone

Oister SMS Central: +45 3130 0040

Appendix A: Calculator Images

DM15
Figure 25. DM15 (credit card size, HP-15 clone)
DM15L
Figure 26. DM15L (HP-15 clone)
DM41X
Figure 27. DM41X (HP-41cx clone)
HP-35s
Figure 28. HP-35s
HP-20S
Figure 29. HP-20S
HP-39gs
Figure 30. HP-39gs
HP Prime
Figure 31. HP Prime
DM32
Figure 32. DM32 (HP-32SII clone)
HP-15C CE
Figure 33. HP-15C Collectors Edition

Appendix B: HamRadio Images

Xiegu-G90
Figure 34. Xiegu G90 HF HamRadio
Aliunce HD1
Figure 35. Aliunce HD1 VHF/UHF Digital/Analog HamRadio
Retevis RT23
Figure 36. Retevis RT23 VHF/UHF Analog HamRadio and Cross Band Repeater
Retevis RT3s
Figure 37. Retevis RT3s VHF/UHF Digital/Analog Hamradio
Anytone AT-D878UVII PLUS
Figure 38. Anytone AT-D878UVII Plus VHF/UHF Digital/Analog HamRadio
TYT TH-UV8000D
Figure 39. TYT TH-UV8000D VHF/UHF Analog HamRadio and Cross Band Repeater