User Tools

Site Tools


linux:gentoo:gentoo_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:gentoo:gentoo_notes [2018/12/14 23:31]
dave created
linux:gentoo:gentoo_notes [2018/12/16 11:21] (current)
dave
Line 1: Line 1:
-===== Rebuild the Kernel ==+===== Gentoo Notes == 
 + 
 +=== Helpful Links == 
 + 
 +[[https://​wiki.gentoo.org/​wiki/​Gentoo_Cheat_Sheet|Gentoo Cheat Sheet]] 
 + 
 +==== 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: 
 + 
 +<​code>​ 
 +emerge --update --newuse --deep --quiet @world 
 +</​code>​ 
 + 
 +==== Rebuild the Kernel ​on Gentoo ​==
  
   * You'll want to cd to ''/​usr/​src/​linux-<​version>​-gentoo''​   * You'll want to cd to ''/​usr/​src/​linux-<​version>​-gentoo''​
Line 5: Line 21:
   * 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)   * 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''​   * 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:​
 +
 +<​code>​
 +autoload -U compinit promptinit
 +compinit
 +promptinit; prompt gentoo
 +</​code>​
 +
 +==== 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.1544859107.txt.gz · Last modified: 2018/12/14 23:31 by dave