Subject: .login .profile .cshrc
To: port-mac68k <port-mac68k@netbsd.org>
From: Guy Santiglia <fredfl2@guy.chonju21.net>
List: port-mac68k
Date: 07/05/1999 19:53:31
	
  I'm trying to build qt-2.00 a package needed for koffice.
In the INSTALL file it says that I need to set some variables
before I can build it. See the excerpt from the install file below:

In .login (in case your shell is csh or tcsh), add the following lines:

        if ( ! $?QTDIR ) then
            setenv QTDIR /usr/local/qt
        endif
....... and so on and so fourth

Now I had a hell of a time getting this to work.  First I tried just like
they said and put this into .login in root's home directory. (I'm using tcsh) 
That wasn't 
setting the variables when I logged on.  Then I tried putting those lines in 
.xsession because I'm running xdm.
I couldn't log in as root with xdm after trying this one.
  So then I tried stopping xdm in the rc.conf file and rebooting.  And
then something really strange
happened-- the system would boot, but it wouldn't give me a log in prompt.
The system was up and running because I could telnet to it from the PC next to
it.  However no login prompt.  

I put things back to "normal"
Then I tried putting those lines from the qt INSTALL file into .cshrc and that
finally worked :)  But now I have a few questions.

  Did I do the right thing by putting the path setting script lines in the
.cshrc file in /root?  Should I have just put them in /etc/csh.chsrc?

  Why did .login seem to have no effect on setting those path variables?

 What could have caused the system not give me a login prompt but be completely 
booted otherwise?


Is anyone else running that koffice on their machine?

	Guy




____________________________________________________________
Guy Santiglia  Quadra 610, 50 MHZ, NetBSD 1.4!
South Korea
____________________________________________________________