User Tools

Site Tools


linux:gentoo:gentoo_notes

Gentoo Notes

USE flags

Use flags are in the USE variable located at /etc/portage/make.conf.

After changing the USE flags, use this command to recompile all the packages to reflect the new flags:

emerge --update --newuse --deep --quiet @world

Rebuild the Kernel on Gentoo

  • You'll want to cd to /usr/src/linux-<version>-gentoo
  • Run make menuconfig to configure your kernel
  • Run make -j$TC && make -j$TC moddules_install && make install (where $TC is the thread count, i.e. the number of cores in your CPU+1)
  • Update grub with grub-mkconfig -o /boot/grub/grub.cfg
  • Lastly, use genkernel initramfs to update your initramfs

zsh

emerge app-shells/zsh

You'll also want to install the app-shells/zsh-completions package too. Add the following to ~/.zshrc to enable those additional completions:

autoload -U compinit promptinit
compinit
promptinit; prompt gentoo

xdm/sddm

sddb stands for Simple Desktop Display Manager and provides us with a login screen and runs as a daemon.

Use the command /etc/init.d/xdm restart to restart xdm/sddm. (TBH I'm not entirely sure what the relationship is between these two components.)

Searching for portage packages

eix is a useful command for searching portage packages. Install it with ''sudo emerge app-portage/eix``.

linux/gentoo/gentoo_notes.txt · Last modified: 2018/12/16 11:21 by dave