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:

Welcome=Welcome on %n
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

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

Not sure if the delay between disabling cde-login and enabling gdm is really necessary – I just have not tested yet.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: