Subject: Re: X won't start
To: None <djh2@axe.humboldt.edu>
From: Ken and Masami Nakata <masami@fa2.so-net.or.jp>
List: port-mac68k
Date: 05/06/1997 08:25:36
On Mon, 5 May 1997 14:41:47 -0700 (PDT),
David He <djh2@axe.humboldt.edu> wrote:
> 	I have a IIci with 8MB RAM and 100MB hard drive.  I installed
> NetBSD/Mac68K 1.2.1 Release.  It was working properly.  When I installed
> X-Windows 1.2, it boots okay but I can't get the X running.

Since you're trying to get a piece of non-existent software (there's
nothing officially known as "X-Windows 1.2") to work, I can't help
much...  Well, Ok, sorry.  I know what you mean is the package of X
Window System Version 11 Release 6 (or X11R6 or simply X) for
NetBSD/mac68k.  There are a few things you have to do to get things
going.

> I typed startx and it said, "startx: no found". I even login as root
> and went the X11R6/bin directory and there was a file named startx
> but I can't execute the file; it only said that the file is not
> found.

Though I'm pretty sure this is covered in Colin's FAQ (see
http://www.macbsd.com/macbsd/macbsd-docs/faq/), I'll give you some
idea.

This happens because your command search path (the variable PATH or
path) includes neither /usr/X11R6/bin nor "." (current working
directory).  You should add /usr/X11R6/bin to root's path but not "." 
due to a possible security hole (increased vulnerability against
Torojan Horses).  You can add the following lines to your .login or
.profile depending on the shell type of your choice:

For csh or tcsh (file is .login):
set path=($path /usr/X11R6/bin)

For sh, bash, or zsh (file is .profile):
export PATH=$PATH:/usr/X11R6/bin

Then logout and login again to make these changes effective.

Before trying startx again, you should make sure you have .xinitrc in
your home directory, or else you may get just a blank screen with an
X-shaped mouse cursor.  In .xinitrc file, you list the programs you
want to automatically run whenever you start X.  An example of minimal
.xinitrc file consists of only two lines:

twm &
xterm -sb -geometry 80x24+0+0 -name login

In this example, you'll exit X when you exit the shell in xterm window
with "login" in the titlebar.

Happy X'ing,

Ken