SUMMARY: CDE .profile

From: Rodney Wines (Rodney.Wines@ahqps.alcatel.fr)
Date: Wed Jul 26 2000 - 09:36:03 CDT


I managed to delete my original message, but as best I can recall I asked
about configuring .profile so that CDE always started at boot on my Solaris 7
system, but users connecting via xterm windows from their PC's would get a
straight login.

I only got a couple of responses, and I apparently wasn't clear enough in my
original question, because the people who did respond didn't understand my
problem. However, I managed to figure it out myself by digging through the
backups from the last time I installed a Solaris server with a graphics head
and recovering the .profile and .dtprofile.

The secret is first to create a .dtprofile. There's a template somewhere,
but I can't find it on my new system. In the .dtprofile file, you need to
add:

    DTSOURCEPROFILE=true

This does what it says; it sourses your .profile during CDE login.

It's then necessary to modify the .profile so that any commands that dink
with the terminal, expect standard input, etc, are bypassed for CDE login.
The .profile should have an if statement something like this:

     if [ ! "$DT" ]; then
       #
       # commands and environment variables not appropriate for desktop
       #
       stty ...
        tset ...
        DISPLAY=mydisplay:0
        ...
     fi

That's all there is to it. Works great, lasts a long time.

Rodney

S
U BEFORE POSTING please READ the FAQ located at
N ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/faq
. and the list POLICY statement located at
M ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/policy
A To submit questions/summaries to this list send your email message to:
N sun-managers@ececs.uc.edu
A To unsubscribe from this list please send an email message to:
G majordomo@sunmanagers.ececs.uc.edu
E and in the BODY type:
R unsubscribe sun-managers
S Or
. unsubscribe sun-managers original@subscription.address
L To view an archive of this list please visit:
I http://www.latech.edu/sunman.html
S
T



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:13 CDT