GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- CDE Terminal behavior
Operating System - HP-UX
1850314
Members
3067
Online
104054
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2002 07:40 PM
04-04-2002 07:40 PM
I just setup a 715/50 HPUX 10.20 and all is working just fine except when I click on the "Terminal" icon. The "Terminal" starts ok but I don't have any of the customizations that were setup when I telnet to the machine. I have a custom prompt and I use history. I can su - root or any other user and it seems to read the local .profile just fine. I would like to avoid having to start a terminal then su evertime I want to actually use it. I am new to CDE and X so please forgive me if this is something that everyone knows except me.
If it has wheels or a skirt, you can't afford it.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2002 10:49 PM
04-04-2002 10:49 PM
Solution
HI,
if you open a new terminalwindow in CDE a dtterm is opend. Dtterm uses the settings from .dtprofile and not from .profile.
If you log in using telnet .profile is read.
You can use this behavior to set GUI specific stuff in the .dtprofile and everything else in th .profile.
Then you use DTSOURCEPROFILE=true in your .dtprofile. This will read all the GUI specific stuff from your .dtprofile and then the complete .profile. So you will have the same settings in your CDE Terminal as in your telnet session.
Hope this helps
Regards Stefan
if you open a new terminalwindow in CDE a dtterm is opend. Dtterm uses the settings from .dtprofile and not from .profile.
If you log in using telnet .profile is read.
You can use this behavior to set GUI specific stuff in the .dtprofile and everything else in th .profile.
Then you use DTSOURCEPROFILE=true in your .dtprofile. This will read all the GUI specific stuff from your .dtprofile and then the complete .profile. So you will have the same settings in your CDE Terminal as in your telnet session.
Hope this helps
Regards Stefan
No Mouse found. System halted. Press Mousebutton to continue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2002 11:18 PM
04-04-2002 11:18 PM
Re: CDE Terminal behavior
Hi
PROBLEM
--------
How to make sure in CDE that profile is used.
SOLUTION:
----------
1: Setup the ttymodes and login shell for CDE.
1)For user specific change Create a $HOME/.Xdefaults file
1b)For system wide changes copy the file /usr/dt/config/C/sys.resources to the
/etc/dt/config/C directory.
2)In the file selected apply the following lines for the tty modes and the force of sourcing the profile, each time you open a new shell.
*ttyModes: erase ^H intr ^C kill ^U start ^Q stop ^S swtch ^@ susp ^Z
*loginShell: True
NOTE: make sure that you have no blanks in front of *ttyModes ..... and no blanks i front of *loginShell ....
3) Make sure to have the latest shell patches installed to avoid known problems with the ksh and Posix shell.
hp-ux_patches/s700_800/10.X/PHCO_20018
hp-ux_patches/s700_800/10.X/PHCO_19052
4) Modify the /etc/profile and the $HOME/.profiles to have a IF-Statement around and settings for DISPLAY, stty and other
services, which should not be executed under CDE..
Everything between these lines, will not be executed when the login comes from CDE:
if [ ! "$DT" ]; then
.
.
.
fi # if !DT
Steve Steel
PROBLEM
--------
How to make sure in CDE that profile is used.
SOLUTION:
----------
1: Setup the ttymodes and login shell for CDE.
1)For user specific change Create a $HOME/.Xdefaults file
1b)For system wide changes copy the file /usr/dt/config/C/sys.resources to the
/etc/dt/config/C directory.
2)In the file selected apply the following lines for the tty modes and the force of sourcing the profile, each time you open a new shell.
*ttyModes: erase ^H intr ^C kill ^U start ^Q stop ^S swtch ^@ susp ^Z
*loginShell: True
NOTE: make sure that you have no blanks in front of *ttyModes ..... and no blanks i front of *loginShell ....
3) Make sure to have the latest shell patches installed to avoid known problems with the ksh and Posix shell.
hp-ux_patches/s700_800/10.X/PHCO_20018
hp-ux_patches/s700_800/10.X/PHCO_19052
4) Modify the /etc/profile and the $HOME/.profiles to have a IF-Statement around and settings for DISPLAY, stty and other
services, which should not be executed under CDE..
Everything between these lines, will not be executed when the login comes from CDE:
if [ ! "$DT" ]; then
.
.
.
fi # if !DT
Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2002 11:31 PM
04-04-2002 11:31 PM
Re: CDE Terminal behavior
John,
Check out man dtterm and look at the loginShell resource and/or -ls option .... by default CDE's terms - dt,X & hp terms : do not source the users .profile.
simply do this :
vi $HOME/.Xdefaults
Dtterm*loginShell : True
wq!
exit out of CDE then log back in your .profile will now be executed.
or just run "dtterm -ls &" from within an existing dtterm window.
Check out man dtterm and look at the loginShell resource and/or -ls option .... by default CDE's terms - dt,X & hp terms : do not source the users .profile.
simply do this :
vi $HOME/.Xdefaults
Dtterm*loginShell : True
wq!
exit out of CDE then log back in your .profile will now be executed.
or just run "dtterm -ls &" from within an existing dtterm window.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP