You are not logged in.

#1 2005-03-11 18:02:46

schumph
Member
Registered: 2005-02-23
Posts: 17

Can't log in through KDM as root

I have installed kdm and am able to login to xfce and fluxbox as a normal user, however, I can't login as root.

Checking the .xsession-errors for root I see the following:

Xlib: connection to ":0.0" refused by server
Xlib: Protocol not supported by server

Error: Can not connect to X server.
Make sure you started X before you start Fluxbox.

Any ideas?


"If you break your leg, stop thinking about dancing and start decorating the cast." --Warren Zevon

Offline

#2 2005-03-11 18:24:18

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Can't log in through KDM as root

why are you trying to login as root?

Offline

#3 2005-03-11 18:31:00

dadexter
Member
From: Dorval, QC, Canada
Registered: 2004-09-07
Posts: 274
Website

Re: Can't log in through KDM as root

check the KDM options in the KDE control center... but login in X as root is really stupid and unnecessary

Offline

#4 2005-03-11 18:39:45

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Can't log in through KDM as root

it's best to login as a user, and if you need to do anything gui-based as root, open a terminal and su over before running what you need

Offline

#5 2005-03-11 19:40:54

schumph
Member
Registered: 2005-02-23
Posts: 17

Re: Can't log in through KDM as root

I typically do all my work using su through a user account, however, when trying to start firestarter get the following.

Xlib: connection to ":0.0" refused by server
Xlib: Protocol not supported by server

Thought I would try to get around it by logging in graphically as root.


"If you break your leg, stop thinking about dancing and start decorating the cast." --Warren Zevon

Offline

#6 2005-03-11 19:42:44

dadexter
Member
From: Dorval, QC, Canada
Registered: 2004-09-07
Posts: 274
Website

Re: Can't log in through KDM as root

you could do xhost + before starting firestarter

though I dunno what's worst between that and using X as root

Offline

#7 2005-03-11 19:43:07

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Can't log in through KDM as root

before trying to su, run:

xhost +localhost

That should allow you to run GUI apps as root in the su environment. If you do a lot of suing, put the above in your ~/.bashrc.

http://wiki2.archlinux.org/index.php/Ro … %20Desktop

Dusty

Offline

#8 2005-03-11 19:57:24

schumph
Member
Registered: 2005-02-23
Posts: 17

Re: Can't log in through KDM as root

thanks folks.... that was what I was looking for.


"If you break your leg, stop thinking about dancing and start decorating the cast." --Warren Zevon

Offline

#9 2005-03-11 20:47:16

SleepyDog
Member
Registered: 2004-10-15
Posts: 114

Re: Can't log in through KDM as root

Or you can use sudo.

Offline

#10 2005-03-11 20:54:11

dadexter
Member
From: Dorval, QC, Canada
Registered: 2004-09-07
Posts: 274
Website

Re: Can't log in through KDM as root

or gksu if you have it installed tongue

Offline

#11 2005-03-11 21:18:39

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Offline

#12 2005-03-11 21:50:12

dadexter
Member
From: Dorval, QC, Canada
Registered: 2004-09-07
Posts: 274
Website

Re: Can't log in through KDM as root

wow... the possibilites that Linux offers you

Offline

Board footer

Powered by FluxBB