Operating System - HP-UX
1753879 Members
7633 Online
108809 Solutions
New Discussion юеВ

.profile not running when logging in via Envizex Xterminals

 
Randy Brown_1
Frequent Advisor

.profile not running when logging in via Envizex Xterminals

We have users using the HP Envizex Xterminals on their desks logging in to a machine running HP-UX 10.20 and another running HP-UX 11i. When users log in, their .profiles do not run. They can source them to make them run, but they shouldn't have to. Once logged in via their Xterm, if they rlogin or telnet to the other machine their .profile runs upon login. Also, if they log in via Exceed from their PC the .profile runs. It's only the login via the Xterm that doesn't run it. The 11i machine was just upgraded from 10.20 and the problem has appeared since that upgrade. When that machine ran 10.20, it didn't happen and our other 10.20 machines that have not been recently upgraded do not have this problem so it must be a config problem somewhere, but I can't find it. The /usr/lib/X11/app-defaults/XTerm file has
*LoginShell: True
in it. I'm not sure where to go from here. Any ideas or points in the right direction would be greatly appreciated! Thank you!

Randy
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: .profile not running when logging in via Envizex Xterminals

I believe the file that runs for CDE is .dteprofile

or .dtprofile.

I'm not up on 10.20, but its a .dt file.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Leif Halvarsson_2
Honored Contributor

Re: .profile not running when logging in via Envizex Xterminals

Hi,
Do the users run VUE or CDE in 10.20 (as I remember VUE was default. Enviroment settings differs in VUE and CDE. The enviro files is $HOME/.vueprofile and $HOME/.dtprofile. To source .profile hou must uncomment the following line in .dtprofile

#DTSOURCEPROFILE=true

It is commented out by default.
Stuart Abramson_2
Honored Contributor

Re: .profile not running when logging in via Envizex Xterminals

2. Modify CDE to read your .profile at login:

a. System-wide:
cd /etc/dt/app-defaults/C
cp /usr/dt/app-defaults/C/Dtterm .
cp Dtterm Dtterm.orig
vi Dtterm
add:
*loginShell: True
Dtterm*saveLines: 20s # 20 screens
EXIT
login again

Apparently /etc/dt overrides /usr/dt ??

OR:

b. For an individual user:

vi .dtprofile
uncomment last line of file:
DTSOURCEPROFILE=true
Bill Hassell
Honored Contributor

Re: .profile not running when logging in via Envizex Xterminals

Xwindows has a very complex set of rules about what happens when the desktop runs (VUE or CDE) and what happens when a terminal emulator runs (dtterm, xterm or hpterm). The default is always to ignore /etc/profile and .profile so logins are non-standard compared to a telnet login. The easiest way to fix this is to tell all the terminal emualtors to perform a tre login. This can be done by creating a .Xdefaults file for each user:

echo '*loginShell: true' >> $HOME/.Xdefaults

Note that spelling and capitalization is important. Now when the remote computer is asked to run a terminal window, you will see the actions of /etc/profile and .profile rather then a simple prompt. .Xdefaults can be to customize the appearance and other options for Xwindow programs.


Bill Hassell, sysadmin