LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-08-2003, 02:16 AM   #1
simbo
LQ Newbie
 
Registered: Apr 2003
Posts: 17

Rep: Reputation: 0
startx problems


Hi all,
I'm using RH 8.0, with 2.4.18-14, I'm a beginner at this and i can't get the GUI to load up, even on start up, it can't get to the login screen, and I have to do a ctrl-alt-f1, so i can login, where i login as root for now, so that's the first problem. Then when I type startx, i get following msg. :

hostname: Host name lookup failure

Fatal server error:
Server is already active for display 0
if this server is no longer running, remove /tmp/.X0-lock
and start again

Xlib: Connection to ":0.0" refuseed by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key giving up
xinit: unable to connect to X servers
xinit: No such process (errno 3): Server error.

P.S. thanks in advance, I have no idea where to start, also when i remove that /tmp/.X0-lock file i get other similar warning but with no soket listening (establishing). Anyways thanks again for your help.

Regards,

Sim
 
Old 12-08-2003, 03:10 AM   #2
emu_123
Member
 
Registered: Oct 2003
Location: Australia
Distribution: LFS unstable and Mandrake 10.1
Posts: 54

Rep: Reputation: 15
The 'server is already active for display 0' means that there is already a server going on display 0 (which would more then likely be the graphical login screen) which is why the connection refused error appears.

Run 'telinit 3' to bring yourself to only a console login which should kill your graphical login for now. Try 'startx' again and if it comes up with the same error, do 'ps aux' and look for any kdm, gdm, or xdm processes and note the pid. Kill those processes with a 'kill (pid here)' ,delete the /tmp/.X0-lock if it still exists and then try startx again.

It should now either start or die with a different error message. If so, post that particular error message.
 
Old 12-08-2003, 04:25 AM   #3
simbo
LQ Newbie
 
Registered: Apr 2003
Posts: 17

Original Poster
Rep: Reputation: 0
still no luck

ok, i did telinit 3 and it did:

INIT: Switching run level: 3
INIT:Sending processes the term signal
starting iptables: [OK]
Starting automount:No Mountpoints defined [OK]
Starting lpd:No printers Defines [OK]

then i did startx, and it sounded like it was loading but the screen went grey ("Snow show"), and after that it was stuck, so i had to reboot.

After rebooting i went to /var/log/XFree86.0.log and it's way too long to post here i think, so i tries startX after removing /tmp/.X0-lock and by the way i checked for kdm,gdm and xdm processes but they weren't there, there were however kdeinit and other kde processes running. so back to startx after removing that file i got the following error:

_XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running

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

When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
This can be found in the log file "/var/log/XFree86.0.log".
Please report problems to xfree86@xfree86.org.

Yeah, just wanna say thanks for your help.
 
Old 12-08-2003, 04:56 AM   #4
simbo
LQ Newbie
 
Registered: Apr 2003
Posts: 17

Original Poster
Rep: Reputation: 0
also whenever i try to enter the GUI (whether on startup or by "startx") the small monitir light starts blinking and the screen is blank, which i think means no signal to monitor..

anyways thanks again.
 
Old 12-08-2003, 09:35 AM   #5
emu_123
Member
 
Registered: Oct 2003
Location: Australia
Distribution: LFS unstable and Mandrake 10.1
Posts: 54

Rep: Reputation: 15
This looks like its a configuration problem with either your video card or monitor in X. With the XFree86.log, look through it and post any (WW), (EE), or (??) that you find particulary near the end plus a couple of lines either way for context.

The snow and the blinking monitor light would more then likely mean that the refresh rate is out of range for your particular monitor. This would be set in your XF86Config-4 file (it may not have the -4 on the end of it) that is located in /etc/X11, /usr/X11R6/etc/X11, or /usr/X11R6/lib/. Check to see if there is any lines labeled Modeline in the monitor section and comment them out by putting a # at the begining of the particular line. Dont do the telinit 3 line, but goto console 7 by ALT+F7 and hit CTRL+ALT+Backspace to restart the X server. This will restart X (if the shortcut is not disabled in the config file). If the Modelines were the problem it should all be fine from there.

If not, post.
 
Old 12-08-2003, 09:45 AM   #6
emu_123
Member
 
Registered: Oct 2003
Location: Australia
Distribution: LFS unstable and Mandrake 10.1
Posts: 54

Rep: Reputation: 15
Also, if you want to know more about the setup of the XF86Config file just type in

man XF86Config

in a console and it will tell you about the particulars of that particular file.
 
Old 12-08-2003, 08:10 PM   #7
simbo
LQ Newbie
 
Registered: Apr 2003
Posts: 17

