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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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. |
 |
08-20-2002, 12:55 AM
|
#1
|
|
Member
Registered: May 2002
Location: HongKong
Distribution: Ubuntu
Posts: 73
|
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
|
|
|
|
08-20-2002, 01:13 AM
|
#2
|
|
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
|
|
|
|
08-20-2002, 01:37 AM
|
#3
|
|
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.
|
|
|
|
08-20-2002, 07:45 AM
|
#4
|
|
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
|
|
|
|
08-20-2002, 10:12 AM
|
#5
|
|
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.
|
|
|
|
08-20-2002, 04:15 PM
|
#6
|
|
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).
|
|
|
|
08-20-2002, 07:23 PM
|
#7
|
|
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
|
|
|
|
08-20-2002, 10:04 PM
|
#8
|
|
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?
|
|
|
|
08-20-2002, 10:06 PM
|
#9
|
|
Member
Registered: May 2002
Location: HongKong
Distribution: Ubuntu
Posts: 73
|
and I have checked my runlevel by using /sbin/runlevel, it is 5.
|
|
|
|
08-20-2002, 10:10 PM
|
#10
|
|
LQ Addict
Registered: Jun 2001
Location: South Alabama
Distribution: RedHat / SuSE
Posts: 7,150
|
it will cause problems, update your /etc/hosts file
|
|
|
|
08-21-2002, 01:45 AM
|
#11
|
|
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?
|
|
|
|
08-21-2002, 02:16 AM
|
#12
|
|
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..
|
|
|
|
08-21-2002, 03:24 AM
|
#13
|
|
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.
|
|
|
|
08-21-2002, 05:05 AM
|
#14
|
|
Member
Registered: May 2002
Location: HongKong
Distribution: Ubuntu
Posts: 73
|
Thank You All! My Problem Has Been Solved
|
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:42 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
LQ Podcast
LQ Radio
|
|