How to Install Gentoo Linux CLI and KDE Plasma (Also for VirtualBox and VMware)

As it’s possible you’ll know, lots of the Linux distributions are easy to arrange and you’ll be able to do via merely few clicks. But there are some Linux distributions that first needs to convey in combination then arrange and Gentoo is one of them. Installing Gentoo to your gadget or in VirtualBox/VMware isn’t easy if you’re new to Linux, it is time consuming because it has to convey in combination and there entire lots of problems that desires to maintain.

In this text, we will exhibit you step by step how you’ll be able to merely arrange Gentoo to your System HDD or in VirtualBox/VMware. The instructions shall be easy to apply and you moreover don’t want deep knowledge of the entire thing, if you’re new then with time problems will get so much clear to you. If you haven’t tried Gentoo prior to then first experiment it in VirtualBox or VMware.
Download Gentoo minimal iso. If you might be setting up it to your gadget then write it on USB using unetbootin device, if you’re setting up it in VirtualBox or VMware then mount iso in virtual cdrom.

You shall be introduced to command line shell, while you boot the iso.

Next step is to configure the group.
Run this command to see the group adapter (Ethernet/Wireless)
To view processes during the your logged-in individual:


Now with this command you’ll be able to configure your connected internet connection.
To view processes during the your logged-in individual:

net-setup your_network_adapter

Partitioning with FDisk

There are greater than one ways to partition HDD, we decided on FDisk on account of it is very simple to use and on the subject of you’ll be able to to to find it on most Linux distributions.
Warning: Be wary! If you might be doing partitions to your gadget HDD. You can lose your knowledge, if you happen to have no idea what you are going to do!!!

Run this command to see to be had disk in gadget:

fdisk -l

We think output HDD as /dev/sda/ from previous command.
This command will open FDisk to partition /dev/sda/ HDD:

fdisk /dev/sda

Press m key to see alternatives for using FDisk.
In the following symbol, we created 200GB of quantity one partition for root. You can create further partitions by yourself using this case.

Format partition using EXT4 filesystem:

mkfs.ext4 /dev/sda1

For transfer partition use this command: (PS: first create transfer partition)

mkswap /dev/sda2
swapon /dev/sda2

PS: You should create your house record on separate partition! Also if you want you’ll be able to create separate boot partition.


Create record to mount root partition, where Gentoo will arrange:

mkdir -p /mnt/gentoo/
mount /dev/sda1 /mnt/gentoo/

Lets download the newest stage to get began the arrange:

cd /mnt/gentoo
links one/en/mirrors.xml

Download latest style of stage3 according to your gadget construction:

Next step to extract the downloaded stage3 archive:

cd /mnt/gentoo
tar xf stage3-*.tar.xz

for tar.bz2 use this command:

tar xvjpf stage3-*.tar.bz2

Mount filesystem:

mount -t proc none /mnt/gentoo/proc
mount –rbind /sys /mnt/gentoo/sys
mount –rbind /dev /mnt/gentoo/dev

Copy DNS knowledge:

cp -L /and many others/resolv.conf /mnt/gentoo/and many others/

Chroot into arrange partition:

chroot /mnt/gentoo /bin/bash
provide /and many others/profile
export PS1=”(chroot) $PS1″

Edit make.conf file to add some necessary flags:

nano -w /and many others/portage/make.conf

Add following lines in opened file then press CTRL+O and CTRL+X to save and close: (Don’t remove the remainder from file)

USE="bindist mmx sse" 
INPUT_DEVICES="evdev keyboard mouse synaptics"

Configure portage:

emerge –sync
emerge –oneshot portage

Set timezone:

cp /usr/share/zoneinfo/America/New_York /and many others/localtime
echo “America/New_York” > /and many others/timezone

Set-up the Locale:

nano -w /and many others/locale.gen en_US ISO-8859-1 en_US.UTF-8 UTF-8
nano -p /and many others/env.d/02locale

Add following lines throughout the file then press CTRL+O and CTRL+X to save and close:


Now run this command:

env-update && provide /and many others/profile

Compile the kernel:

emerge gentoo-sources
cd /usr/src/linux
make menuconfig

Choose alternatives according to your gadget . For x86/i386/i486/i686 construction untick the 64-bit kernel selection from menu.

Follow the ones steps to configure kernel alternatives for VirtualBox and VMware:

Linux Kernel Configuration: VMware tools configuration
Loadable module support —>
[*] Enable loadable module support —>
      [*]   Module unloading

Linux Kernel Configuration: Intel PCI/ISA Bridge
Bus alternatives (PCI and many others.) —>
[*] PCI Support
[*] ISA Support
      [*]   EISA support