Original Poster
Rep: Reputation: 0
Hi,
I found the XF86Config file and also XF86Config-4 in /etc/X11 , and I found lots of modelines in the XF86Config with different definitions there, but I'm not sure which one to comment out, and I don't think I should comment everything out right?, also I noticed that for VSync and Hsync that it said they are example values and I should put my own refresh rates for the particular monitor, do u think that could be the problem?, please advise me, and thanks again for your quick responses, also can u reccommend a partticular site where I can learn about the file structure for Linux or how it works so I know which files and directories to look in to for the future.

Cheers again.

Sim
 
Old 12-08-2003, 11:32 PM   #8
simbo
LQ Newbie
 
Registered: Apr 2003
Posts: 17

Original Poster
Rep: Reputation: 0
XF86Config

Ok, when I went to telinit 3 to exit all X servers current, then I ran X, and I got following error msg after I did crtl-alt-backspce :-

(==) Using config file: "/etc/X11/XF86Config-4"
(EE) MGA(0): Static buffer allocation failed, not initialising the DRI
(EE) MGA(0): Need at least 4608 kb video memory at this resolutionn, bit depth,

so when I renamed the XF86Config-4 to XF86Config-4.old so that it runs through XF86Config I got following error msg:

Fatal server error:
Addscreen/ScreenInit failed for...

so it's definitely a configuration problem, with the XF86Config file, thanks again

Regards

Simo
 
Old 12-09-2003, 01:11 AM   #9
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
Quote:
also can u reccommend a partticular site where I can learn about the file structure for Linux or how it works so I know which files and directories to look in to for the future.
Take a look at
http://www.pathname.com/fhs/
Regards
 
Old 12-09-2003, 02:01 AM   #10
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 42.1_64+Tumbleweed-KDE, Mint 17.3
Posts: 3,951

Rep: Reputation: Disabled
@Y0jiMb0

Great link, thanks .
 
Old 12-09-2003, 03:10 AM   #11
simbo
LQ Newbie
 
Registered: Apr 2003
Posts: 17

Original Poster
Rep: Reputation: 0
it's working

Hey thanks guys,
It's working, I went through xf86config and it did it with a bit of fine tuning, thanks again. by the way great site for file structures thanks.

Cheers,

Sim
 
Old 12-09-2003, 06:05 AM   #12
emu_123
Member
 
Registered: Oct 2003
Location: Australia
Distribution: LFS unstable and Mandrake 10.1
Posts: 54

Rep: Reputation: 15
Thats good to see.

Now if only i could get the graphical logon to work on my computer
 
Old 12-09-2003, 07:29 AM   #13
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 42.1_64+Tumbleweed-KDE, Mint 17.3
Posts: 3,951

Rep: Reputation: Disabled
Could you be a little more specific? What's the error, what do you use (xdm, gdm, kdm ...)?
 
Old 12-09-2003, 08:02 PM   #14
emu_123
Member
 
Registered: Oct 2003
Location: Australia
Distribution: LFS unstable and Mandrake 10.1
Posts: 54

Rep: Reputation: 15
Sorry about not being more specific, I was actually planning on fixing it on my own. I find that I learn more about linux in general that way. However there are a few things I would like to know.

1 - How do I start gnome from within .xinitrc?
2 - Where can I find a good source of info online for setting up Pam? (the man docs are a little lacking)
3 - Does it matter if I share my home partition (and UIDs) between linux setups (mandrake 9.1 and LFS)?

I think that the kdm thing is a configuration issue that I need to read up on. I just keep getting sidetracked by little things .
 
Old 12-10-2003, 04:42 AM   #15
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 42.1_64+Tumbleweed-KDE, Mint 17.3
Posts: 3,951

Rep: Reputation: Disabled
Quote:
Originally posted by emu_123
...
1 - How do I start gnome from within .xinitrc?
By calling it . No, I don't know how and where the GUIs are called (look at your Mandrake?).

Quote:
Originally posted by emu_123
2 - Where can I find a good source of info online for setting up Pam? (the man docs are a little lacking)
Sorry, no data.

Quote:
Originally posted by emu_123
3 - Does it matter if I share my home partition (and UIDs) between linux setups (mandrake 9.1 and LFS)?
No, that should be okay.

Quote:
Originally posted by emu_123
I think that the kdm thing is a configuration issue that I need to read up on.
Well, then http://docs.kde.org/en/3.1/kdebase/kdm/index.html

Last edited by JZL240I-U; 12-10-2003 at 04:44 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with startx ttilt Linux - General 1 02-23-2005 08:14 AM
Problems With Startx OS10 Mandriva 25 01-01-2005 12:25 PM
startx problems... kurrupt Debian 1 07-16-2004 09:59 PM
Startx Problems torman89 Mandriva 1 11-26-2003 03:09 AM
startx problems dirtyape Linux - Newbie 3 01-02-2002 01:55 PM


All times are GMT -5. The time now is 11:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration