Skip to main content

After installation

Language

Systemwide

Edit the keymaps configuration

nano /etc/conf.d/keymaps

Set the keyboard layout and find or add this line:

keymap="de"
Replace "de" with your specific German variant if needed:

    de — Standard German
    de-latin1 — German (Latin 1)
    de-nodeadkeys — German without dead keys

Apply the changes

For the current session:

rc-service keymaps restart

For persistence, make sure the keymaps service is enabled:

rc-update add keymaps boot

Keyboard Layout within LUKS

Fixing Keyboard Layout During LUKS Password Entry on Gentoo

When you enter your LUKS password at boot, the keyboard layout defaults to QWERTY (us), not your systemwide German (de) layout. This is because the keymap is loaded after the initramfs runs. Solution: Set keyboard layout in the initramfs

You need to configure the initramfs to include the German keymap. On Gentoo, this depends on your initramfs generator.

For dracut (most common)

Edit /etc/dracut.conf.d/ or /etc/dracut.conf:

nano /etc/dracut.conf

Add or modify this line:

keyboard_layout="de"

Then regenerate the initramfs:

dracut -f

Emerge Cinnamon

emerge --ask gnome-extra/cinnamon

Start daemons

rc-update add dbus default
rc-update add openrc-settingsd default
rc-update add elogind boot
rc-service dbus start
rc-service openrc-settingsd start

Install Lightdm and Dependencies

emerge --ask x11-base/xorg-server
emerge --ask app-admin/sudo
emerge --ask x11-misc/lightdm
emerge --ask x11-apps/xdm
emerge --ask gui-libs/display-manager-init
emerge --ask lightdm-gtk-greeter

Configure Sudo

add user to wheel group

usermod -a -G wheel username

edit sudoers file

visudo
username ALL=(ALL:ALL) ALL
username  ALL=(root) NOPASSWD: /sbin/reboot
username  ALL=(root) NOPASSWD: /sbin/halt
username  ALL=(root) NOPASSWD: /sbin/poweroff
username  ALL=(root) NOPASSWD: /sbin/shutdown
%wheel  ALL=(root) NOPASSWD: /sbin/reboot
%wheel  ALL=(root) NOPASSWD: /sbin/halt
%wheel  ALL=(root) NOPASSWD: /sbin/poweroff
%wheel  ALL=(root) NOPASSWD: /sbin/shutdown

make.conf

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-O2 -pipe -march=native"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

# Parallel jobs – adjust to your CPU/RAM (rough rule: min(nproc, RAM_GB/2))
MAKEOPTS="-j6 -l6"

# Useful global USE flags for a desktop system (add/remove as needed)
USE="X pulseaudio eds gstreamer networkmanager nls gtk-doc gnome-keyring wayland icu dbus elogind udev -systemd opengl vulkan -qt5 -kde crypt"

ACCEPT_KEYWORDS="~amd64"

ACCEPT_LICENSE="*"

INPUT_DEVICES="libinput"

# NOTE: This stage was built with the bindist USE flag enabled

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C.UTF-8
GRUB_PLATFORMS="efi-64"

Install Librewolf If you don’t have eselect-repository installed, install it first:

sudo emerge --ask app-eselect/eselect-repository

Add LibreWolf’s Gentoo overlay, sync it, then emerge the package:

sudo eselect repository add librewolf git https://codeberg.org/librewolf/gentoo.git
sudo emerge --sync librewolf
sudo emerge --ask www-client/librewolf