Lost GUI after reinstalling gnome* related

After I reinstalled gnome* packages with portupgrade I found I can't get GUI, after I type:
Code:
startx
I get black screen, I tried to reinstall dbus, hald, xorg and gdm but nothing. I note that dbus and hald can start normally with root but not with regular user; I checked them as a normal user and I found they aren't started.

Xorg.0.log:
Code:
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/localhost:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
_XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running

Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already running

Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
Please also check the log file at "/var/log/Xorg.0.log" for additional information.
 
First: make sure X is not running. Then, as root:
# rm /tmp/.X0-lock

Then try again.

A black screen might not be an error, depending on what's in your .xinitrc or .xsession.

dbus and hald shouldn't run as user, either. As to whether either they or gdm are at fault, unknown. Possible that you skipped some things mentioned in /usr/ports/UPDATING which are required. pkg_libchk from sysutils/bsdadminscripts is useful to check for problems.

Other than that, more information is needed. What's in the files mentioned above, what's in /etc/rc.conf? Have you messed with things like securelevel, or weird things in /etc/make.conf?
 
I tried that before but it doesn't solve my problem.
pkg_libchk found only one missing library for OpenOffice, So this is not related to GUI.
I found that I can start the GUI if am a root or another regular user except in SIFE account I can't start GUI, is this mean may there any change in permissions?
 
That's good news, it means that everything is okay except permissions.

There's .Xauthority in your home directory. I've occasionally had to delete that, but not often enough to remember what happened or why.
 
Removing .Xauthority solve the problem, I found many permissions changed, also I found SIFE had been kicked from some groups he was members of theme, and if I add him to a group and found him after a while kicked out, this problem apear only for SIFE account.
 
Back
Top