Antonio Pitasi

A personal space for personal thoughts

ArchLinux

Speed Up Your Archlinux Install With Ssh #

It’s kinda easy to miss that ArchLinux can be installed by a remote machine using SSH. After booting your USB live drive you can run:


# Set up a password for root
$ passwd

# Uncomment or add "PermitRootLogin yes" to /etc/ssh/sshd_config
$ vim /etc/ssh/sshd_config

# Start the SSH server
$ systemctl start sshd.service

# Check your local IP
$ ip addr

Now you can access using ssh root@yourip from any other machines. Among the advantages: copy/paste commands directly from the Installation Guide.

Source

Avoid rebooting at every kernel update #

Everytime you update your kernel using Pacman, the older kernel’s files are removed. This lead some stuff to stop working, e.g. VirtualBox, Docker, USB serials, etc.. The only thing you can do is just reboot so the new version of the kernel will be used.

I discovered a simple hook, installable from the AUR that prevents that:


$ yay -S kernel-modules-hook

it basically backups your kernel before the update, and restores it afterward. That’s all it takes.