My Ubuntu 22.04 preferences

Warning This page is just a personal note. Don’t expect this page to be a good reference. new-pc, ssh-pc, and old-pc Let’s name three PCs as: new-pc: on which Ubuntu 22.04 will be installed ssh-pc: operates new-pc via ssh and VNC old-pc: which was previous main PC (Ubuntu 20.04); maybe ==new-pc or ==ssh-pc 1 2 3 4 setup via ssh/VNC new-pc (Ubuntu 22.04) <--------------------- ssh-pc (Ubuntu, hacked) old-pc (Ubuntu 20.

Setup Ubuntu 20.04 (apt, snap, flatpak)

Part of My Ubuntu 22.04 preferences. apt: check diff (old-pc vs new-pc) 1 2 3 4 5 6 7 8 9 10 11 12 # on ssh-pc: mkdir ~/logs/ ssh OLD_PC_IP apt list --installed > ~/logs/ubuntu_apt-list.old.txt ssh NEW_PC_IP apt list --installed > ~/logs/ubuntu_apt-list.new.1.txt # 20.04 focal # 22.04 jammy sed -E 's/focal/jammy/g' ~/logs/ubuntu_apt-list.old.txt > ~/logs/ubuntu_apt-list.old.sed.txt sed -E 's/\/.+$//g' ~/logs/ubuntu_apt-list.old.txt > ~/logs/ubuntu_apt-list.old.name-only.txt sed -E 's/\/.+$//g' ~/logs/ubuntu_apt-list.new.1.txt > ~/logs/ubuntu_apt-list.new.1.name-only.txt # delta: https://github.

[NetBSD] Using latest-pkgsrc built in home directory

On NetBSD, some packages built with /usr/pkgsrc/ or installed via pkgin are too old for me. It applies especially to modern/actively-developed softwares, such like clang or fish. But using only the latest pkgsrc means living on the bleeding-edge. And they get to be buggy and builds get to be broken only when we are busy (you know, it’s called Murphy’s law). So I use both: System’s stable packages (/usr/pkg/), installed with /usr/pkg/bin/pkgin Latest pkgsrc Even when packages in latest pkgsrc are broken, we can use stable packages!

Enable serial console on Ubuntu 20.04

serial consoleserial console " serial console にほんご 1 2 3 sudo cp -nv /etc/default/grub /etc/default/grub.orig sudo cp -nv /boot/grub/grub.cfg /boot/grub/grub.cfg.orig sudo vim /etc/default/grub /etc/default/grub: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ## remove (optional): # GRUB_TIMEOUT_STYLE=hidden ## change: # (optional) # GRUB_TIMEOUT=0 GRUB_TIMEOUT=2 ## add: GRUB_TERMINAL="console serial" GRUB_SERIAL_COMMAND="serial --speed=115200" ## change: # GRUB_CMDLINE_LINUX="" GRUB_CMDLINE_LINUX="console=tty1 console=ttyS0,115200" Detailed explanation By removing GRUB_TIMEOUT_STYLE=hidden and giving GRUB_TIMEOUT=2, GRUB menu appears on boot.