[ PART 2 ]Gentoo is not HARD to install

·

0 min read

OK, here we go we the second part of installing our fabulous Gentoo, after rebooting and unlocking our partition then login in we should have our beautiful terminal prompt like below:

Screenshot from 2020-02-09 17-26-49.png

Windows Manager i3 installation

  • Follow these steps:

    Screenshot from 2020-02-09 17-31-10.png

  • We are using VirtualBox, we are going to edit the file /etc/portage/make.conf:

    nano /etc/portage/make.conf
    #add this line:
    VIDEO_CARDS="virtualbox"
    
  • Then execute:

    emerge xorg-server -pv
    emerge xorg-server --autoumask-write
    dispatch-conf
    emerge xorg-server -pv
    emerge xorg-server -qj
    startx
    emerge -pv xterm
    emerge -qj xtrem
    startx
    

3.png

4.png

5.png

6.png

7.png

8.png

9.png

10.png

11.png

  • We will get something like this:

    12.png This is startx service running, we get back to TTY1 and kill startx, to get back to the tty1 press CTRL+ALT+F1 On the tty1: enter this:

    nano /etc/portage.make.conf
    #edit the line like shown in the picture below, add:
    xcb xkb
    #Then run:
    emerge -pv i3
    emerge -qj i3
    

    1314.png . . 15.png

  • We can see that dmenu, i3status and i3blocks is adviced to be installed:

    16.png

  • So we install those like the follwing:

    emerge -pv dmenu i3status i3block
    emerge -qj dmenu i3status i3block
    startx
    #after that run i3 using:
    i3
    

    17.png . 18.png . 19.png

  • Once agin in startx, we can start i3

    20.png Type i3: 21.png

  • Then you can choose your mod key selection one of those "win" or "alt" key.

    22.png

  • We have to make some edits, to allow i3 to start automatically each session: we are going to create a small bash program in our .xinitrc that contains only one instruction :

    #in the .xinitrc :
    i3
    
  • We need to create a user now :

    useradd -m -G users,wheel,audio -s /bin/bash john
    

    24.png

  • Let's connect as john and edit /.bach_profile file to set automatic i3 start at session login:

    First type: "exit" then enter the new user login 25.png

    nano /.bach_profile
    

    We have to edit it, so if tty1 we execute startx which will run our i3, if not open tty command line shell.

    #add this :
    if shopt -q login_shell; then
             [[ -t 0 && $(tty) == /dev/tty1 && ! $DISPLAY ]] && exec startx
    fi
    

    26.png

  • Now we can restart the session:

    #to lg in again
    exit
    

    27.png . 28.png By pressing mod ( I chose ALT as my mod key ) +ENTER opens xterm terminal.

  • We install ranger

    su -
    emerge ranger -pv
    emerge ranger -q
    emerge -s ranger
    

    29.png . 30.png

    ranger
    
  • Installing terminator:
    su -
    emerge terminator -pv 
    emerge terminator -qj
    

    31.png . 32.png Terminator: . 33.png

Setting VirtualMachine

  • install virtualbox guest additions

    emerge -pv virtualbox-guest-additions
    

    35.png . Then edit the file : /etc/portage/package.accept_keywords

    nano /etc/portage/package.accept_keywords
    # add this line:
    appemulation/virtualbox-guest-additions-6.0.12 ~amd
    loadkeys us
    emerge -pv virtualbox-guest-additions
    

    37.png . 36.png

  • Next step is :

    cd /usr/src/linux
    make menuconfig
    

    38.png . Do this: 39.png

    #now run:
    make  -j8 && make modules ^^ make modules+install && make install
    

    40.png . Then :

    grub-mkconfig -o /boot/grub/grub.cfg
    emerge -pv  virtual-guest-additions
    emerge -q virtual-guest-additions
    emerge -pv virtualbox-guest-additions
    emerge -q virtualbox-guest-additions
    

    41.png

gpasswd -a john vboxguest
rc-update add  virtualbox-guest-additions default
#then edit /home/john/.xinitrc add
/usr/bin/VBoxClient-all
exec i3

#NOW RUN
/etc/init.d/virtualbox-guest-additions start

Reboot and it will work.

Installing SUDO

  • emerge -pv sudo
    emerge -q sudo
    #edit this file : /etc/portage/make.conf add:
    sendmail 
    # to the USE line
    

    47.png . The USE line in /etc/portage/make.conf : 46.png .After run again:

    emerge -pv sudo
    emerge -q sudo
    
  • Now go to /ect/sudoers and uncomment this:

    50.png . Then you can exit and run your SUDO

  • Installing a Browser : FireFox:

    sudo su
    emerge -pv firefox-bin
    emerge USE="-ffmpeg -pulseaudio" -pv firefox-bin
    

    51.png . We should edit /etc/portage/package.use/zzautounmask , add this:

    www-client/firefox-bin -ffmpeg -pulseaudio
    

    Then run

    emerge -pv firefox-bin
    emerge -q firefox-bin
    

    55.png . 56.png

To open firefox : ALT+d : type firefox and hit ENTER

END

Till here we can use our Gentoo. THANKS for reading and feel free to comment your questions and suggestions.

Check the most used commands in this part 2 here