For When You Can't Have The Real Thing
[ start | index | login ]
start > Sun > Customizing dtlogin Graphics

Customizing dtlogin Graphics

Created by dave. Last edited by dave, 13 years and 119 days ago. Viewed 3,088 times. #2
[diff] [history] [edit] [rdf]
labels
attachments

Customizing dtlogin Graphics

A few caveats first:

Graphics should be 237x237 and be in X-Pixmap format

Using the CDE Image Viewer - sdtimage- (or other image manipulation tool) resize the image to the appropriate size for the icon you wish to create

  • It is somewhat complicated to get exact resizing to occur with the Image Viewer, it is best to have the files in the correct size before opening it with this tool
  • Most non-Unix graphics programs do not support saving or opening of an X-Pixmap file. GIMP works well.
Save your image as X-Pixmap format
  • File -> Save as
o Choose XPM under File Format o Save icon in /usr/dt/appconfig/icons/C or /etc/dt/appconfig/icons/C

You should be able to do this with Solaris 10 as well if you use the older look and feel of dtlogin. This can be accomplished by touching /etc/dt/config/C/styleModern

Now that we have our graphic, let's start with:

Changing the Username Screen:

Make sure that the file /etc/dt/config/C/Xresources does not exist. If it does, skip the next step and proceed with editing this file.

Copy /usr/dt/config/C/Xresources to /etc/dt/config/C/Xresources

Do not directly edit /usr/dt/config/C/Xresources as it will get overwritten on OS upgrades and possibly by patches

Edit /etc/dt/config/C/Xresources to replace the Username Screen Graphic

Navigate to the section titled "MISC"

Edit the Line that reads: !! Dtlogin*logo*bitmapFile: < bitmap or pixmap file >

Remove the two exclamation points (!!). (This is how comments are handled in this file.)

Replace < bitmap or pixmap file > with the filename of your graphic you created for the Username screen

Note: If your graphic has an xpm extension you MUST specify the file extension

Save your changes

Now let's change the password Screen

Again, edit /etc/dt/config/C/Xresources

Navigate to the section titled " Session MENU NAME MAPPINGS"

Edit the Line that reads: Dtlogin*altDtLogo1: Dtlogo

Replace Dtlogo with the filename of your graphic you created for the Password screen

Note: If your graphic has an xpm extension you MUST specify the file extension

Save your changes. Log out and back in to see the changes.

Lock Screen Graphic - Note: This will not work work under Gnome, just CDE. Xscreensaver's graphic is hardcoded in the binary.

( as a side note Golf fans will realize how old school this really is. I made these instructions back when that was a new driver)

This changes the default Lock Screen Graphic for all users.

Note: Lock screen Graphics defined in existing users $HOME/.Xdefaults file will override these settings.

Make sure that the file /etc/dt/app-defaults/C/Dtsession does not exist.

If it does, skip the next step and proceed with editing this file.

Copy /usr/dt/app-defaults/C/Dtsession to etc/dt/app-defaults/C/Dtsession

You make have to make the directories /etc/dt/app-defaults and /etc/dt/app-defaults/C as they do not exist by default

Do not directly edit /usr/dt/app-defaults/C/Dtsession as it will get overwritten on OS upgrades and possibly by patches

Edit /etc/dt/app-defaults/C/Dtsession

Edit the Line that reads: Dtsession*lockLabelPixmap.imageName: Dtlogo

Replace Dtlogo with the filename of your custom lock screen graphic (read note below on file extensions)

Note: If your graphic has an xpm extension you MUST specify the file extension

Save the changes to /etc/dt/app-defaults/C/Dtsession

Logout of your CDE Session for changes to take effect.

(Source: >>http://blogs.sun.com/roller/page/ThinGuy?entry=customizing_dtlogin_graphics)

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt