Operating System - HP-UX
1833883 Members
1501 Online
110063 Solutions
New Discussion

Re: Customizing CDE Login screen - Need more text

 
SOLVED
Go to solution
Jack C. Mahaffey
Super Advisor

Customizing CDE Login screen - Need more text

We want to customize the CDE login screen alittle to have more information.

I see "Dtlogin*greeting.labelString:" can be configured with the Xresources file.

I need more than one line. I need another line or a bitmap to display "UNAUTHORIZED USE OR ACCESS IS STRICTLY PROHIBITED"

I would like to continue to use the existing setting, such as "Welcome to ..."


Any ideas how I can fulfill both needs? If I need a bit map, will one created on the Windows platorm work?

Thanks in advance...

Jack
8 REPLIES 8
Sridhar Bhaskarla
Honored Contributor
Solution

Re: Customizing CDE Login screen - Need more text

Hi Jack,

The way I do is to put a X-startup script. For ex., under /etc/dt/config/Xsession.d directory, I created a file called 0000.greeting with the following.

MYMSG="
This system is for business purpose only. \n
Unauthorized Use or Access is strictly prohibited.\n
"
/usr/dt/bin/dterror.ds "$MYMSG" "PROPRIETORY NOTICE" "I Agree"

Logoff and login again. IT should display a window with the above message before it shows the standard greeting.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
Jack C. Mahaffey
Super Advisor

Re: Customizing CDE Login screen - Need more text

Tried the 0000.greeting approach. Didn't see any difference.
Sridhar Bhaskarla
Honored Contributor

Re: Customizing CDE Login screen - Need more text

Make sure the permissions are 555 on 0000.greeting file. It simply gets executed upon login.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Jack C. Mahaffey
Super Advisor

Re: Customizing CDE Login screen - Need more text

It works... Security setting was the problem. I'd still be interested to know if more text could be placed on the initial login screen. Been trying to get an understanding of bitmaps but not having any luck.



I think the 0000.greeting approach will work. Thanks abunch.

Jack
Sridhar Bhaskarla
Honored Contributor

Re: Customizing CDE Login screen - Need more text

Placing more text is very easy.. Just edit Xresources file and search for 'labelString'. Modify the default line that says

Dtlogin*greeting.labelString: "Welcome to %LocalHost%"

to

Dtlogin*greeting.labelString: "Welcome to %LocalHost%\n
UNAUTHORIZED USE OR ACCESS IS STRICTLY PROHIBITED"

Logoff and you should see your login screen updated with new text.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Jack C. Mahaffey
Super Advisor

Re: Customizing CDE Login screen - Need more text

The text box with the greeting does not accomodate all the letters. The message gets truncated.
Sridhar Bhaskarla
Honored Contributor

Re: Customizing CDE Login screen - Need more text

Hi Jack,

Did you try putting them in the same line? It should be like

Dtlogin*greeting.labelString: "Welcome to %LocalHost%\nUNAUTHORIZED USE OR ACCESS IS STRICTLY PROHIBITED"

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Jack C. Mahaffey
Super Advisor

Re: Customizing CDE Login screen - Need more text

yes...