Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Feb 2002 22:00:33 -0800 (PST)
From:      Annelise Anderson <andrsn@andrsn.stanford.edu>
To:        leegold <no_spam@worldpost.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: nasty x problem
Message-ID:  <Pine.BSF.4.10.10202122154050.93282-100000@andrsn.stanford.edu>
In-Reply-To: <000001c1b194$6ad0f5c0$5be23ad0@ljgms2k>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Sat, 9 Feb 2002, leegold wrote:

> I'm afraid of getting myself into more trouble. Please
> keep the instructions simple and please give me
> step by step instructions, then... as a technical
> sidebar please explain to me what
>  happened\what I did wrong. (note: my email is leegold@operamail.com)
> I also check/lurk in the ques. archives
> 
> 
> 1. I tried to update from xfree86. 3 to xfree86. 4
>    I did a pkg_add and ver4 installed ok
>    I installed the xwrappers from the ports. 
>    I configured all I was supposed supposed to configure
>    in /etc/make.conf.
> 
> 2. Something went wrong. ie I was able to startx as root
>    and ver.4 was OK. But as a user I got an error message
>    saying I needed to install xwrapper. I did a pkg_info
>    and saw wrappper in the list (it was installed).
> 
> 3. went on the freebsd newgroup and asked for help.
>     As a result of the recommendations I got. I did a
>     pkg_delete of wrappper. Then I rechecked make.conf,
>     saw I had a space were I shouldn't of in the XFREE86_VERSION=4
>     string, edited and saved.
> 
> 4. I then went into posts directory for xwrapper and did a make, make install.
>     The prompt (#) returned but there were no lines scrolling at each make 
>    command I normally ecpected to see. And pkg_info said no xwrapper
>     was installed.
> 
> 5. I screwed my x up. Now I can not even startx as root or a user:
>     Below is the error output of startx: Please Help me - Thanks.
>     Note I tried and tried to redirect the error output as root
>     user to a user file but  #startx 2> /home/username/error_mess
>    just would not work so below is the error output when trying
>    to startx as a user. But, the root and users errmessages are
>    quite alike reflecting the same problem imo. Thanks
>  
> xauth:  creating new authority file /home/leegold/.Xauthority
> xauth: (argv):1:  bad display name ":0" in "list" command
> xauth:  creating new authority file /home/leegold/.Xauthority
> xauth: (argv):1:  bad display name ":0" in "add" command
> xauth:  creating new authority file /home/leegold/.Xauthority
> xauth: (argv):1:  bad display name ":0" in "list" command
> xauth:  creating new authority file /home/leegold/.Xauthority
> xauth: (argv):1:  bad display name ":0" in "add" command
> 
> 
> Fatal server error:
> Cannot open log file "/var/log/XFree86.0.log"
> 
> 
...

> xinit:  No such file or directory (errno 2):  unable to connect to X server
> xinit:  No such process (errno 3):  Server error.
> xauth:  creating new authority file /home/leegold/.Xauthority
> xauth: (argv):1:  bad display name ":0" in "remove" command
> xauth: (argv):1:  bad display name ":0" in "remove" command
> 
> ----------------end of errmess--------------

Is your hostname set, and have you rebooted since you set it? It
should be a full name, e.g., mycomputer.something.net or whatever.
It should show up if you type hostname at the prompt.

You might try deleting all the .Xauth* files in root's home directory
and also in your own home directory, which will be recreated when
you run X again.  There might be some other files you need to delete
in /var/ somewhere.

I think some of XFree-4's difficulties arise when you su -m to root,
thus keeping your "user" home directory, where XFree writes files
owned by root.  It seems to me when run as root, XFree works best
(this is also true of KDE) if run with /root as your home directory
so these root-owned files don't get created there.

	Annelise

-- 
Annelise Anderson
Author of: 		 FreeBSD: An Open-Source Operating System for Your PC
Available from:	 BSDmall.com and amazon.com
Book Website:    http://www.bittreepress.com/FreeBSD/introbook/	




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10202122154050.93282-100000>