TL;DR - Arch is good. Ubuntu is good. It's all good.
I built a home theatre system for my dad using Arch back in 2008. At the time he was so tech un-savvy that I had to show him how to "right click". Arch has become easier since, and it sounds like your dad is a hell of a lot more competent than mine was. In terms of usability I wouldn't think Arch is a problem.
I also used it for my mom's laptops for about 5-6 years. No usability problems, but I eventually switched to Ubuntu for that purpose because she uses some industry-specific proprietary software only distributed as a deb.
The one issue I always had with Arch as a system for my parents was updates. Leaving Arch without updates for a year and then telling them how to install something usually didn't work. Eventually (after having to do "tech support" while visiting every christmas) I just set up a cronjob to update every night and haven't had an update break anything since I set it up (3-4 years ago).
Regarding Debian/Ubuntu, you can get rid of the bloat by installing using debootstrap --variant=minbase and setting up the system the same way you do with Arch. (Make sure you disable the installation of recommended/suggested packages in apt.conf.d [before installing anything] if you want the same level of minimalism, though.) If going for Ubuntu, I'd recommend an LTS release just because you probably don't want to have to upgrade your parents' OS every six months.
I started with Linux a few years before college, but took a Linux course in college anyway. The big issue I remember from that class is that it was too much of a "0 to 100" crash course into real (read. boring) sysadmin work with CentOS.
I did very well in that class because I had prior Linux experience, but most of my colleagues seemed to hate it because it stripped all the "fun" out of Linux.
Additionally, having a clear goal of what you're going to build with Linux might be a good idea too. (Rather than "here are some arbitrary commands".)
The most practical thing I can think of is using a pacman hook to create a btrfs snapshot when installing packages.
The way you're doing it right now doesn't make a lot of sense because you don't really know what you're testing. Watching a VM boot up doesn't tell you if anything is broken unless it's something showstopping like a kernel. Furthermore the VM is a different environment from the host, so things like drivers would be different anyway. Ditto for mostly anything network-related.
(If you wanted the VM approach to really work, you'd have to start writing unit tests with something like Testinfra or Serverspec, and automate the whole thing, which would be a ridiculous overkill for your use-case.)
The simplest thing is probably to just do what /u/K900_ says and not worry about it. If you have to fix something once every 5 years, so be it.
FYI - If you're mounting the subvolume using the kernel line during early boot, and the line also includes 'rw', you can remove the root filesystem from /etc/fstab (or use the noauto option). This means the filesystem isn't unmounted and remounted during boot, and should speed up booting a bit.
You shouldn't need the btrfs hook. You might need to add rootfstype and rootflags to your /etc/default/grub file. Noatime and compress=lzo are sensible for most things. You can also add 'autodefrag' for rotating disks, but it's not recommended for SSDs.
Not sure if there's a "best" practice for this, but this is what I do:
A subvolume for the root partition, including /boot. I usually name this after the distro (arch, stretch, xenial, etc) to make for more flexible multi-boot setups.
A subvolume for /home.
Subvolumes can go in other subvolumes, so you can name/orgranize your snapshots however you like. Snapper (for instance) uses a .snapshots subvolume inside each subvolume it is configured for.
I keep /boot in the root subvolume because it allows you to snapshot the entire system, allowing you to rollback even if there's a broken kernel or initramdisk or whatever.
Even by that second definition Arch has improved a lot. Ten years ago breakages due to software updates were a lot more common than they are today.
Also, I think Arch's relative instability vs something like Debian can be mitigated with modern tools and techniques like configuration management, snapshots, containers, etc.
I think the problem is that *nix ricing is at a point where we've seen everything we're going to see for *nix on desktops and laptops.
Over the years things come and go out of style. Blackbox clones (Openbox, Fluxbox, etc) used to be the in-thing, then it was dynamic tiling (dwm, awesome), and nowadays i3 and bspwm seem to be the most popular. But really none of this has been new for a long time.
The only way we'll start to see more interesting stuff here is looking toward interfaces other than the keyboard/mouse and making them fit better into the "unix way" or whatever. Touchscreens, remotes, eye-trackers - that sort of thing.
For EFI, GRUB will install a binary in $esp/arch/grubx64.efi or $esp/ubuntu/grubx64.efi. GRUB also updates the NVRAM with an entry for that distro. (Use 'efibootmgr' to work with the NVRAM).
rEFInd goes in $esp/refind/. If you don't configure it at all, it should autodetect any .efi binaries in $esp.
Obviously there's more than one way to do this. I suggested it because it's a quick way to get a dual-boot working with UEFI.
I hear you. Ubuntu's package selection is a bit lacking, and I do miss the AUR when using it. Sometimes outdated packages are a problem, but I find it less of an issue in recent years. That said, it's still Linux, and you can make it into whatever you want, really. It's not like they're making you use Windows. :)
EDIT: One other thing. I went through the same thing you did a few years ago starting a devops job. One thing I found useful coming from Arch to Ubuntu was installing ubuntu the "Arch way" using debootstrap --variant=minbase, and tuning apt to not install recommended/suggested software. You end up with a lightweight Arch-like system, sorta.
The easiest way is probably just to install GRUB from arch. This should put a file in $ESP/arch/grubx64.efi that rEFInd can call.
This way is actually nice for dual-booting since you can configure GRUB for each distro and not have to worry about it affecting the other.
rEFInd should detect any .efi entries by default as long as you didn't disable it.
Also, you can customize Ubuntu almost as much as you can customize Arch. Maybe that's a better solution than being "that guy"?
I use btrfs snapshots to sync a production NFS cluster, and hit several thousand snapshots a day. Haven't noticed any perfomance issues.
The only issue I ever have is disk space - since snapshots go more and more out of drift over time, rendering deduplication less effective. This shouldn't be a major issue with Docker, though.
It sounds like you have a good amount of "general" Linux knowledge at this point, but need a bit of focus.
Maybe try studying for a certification? You don't have to actually get a cert, just find some study guides and follow along. Maybe look at something like the RHCE and use the learning requirements as a checklist.
There's a list floating around Linux subs that pops up whenever this sort of question is asked. It's a good reference if you want some ideas of something to focus on. Some of this stuff is a bit dated now, and it focuses more on "enterprise" Linux administration, but it's worth a look. List is here.
TL;DR - Arch is good. Ubuntu is good. It's all good.
I built a home theatre system for my dad using Arch back in 2008. At the time he was so tech un-savvy that I had to show him how to "right click". Arch has become easier since, and it sounds like your dad is a hell of a lot more competent than mine was. In terms of usability I wouldn't think Arch is a problem.
I also used it for my mom's laptops for about 5-6 years. No usability problems, but I eventually switched to Ubuntu for that purpose because she uses some industry-specific proprietary software only distributed as a deb.
The one issue I always had with Arch as a system for my parents was updates. Leaving Arch without updates for a year and then telling them how to install something usually didn't work. Eventually (after having to do "tech support" while visiting every christmas) I just set up a cronjob to update every night and haven't had an update break anything since I set it up (3-4 years ago).
Regarding Debian/Ubuntu, you can get rid of the bloat by installing using
debootstrap --variant=minbaseand setting up the system the same way you do with Arch. (Make sure you disable the installation of recommended/suggested packages in apt.conf.d [before installing anything] if you want the same level of minimalism, though.) If going for Ubuntu, I'd recommend an LTS release just because you probably don't want to have to upgrade your parents' OS every six months.First you want to convert the disk image to a raw format. For .vdi images:
For .qcow images use
qemu-img convert.Then (in a livecd environment)
dd if=disk.img of=/dev/sda (or whatever). Resize partitions/filesystems as necessary.I started with Linux a few years before college, but took a Linux course in college anyway. The big issue I remember from that class is that it was too much of a "0 to 100" crash course into real (read. boring) sysadmin work with CentOS.
I did very well in that class because I had prior Linux experience, but most of my colleagues seemed to hate it because it stripped all the "fun" out of Linux.
Additionally, having a clear goal of what you're going to build with Linux might be a good idea too. (Rather than "here are some arbitrary commands".)
And most of the time the "manual intervention" is a bash one-liner.
The last time I remember an update actually breaking anything was an openssl upgrade circa 2010.
Basically. I don't have a separate boot, though. It makes rolling back easier if they're the same subvolume.
The most practical thing I can think of is using a pacman hook to create a btrfs snapshot when installing packages.
The way you're doing it right now doesn't make a lot of sense because you don't really know what you're testing. Watching a VM boot up doesn't tell you if anything is broken unless it's something showstopping like a kernel. Furthermore the VM is a different environment from the host, so things like drivers would be different anyway. Ditto for mostly anything network-related.
(If you wanted the VM approach to really work, you'd have to start writing unit tests with something like Testinfra or Serverspec, and automate the whole thing, which would be a ridiculous overkill for your use-case.)
The simplest thing is probably to just do what /u/K900_ says and not worry about it. If you have to fix something once every 5 years, so be it.
FYI - If you're mounting the subvolume using the kernel line during early boot, and the line also includes 'rw', you can remove the root filesystem from /etc/fstab (or use the noauto option). This means the filesystem isn't unmounted and remounted during boot, and should speed up booting a bit.
e.g. in /etc/default/grub
in /etc/fstab
You shouldn't need the btrfs hook. You might need to add rootfstype and rootflags to your /etc/default/grub file. Noatime and compress=lzo are sensible for most things. You can also add 'autodefrag' for rotating disks, but it's not recommended for SSDs.
Not sure if there's a "best" practice for this, but this is what I do:
Subvolumes can go in other subvolumes, so you can name/orgranize your snapshots however you like. Snapper (for instance) uses a .snapshots subvolume inside each subvolume it is configured for.
I keep /boot in the root subvolume because it allows you to snapshot the entire system, allowing you to rollback even if there's a broken kernel or initramdisk or whatever.
There's a thread like this every time a new kernel is released.
The biggest issue Arch users tend to have is tinkering and breaking stuff themselves. A good defence against this is using btrfs snapshots.
Now you can roll back to any previous snapshot quickly if you break something.
Even by that second definition Arch has improved a lot. Ten years ago breakages due to software updates were a lot more common than they are today.
Also, I think Arch's relative instability vs something like Debian can be mitigated with modern tools and techniques like configuration management, snapshots, containers, etc.
I always thought Arch was the sweet spot for learning Linux. A happy middle ground between something like Ubuntu and something like Gentoo.
Honestly, I'm a little surprised that an Arch Linux setup is being assigned as homework.
Read the installation guide and go from there.
If you're completely new to Arch and you need something for school ASAP, are you sure Arch is the right choice? Also, why does it have to be Openbox?
I think the problem is that *nix ricing is at a point where we've seen everything we're going to see for *nix on desktops and laptops.
Over the years things come and go out of style. Blackbox clones (Openbox, Fluxbox, etc) used to be the in-thing, then it was dynamic tiling (dwm, awesome), and nowadays i3 and bspwm seem to be the most popular. But really none of this has been new for a long time.
The only way we'll start to see more interesting stuff here is looking toward interfaces other than the keyboard/mouse and making them fit better into the "unix way" or whatever. Touchscreens, remotes, eye-trackers - that sort of thing.
Fantastic.
For EFI, GRUB will install a binary in $esp/arch/grubx64.efi or $esp/ubuntu/grubx64.efi. GRUB also updates the NVRAM with an entry for that distro. (Use 'efibootmgr' to work with the NVRAM).
rEFInd goes in $esp/refind/. If you don't configure it at all, it should autodetect any .efi binaries in $esp.
Obviously there's more than one way to do this. I suggested it because it's a quick way to get a dual-boot working with UEFI.
I hear you. Ubuntu's package selection is a bit lacking, and I do miss the AUR when using it. Sometimes outdated packages are a problem, but I find it less of an issue in recent years. That said, it's still Linux, and you can make it into whatever you want, really. It's not like they're making you use Windows. :)
EDIT: One other thing. I went through the same thing you did a few years ago starting a devops job. One thing I found useful coming from Arch to Ubuntu was installing ubuntu the "Arch way" using
debootstrap --variant=minbase, and tuning apt to not install recommended/suggested software. You end up with a lightweight Arch-like system, sorta.The easiest way is probably just to install GRUB from arch. This should put a file in $ESP/arch/grubx64.efi that rEFInd can call.
This way is actually nice for dual-booting since you can configure GRUB for each distro and not have to worry about it affecting the other.
rEFInd should detect any .efi entries by default as long as you didn't disable it.
Also, you can customize Ubuntu almost as much as you can customize Arch. Maybe that's a better solution than being "that guy"?
I use btrfs snapshots to sync a production NFS cluster, and hit several thousand snapshots a day. Haven't noticed any perfomance issues.
The only issue I ever have is disk space - since snapshots go more and more out of drift over time, rendering deduplication less effective. This shouldn't be a major issue with Docker, though.
It sounds like you have a good amount of "general" Linux knowledge at this point, but need a bit of focus.
Maybe try studying for a certification? You don't have to actually get a cert, just find some study guides and follow along. Maybe look at something like the RHCE and use the learning requirements as a checklist.
There's a list floating around Linux subs that pops up whenever this sort of question is asked. It's a good reference if you want some ideas of something to focus on. Some of this stuff is a bit dated now, and it focuses more on "enterprise" Linux administration, but it's worth a look. List is here.
It shouldn't matter if you use a separate partition if you are using the same disk anyway.
What parts do you think need an update?
The Pacman rosetta has been my go-to reference when using yum and apt for years. Thank you.
Yeah, listen to this guy. DIY is the enemy of good crypto.
The itter-time slows down operations involving keys themselves (that's the point), but once it's mounted there doesn't seem to be a difference.