can't enter X automaticly when start linux?! - LinuxQuestions.org
LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This 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
 
Thread Tools
Old 08-20-2002, 12:55 AM   #1
NeoAnderson
Member
 
Registered: May 2002
Location: HongKong
Distribution: Ubuntu
Posts: 73
Question can't enter X automaticly when start linux?!


[Log in to get rid of this advertisement]
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
NeoAnderson is offline     Reply With Quote
Old 08-20-2002, 01:13 AM   #2
DavidPhillips
LQ Addict
 
Registered: Jun 2001
Location: South Alabama
Distribution: RedHat / SuSE
Posts: 7,150
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
DavidPhillips is offline     Reply With Quote
Old 08-20-2002, 01:37 AM   #3
NeoAnderson
Member
 
Registered: May 2002
Location: HongKong
Distribution: Ubuntu
Posts: 73
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.
NeoAnderson is offline     Reply With Quote
Old 08-20-2002, 07:45 AM   #4
DavidPhillips
LQ Addict
 
Registered: Jun 2001
Location: South Alabama
Distribution: RedHat / SuSE
Posts: 7,150
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
DavidPhillips is offline     Reply With Quote
Old 08-20-2002, 10:12 AM   #5
NeoAnderson
Member
 
Registered: May 2002
Location: HongKong
Distribution: Ubuntu
Posts: 73
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.
NeoAnderson is offline     Reply With Quote
Old 08-20-2002, 04:15 PM   #6
notsoevil
Member
 
Registered: May 2001
Location: Louisville, Kentucky, USA
Distribution: RedHat ES
Posts: 120
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).
notsoevil is offline     Reply With Quote
Old 08-20-2002, 07:23 PM   #7
DavidPhillips
LQ Addict
 
Registered: Jun 2001
Location: South Alabama
Distribution: RedHat / SuSE
Posts: 7,150
try /sbin/runlevel after boot to see what runlevel your actually in
DavidPhillips is offline     Reply With Quote
Old 08-20-2002, 10:04 PM   #8
NeoAnderson
Member
 
Registered: May 2002
Location: HongKong
Distribution: Ubuntu
Posts: 73
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?
NeoAnderson is offline     Reply With Quote
Old 08-20-2002, 10:06 PM   #9
NeoAnderson
Member
 
Registered: May 2002
Location: HongKong
Distribution: Ubuntu
Posts: 73
and I have checked my runlevel by using /sbin/runlevel, it is 5.
NeoAnderson is offline     Reply With Quote
Old 08-20-2002, 10:10 PM   #10
DavidPhillips
LQ Addict
 
Registered: Jun 2001
Location: South Alabama
Distribution: RedHat / SuSE
Posts: 7,150
it will cause problems, update your /etc/hosts file
DavidPhillips is offline     Reply With Quote
Old 08-21-2002, 01:45 AM   #11
NeoAnderson
Member
 
Registered: May 2002
Location: HongKong
Distribution: Ubuntu
Posts: 73
thank you,David!! My comp is back to normal now! could you explain how it caused this problem?
NeoAnderson is offline     Reply With Quote
Old 08-21-2002, 02:16 AM   #12
DavidPhillips
LQ Addict
 
Registered: Jun 2001
Location: South Alabama
Distribution: RedHat / SuSE
Posts: 7,150
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 02:33 AM..
DavidPhillips is offline     Reply With Quote
Old 08-21-2002, 03:24 AM   #13
webboss
Member
 
Registered: Feb 2001
Location: Ambarnath, INDIA
Distribution: Slackware 10.0
Posts: 75
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.
webboss is offline     Reply With Quote
Old 08-21-2002, 05:05 AM   #14
NeoAnderson
Member
 
Registered: May 2002
Location: HongKong
Distribution: Ubuntu
Posts: 73
Thank You All! My Problem Has Been Solved
NeoAnderson is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
How to start KDE automaticly? greentooth Linux - Newbie 2 06-24-2005 03:54 PM
How to start GDM automaticly zyzyis Linux - Newbie 3 09-26-2004 09:23 PM
Automaticly start abyss ? kater0000 Linux - Newbie 5 08-16-2004 02:16 PM
automaticly run ndiswrapper at start-up drethenerd Linux - Wireless Networking 6 08-15-2004 05:55 PM
Running automaticly an application when start up KDE Paulo Góes Linux - Newbie 1 03-17-2003 11:15 AM


All times are GMT -5. The time now is 10:42 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Open Source Consulting | Domain Registration