Posts tagged gentoo

gentoo kde plasma quickshare applet

posted on 2017-05-07 21:15

For this error:

Error loading QML file: file:///usr/share/plasma/plasmoids/org.kde.plasma.quickshare/contents/ui/main.qml:125:5: Type ShowUrlDialog unavailable
file:///usr/share/plasma/plasmoids/org.kde.plasma.quickshare/contents/ui/ShowUrlDialog.qml:24:1: module "org.kde.purpose" is not installed

You want this:

emerge -atv dev-libs/purpose

That one was almost annoying to find out.

reinstalling gentoo

posted on 2016-08-24 21:47

The last post already told the reason for this one. Also the prerequisites were described there.

This installation takes place from within another running system on the same computer. After the partitions/luks/lvs/filesystem stuff was done, now the files will be copied and set up.

Now mount your root partition cd into there.

getting the files

get download link:

Go to and choose your download. Likely you want the stage3 tarball for AMD64.

Use links or lynx if you don't have access to a graphical browser.


tar xjvpf stage3-amd64-20160818.tar --xattrs

fix make.conf

As an editor you can use what you want, after chrooting into your new environment, you likely only have nano.

(Remember, you are still in / of your new gentoo installation where you just unpacked your files.)

vim etc/portage/make.conf

Here's a diff:

root@zen:/mnt/gentoo/etc/portage# diff -u make.conf{,.original}
--- make.conf   2016-08-24 22:55:05.809203312 +0200
+++ make.conf.original  2016-08-24 22:53:38.197198629 +0200
@@ -2,9 +2,8 @@
 # built this stage.
 # Please consult /usr/share/portage/config/make.conf.example for a more
 # detailed example.
-CFLAGS="-march=native -O2 -pipe"
+CFLAGS="-O2 -pipe"
 # WARNING: Changing your CHOST is not something that should be done lightly.
 # Please consult before changing.

prepare to chroot!

cd /mnt/gentoo
cp -L /etc/resolv.conf etc/resolv.conf
mount -t proc proc ./proc
mount -t sysfs /sys ./sys
for i in dev dev/pts run; do mount --rbind /$i ./$i; done

If you use a non-gentoo livedisk, or want systemd (god forbid), have a look at the gentoo installation wiki, you may need additional steps then.

Since I have an UEFI based setup and need, due to the crypted setup, an extra boot, both the EFI partition and /boot need to be mounted, too:

mount /dev/sdXM boot
mount /dev/sdXL boot/efi

chroot . /bin/bash
. /etc/profile
export PS1="(chroot) $PS1"

configure the package manager

Now lets deal with portage:

eselect news read

If you actually do this, sometimes there is useful information. In my case, it hints on how to set cpu USE flags.

emerge -alv gentoolkit
equery uses ffmpeg | grep cpu_flags
cat /proc/cpuifo | grep flags | uniq

Now both outputs can be compared. Easier is this:

emerge -alv app-portage/cpuid2cpuflags
cpuinfo2cpuflags-x86 >> /etc/portage/make.conf

Now lets set the profile and update:

eselect profile list
eselect profile set 6 # kde without systemd
emerge -alv --update --deep --newuse @world

Use all available USE flags:

sed -i 's/^USE/#&/' /etc/portage/make.conf'
emerge --info | grep ^USE >> /etc/portage/make.conf

To lower compile time and startup times, remove the USE flags which you won't need by prepending a minus sign. I don't bother with that for now.


echo 'Europe/Berlin' > /etc/timezone
emerge --config timezone-data

configure locale

vim /etc/locale.gen

There I uncomment my en_US and de_DE for both ISO 8859-1 and utf8.

eselect locale list
eselect locale set 8
. /etc/profile
export PS1="(chroot) $PS1"

fix fstab

vim /etc/fstab

configure the kernel

I will use genkernel and not configure the kernel by myself here.

emerge -alv gentoo-sources
emerge -alv genkernel

