Linux

Pacharapol Withayasakpunt Pacharapol Withayasakpunt
Mon, August 2, 2021

If you want to fully backup home folder (or folder specified by $HOME environment variable, or ~), it's as simple as fully backuping everything in that folder, including hidden files and folders. (cp -r $HOME/* $HOME/.* $TARGET/); or better yet, creating a dedicated HOME partition.

However, you won't get a clean reinstall. Also, on changing desktop environments (DE), there may be some (undesirable) changes carried over from the old desktop environment. Not to mention that, there are some cached files and unimportant carried over to the backup, in case of external backup as well.

Therefore, in case of external backup, I recommend using rsync, using commands similar to the following,

rsync -axXv --exclude={"/.cache/","/.local/share/Trash/","/Downloads/"} --exclude-from=excluded.txt $HOME/ $TARGET/ (--dry-run)

Noted that, the trailing slashes are needed, and omitting has a lot of effects.

In case of HOME partition, you might consider deleting some files and folders in ~/.local/share/, if that interferes with desktop environment changing.

Pacharapol Withayasakpunt Pacharapol Withayasakpunt
Mon, April 26, 2021

Updated 2021-07-26

So, I happened to vanilla installed Arch Linux + incomplete KDE and several eye candies.

Caveat to installing

  • Remove secure boot
  • You need Internet Connection
    • If you don't have Wifi driver, you might need an Android device, with USB cable
    • rfkill unblock wifi is required in my case, even if there is Wifi driver bundled with the kernel
    • You might need git to clone AUR repo to install Wifi drivers.
  • Install networkmanager. No, there won't be iwctl or networkmanager, if you don't install it.
    • KDE will need networkmanager
    • Xfce will need networkmanager and network-manager-applet (yes, with hyphen between network and manager)
  • User management and install sudo
  • Install GRUB, but switch to rEFInd later, with cp /etc/os-release /boot/etc/os-release
  • Install yay. I know that Ubuntu / Debian do have apt search, but yay -Ss, yay -Qs searches the whole AUR and looks more powerful
  • Install missing drivers
  • Install not only plasma, but also kde-applications, just to uninstall many later. (Also installed sddm. Liked better than lightdm)