User:Pavlix

Why Gentoo
I'm more of a pragmatic user of Gentoo. As an open source software developer digging into many projects, I'm taking advantage of portage, overlays, ebuilds and user patches. Gentoo serves the purpose of quickly turning my wishes into an installed package I can use for further testing or daily use.

Hardware

 * Lenovo X201

System

 * Bash
 * eix
 * genkernel
 * LVM
 * sudo
 * screen
 * pm-utils
 * iproute
 * networkmanager
 * ntpd
 * acpid
 * laptop-mode-tools
 * thermal-daemon

Developmnet / Testing

 * LXC
 * Qemu
 * libvirt

Desktop

 * Awesome

Applications

 * screen
 * vim
 * offlineimap
 * mutt
 * Firefox, Midori

Force --autounmask-write changes
CONFIG_PROTECT_MASK="${CONFIG_PROTECT_MASK} /etc/portage"

Keyboard
US and Czech qwerty keyboard layouts, toggled with Alt+Shift, with AltGr+Menu as Compose/Multi key.

setxkbmap "us,cz(qwerty)" -option grp:alt_shift_toggle,compose:menu-altgr

Trackpoint
xinput set-int-prop "TPPS/2 IBM TrackPoint" "Device Accel Profile" 8 3 xinput set-float-prop "TPPS/2 IBM TrackPoint" "Device Accel Velocity Scaling" 30 xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 8 1 xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 8 2 xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Timeout" 16 200 xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Axes" 8 6 7 4 5

Portage: User patches
post_src_prepare { if type epatch_user &> /dev/null ; then epatch_user fi }
 * 1) cat /etc/portage/bashrc

Fedora rawhide on LXC
NAME=rawhide RELEASE=rawhide VGNAME=vg

euse -E lua caps -p app-arch/rpm emerge -v1 rpm

lxc-create -n $NAME -t fedora -B lvm --vgname $VGNAME -- -R $RELEASE

Notes:


 * With new LXC builds, LVM won't work.
 * LXC container's systemd breaks host's ttys

Systemd
From udev to systemd:

emerge --unmerge udev emerge -v systemd

What you need to have a dual boot Gentoo with systemd and OpenRC:

app-emulation/libvirt >= 1.2.3 sys-fs/lvm2 >= ???


 * Configure PAM

Network printing
Install the necessary packages:

euse -E zeroconf emerge -av cups nss-mdns system-config-printer-gnome

Make sure nss-mdns is configured:

hosts:      files mdns_minimal dns mdns
 * 1) grep hosts /etc/nsswitch.conf

Start cups and avahi-daemon.

Find and configure the printer:

system-config-printer

Get rid of window tearing
compton -c --vsync opengl --backend glx --vsync opengl-swc

Screen lock using systemd
/etc/systemd/system/slock.service:

[Unit] Description=Lock X session using slock Before=sleep.target

[Service] User=pavlix Environment=DISPLAY=:0 Type=simple ExecStart=/usr/bin/slock

[Install] WantedBy=sleep.target WantedBy=lock.target

A multi-user variant can be prepared with xautolock.