<*> Support for PCI Hotplug
Support for PCI Hotplug —>
<*> SHPC PCI Hotplug driving force

Linux Kernel Configuration: IEEE 1394
Device Drivers —>
IEEE 1394 (Firewire) support —>
<*> Firewire driving force stack
                <*>   OHCI-1394 controllers
                <*>    Storage devices (SBP-2 protocol)

Linux Kernel Configuration: Parallel port
Device Drivers —>
<*> Parallel port support —>
<*> PC-style

Linux Kernel Configuration: Parallel ATA
Device Drivers —>
<*> Serial ATA and Parallel ATA drivers
         <*>   PCMCIA PATA support

Linux Kernel Configuration: I2C
Device Drivers —>
I2C Support —>
   I2C Hardware Bus support —>
                 <*> Intel PIIX4 and appropriate (ATI/Serverworks/Broadcom/SMSC)

Linux Kernel Configuration: Backplane
Device Drivers —>
Sonics Silicon Backplane —>
        <*>    Sonics Silicon Backplane support

Linux Kernel Configuration: LSI Logic SCSI adapter
Device Drivers —>
[*] Fusion MPT instrument support —>
<*> Fusion MPT ScsiHost drivers for SPI
<*> Fusion MPT ScsiHost drivers for SAS
    SCSI instrument support —>
<*> SCSI instrument support
<*> SCSI disk support
SCSI low-level drivers —>
    <*> SYM53C8XX Version 2 SCSI support
<*> BusLogic SCSI Support
[*] USB support —>
<*> Support for Host-side USB
<*> SL811HS HCD support

Linux Kernel Configuration: BusLogic
Device Drivers —>
SCSI instrument support —>
<*> SCSI instrument support
                        <*>   SCSI disk support
SCSI low-level drivers —>
<*> BusLogic SCSI support

Linux Kernel Configuration: HID support
Device Drivers —>
[*] HID Devices —>
                        <*>    USB Human Interface Device (entire HID) support
[*] USB support —>
<*> Support for Host-side USB <*>   SL811HS HCD support

Linux Kernel Configuration: CDROM
Device Drivers —>
<*> ATA/ATAPI/MFM/RLL support —>
<*> Include IDE/ATAPI CDROM support
   PCI IDE chipset support
<*> Intel PIIXn chipsets support
File methods —>
CD-ROM/DVD Filesystems  —>
      <*> ISO 9660 CDROM file gadget support
       [*] Microsoft Joliet CDROM extensions

Linux Kernel Configuration: Gameport
Device Drivers —>
Input instrument support —>
Hardware I/O ports —> <*> Gameport support

Linux Kernel Configuration: Device mapper support
Device Drivers —>
[*] Multiple devices driving force support (RAID and LVM) —>
                     <*>   Device mapper support
                      <*>     Snapshot function

Linux Kernel Configuration: Network
Networking  —>
[*] Networking support
Networking alternatives —>
<*> Packet socket
<*> Unix house sockets
[*] TCP/IP networking
<*> 802.1d Ethernet Bridging
Device Drivers —>
Network Device support —>
[*] Network instrument support
[*] Ethernet driving force support —>
[*] AMD devices
                                AMD PCnet32 PCI support
[*] Intel devices
   Intel(R) PRO/1000 Gigabit Ethernet support

Linux Kernel Configuration: Audio
Device Drivers —>
Sound Card Support —>
<*> Advanced Linux Sound Architecture —>
Sequencer support
< > Sequencer dummy consumer
<*> OSS Sequencer API
 [*] Enable OSS Simulation
                                     OSS PCM (digital audio) API
                                           [*] OSS PCM (digital audio) API
                        [*]    Dynamic instrument file minor numbers
                        [*]   Support earlier ALSA API
          [*]   Verbose procfs contents
                        [*]    Generic sound devices —>
                        [*]    PCI sound devices —>
(Creative) Ensoniq AudioPCI 1371/1373
                        [*]    USB sound devices —>
                        [*]    PCMCIA sound devices —>

Linux Kernel Configuration: Graphics
Device Drivers —>
Graphics support —>
<*> /dev/agpgart (AGP Support) —>
<*> Intel 440LX/BX/GX, I8xx and E7x05 chipset support

Save and pass out the kernel configuration menu.

Now run the ones directions to convey in combination the kernel with alternatives you might have made up our minds on:

make -j2 && make modules_install
cp arch/x86_64/boot/bzImage /boot/kernel-kernel_version-gentoo

Configure initramfs:

emerge genkernel

If you get the similar output with above command:

Then run this command:

