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.

[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.

Send source patches with (G Suite) and Thunderbird

にほんご Gmail’s web mail client is not suitable for sending code patches, since it doesn’t send the email contents as is. TABs are converted to white spaces, trailing spaces are trimmed. patch collapsed via web Gmailpatch collapsed via web Gmail " patch collapsed via web Gmail So the patch cannot be applied with git am or git apply! 1 2 3 4 5 $ git apply < patch.txt error: patch failed: gdb/ChangeLog:1 error: gdb/ChangeLog: patch does not apply error: patch failed: gdb/darwin-nat.