<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: terminal session in CDE in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/terminal-session-in-cde/m-p/2654533#M46895</link>
    <description>The 2 methods listed above are different : &lt;BR /&gt;&lt;BR /&gt;How to enable profile execution Per-UserSession &lt;BR /&gt;To enable $HOME/.profile or $HOME/.login execution for ONE user ONCE during the login process:&lt;BR /&gt;&lt;BR /&gt;Create or modify : $HOME/.dtprofile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Find the following line to the end of this file : &lt;BR /&gt;&lt;BR /&gt;     DTSOURCEPROFILE=true&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If the comment character "#" is removed, Xsession will source the $HOME/.profile (or $HOME/.login) file for the CDE session as a whole.&lt;BR /&gt;&lt;BR /&gt;ie THE CDE SESSION / SHELL BUT if you open a dttermthis is a new shell and won't inherit envs etc listed in the .profile ! see eblow for detailed info : &lt;BR /&gt;&lt;BR /&gt;How to enable profile execution Per-Terminal&lt;BR /&gt;&lt;BR /&gt;Preliminarily, make changes to /etc/profile and $HOME/.profile such that when the user telnets or rlogins to the system, the environment is set as needed &lt;BR /&gt;&lt;BR /&gt;To profile execution on ALL terminal emulators for ALL users:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Create or modify : /etc/dt/config/C/sys.resources&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Add the following line to the end of this file : &lt;BR /&gt;&lt;BR /&gt;     *loginShell: True&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Per-User Customization:&lt;BR /&gt;&lt;BR /&gt;To profile execution on ALL terminal emulators for ONE user:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Create or modify : $HOME/.Xdefaults&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Add the following line to the end of this file:&lt;BR /&gt;&lt;BR /&gt;     *loginShell: True&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Per-Application Customization:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Create or modify : /etc/dt/app-defaults/Dtterm &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Add the following line to the end of this file: &lt;BR /&gt;&lt;BR /&gt;     *loginShell: True&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-- Or -- &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Create or modify : /etc/dt/appconfig/types/C/dt.dt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Add or modify the Dtterm entry to use the "-ls" command line option:&lt;BR /&gt;&lt;BR /&gt;ACTION Dtterm&lt;BR /&gt;     LABEL             Terminal&lt;BR /&gt;     ARG_COUNT         0&lt;BR /&gt;     ICON              Dtterm&lt;BR /&gt;     TYPE              COMMAND&lt;BR /&gt;     WINDOW_TYPE       NO_STDIO&lt;BR /&gt;     EXEC_STRING       /usr/dt/bin/dtterm -ls&lt;BR /&gt;     DESCRIPTION       The Terminal (Dtterm) action runs the desktop&lt;BR /&gt;                       Terminal Emulator application.&lt;BR /&gt;NOTE: These changes will take effect with the next login to CDE.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The $HOME/.Xdefaults file is sourced by CDE on login and any valid X Windows resources are incorporated into that CDE login session resources. The "loginShell" resource gets passed to applications and the terminal window applications interpret this and start login shells each time a terminal window is started. Login Shells by definition source the .profile or .login files. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The "*loginShell" resource will configure the terminal emulators (dtterm, hpterm, xterm) to behave as if the user had telnet-ed or rlogin-ed to the system.&lt;BR /&gt;&lt;BR /&gt;This means that the default sequence of reading /etc/profile, etc. will occur each time a terminal window is opened.&lt;BR /&gt;&lt;BR /&gt;The environment in the shell window will NOT be the same as that of the CDE session (dtsession). &lt;BR /&gt;&lt;BR /&gt;From the dtterm man page: &lt;BR /&gt;&lt;BR /&gt;  -ls         Start a login shell (the first character of argv[0] is a&lt;BR /&gt;              dash), indicating to the shell that it should read the system's&lt;BR /&gt;              profile and the user's .profile files (for ksh(1) and sh(1)), or&lt;BR /&gt;              the system's csh.login, and the user's login. (for csh(1)).&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 29 Jan 2002 10:11:22 GMT</pubDate>
    <dc:creator>Alex Glennie</dc:creator>
    <dc:date>2002-01-29T10:11:22Z</dc:date>
    <item>
      <title>terminal session in CDE</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/terminal-session-in-cde/m-p/2654530#M46892</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'd like to know where terminal sessions started from CDE are initialized, this is, is there any kind of .profile for those sessions?&lt;BR /&gt;&lt;BR /&gt;TIA</description>
      <pubDate>Tue, 29 Jan 2002 08:43:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/terminal-session-in-cde/m-p/2654530#M46892</guid>
      <dc:creator>Ruben Cardenal</dc:creator>
      <dc:date>2002-01-29T08:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: terminal session in CDE</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/terminal-session-in-cde/m-p/2654531#M46893</link>
      <description>Not sure what you mean terminal sessions but if you mean dtterms,hpterms and xterms launched from either a CDE icon/action or from a commmand line then the following may help : &lt;BR /&gt;&lt;BR /&gt;none of the above Xclients/terminal emulators source the users .profile by default : &lt;BR /&gt;&lt;BR /&gt;to do so you would need to either run them using -ls as an additional command line arg or vi $HOME/.Xdefaults and add : &lt;BR /&gt;&lt;XCLIENT&gt;*loginShell : True &lt;BR /&gt;&lt;BR /&gt;eg &lt;BR /&gt;dtterm*loginShell : True &lt;BR /&gt;&lt;BR /&gt;and then log out and back in again for the change to take effect.&lt;BR /&gt;&lt;BR /&gt;see man dtterm etc for details.&lt;BR /&gt;&lt;BR /&gt;&lt;/XCLIENT&gt;</description>
      <pubDate>Tue, 29 Jan 2002 08:54:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/terminal-session-in-cde/m-p/2654531#M46893</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2002-01-29T08:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: terminal session in CDE</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/terminal-session-in-cde/m-p/2654532#M46894</link>
      <description>In CDE the $HOME/.dtprofile is used to initialize your environment.&lt;BR /&gt;In .dtprofile you can set DTSOURCEPROFILE=true and the CDE session will also source your .profile (or .login).&lt;BR /&gt;&lt;BR /&gt;By default this is not done.&lt;BR /&gt;&lt;BR /&gt;Read the comments in .dtprofile and change your .profile as requested before you allow CDE to source your .profile.&lt;BR /&gt;This is important, because if CDE detects errors during sourcing your .profile the login will fail. Then you have to use a failsafe session and fix the errors in your .profile.&lt;BR /&gt;&lt;BR /&gt;Hardy</description>
      <pubDate>Tue, 29 Jan 2002 09:43:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/terminal-session-in-cde/m-p/2654532#M46894</guid>
      <dc:creator>Hartmut Lang</dc:creator>
      <dc:date>2002-01-29T09:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: terminal session in CDE</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/terminal-session-in-cde/m-p/2654533#M46895</link>
      <description>The 2 methods listed above are different : &lt;BR /&gt;&lt;BR /&gt;How to enable profile execution Per-UserSession &lt;BR /&gt;To enable $HOME/.profile or $HOME/.login execution for ONE user ONCE during the login process:&lt;BR /&gt;&lt;BR /&gt;Create or modify : $HOME/.dtprofile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Find the following line to the end of this file : &lt;BR /&gt;&lt;BR /&gt;     DTSOURCEPROFILE=true&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If the comment character "#" is removed, Xsession will source the $HOME/.profile (or $HOME/.login) file for the CDE session as a whole.&lt;BR /&gt;&lt;BR /&gt;ie THE CDE SESSION / SHELL BUT if you open a dttermthis is a new shell and won't inherit envs etc listed in the .profile ! see eblow for detailed info : &lt;BR /&gt;&lt;BR /&gt;How to enable profile execution Per-Terminal&lt;BR /&gt;&lt;BR /&gt;Preliminarily, make changes to /etc/profile and $HOME/.profile such that when the user telnets or rlogins to the system, the environment is set as needed &lt;BR /&gt;&lt;BR /&gt;To profile execution on ALL terminal emulators for ALL users:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Create or modify : /etc/dt/config/C/sys.resources&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Add the following line to the end of this file : &lt;BR /&gt;&lt;BR /&gt;     *loginShell: True&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Per-User Customization:&lt;BR /&gt;&lt;BR /&gt;To profile execution on ALL terminal emulators for ONE user:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Create or modify : $HOME/.Xdefaults&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Add the following line to the end of this file:&lt;BR /&gt;&lt;BR /&gt;     *loginShell: True&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Per-Application Customization:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Create or modify : /etc/dt/app-defaults/Dtterm &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Add the following line to the end of this file: &lt;BR /&gt;&lt;BR /&gt;     *loginShell: True&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-- Or -- &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Create or modify : /etc/dt/appconfig/types/C/dt.dt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Add or modify the Dtterm entry to use the "-ls" command line option:&lt;BR /&gt;&lt;BR /&gt;ACTION Dtterm&lt;BR /&gt;     LABEL             Terminal&lt;BR /&gt;     ARG_COUNT         0&lt;BR /&gt;     ICON              Dtterm&lt;BR /&gt;     TYPE              COMMAND&lt;BR /&gt;     WINDOW_TYPE       NO_STDIO&lt;BR /&gt;     EXEC_STRING       /usr/dt/bin/dtterm -ls&lt;BR /&gt;     DESCRIPTION       The Terminal (Dtterm) action runs the desktop&lt;BR /&gt;                       Terminal Emulator application.&lt;BR /&gt;NOTE: These changes will take effect with the next login to CDE.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The $HOME/.Xdefaults file is sourced by CDE on login and any valid X Windows resources are incorporated into that CDE login session resources. The "loginShell" resource gets passed to applications and the terminal window applications interpret this and start login shells each time a terminal window is started. Login Shells by definition source the .profile or .login files. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The "*loginShell" resource will configure the terminal emulators (dtterm, hpterm, xterm) to behave as if the user had telnet-ed or rlogin-ed to the system.&lt;BR /&gt;&lt;BR /&gt;This means that the default sequence of reading /etc/profile, etc. will occur each time a terminal window is opened.&lt;BR /&gt;&lt;BR /&gt;The environment in the shell window will NOT be the same as that of the CDE session (dtsession). &lt;BR /&gt;&lt;BR /&gt;From the dtterm man page: &lt;BR /&gt;&lt;BR /&gt;  -ls         Start a login shell (the first character of argv[0] is a&lt;BR /&gt;              dash), indicating to the shell that it should read the system's&lt;BR /&gt;              profile and the user's .profile files (for ksh(1) and sh(1)), or&lt;BR /&gt;              the system's csh.login, and the user's login. (for csh(1)).&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Jan 2002 10:11:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/terminal-session-in-cde/m-p/2654533#M46895</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2002-01-29T10:11:22Z</dc:date>
    </item>
  </channel>
</rss>

