selfjungle Just another WordPress weblog

27Mar/140

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 pam_systemd.so:

session         optional        pam_systemd.so

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
18Mar/140

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/multi-user.target.wants/dhcpcd.service'
rm '/etc/systemd/system/multi-user.target.wants/dhcpcd.service'
Tagged as: No Comments
15Oct/130

what files does your executable open

strace -e trace=open EXECUTABLE