mental note: commands to be done in a fresh dev VM

Set the serial console as output:

# grubby --args="console=tty0 console=ttyS0" --update-kernel=ALL

Configure grub to use the serial port as console: Edit /etc/defaults/grub:

GRUB_SERIAL_COMMAND="serial --unit=0 --speed=115200"
GRUB_TERMINAL=serial

Update grub config:

grub2-mkconfig > /etc/grub2.cfg

Install development tools:

# dnf -y group install "development tools"
# dnf install bc openssl openssl-devel ncurses-devel dwarves vim zstd

Set up the .gitconfig

Edit bashrc:

EDITOR=vim
MAKEJ=$(( `nproc` * 2 ))
alias mk='make -j $MAKEJ'
alias mi='make -j $MAKEJ && make modules_install && make install'
alias mr='make -j $MAKEJ && make modules_install && make install && reboot'