Enable Shutdown in OpenSolaris login screen

Currently OpenSolaris doesn't allow system reboot nor shutdown directly from the login screen (gdm) by default. Since I started using KDE 4.1.4 as my default desktop manager, I've been quite annoyed by this, because this build of KDE doesn't have reboot nor shutdown available from the session either. So when I wanted to save my KDE session, I had to log out and log in again to failsafe terminal to issue a shutdown command.

This issue is tracked by bug 1166. If you want to enable the so called System Menu in your gdm, including reboot and shutdown, here's a couple of simple steps:

Add SystemMenu=true to the [greeter] section in /etc/X11/gdm/custom.conf
$ pfexec perl -i -pe 's:(\\[greeter\\]):\\1\\nSystemMenu=true:' /etc/X11/gdm/custom.conf
Allow gdm to display Reboot/Shutdown in System Menu
$ pfexec su -
# echo "gdm::::type=normal;auths=solaris.system.shutdown" >> /etc/user_attr
# exit

And here's the result after gdm is restarted:

GDM System Menu with Shutdown

Comments:

This was great, since it works in the latest dev release build 132 and you don't require SystemMenu=true any longer.

Thanks

Andrew

Posted by Andrew Watkins on February 11, 2010 at 09:11 AM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Solaris l10n & i18n, locales, keyboards, fonts and related topics.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today