At genkernel visual display unit press “u

Now take a look at to arrange it all over again:

genkernel -install initramfs

Set the hostname:

nano -w /and many others/conf.d/hostname

Change hostname as you like.

Now create symbolic link for group adapter. Run this command to see the adapter:


Replace your group adapter name with “your_network_adapter” throughout the following command:

cd /and many others/init.d/ && ln -s internet.lo internet.your_network_adapter

Install and setup DHCP consumer:

emerge -av dhcpcd
rc-update add dhcpcd default

Set password for root:

passwd root

Install syslog-ng: it is tricky, hugely configurable monitoring and logging daemon:

emerge syslog-ng
rc-update add syslog-ng default

In this step, arrange grub bootloader:

emerge –ask sys-boot/grub
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg

Add an non-root individual:

useradd -m -G wheel,audio,video,usb,cdrom -s /bin/bash username
passwd username

Install sudo and add individual to sudo:

emerge -av sudo
nano -w /and many others/sudoers

Add this line throughout the file then press CTRL+O and CTRL+X to save and close:

username ALL=(ALL) ALL

Update programs:

emerge -avuND world


rm /usr/portage/distfiles/*

Finally, unmount the entire thing and reboot to your minimal Gentoo CLI gadget:

pass out && cd ~
umount -l /mnt/gentoo/sys,dev,proc
umount /mnt/gentoo

At this point you got Gentoo minimal CLI installed to your gadget. If you want to arrange KDE Plasma on Gentoo then proceed!

Install KDE Plasma Desktop in Gentoo

Boot into your gadget and login as root.

You need to add some flags for KDE Plasma desktop in make.conf file:

nano -w /and many others/portage/make.conf

Add following lines throughout the file then press CTRL+O and CTRL+X to save and close:

USE="bindist mmx sse sse2 mmxext dbus udev branding icu python X acpi display-manager sddm gtk information libkms wallpapers pulseaudio legacy-systray gtk2 gtk3"
INPUT_DEVICES="evdev keyboard mouse synaptics"

Choose the profile:

eselect profile tick list
eselect profile set 19
Select KDE Plasma profile (with or without systemd)

Install any to be had substitute and dbus:

emerge -avuND world
emerge -av dbus
/and many others/init.d/dbus get began
rc-update add dbus default
rc-update add udev sysinit

Install Xorg Drivers:

emerge -av x11-base/xorg-drivers
emerge -av x11-base/xorg-x11

Allow consumers to video get access to:

gpasswd -a root video
gpasswd -a username video

Start setting up KDE Plasma. The following command will arrange all required KDE Plasma programs:

emerge -av kde-plasma/plasma-meta

If you want to arrange basic KDE Plasma and want to arrange programs one via one then use this command:

emerge -av kde-plasma/plasma-desktop

Install some necessary programs:

emerge -av kde-plasma/kdeplasma-addons kde-apps/kwalletmanager kde-apps/dolphin x11-misc/sddm kde-plasma/systemsettings kde-plasma/kscreen kde-plasma/console

If you want to get KDE entire methods package deal then run this command:

emerge -av kde-apps/kde-apps-meta

Configure the show manager:

nano -w /and many others/conf.d/xdm

Change displaymanager line to the following one:


Now run the ones directions:

rc-update add xdm default
usermod -a -G video sddm

Install VirtualBox Guest Additions in Gentoo

Use following directions to get installed virtualbox-guest-additions in Gentoo:

emerge -av app-emulation/virtualbox-guest-additions
gpasswd -a root vboxguest
gpasswd -a username vboxguest

Install VMware Tools in Gentoo

Use following directions to get installed VMware Tools (open-vm-tools) in Gentoo:

emerge -av app-emulation/open-vm-tools

If above command don’t arrange open-vm-tools then do following:

emerge –ask –autounmask-write app-emulation/open-vm-tools
dispatch-conf #(Press u at open-vm-tools menu)
emerge -av app-emulation/open-vm-tools

If above command don’t arrange open-vm-tools then do following:

rc-update add vmware-tools default
usermod -a -G vmware username
usermod -a -G vmware root

Cleanup and reboot:

rm /usr/portage/distfiles/*

That’s it. Hope you had fun setting up Gentoo.

Visit on site

Published by Marshmallow

Marshmallow Android is BT Ireland’s Head of Sales for Republic of Ireland domestic multi-site companies, indigenous MNCs and public sector accounts. He is responsible for the direction and control of all sales activity in the region. He has over 10 years management experience from high growth start-ups to more established businesses. He’s led teams in Ireland, India and China across various industries (ICT, On-Line Recruitment, Corporate Training and International Education).