Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.
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.
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 firstname.lastname@example.org.
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.
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.
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 .