1835114 Members
2050 Online
110076 Solutions
New Discussion

Re: cde customizations

 
curt larson_1
Honored Contributor

cde customizations

I had a couple questions about making customizations to the CDE login.

1) one of the things i've noticed is when root logs in all the shell's start with "/" as the current working directory. now, root's home directory is /root. Other users login into their home directory. To be consistant I'd like for to login to their home directory too.
So, what needs to be modified for this to occur.

2) the second things is customizing the terminals. I thought I could copy /usr/dt/config/C/sys.resources to /etc/dt/config/C/sys.resources
then add a few things like
*loginShell: true
*scrollBar: true

i've tried dtconfig -reset, loging out and loging in, rebooting the system, but I don't see any of the customization occuring.

So, I'm I doing this right?
(and I don't want to use ~/.Xdefaults to do this)
7 REPLIES 7
Jeroen Peereboom
Honored Contributor

Re: cde customizations

L.S.

1. Do you want root terminals to start at /root? Then change root's homedir in /etc/profile (but homedir must be in / filesystem?!)

2. To change dtterm things modify /usr/dt/app-defaults/C/Dtterm
*saveLines=1000
*loginShell: true

JP.
Jeroen Peereboom
Honored Contributor

Re: cde customizations

Oops,

I meant changing root's homedir in /etc/passwd.
(But maybe a cd command in the .profile or .kshrc may help too.)

JP.
curt larson_1
Honored Contributor

Re: cde customizations

Jeroen, to answer your questions:

Do you want root terminals to start at /root?

I want to start at root's home directory. Which is /root as defined in /etc/passwd. So, your suggestion to change root's homedir in /etc/profile has already been done.

(But maybe a cd command in the .profile or .kshrc may help too.)

I setup .dtprofile to source .profile. And putting a cd command in .profile doesn't matter. you can cd to whereever and the shell still starts out with "/" as the current directory
curt larson_1
Honored Contributor

Re: cde customizations

looks like the answer to number 1 was:

the home session remembers what the current working directory is. I happened to notice that a dtterm started using the desktop_app terminal icon did put the shell at the login directory, /root in my case.

So, removed the terminals that had the shell loging in at /. started up different terminal windows and saved that as the home session.
curt larson_1
Honored Contributor

Re: cde customizations

not having too much luck with #2.

putting Dtterm*loginShell: true and other such resource settings in ~/.Xdefaults did get the dtterm windows to behave as a login shell.

the same isn't true for hpterms or xterms. If the windows are started from the command line within a dtterm, hpterm or xterm get the same environment that the dtterm had. If started via an icon, a hpterm or xterm get the cde default environment. And, if started from the command line with the -ls option, the window does behave as a login shell.

I've tried setting the resources in:
/etc/dt/config/C/sys.resources
/etc/dt/config/C/sys.dtwmrc
/usr/dt/config/C/sys.resources
/usr/dt/config/C/sys.dtwmrc
~/.Xdefaults

but, I still can't seem to get a hpterm or xterm to startup with a login shell.

any suggestions on what I might be doing incorrectly?
Doug Burton
Respected Contributor

Re: cde customizations

You may want to try this for item #2:

Add the following:
*loginShell: true
*saveLines: 1024
*scrollBar: true

to these files:

/usr/lib/X11/app-defaults/HPterm
/usr/lib/X11/app-defaults/XTerm
/usr/dt/app-defaults/C/Dtterm

You may also want to check/uncomment:
DTSOURCEPROFILE=true
found in the ~/.dtprofile file (if your using CDE).
curt larson_1
Honored Contributor

Re: cde customizations

one of my problems was that I was using the resource names of Xterm and Hpterm. I should have been using XTerm and HPterm.

once I used these putting the resources in ~/.Xdefaults and
/usr/lib/X11/app-defaults/HPterm
/usr/lib/X11/app-defaults/XTerm
/usr/dt/app-defaults/C/Dtterm
did work just fine

still don't know why
/etc/dt/config/C/sys.resources
/etc/dt/config/C/sys.dtwmrc
don't work at all