View previous topic :: View next topic |
Author |
Message |
yuilsa n00b
Joined: 11 Mar 2005 Posts: 54
|
Posted: Thu Jul 28, 2005 6:13 am Post subject: FIrewall rules halt gnome |
|
|
Today (2005/07/27) I did emerge world...and had to download about 30 gnome packages (2.10.1 I believe). After a restart, I can no longer get into gnome.
I login, then I type: startx
My nvidia logo appears and disappears and the mouse cursor shows...the Gentoo Gnome splash screen shows but it makes no progressions (so no icons appear as it loads). It appears to be frozen. Ctrl-Alt-Backspace kills it. I try again....startx....this time my nvidia logo appears and disappears, but now the splash screen does not show up at all. The computer sits and does nothing. I can hit Ctrl-Alt-Backspace and this behavior will repeat forever.
If I remove .xinitrc (or get rid of exec gnome-session), then I can load x just fine...so I do believe this is gnome issue. I could use some help pinpointing exactly what the problem is...but I have no idea how to get gnome to output a log of what it is trying to do. Are there some gnome temp files that I can remove? I already cleaned out /tmp.
Please help.
Last edited by yuilsa on Sat Jul 30, 2005 9:56 pm; edited 1 time in total |
|
Back to top |
|
|
TheRAt Veteran
Joined: 03 Jun 2002 Posts: 1580
|
Posted: Thu Jul 28, 2005 6:55 am Post subject: |
|
|
Have you tried removing (or moving to a different location) your current gnome preferences?
Does this happen on other accounts on the machine, or just this user acount? _________________ All reality is the construct of the observer.
Get Firefox and rediscover the web!
BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it. |
|
Back to top |
|
|
yuilsa n00b
Joined: 11 Mar 2005 Posts: 54
|
Posted: Thu Jul 28, 2005 7:17 am Post subject: |
|
|
I removed .gnome, .gnome2, and .gnome_private....this did not remove the problem.
I also created a new user and did: echo exec gnome-session >> .xinitrc
Then, 'startx'. This user had the same exact problems.
So, it seems that gnome itself is not working.
How do I troubleshoot this?
Thanks. |
|
Back to top |
|
|
TheRAt Veteran
Joined: 03 Jun 2002 Posts: 1580
|
Posted: Thu Jul 28, 2005 7:44 am Post subject: |
|
|
My first port of call would be the Gentoo Bugzilla..
2.10.1 works without any problems here.. Have you tried to recompile the updates, or tried revdep-rebuild ? _________________ All reality is the construct of the observer.
Get Firefox and rediscover the web!
BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it. |
|
Back to top |
|
|
yuilsa n00b
Joined: 11 Mar 2005 Posts: 54
|
Posted: Thu Jul 28, 2005 11:24 am Post subject: Packages |
|
|
Alright...my system was working on 2005.07.26
Last edited by yuilsa on Thu Jul 28, 2005 5:24 pm; edited 1 time in total |
|
Back to top |
|
|
beydaba n00b
Joined: 28 Jul 2005 Posts: 3 Location: istanbul/Turkey
|
Posted: Thu Jul 28, 2005 11:44 am Post subject: |
|
|
i solved same problem
emerge gnome-xscreensaver again. |
|
Back to top |
|
|
yuilsa n00b
Joined: 11 Mar 2005 Posts: 54
|
Posted: Thu Jul 28, 2005 4:31 pm Post subject: Progress? |
|
|
Hi guys...I'm still stuck.
Earlier I deleted the /tmp folder....bad idea I think.
I suspected this was part of the problem because I didn't recreate it properly.
chmod +trwx /tmp
So, I made sure it had the stick bit.
I create a new user and then create the .xinitrc file. Then I type: startx. X loads and the gnome splash screen loads. Normally, icons will load in the splash screen, but they are not. Basically, the splash screen just sits there. Ctrl-Alt-Backspace and then a ls -la in the home directory does show that the gnome directories were created. So something is holding this up.
Any ideas? This is happening for ANY user...new or old.
I am getting this error listed: --glXgetActiveScreen /usr/lib/modules/extensions/libdri.a symbol not resolved or something like that. It doesn't seem to affect anything though. I can still run glxgears and I get around 5000 fps.
Also notice, X still does work.
I am writing the message:
$X &
$xterm -display :0
And if I delete .xinitrc (so that I am not loading gnome), then startx works perfectly. I do believe the problem is with gnome. |
|
Back to top |
|
|
yuilsa n00b
Joined: 11 Mar 2005 Posts: 54
|
Posted: Thu Jul 28, 2005 4:43 pm Post subject: |
|
|
I am borderline reloading all of gentoo. I can't understand why it is so difficult to find out what is going wrong....I don't even care if I can fix it right now...I just want to figure out where gnome is locking up.
Does anyone have a solution?
What about re-emerging all of gnome? How do I completly uninstall all of gnome gconf and all of its friends without uninstalling all my programs that depend on gnome. Then I will start over and install gnome again. |
|
Back to top |
|
|
yuilsa n00b
Joined: 11 Mar 2005 Posts: 54
|
Posted: Thu Jul 28, 2005 5:21 pm Post subject: |
|
|
This is where I am at.
Code: |
$ X &
$ xterm -display :0
|
From within :0
From within the gnome-terminal:
Code: |
$ exec gnome-session
SESSION_MANAGER=local/crocadellic:/tmp/.ICE-unix/13136
|
Upon execution, the gnome splash screen pops up and that is it. It does not load anything and it just sits there. Normally, I would expect icons to appear on the splash screen as it loads.
So, how do I fix this? How do I figure out what gnome-session is doing?
How can I determine which programs gnome-session launches and the order in which they launch. Perhaps I can try loading them myself to see what is holding this up. |
|
Back to top |
|
|
yuilsa n00b
Joined: 11 Mar 2005 Posts: 54
|
Posted: Sat Jul 30, 2005 9:56 pm Post subject: |
|
|
I found what the problem was!!! I'd like to learn from this mistake, so please help me out.
Recap: After some updates (and some additions on my part that I didn't think could be the cause), gnome would not load anymore. X would load just fine....twm worked...and I could run xterm in X. However, anytime I tried to load gnome, it would hang and not load at all.
Frustrated, I reloaded my machine. The problem popped up again after I started doing my configurations (I am new to this stuff). Well, I discovered that my firewall rules were the problem. When iptables is loaded, gnome will not start...if gnome is already started and then iptables is loaded, then gnome will not stop. When I turn off iptables, gnome loads perfectly again. So the problem is DEFINITELY my firewall rules.
1) How could I have determined this BEFORE I reloaded? Shouldn't there have been some log file that I could have referred to that would have told me that some sort of communication was not working correctly (it only affected gnome...since twm was working just fine).
2) Why do my firewall rules break gnome? I didn't think that gnome needed to send packets out when loading.
3) How can I fix my firewall rules?
Code: |
# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
BLACKLIST tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:http
DROP all -- anywhere anywhere state INVALID,NEW
Chain FORWARD (policy ACCEPT)
target prot opt source destination
DROP all -- anywhere anywhere state INVALID,NEW
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain BLACKLIST (1 references)
target prot opt source destination
|
I also am using this perl script called sshblacklist...but it just adds entries to the BLACKLIST chain. Right now, the chain is empty...so anything that is placed in the BLACKLIST chain will just go back to the INPUT chain. At least, this is my understanding.
Last edited by yuilsa on Fri Nov 17, 2006 11:46 pm; edited 1 time in total |
|
Back to top |
|
|
swanson Tux's lil' helper
Joined: 04 Jun 2004 Posts: 147 Location: Edinburgh, Scotland
|
Posted: Sat Jul 30, 2005 10:12 pm Post subject: |
|
|
Your problem is likely to have been due to you not allowing any local connections in your firewall and some process which isn't using Unix sockets needs a local connection. You'll need to allow loopback as the first iptables rule;
Code: |
/sbin/iptables -I INPUT -i lo -j ACCEPT
|
You could check the .xsession-errors file in your directory for any errors. Note the file is overwritten on every new X session. _________________ Alan. |
|
Back to top |
|
|
|