Pages from the fire

Linux Notes

Last updated: 2025-09-28

Linux command reference
Bash creature comforts
GNOME
Neovim etc.

Measuring bandwidth with iPerf3.

Start iperf3 server on target machine “hostname”

iperf3 -s

Connect to “hostname” and determine speed of connection

iperf3 -c hostname

Login as different user on a machine and share screen.

Grant “user2” access to your display on the (non-network) local machine

xhost + local:user2

Open a login shell as “user2”

su - user2

Use pdfjam to extract pages from pdf. Pdfjam is a user-friendly layer over the powerful pdfpages package.

pdfjam <input file> <page ranges> -o <output file>

Make a bootable USB from an iso image

(Use it for booting Linux, updating firmware, anything where a bootable iso image is supplied)

  1. Plug in the USB drive
  2. Find which device the drive is labeled as using lsblk. say it’s /dev/sdx
  3. Use dd to create a bootable USB
    dd if=linuxmint-22.1-xfce-64bit.iso of=/dev/sdax bs=8M status=progress && sync
    The sync at the end ensures all the data is written to the drive. status=progress is nice to get an indication nothing’s frozen up.

mDNS: Local hostname resolution

Multicast DNS (mDNS) enables machines to resolve devices on the LAN using <hostname>.local scheme. The implementation for Linux is Avahi. Ubuntu installs this automatically, but some other distributions, like openSUsE, do not. The arch wiki page is a great resource for setting it up yourself.

ControlMaster: persist ssh connections

ControlMaster can be used to persist/reuse ssh connections e.g. for rsync

Example: add to ~/.ssh/config

ControlMaster auto
ControlPath ~/.ssh/control:%C
ControlPersist 5m

tmux

Open a new tab

<ctrl>+b c

Switch to a tab

<ctrl>+b 0...9

Add setw -g mouse on in ~/.tmux.conf to enable scrollback with mouse scroll.

Synology NAS

Topic sheets

  1. Gnome
  2. Utilities
  3. Bash multiple history files
  4. Multiple Dosbox configurations
  5. Writing

Software I use

General

sudo apt install git flatpak simple-scan

Flatpaks

flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

flatpak install flathub org.mozilla.firefox
flatpak install flathub io.github.dosbox-staging
flatpak install flathub net.sf.VICE

Flatpack commandlines

flatpak run --filesystem=/home/kghose/RetroComputing/dosbox io.github.dosbox-staging

flatpak run --filesystem=/home/kghose/RetroComputing/c64/ net.sf.VICE

flatpak run org.mozilla.firefox

Examine permissions

flatpak info --show-permissions org.mozilla.firefox

Upgrading firmware (Thinkpads)

fwup is the easiest but may not have the most up to date firmware from the manufacturer. Follow the basic usage flow described on the project page.

fwupdmgr get-updates
fwupdmgr update

Manufacturers may put out a bootable image. You can use dd to create a bootable USB (steps are noted on this page).

Ubuntu: Stop apt from installing snaps

From ask Ubuntu

sudo apt-get autopurge snapd
sudo apt-mark hold snapd

Ubuntu: Install Firefox through apt

Follow the instructions on the Firefox page