LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-19-2002, 11:55 PM   #1
NeoAnderson
Member
 
Registered: May 2002
Location: Providence, RI
Distribution: Ubuntu
Posts: 78

Rep: Reputation: 15
Question can't enter X automaticly when start linux?!


I have used rh7.3 for a long time without any problem, but somehow when I start my linux box today, it doesn't enter X window automaticly, then I checked inittab in /etc, my default run level is still 5, what is going wrong in my linux box? thanx
 
Old 08-20-2002, 12:13 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
does it work with startx?

what's the last line in /etc/inittab look like

look for errors in /var/log/messages

and in /var/log/XFree86.0.log
 
Old 08-20-2002, 12:37 AM   #3
NeoAnderson
Member
 
Registered: May 2002
Location: Providence, RI
Distribution: Ubuntu
Posts: 78

Original Poster
Rep: Reputation: 15
yea,it works properly with startx.
the last line in /etc/inittab is "x:5:respawn:/etc/X11/prefdm -nodaemon"
in /var/log/messages I found a line said something like this "fail to try to start display server several times in a short time;disable display:0"what does this mean?
/var/log/XFree86.0.log is a little bit comlicated, I don't know what to look for, can u tell me?
Thank you very much.
 
Old 08-20-2002, 06:45 AM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
normally there will be a line or so starting with (EE)
and that line will tell you the problem.


like this

(EE) Screen(s) found, but none have a usable configuration.


and toward the bottom an explination

Fatal server error:
no screens found
 
Old 08-20-2002, 09:12 AM   #5
NeoAnderson
Member
 
Registered: May 2002
Location: Providence, RI
Distribution: Ubuntu
Posts: 78

Original Poster
Rep: Reputation: 15
but there's no such line in my log file,no (EE) inside.and it seems to work properly with startx,the main problem is it just doesn't start automaticly when I start linux.
 
Old 08-20-2002, 03:15 PM   #6
notsoevil
Member
 
Registered: May 2001
Location: Louisville, Kentucky, USA
Distribution: RedHat ES
Posts: 120

Rep: Reputation: 15
Well, a quick and dirty way to do it would be to add a login manager (kdm for kde,gdm for gnome) to your /etc/rc.local file (at the end).

So on boot up, you would be plopped right to a graphical login manager, and then your desktop (after logging in of course).
 
Old 08-20-2002, 06:23 PM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
try /sbin/runlevel after boot to see what runlevel your actually in
 
Old 08-20-2002, 09:04 PM   #8
NeoAnderson
Member
 
Registered: May 2002
Location: Providence, RI
Distribution: Ubuntu
Posts: 78

Original Poster
Rep: Reputation: 15
I forgot to tell you something that I changed my computer name in "Network Configuration" at the last time I was in linux before this problem appeared.Did this cause the problem?
 
Old 08-20-2002, 09:06 PM   #9
NeoAnderson
Member
 
Registered: May 2002
Location: Providence, RI
Distribution: Ubuntu
Posts: 78

Original Poster
Rep: Reputation: 15
and I have checked my runlevel by using /sbin/runlevel, it is 5.
 
Old 08-20-2002, 09:10 PM   #10
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
it will cause problems, update your /etc/hosts file
 
Old 08-21-2002, 12:45 AM   #11
NeoAnderson
Member
 
Registered: May 2002
Location: Providence, RI
Distribution: Ubuntu
Posts: 78

Original Poster
Rep: Reputation: 15
thank you,David!! My comp is back to normal now! could you explain how it caused this problem?
 
Old 08-21-2002, 01:16 AM   #12
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
X needs to know what computer it's running on is the simple answer

Lets say you are in X in an xterm

if you do something like this

hostname mynewname

you will still be able to use the terminal you are in but if you try to open a new one you will see that it's whacked, and it's because it's looking for the machine it's supposed to be running on. Now in the open xterm change the hostname back and you will be able to open a new xterm.

Last edited by DavidPhillips; 08-21-2002 at 01:33 AM.
 
Old 08-21-2002, 02:24 AM   #13
webboss
Member
 
Registered: Feb 2001
Location: Badlapur, INDIA
Distribution: debian, Slackware & Small Distros
Posts: 83

Rep: Reputation: 15
If you want to start X as you boot into Linux try doing it with command "xdm". Just follow the messages and it's very easy to setup the things.

Hope it will solve your problem.
Thanks.
 
Old 08-21-2002, 04:05 AM   #14
NeoAnderson
Member
 
Registered: May 2002
Location: Providence, RI
Distribution: Ubuntu
Posts: 78

Original Poster
Rep: Reputation: 15
Thank You All! My Problem Has Been Solved
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to start KDE automaticly? greentooth Linux - Newbie 2 06-24-2005 02:54 PM
How to start GDM automaticly zyzyis Linux - Newbie 3 09-26-2004 08:23 PM
Automaticly start abyss ? kater0000 Linux - Newbie 5 08-16-2004 01:16 PM
automaticly run ndiswrapper at start-up drethenerd Linux - Wireless Networking 6 08-15-2004 04:55 PM
Running automaticly an application when start up KDE Paulo Góes Linux - Newbie 1 03-17-2003 10:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:19 PM.

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
Open Source Consulting | Domain Registration