LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   can't load X automaticly (https://www.linuxquestions.org/questions/mandriva-30/cant-load-x-automaticly-89400/)

iceco 09-04-2003 08:57 PM

can't load X automaticly
 
Mandrake 9.1
Once i have startkde in terminal as root when i login kde as users,then the 2 kde superposition.
After that i can't load X automaticly even if /etc/inittab is 5,every time i have to login in tty1 and run startx to load kde
any help?

iceco 09-04-2003 09:22 PM

in tty1,i can only run startx,when i run startkde,it gives
Quote:

startkde
xmodmap:unable to open display''
xmodmap:unable to open display''
xset:unable to open display""
xset:unable to open display""
xset:unable to open display""
startkde starting up...
ksplash:cannot connect to X server
kdeinit:Aboring.$DISPLAY is not set
warning:connect() failed::No such file or directory
ksmserver:can not connect to X server
startkde:Shutting down...
warning:connect() failed:: No such file or directory
Error:Can't contact kde init!
startkde:Running shutdown scripts...
startkde:Done.
i have changed display settings,but it doesn't work

quatsch 09-04-2003 09:26 PM

I am not sure I understand what is going on. Are you in run level 5 when you are logged into tty1? You can check your runlevel by
the command

runlevel

you must run this as root. If it says

N 3

you're not in runlevel 5 and that is the problem. It's not enough to edit /etc/inittab. The changes do not take effect until you reboot. You can get to runlevel 5 manually by

init 5

again as root.
Now, if you are in runlevel 5 but you don't have X running on vty1, then try

service dm start

as root. Does this get you to the graphical login? If yes, the problem is that the service dm is not set to start at boot. Go to drakxservices and make sure it starts at boot.

quatsch 09-04-2003 09:27 PM

You can't run startkde directly. That's normal. What you can do is

startx /usr/bin/startkde

This will run startkde and should bring up kde.

iceco 09-05-2003 11:04 AM

as root,i cannot run init 5 in tty1,it gives some error messages,i will post it next time

iceco 09-05-2003 12:08 PM

thank you,quatsch
it is the problem of dm:)

Mathieu 09-05-2003 12:35 PM

If you want KDE to be the default desktop when you type startx,
edit /etc/sysconfig/desktop and add KDE on the desktop line.
Code:

DESKTOP="KDE"


All times are GMT -5. The time now is 05:33 PM.