Since I haven't updated my bootable Gentoo image since years, and I was in ineed of a fully fledged distro that I could use anywhere and everywhere I've updated my old gentoo image with some new Features. The most important being EFI support - this means that you have to enable EFI in VirtualBox but moreover it means that you can flash this image to an USB stick and boot your PC with it.
The features that have changed in this image compared to the previous gentoo image are the following:
- Dropped BIOS support in favour of EFI
- Dropped AUFS support in favour of overlayfs
- Enabled persistence, this means it's more of a USB stick than a livecd now
- Added more IDEs and tools
- KDE as default desktop environment
- Root password "toor" and no password for user gentoo
- VirtualBox guest additions enabled by default
- Included packages like the brave browser, skype, wireshark, kdevelop, libreoffice
To write the image to an USB stick instead of using it in VirtualBox the following commands can be used:
VBoxManage clonehd Gentoo_2020.vdi gentoo.img --format RAW
dd if=gentoo.img of=/dev/sdX
Then you can change the size of the second partition to match your block device like so:
And you're all set, you should be able to boot your USB stick in any UEFI system now
Once you load this image in VirtualBox, you will be presented with a login screen. Just leave the password empty, hit enter and you will be presented with the following desktop:
Since this image has persistence, meaning your changes get saved to the filesystem, it's a good idea to set the root password to something more secure by using the command:
sudo passwd root
In a terminal. The default password for root/sudo is "toor"
If you save a lot of data on a Virtual Machine using this image, it's a good idea to squash the filesystem from time to time. On boot you will be presented with the following menu:
Where you can choose the option "compress root filesystem". This automatically compresses the root filesystem into something manageable, and optimizes system performance when booting from slow media.