Basic customization of gdm with OpenSolaris

If you consider running Solaris on your PC(s) at home (e.g. in a multiboot setup), there is often the requirement that anyone can shutdown the PC after logging out.

I suggest that you perform the following steps:

  1. Change the gdm customization file, /etc/X11/gdm/custom.conf
  2. Deactivate the CDE login service
  3. Activate gdm

Changing the gdm customization file, /etc/X11/gdm/custom.conf

Put the following lines after the line [greeter] in file /etc/X11/gdm/custom.conf:

SystemMenu=true
DefaultWelcome=false
Welcome=Welcome on %n
IncludeAll=true
RebootCommand=/sbin/init 6
HaltCommand=/sbin/init 5

Deactivating the CDE login service

Log in in as user root, using the console or the failsafe session mode from your login mananger. Then, execute:

svcadm disable cde-login

This will kill your X server, so you have to login from the console.

Activating gdm

Log in as user root. Then execute:

at now + 1 minute
svcadm enable gdm
<ctrl>d

This will create an at job which will be executed after one minute. This should give you enough time to log out ;-). So, please log out after you have pressed <ctrl>d. Wait for one minute and see the gdm screen showing up. That's all.

It's likely possible to combine steps 2 and 3, e.g.:

at now + 1 minute
svcadm disable cde-login
sleep 5
svcadm enable gdm
<ctrl>d
Not sure if the delay between disabling cde-login and enabling gdm is really necessary - I just have not tested yet.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

blogfinger

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