默认情况下,slackware关机是不能自己断掉电源的。这主要是针对服务器进行设置的,对于普通PC来说用起来就不方便了。
修改/etc/rc.d/rc.modules,片断如下:
[code]#### APM support ###
# APM is a BIOS specification for saving power using several different
# techniques. This is mostly useful for battery powered laptops.
/sbin/modprobe apm[/code]
让普通用户可以关机
同样为服务器而设置的,普通用户不能关机。
[code]#chmod +s /sbin/halt[/code]
这样,普通用户使用 /sbin/halt -p能够关机了。可是,在gnome的注销里面还是没有关机的选项,如下动作可以添加:
[code]#mkdir -p /var/run/console
#touch /var/run/console/USERNAME[/code]