selfjungle Just another WordPress weblog


getting rid of consolekit and policykit

systemd makes them redundant, getting rid of them is pretty easy:

edit /etc/pam.d/system-auth and enable

session         optional

and re-emerge pambase

USE=-consolekit emerge  pambase

and sincle polkit is used by upower and udisks (automount) and these 2 is used by kdelibs, you may want ot rebuild kdelibs too:

USE="-upower -udisks" emerge  kdelibs

link: gentoo wiki

Tagged as: , No Comments

start DHCP at boot with systemd

migrating from openRC was smooth and automatic, except starting the DHCP.
To play with runlevels, issue this commands:

systemctl enable dhcpcd
systemctl disable dhcpcd

They seem to translate to creating/deleting symlinks:

ln -s '/usr/lib64/systemd/system/dhcpcd.service' '/etc/systemd/system/'
rm '/etc/systemd/system/'
Tagged as: No Comments

what files does your executable open

strace -e trace=open EXECUTABLE