Problems with 'exec startx'

gserv2

Registered
I used to be able to run X11 (not Apple's X11) under >console user mode after logging out of OS X. Now when I type exec startx, The usual grey screen opens up and shows the X-shaped cursor. However, the Xterms don't open and I get stuck with no way out other than the restart button. This is the line from my ~/.tcshrc file that used to work:

setenv PATH "${PATH}:/usr/X11R6/bin"

Why did this all of a sudden stop working, and how can I fix it?
 
What's the xinitrc file look like? That could be the problem.

Should be at /etc/X11/xinit/xinitrc (unless you made a .xinitrc file in your home folder, then X11 would use that one).

Also, did you change shells? Because if you're not using tcsh anymore, it wouldn't go through that file.
 
Here's my xinitrc:

!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi

# start some nice programs

#twm & <---default

/usr/local/bin/blackbox &

#xclock -geometry 50x50-1+1 &
#xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+270+230 &
xec xterm -geometry 80x20+0+0 -name login


I was also having problems before I added the line for the Blackbox window manager. And I did not change shells.
 
Hmm...don't see anything wrong with the config file. You could try adding the PATH variable to it (with sh, it would be PATH="${PATH}:/usr/X11R6/bin"; export PATH) and see if that works.

edit: I just noticed something - add a colom after /usr/X11R6/bin in the path statement. I believe you need that, even though nothing comes after it. And do echo $PATH in the term - you may have two colons before it. That may be messing things up a little.
 
Back
Top