Gentoo Installation History

guide linux gentoo

gentoo-banner

Gentoo Installation Bash History

Full installation process of gentoo from chroot command. With all problems and solving which was included. The history includes installation of xfce4 with all deps and plugins, atom, kitty, alacritty, and several other apps.

In addition, there is a zip file for settings of portage.

Gentoo Handbook

https://wiki.gentoo.org/wiki/Handbook:AMD64

Gentoo Cheat Sheet

https://wiki.gentoo.org/wiki/Gentoo_Cheat_Sheet

Layman

https://wiki.gentoo.org/wiki/Layman

Portage Configuration

portage.tar

Bash History from Chroot

    1  source /etc/profile
    2  export PS1="(chroot) ${PS1}"
    3  mount /dev/sdb1 /boot
    4  emerge-webrsync
    6  eselect news read | less
    7  emerge --sync
    8  eselect profile list
    9  eselect profile set 5 (default/linux/amd64/17.1/desktop)
   10  eselect profile list
   12  emerge --info | grep ^USE
   14  emerge --ask --verbose --update --deep --newuse @world
   15  etc-update
   problem with circle dependencies in the default/linux/amd64/17.1/desktop
   19  USE="-harfbuzz" emerge -l virtual/libintl app-arch/bzip2 virtual/libiconv media-libs/libpng dev-libs/lipcre media-libs/freetype media-gfx/graphite2 sys-apps/util-linux dev-libs/glib media-libs/harfbuzz --nodeps
   20  USE="-harfbuzz" emerge -l virtual/libintl app-arch/bzip2 virtual/libiconv media-libs/libpng dev-libs/libpcre media-libs/freetype media-gfx/graphite2 sys-apps/util-linux dev-libs/glib media-libs/harfbuzz --nodeps
   21  USE="-harfbuzz" emerge -l virtual/libintl app-arch/bzip2 virtual/libiconv media-libs/libpng dev-libs/libpcre media-libs/freetype sys-apps/util-linux dev-libs/glib media-libs/harfbuzz --nodeps
   22  USE="-harfbuzz" emerge -l virtual/libintl app-arch/bzip2 virtual/libiconv media-libs/libpng dev-libs/libpcre media-libs/freetype sys-apps/util-linux media-libs/harfbuzz --nodeps
   23  emerge -l media-libs/freetype media-libs/harfbuz
   24  emerge -l media-libs/freetype media-libs/harfbuzz
   25  emerge --ask --verbose --update --deep --newuse @world
   28  qlist -I | less
   29  ls /usr/share/zoneinfo
   30  echo "Europe/Prague" > /etc/timezone
   31  emerge --config sys-libs/timezone-data
   37  nano -w /etc/locale.gen
   38  locale-gen
   39  eselect locale list
   40  eselect locale set 4
   41  eselect locale list
   43  nano /etc/env.d/02locale 
   44  env-update && source /etc/profile && export PS1="(chroot) ${PS1}"
   45  emerge --ask sys-kernel/genkernel
   46  portageq envvar ACCEPT_LICENSE *
   47  nano /etc/portage/make.conf 
   48  emerge --ask sys-kernel/genkernel
   49  eselect news read | less
   50  nano -w /etc/fstab
   51  genkernel all
   52  emerge --ask sys-kernel/gentoo-sources
   53  ls -l /usr/src/linux
   54  eselect kernel list
   55  eselect kernel set 1
   56  ls -l /usr/src/linux
   57  genkernel all
   58  ls /boot/vmlinu* /boot/initramfs*
   59  nano -w /etc/fstab
   60  nano -w /etc/conf.d/hostname
   61  nano -w /etc/conf.d/net
   62  emerge --ask --noreplace net-misc/netifrc
   63  nano -w /etc/conf.d/net
   64  ip a
   65  nano -w /etc/conf.d/net
   66  cd /etc/init.d
   67  ln -s net.lo net.enp6s0
   68  rc-update add net.enp6s0 default
   69  nano -w /etc/hosts
   70  emerge --ask sys-apps/pcmciautils
   73  nano -w /etc/security/passwdqc.conf 
   74  passwd
   75  nano -w /etc/rc.conf
   76  cat /etc/conf.d/keymaps
   77  emerge --ask app-admin/sysklogd
   78  rc-update add sysklogd default
   79  emerge --ask sys-process/cronie
   80  rc-update add cronie default
   81  rc-update add sshd default
   82  emerge --ask net-misc/dhcpd
   83  emerge --ask net-misc/dhcpcd
   84  emerge --ask --verbose sys-boot/grub:2
   85  echo 'GRUB_PLATFORMS="efi-64"' >> /etc/portage/make.conf 
   86  emerge --ask --verbose sys-boot/grub:2
   87  emerge --ask --update --newuse --verbose sys-boot/grub:2
   88  grub-install --target=x86_64-efi --efi-directory=/boot
   89  grub-mkconfig -o /boot/grub/grub.cfg
   90  exit
   91  nano -w /etc/fstab 
   92  reboot
   93  ping google.com
   95  shutdown -r now
   96  poweroff 
   98  useradd -m -G users,wheel,audio -s /bin/bash box
   99  passwd box
  100  startx
  101  emerge --pretend --verbose x11-base/xorg-drivers
  102  emerge --pretend --verbose app-editors/neovim
  103  nano -w /etc/portage/package.accept_keywords
  104  emerge --pretend --verbose app-editors/neovim
  105  FEATURES="test" emerge --pretend --verbose app-editors/neovim
  106  nano -w /etc/portage/package.accept_keywords
  107  nano -w /etc/portage/package.accept_keywords
  108  emerge --pretend --verbose app-editors/neovim
  109  nano /etc/portage/make.conf 
  110  emerge --pretend --verbose dev-lang/lua
  111  emerge --ask --verbose dev-lang/lua
  112  lua
  113  emerge --pretend --verbose app-editors/neovim
  114  nano /etc/portage/make.conf 
  115  emerge --pretend --verbose app-editors/neovim
  116  nano /etc/portage/make.conf 
  117  emerge --pretend --verbose app-editors/neovim
  118  nano -w /etc/portage/package.accept_keywords
  119  emerge --pretend --verbose dev-lang/lua
  120  nano -w /etc/portage/package.accept_keywords
  121  nano -w /etc/portage/package.use
  123  cd /etc/portage/package.use
  126  cat zz-autounmask 
  127  nano -w /etc/portage/package.use/neovim
  129  nano -w /etc/portage/package.use/lua
  130  emerge --pretend --verbose dev-lang/lua
  131  emerge --pretend --verbose app-editors/neovim
  132  nano /etc/portage/make.conf 
  145  etc-update
  146  emerge --ask --verbose app-editors/neovim
  147  nvim -v
  151  emerge --pretend --verbose x11-drivers/nvidia-drivers
  152  etc-update
  153  emerge --ask --verbose x11-drivers/nvidia-drivers
  154  etc-update
  155  emerge --ask --verbose x11-drivers/nvidia-drivers
  156  nvim /etc/portage/make.conf 
  157  nvim /etc/modules-load.d/video.conf
  158  modprobe nvidia
  159  reboot
  160  exit
  165  emerge --pretend --verbose x11-base/xorg-server x11-base/xorg-drivers
  166  emerge -av x11-base/xorg-server x11-base/xorg-drivers
  167  env-update && source /etc/profile
  168  cd /etc/X11/Sessions/
  171  cat Xsession 
  172  nvim Xsession 
  177  nvim /etc/profile
  178  emerge -av x11-terms/xterm
  179  xset fp rehash
  180  startx
  181  emerge -av app-admin/sudo
  182  nvim /etc/sudoers
  184  exit
  185  emerge -av x11-wm/dwm x11-terms/st x11-misc/dmenu
  186  emerge -av x11-apps/xsetroot
  190  startx /usr/bin/dwm
  191  nvim /etc/portage/make.conf 
  192  env-update && source /etc/profile
  193  emerge -av x11-base/xorg-server x11-base/xorg-drivers
  194  emerge -av x11-wm/dwm x11-terms/st x11-misc/dmenu
  195  reboot
  196  mkdir /etc/X11/xorg.conf.d
  197  nvim /etc/X11/xorg.conf.d/nvidia.conf
   solving problems with not rights to X11

  198  rc-config add elogind default
  199  rc-service elogind start
  200  reboot
  203  emerge --pretend --verbose xfce-base/xfce4-meta
  204  emerge --pretend --verbose xfce-base/xfce4-meta xfce-extra/xfce4-notifyd 
 XFCE4 Full DE

  219  emerge -av xfce-base/xfce4-meta xfce-extra/xfce4-notifyd xfce-extra/thunar-archive-plugin xfce-extra/thunar-media-tags-plugin xfce-extra/thunar-vcs-plugin xfce-extra/tumbler xfce-extra/xfce4-alsa-plugin xfce-extra/xfce4-cpufreq-plugin xfce-extra/xfce4-datetime-plugin xfce-extra/xfce4-datetime-plugin xfce-extra/xfce4-fsguard-plugin xfce-extra/xfce4-genmon-plugin xfce-extra/xfce4-indicator-plugin xfce-extra/xfce4-kbdleds-plugin xfce-extra/xfce4-mount-plugin xfce-extra/xfce4-mpc-plugin xfce-extra/xfce4-netload-plugin xfce-extra/xfce4-panel-profiles xfce-extra/xfce4-places-plugin xfce-extra/xfce4-power-manager xfce-extra/xfce4-pulseaudio-plugin xfce-extra/xfce4-screenshooter xfce-extra/xfce4-screensaver xfce-extra/xfce4-systemload-plugin xfce-extra/xfce4-taskmanager xfce-extra/xfce4-time-out-plugin xfce-extra/xfce4-timer-plugin xfce-extra/xfce4-verve-plugin xfce-extra/xfce4-volumed-pulse  xfce-extra/xfce4-weather-plugin xfce-extra/xfce4-whiskermenu-plugin xfce-extra/xfce4-xkb-plugin
  220  java
  222  python --version
  223  top
  224  nvim /etc/portage/make.conf 
  226  nvim /etc/pulse/default.pa
  227  USE="l10n_cs" emerge -av =www-client/firefox-bin-90.0
  229  emerge -pv dev-java/openjdk
  230  nvim /etc/portage/package.use
  231  cd /etc/portage/package.use
  234  nvim touch openjdk
  236  mv touch openjdk
  238  cat openjdk 
  239  emerge -pv dev-java/openjdk
  241  emerge -pv dev-java/openjdk
  243  nvim /etc/portage/package.use/openjdk
  244  emerge -pv dev-java/openjdk
  245  emerge -pv dev-java/openjdk dev-java/openjfx
  248  emerge -av dev-java/openjdk dev-java/openjfx
  249  nvim /etc/portage/package.use
  250  nvim /etc/portage/package.use/openjdk 
  251  emerge -av dev-java/openjdk
  252  nvim /etc/portage/package.use/openjdk
  253  USE="gentoo-vm javafx" emerge -av dev-java/openjdk
  254  java -version
  255  eselect java-vm list
  256  nvim /etc/portage/profile/package.use.mask
  258  USE="gentoo-vm javafx" emerge -av dev-java/openjdk
  259  USE="gentoo-vm javafx" emerge -askv dev-java/openjdk
  260  USE="gentoo-vm javafx" emerge -av --autounmask-write dev-java/openjdk
  262  USE="gentoo-vm javafx" emerge -av --autounmask-write dev-java/openjdk
  266  eselect java-vm list
  267  eselect java-vm set system 1
  268  java -version
  269  emerge -pv dev-java/mavem
  270  emerge -s "%^maven$"
  271  emerge -s "%^maven"
  274  emerge -av dev-java/maven-bin
  275  java -version
  276  mvn -version
  277  nvim /etc/pam.d/xfce4-screensaver 
  279  nvim /etc/X11/xorg.conf.d/nvidia.conf
  280  USE="hwaccel l10n_cs" emerge --pretend --verbose www-client/firefox
  281  USE="hwaccel l10n_cs" emerge -av www-client/firefox
  282  etc-update
  283  USE="hwaccel l10n_cs" emerge -av www-client/firefox
  284  emerge -pv x11-misc/picom
  285  emerge -pv =x11-misc/picom-9999
  286  USE="test" emerge -pv =x11-misc/picom-9999
  287  USE="test" emerge -pv =x11-misc/picom-8.2-r2
  288  emerge -pv =x11-misc/picom-8.2-r2
  310  nvim /etc/portage/package.unmask
  311  nvim /etc/portage/package.accept_keywords 
  313  emerge -avt =x11-misc/picom-9999
  325  nvim /etc/portage/make.conf 
  326  nvim /etc/portage/package.unmask
  328  nano -w /etc/portage/package.use/openjdk 
  329  mkdir /etc/portage/profile
  333  nvim /etc/portage/profile/package.use.mask
  334  eselect fontconfig list
  336  emerge -av media-fonts/droid
  337  nvim /etc/portage/package.unmask
  339  emerge -av sys-apps/gnome-disk-utility
  340  emerge -s "%^Atom"
  341  emerge -s "%^Geany"
  344  emerge -pv dev-util/geany dev-util/geany-plugins x11-themes/geany-themes
  346  USE="lua markdown git enchant gpg workbench pretty-printer" emerge -av dev-util/geany dev-util/geany-plugins x11-themes/geany-themes
  348  env-update 
  350  nvim /etc/portage/package.unmask
  356  nvim /etc/portage/package.accept_keywords 
  357  emerge -pv x11-terms/kitty
  358  emerge -av x11-terms/kitty
  359  nvim /etc/portage/package.accept_keywords 
  360  emerge -pv x11-terms/alacritty
  361  emerge -av x11-terms/alacritty
  362  eselect fontconfig enable 10-sub-pixel-rgb.conf
  363  eselect fontconfig enable 11-lcdfilter-default.conf
  364  eselect fontconfig disable 11-lcdfilter-default.conf
  365  emerge -av media-fonts/ubuntu-font-family 
  366  eselect fontconfig disable 10-sub-pixel-rgb.conf
  367  cd ~/git/github/nerd-fonts
  368  nvim /etc/X11/xinit/xinitrc.d/40-libcanberra-gtk-module 
  372  printenv
  373  cat /etc/X11/xinit/xinitrc.d/40-libcanberra-gtk-module 
  375  echo $GTK_MODULES
  378  nvim /etc/portage/make.conf 
  379  emerge -pv xfce-base/xfce4-settings
  380  USE="colord xklavier upower" emerge -pv xfce-base/xfce4-settings
  381  USE="colord xklavier upower" emerge -av xfce-base/xfce4-settings
  382  cd /home/box/git/github/shell-color-scripts/
  383  rm -rf /opt/shell-color-scripts || return 1
  384   mkdir -p /opt/shell-color-scripts/colorscripts || return 1
  385  cp -rf colorscripts/* /opt/shell-color-scripts/colorscripts
  386  cp colorscript.sh /usr/bin/colorscript
  387  cp zsh_completion/_colorscript /usr/share/zsh/site-functions
  389  emerge -av app-shells/fzf
  390  emerge --ask net-misc/ntp
  391  rc-update add ntp-client default
  392  ntpdate -b -u 0.gentoo.pool.ntp.org
  393  emerge -av sys-apps/exa
  394  emerge -av sys-apps/bat
  395  nvim /etc/portage/package.accept_keywords 
  396  emerge -av sys-apps/bat
  397  emerge --ask app-misc/ranger
  398  emerge -av sys-apps/fd
  399  emerge -av app-shells/fzf
  400  emerge --deselect app-shells/fzf
  401  emerge --ask --depclean
  402  emerge --pretend --depclean
  403  emerge --ask --verbose --depclean app-shells/fzf
  405  emerge -pv x11-misc/mugshot
  406  emerge -av x11-misc/mugshot
  407  emerge -pv app-admin/pass
  409  USE="dmenu fish-completion zsh-completion" emerge -av app-admin/pass
  412  USE="dmenu fish-completion zsh-completion" emerge -av app-admin/pass
  415  emerge -av  app-crypt/gnupg
  418  emerge -av x11-wm/qtile
  420  emerge -pv --update --deep --changed-use @world
  424  emerge -av --update --deep --changed-use @world
  425  emerge -av --verbose-conflicts --update --deep --changed-use @world
  426  emerge -avuDU @world 
  429  emerge --ask sys-libs/glibc virtual/libcrypt sys-libs/libxcrypt dev-lang/perl 
  434  emerge -av --update --deep --changed-use @world
  436  nvim /etc/portage/package.mask
  437  emerge -av --update --deep --changed-use @world
  439  emerge --sync --quiet 
  440  emerge --sync
  441  sudo emerge -auDN world
  449  USE=-static-libs emerge -av sys-libs/libseccomp:0
  450  sudo emerge -a @preserved-rebuild
  451  nvim /etc/portage/make.conf 
  452  USE=-static-libs emerge -av sys-libs/libseccomp:0
  454  nvim /etc/portage/make.conf 
  455  emerge -auDN world

Previous Post Next Post