startx, xauth msg and Solaris 8

I just built my first Solaris 8 machine. I start x using this command (assume I'm in the correct directory):

./startx

After I run this command, I receive this extremely frustrating message:

/startx: XAUTHORITY=//.Xauthority: is not an identifier

Can someone tell me what I am doing incorrectly?

Other vitals:

Running Solaris 8 (7/01 release) on an INTEL machine

Thanks!

Pete

Hi Pete.

It seems like your startx script is using korn shell or bash shell to export variables \(like "export VAR=value"\). Since Solaris uses bourne shell as default, you can try using korn shell before starting the startx script. You can also include \#!/bin/ksh or \#!/bin/bash in the first line of the startx script. That may solve your problem. Any problems, let me know.

HTT

Hi Pete!

 About the new errors you got, you can search for xinit script in your system \(I�m not sure but it may be in /usr/X11R6/bin or something like that\). If you find it, you can do two things: you can put the full path in startx script \(line 81, as ksh tells\) or you can set-up your PATH environmental variable to include xinit�s path. If you set-up PATH variable you do not have ro change your startx script. Any problems let me know.

HTT

The xinit script and the startx script are both in the same folder:

/usr/X11R6/bin

So, I'm a bit confused as to why startx cannot seem to find xinit?

I really appreciate your help!

Pete

Hi Pete.

Try this:

# PATH=$PATH:/usr/X11R6/bin
# export PATH
# startx

It must help

HTT