# pkg install xorg
# pkg install gnome3
Ouvrir :
/etc/fstab
Ajouter à la fin:
proc /proc procfs rw 0 0
# sysrc dbus_enable=yes
# sysrc hald_enable=yes
# sysrc gdm_enable=yes
# sysrc gnome_enable=yes
Créer :
/usr/local/etc/polkit-1/rules.d/shutdown.rules
Ajouter :
# Shutdown
polkit.addRule(function (action, subject) {
if ((action.id == "org.freedesktop.consolekit.system.restart" ||
action.id == "org.freedesktop.consolekit.system.stop")
&& subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});
# Suspend
polkit.addRule(function (action, subject) {
if (action.id == "org.freedesktop.consolekit.system.suspend"
&& subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});