1825706 Members
3317 Online
109686 Solutions
New Discussion

CDE login banner

 
SOLVED
Go to solution
j773303
Super Advisor

CDE login banner

How to change the CDE login banner? I've try to modify /etc/dt/config/C/Dtlogin*greeting*labelString Welcome message , it's successful, but how to modify the login user name and login passwd prompt?
Hero
15 REPLIES 15
curt larson_1
Honored Contributor

Re: CDE login banner

if you look at the dtlogin man page, going to the greeting resources sections, you'll see the only greeting messages that are modifiable are:
greeting*labelString: Welcome to %LocalHost%
and
greeting*persLabelString: Welcome %s
Joseph Loo
Honored Contributor

Re: CDE login banner

hi,

# vi ~/.dtprofile
...
export DTSOURCEPROFILE=true
...

setting the variable to true cause CDE to read a user's .profile in additiona to their .dtprofile.

regards.
what you do not see does not mean you should not believe
j773303
Super Advisor

Re: CDE login banner

Hi expert,
Please view the attachment. Could it possible remove the 192.1.8.46:0.0 -Home? Thanks.
Hero
curt larson_1
Honored Contributor

Re: CDE login banner

well i'm not familar with that language. So, I'm not sure how helpful I can be.

but you'll need to modify the correct Xresources file, in the Xconfig file it is usually defined as: %L/Xresources

with the %L being the language that your using. you can see what it is set to using the option button, language from the login screen.

if your logged in you can see what the LANG variable is set to, echo $LANG. And, see what that might correspond to by look at what languages there are be doing an ls on /usr/dt/config

then you'll need to create the directory /etc/dt/config/yourLanguage
copy the Xresources file from
/usr/dt/config/yourLanguage/Xresouces to /etc/dt/config/yourLanguage/Xresources
in this Xresources you need to modify the variables.
then reset the X server to get it to re read it's configuration.
/usr/dt/bin/dtlogin -reset
and see if that helps
Joseph Loo
Honored Contributor

Re: CDE login banner

hi,

I believe that is the $DISPLAY variable. You may like to search ~/.dtprofile for that.

regards.
what you do not see does not mean you should not believe
j773303
Super Advisor

Re: CDE login banner

How the "192.1.8.46:0.0 -Home" would shows in the CDE banner? I still can't find the what's the configuration file? Could expert give me a hand about this issue? Thanks in advanced.
Hero
Jeroen Peereboom
Honored Contributor

Re: CDE login banner

L.S.

Rather difficult to help you, having no config files (although I think the last time I read them is more than 10 years ago).

One might think that you miss a quote somewhere in a config file, causing a string to be longer than expected. So search for DISPLAY or another variable / token indicating the display in your config files and check the preceding lines.
Or is it a bug?

Maybe you should go back to the default, and modify the files step by step.

JP
Joseph Loo
Honored Contributor

Re: CDE login banner

hi,

would you mind sending your .profile and .dtprofile file for better understanding of your problem?

regards.
what you do not see does not mean you should not believe
j773303
Super Advisor

Re: CDE login banner

Hi,
Due to that's my customer machine. I can't get the .profile and .dtprofile currently. But I try to append export DISPLAY=123.456.111.000:0.0 in the .dtprofile and .profile in my test machine , then reset the CDE, but I can not see the 123.456.111.000 in the CDE login screen. Could you please tell me how to let CDE login banner has such function. Thanks in advanced.
Hero
Alex Glennie
Honored Contributor

Re: CDE login banner

I'm reasonably certain that you will not be able to modify the login user name and login passwd prompt.
Jeroen Peereboom
Honored Contributor

Re: CDE login banner

Changing .profile or .dtprofile has nothing to do with the CDE login screen. The profiles are executer after succesfull login, not before.JP.
j773303
Super Advisor

Re: CDE login banner

Dear Expert,
Please help me again and view the attachment. The .profile and .dtprofile not configure any "DISPLAY", why can see "192.1.8.46:0.0 - Home" in the CDE login screen? Thanks in advanced.

NOTES: The font is zh_TW.big5 (Chinese font)
Hero
curt larson_1
Honored Contributor

Re: CDE login banner

take a look in the files

/usr/dt/config/zh_TW.big5/Xresouces
and
/etc/dt/config/zh_TW.big5/Xresources

the /etc/.../Xresources will take precedence

take a look at the Dtlogin*greeting*labelString

the default is "Welcome to %LocalHost%"
double quotes are mine

the resource can contain %DisplayName%, which will be replaced by the X server display name.

Rick Beldin
HPE Pro
Solution

Re: CDE login banner

dtgreet, the process started by dtlogin that displays the login box has the string 'DISPLAY_NAME - SESSION' hardcoded in if the display is remote to the dtlogin session, as it will be on a PC displaying a CDE login screen. The only time it will not display is for locally managed (ie; console) displays. This is not under control of the user.

Just for clarity - .dtprofile has nothing to do with the appearance or operation of dtlogin or dtgreet.

The process sequence is like this:

dtlogin (root)
dtgreet (root)
Xsession (as user)
dtsession (as user) <<< here is where .dtprofile is used

Necessary questions: Why? What? How? When?
Doug Burton
Respected Contributor

Re: CDE login banner

I think this may help you:

Change the login screen "Welcome" message-

It can be set system-wide by adding these lines in the /etc/dt/config/C/Xresources file:

Dtlogin*greeting.labelString: Welcome to %LocalHost%\n
Insert additional message here\n
Final additional text

Note:
The \n's indicate places where new lines should appear
in the greeting.

Inserting %DisplayName% will display the X server
display name if different from the login host.

Once the user name has been entered, the login server displays the message "Welcome username" by default. This greeting string can be customized by changing the line:
Dtlogin*greeting.persLabelString: Welcome %s

Note:
The "%s" will be replaced with the username by
the system. So if you want to change the login
to read "login_name is a goof", you would make
the change look like "%s is a goof"; instead
of "Welcome %s".