Project:Musl/Bluedragon

Description
"Bluedragon", named after Glaucus Atanticus or The Blue Dragon Mollusk, is a security-enhanced, fully featured XFCE4 desktop, amd64 Gentoo system, built with musl as its standard C library. It is the musl equivalent of Project:Hardened_uClibc/Lilblue Lilblue which is built on uClibc. Both systems aim to be identical with respect to the packages they provide and their configuration, with the only difference being their libc.

Since both Bluedragon and Lilblue are "security-enhanced" and "fully featured" XFCE4 dsktops, we refer you to Project:Hardened_uClibc/Lilblue Lilblue's page for a description of what this entails.

Installation
Installing Bluedragon is similar to installing Lilblue. It is a manual process where one basically extracts the distribution tarball on pre-formatted drives, chroots in, does some minor customizations (like editing  or  ), installs the bootloader and reboot.s  This is similar to a complete Gentoo installation as described in the [Handbook:Main_Page], but much easier. There is even a precompiled kernel which should support a very broad range of hardware.

Here are the steps:

1. First let's prepare a boot device and boot into it. Download the install ISO image using

Here [mirror] is any Gentoo mirror and [date] is whatever the date is of the latest release. This is just Gentoo's generic amd64 minimal install image. Its glibc based, but that's okay, it won't prevent chrooting into the musl desktop which you do later on. If you are putting this on a physical box, then burn the ISO image to a CD or DVD. For a virtual machine, just aim its virtual CD/DVD device to the ISO file. Alternatively, you may want to boot from a USB drive. Gentoo's install ISO is not your only option. You may want to try SystemRescueCD, a Gentoo-derived distro with lots of uses. Or, if you already have a working Linux system and you want to install Bluedragon to another drive, just boot off your current system and partition the other drive. Whatever your choice, boot off that device now.

2. Prepare root/boot/swap partitions, format and mount them. Using [Handbook:AMD64/Installation/Disks parted or fdisk], prepare at least three partitions. only has to hold a kernel or two, so you can get away with less, but the others are reasonable minimal:

3. Format the partitions and mount them:

4. Download and unpack the tarball image:

5. Prepare the chroot and chroot into it. Assuming you're still in the same directory as in the previous step, do

If you changed any of the above values for /dev/sda*, or you're not installing onto sda, then edit /etc/lilo.conf and. Change the values to what you picked. Finally, install lilo to your boot drive, exit the chroot and reboot:

6. Log in and enjoy! You have one user account and root. You can only log into the desktop as user gentoo, but can  or   root.

Maintaining a Bluedragon system
Bluedragon is Gentoo, not a separate distro. Gentoo covers many possibilities and building all userland against musl is just one choice. You can learn how to work with a Gentoo system by reading the [Handbook:AMD64]. Skip the section on "Installing Gentoo" since we've already done that; but take a look at "Working with Gentoo", "Working with Portage" and "Gentoo Network Configuration".

Reporting Bugs and Feature Requests

 * Submit bugs to: Gentoo's Bugzilla
 * Assign to: musl@gentoo.org
 * CC: gentoo-musl@lists.gentoo.org