Systemd & Installing Gnome3 from scratch
Systemd & Installing Gnome3 from scratch
Required systemd system instead of openrc.
1. Choosing the right profile
2. Select the profile ending in gnome/systemd
# eselect profile set default/linux/amd64/10.0/desktop/gnome/systemd
3. Updating the system
# emerge --ask --update --deep --newuse @world
4. Configuring the kernel
Do not install genkernel when using systemd, Use genkernel-next instead
# emerge --ask sys-kernel/genkernel-next
# emerge --ask sys-kernel/linux-firmware
# genkernel --menuconfig all
Enable systemd config.
Gentoo Linux ---->
Support for init systems, system and service managers ---->
[*] Openrc
[*] systemd
5. Create mtab file
# ln -s /proc/self/mounts /etc/mtab
6. Configure the bootloader/grub
Append parameters to the Linux kernel command line
FILE : /etc/default grub : Example grub-mkconfig config for systemd
# Append paramters to the Linux kernel command line
GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd"
# mkdir /boot/grub
# grub-mkconfig -o /boot/grub/grub.cfg
# grub-install /dev/sda
7. Installing necessary system tools
# systemctl enable syslong-ng
# systemctl enable dhcpcd.service
8. Install X
Append config for X driver
FILE : /etc/portage/make.conf
INPUT_DEVICES="evdev"
Install xorg-drivers packages
# emerge --ask x11-base/xorg-drivers
Verify x operation using by xterm and twm
# emerge --ask x11-terms/xterm x11-wm/twm
# startx
# emerge --ask --unmerge x11-terms/xterm x11-wm/twm
Install Gnome and register gdm servcie
# emerge --ask gnome
# systemctl enable gdm.service
References
1. https://wiki.gentoo.org/wiki/Systemd/Installing_Gnome3_from_scratch (2016.11.07)
2. https://wiki.gentoo.org/wiki/Systemd/ko (2016.11.07)