This blog covers .csv, .htaccess, .pfx, .vmx, /etc/crypttab, /etc/network/interfaces, /etc/sudoers, /proc, 10.04, 14.04, AS, ASA, ControlPanel, DS1054Z, GPT, HWR, Hyper-V, IPSEC, KVM, LSI, LVM, LXC, MBR, MTU, MegaCli, PHP, PKI, R, RAID, S.M.A.R.T., SNMP, SSD, SSL, TLS, TRIM, VEEAM, VMware, VServer, VirtualBox, Virtuozzo, XenServer, acpi, adaptec, algorithm, ansible, apache, apachebench, apple, applet, arcconf, arch, architecture, areca, arping, asa, asdm, autoconf, awk, backup, bandit, bar, bash, benchmarking, binding, bitrate, blackarmor, blockdev, blowfish, bochs, bond, bonding, booknotes, bootable, bsd, btrfs, buffer, c-states, cache, caching, ccl, centos, certificate, certtool, cgdisk, cheatsheet, chrome, chroot, cisco, clamav, cli, clp, clush, cluster, coleslaw, colorscheme, common lisp, configuration management, console, container, containers, controller, cron, cryptsetup, csync2, cu, cups, cygwin, d-states, database, date, db2, dcfldd, dcim, dd, debian, debug, debugger, debugging, decimal, desktop, df, dhclient, dhcp, diff, dig, display manager, dm-crypt, dmesg, dmidecode, dns, docker, dos, drivers, dtrace, dtrace4linux, du, dynamictracing, e2fsck, eBPF, ebook, efi, egrep, emacs, encoding, env, error, ess, esx, esxcli, esxi, ethtool, evil, expect, exportfs, factory reset, factory_reset, factoryreset, fail2ban, fbsd, fdisk, fedora, file, filesystem, find, fio, firewall, firmware, fish, flashrom, forensics, free, freebsd, freedos, fritzbox, fsck, fstrim, ftp, ftps, g-states, gentoo, ghostscript, git, git-filter-branch, github, gitolite, global, gnutls, gradle, grep, grml, grub, grub2, guacamole, hardware, haskell, hdd, hdparm, hellowor, hex, hexdump, history, howto, htop, htpasswd, http, httpd, https, i3, icmp, ifenslave, iftop, iis, imagemagick, imap, imaps, init, innoDB, innodb, inodes, intel, ioncube, ios, iostat, ip, iperf, iphone, ipmi, ipmitool, iproute2, ipsec, iptables, ipv6, irc, irssi, iw, iwconfig, iwlist, iwlwifi, jailbreak, jails, java, javascript, javaws, js, juniper, junit, kali, kde, kemp, kernel, keyremap, kill, kpartx, krypton, lacp, lamp, languages, ldap, ldapsearch, less, leviathan, liero, lightning, links, linux, linuxin3months, lisp, list, livedisk, lmctfy, loadbalancing, locale, log, logrotate, looback, loopback, losetup, lsblk, lsi, lsof, lsusb, lsyncd, luks, lvextend, lvm, lvm2, lvreduce, lxc, lxde, macbook, macro, magento, mailclient, mailing, mailq, manpages, markdown, mbr, mdadm, megacli, micro sd, microsoft, minicom, mkfs, mktemp, mod_pagespeed, mod_proxy, modbus, modprobe, mount, mouse, movement, mpstat, multitasking, myISAM, mysql, mysql 5.7, mysql workbench, mysqlcheck, mysqldump, nagios, nas, nat, nc, netfilter, networking, nfs, nginx, nmap, nocaps, nodejs, numberingsystem, numbers, od, onyx, opcode-cache, openVZ, openlierox, openssl, openvpn, openvswitch, openwrt, oracle linux, org-mode, os, oscilloscope, overview, parallel, parameter expansion, parted, partitioning, passwd, patch, pct, pdf, performance, pfsense, php, php7, phpmyadmin, pi, pidgin, pidstat, pins, pkill, plasma, plesk, plugin, posix, postfix, postfixadmin, postgres, postgresql, poudriere, powershell, preview, profiling, prompt, proxmox, ps, puppet, pv, pveam, pvecm, pvesm, pvresize, python, qemu, qemu-img, qm, qmrestore, quicklisp, quickshare, r, racktables, raid, raspberry pi, raspberrypi, raspbian, rbpi, rdp, redhat, redirect, registry, requirements, resize2fs, rewrite, rewrites, rhel, rigol, roccat, routing, rs0485, rs232, rsync, s-states, s_client, samba, sar, sata, sbcl, scite, scp, screen, scripting, seafile, seagate, security, sed, serial, serial port, setup, sftp, sg300, shell, shopware, shortcuts, showmount, signals, slattach, slip, slow-query-log, smbclient, snmpget, snmpwalk, software RAID, software raid, softwareraid, sophos, spacemacs, spam, specification, speedport, spi, sqlite, squid, ssd, ssh, ssh-add, sshd, ssl, stats, storage, strace, stronswan, su, submodules, subzone, sudo, sudoers, sup, swaks, swap, switch, switching, synaptics, synergy, sysfs, systemd, systemtap, tar, tcpdump, tcsh, tee, telnet, terminal, terminator, testdisk, testing, throughput, tmux, todo, tomcat, top, tput, trafficshaping, ttl, tuning, tunnel, tunneling, typo3, uboot, ubuntu, ubuntu 16.04, udev, uefi, ulimit, uname, unetbootin, unit testing, upstart, uptime, usb, usbstick, utf8, utm, utm 220, ux305, vcs, vgchange, vim, vimdiff, virtualbox, virtualization, visual studio code, vlan, vmstat, vmware, vnc, vncviewer, voltage, vpn, vsphere, vzdump, w, w701, wakeonlan, wargames, web, webdav, weechat, wget, whois, wicd, wifi, windowmanager, windows, wine, wireshark, wpa, wpa_passphrase, wpa_supplicant, x11vnc, x2x, xfce, xfreerdp, xmodem, xterm, xxd, yum, zones, zsh

Unless otherwise credited all material Creative Commons License by sjas