I've installed FreeBSD 8.0-RC3 on a laptop and am trying to get the
'Restart' and 'Shutdown' buttons to work from the gdm-greeter. I
haven't had much luck with configuring the files shown below and was
wondering if someone here might have an idea on what's needed.
thanks
John
/usr/local/etc/gdm/custom.conf:
[daemon]
HaltCommand=/sbin/shutdown -h now
RebootCommand=/sbin/shutdown -r now
[xdmcp]
[chooser]
[security]
/usr/local/etc/PolicyKit/PolicyKit.conf:
<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration
1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">
<!-- See the manual page PolicyKit.conf(5) for file format -->
<config version="0.1">
<define_admin_auth group="operator" />
<match action="org.freedesktop.hal.storage.mount-removable">
<return result="yes" />
</match>
<match action="org.freedesktop.hal.storage.mount-fixed">
<return result="yes" />
</match>
<match action="org.freedesktop.hal.storage.eject">
<return result="yes" />
</match>
<match action="org.freedesktop.hal.storage.unmount-others">
<return result="yes" />
</match>
<match action="org.freedesktop.hal.power-management.reboot">
<return result="yes" />
</match>
<match action="org.freedesktop.hal.power-management.shutdown">
<return result="yes" />
</match>
<match action="org.freedesktop.hal.power-management.hibernate">
<return result="yes" />
</match>
<match action="org.freedesktop.hal.power-management.suspend">
<return result="yes" />
</match>
</config>
Find out as which user gdm is run and add that user to the operator
group.
> thanks
> John
>
> /usr/local/etc/gdm/custom.conf:
> [daemon]
> HaltCommand=/sbin/shutdown -h now
It's "-p now" on FreeBSD.
--
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Dominic,
Thanks, I had actually added root and gdm to the operator group
earlier but these functions still do not operate in gdm. I installed
kdm and it's working fine, so I'm giving up on gdm.
John
I made some blind shots there, I'm an XDM user. I wouldn't have
answered at all if I hadn't seen the "shutdown -h now".
Regards
> Greetings,
>
> I've installed FreeBSD 8.0-RC3 on a laptop and am trying to get the
> 'Restart' and 'Shutdown' buttons to work from the gdm-greeter. I
> haven't had much luck with configuring the files shown below and was
> wondering if someone here might have an idea on what's needed.
I had the same problem as you.
I got this suggestion on this group just now. It works for me.
On Tue, 26 Jan 2010 20:38:22 +0000, Warren Block wrote:
>
> Add a proc entry in /etc/fstab:
>
> proc /proc procfs rw 0 0