Systemd/Installing Gnome3 from scratch

To install a desktop environment such as GNOME 3 requires the use of systemd but the present Gentoo Handbook is based on the use of OpenRC. It just indicates that changes have to be made when using systemd but never tells the user where the changes occur.

As for the systemd page, it mainly concentrate on an update starting from an existing system. Thus, it can be a kind of challenge, especially for a new comer to Gentoo, to install a GNOME 3 desktop from scratch. The purpose of this page is to indicate where changes have to be made to the current Gentoo Handbook to do so.

The indications given refer mainly to an install.

Base system installation
Hereafter are the modifications to bring to the Gentoo Handbook for an platform.

Part 1 to 5 of the handbook
No changes here.

Choosing the right stage3 tarball
A stage3 tarball already configured for systemd is available for most architectures. You will find it along with the other stage3 tarballs in the autobuilds directory of your preferred mirror. To save time and effort, use this tarball when installing the base system.

Choosing the right profile
Select the profile ending in :

On the platform there are also two other profiles ending in. Select if a desktop environment is not required for the system (servers, etc). A KDE option is also available.

An asterisk indicates the currently selected profile. Verify the correct profile has been selected:

Updating the system
The choice of the profile implies a lot of changes in the list of packages to be installed. Perform a full system update before going on:

Configuring the kernel
When planning to include support for a graphic card that requires proprietary binary blobs be sure to emerge the package. Otherwise the kernel will not compile.

It may not be necessary at this stage, but it does not hurt to add the VIDEO_CARDS variable, set with an appropriate video card value, to.

For a quick and dirty kernel, use option menuconfig with genkernel, and optionally lvm and/or mdadm when using LVM and/or RAID. Do not forget to install and/or  if you intend to use LVM and/or RAID. Please see LVM for details about LVM.

Select the systemd init system. You may leave the Openrc option set (if you wish to enable both Openrc and systemd), or you can disable Openrc here, to make the kernel smaller.

When using LVM activate the following kernel options:

Include settings for your graphic card referring to the ad hoc page on this wiki, most currently radeon and nvidia-drivers.

Alternatively, if you want to tailor the kernel yourself, use "make menuconfig", choose systemd (and optionally Openrc) in the Gentoo Linux options as shown above, and select the rest of the kernel options yourself.

When you have configured the kernel, save the configuration, exit the menuconfig dialog, and proceed as explained in the Handbook.

If you need an initramfs file (and you probably will need one), dracut works very well.

The --force option is necessary because the generated initramfs file will have the same name as the initramfs file used to boot the installation system.

Defining the keyboard
With systemd, setting  into  will be effectless. Instead, you should set this into.

The various keymaps are stored into subdirectories of  and can be listed with the following command

Once you have you keymap listed, select it with the following command, replacing  with your own keymap:

Double check by running:

System logger
syslog-ng conflicts with systemd systemd creates  as datagram socket   so you will need to tell syslog-ng to read from a unix-dgram instead of a unix-stream if you are hitting problems and are using "wrong" stream:

Should be replaced with:

In order to use the syslog-ng service in systemd.

To enable syslog-ng use the following command:

To disable it, use:

Networking tools
dhcpcd will not be started at boot unless you enable dhcpcd.service with systemd.

Refer to the systemd page to know how to do it before rebooting. Otherwise you will be able to do so after boot with:

Configuring the bootloader
If you are using lvm, add the  USE flag before emerging grub.

After emerging, edit the  configuration file and add the following line (if using ext4 for root partition):

Then run:

Finalizing the installation
It may be necessary to enable and start dcpcd.service and to use systemd to define keyboard layout (see the systemd page).

/etc/portage/make.conf
Don't forget to add the following lines to the file:

Then emerge the drivers:

Kernel settings
Follow the page X server to set the kernel parameters for evdev and the kernel parameters for your graphic card if not already done. Recompile the kernel

Check startx
In order to check the x server install and :

Then use the following command:

If everything is correct, a graphic page with some terminals inside will appear. Quit by pressing ++ and remove and :

GNOME 3 installation
You are now ready to install GNOME 3:

In order to have the GNOME Display Manager after boot, enable it:

Reboot and enjoy GNOME 3!