[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Startup of X fails



In message <[🔎] m0zUCmE-0001BcC@snafu.livenet.net>, MJ Watson
<mjwatson@snafu.livenet.net> wrote:

||  After installing 2.0 clean onto my PC, attempts to start up any
||  window manager fails, as does just trying to start an xterm.
||
||  This output is from an attempt to start up fvwm2:

What are you trying to do?  Are you trying to run

 * fvwm2,
 * xterm, or
 * startx

from

 * within an X session?
 * a (virtual) console?

I'll assume startx from a console.

||  -----------------------------------------------------
||
||
||  [FVWM][main]: <<ERROR>> Unknown option:  `:0'
||
||  [FVWM][main]: <<ERROR>> Unknown option:  `-auth'
||
||  [FVWM][main]: <<ERROR>> Unknown option:  `/root/.Xauthority'

"/root/.Xauthority" really should be "$HOME/.Xauthority".  Is $HOME /root?
Is fvwm2 running as root?  You say below you're not doing this as root.

||  Fvwm Version 2.0.46 Usage:
||
||    X [-d dpy] [-debug] [-f config_cmd] [-s] [-blackout] [-version] [-h]

Hey?  Fvwm2 seems to think "$0" = "X"?  Combined with the /root above,
I think your system starts fvwm2 where it should start the X server.
Check out /etc/X11/Xserver:

    $ head -1 /etc/X11/Xserver
    /usr/X11R6/bin/XF86_Mach64
    $

My guess is that line in your version reads /usr/X11R6/bin/fvwm2, or
maybe /etc/X11/xinit/xinitrc or /usr/X11R6/bin/xinit.

If it's okay (i.e. it contains the X server of your choice, not a window
manager), you may have symlinked X to fvwm2.  Check:

    $ ls -l /usr/X11R6/bin/X*
    -rwsr-xr-x   1 root     root         4344 Jun 20  1997 /usr/X11R6/bin/X
    -rwxr-xr-x   1 root     root      1617852 Nov 22  1996 /usr/X11R6/bin/XF86_Mach64
    $

||  [FVWM][main]: <<ERROR>> can't open display
||  _X11TransSocketUNIXConnect: Can't connect: errno = 2
||  _X11TransSocketUNIXConnect: Can't connect: errno = 2
||  _X11TransSocketUNIXConnect: Can't connect: errno = 2
||  _X11TransSocketUNIXConnect: Can't connect: errno = 2
||  _X11TransSocketUNIXConnect: Can't connect: errno = 2
||  _X11TransSocketUNIXConnect: Can't connect: errno = 2
||  giving up.
||  xinit:  No such file or directory (errno 2):  unable to connect to X server
||  xinit:  No such process (errno 3):  Server error.
||
||  -----------------------------------------------------
||
||  Any suggestions?  XF86Setup seems to go OK, though it may have been done as
||  root, but I'm trying to start my windows as under my userid.  I'm not
||  trying to run xdm, just doing a startx.

It could also be that your startx script is at fault.  It is passing
the arguments

    :0 -auth /root/.Xauthority

to the client script (/etc/X11/xinit/xinitrc or ~/.xinitrc) instead of
the X server.

Try to do

    /bin/sh -x /usr/X11R6/bin/startx 2>/tmp/startx.stderr

to find out what goes on.

Good luck.                                                        Vincent.


Reply to: