LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-16-2006, 08:06 PM   #1
RedNovember
Member
 
Registered: Oct 2005
Distribution: Debian etch
Posts: 103

Rep: Reputation: 15
KDE su apps can't find X server? - Etch


On Debian etch, kernel 2.6.17, I've recently been getting the problem of KDE su prompts erroring on the correct password (saying it is wrong). Now I know for a fact that it is not wrong, because I can log in as root from the console. However, I cannot run any graphical apps:

Code:
rednovember@debian:~$ su
Password:
debian:/home/rednovember# synaptic
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


(synaptic:6368): Gtk-WARNING **: cannot open display:
debian:/home/rednovember# konqueror
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

konqueror: cannot connect to X server :0
Now this is a major problem as I cannot run synaptic. I tried logging in from a console login as root (Debian doesn't allow graphical root login, apparently). This worked, and I was able to startx, but it started GNOME, not KDE which I use. I don't know how to change the Desktop Environment from the console.

Why are root apps not connecting to my X server? How can I fix this? All user apps are doing fine with X and KDE.

EDIT: And here I was thinking this was a unique problem seeing as I'd never heard of it.
http://www.linuxquestions.org/questi...d.php?t=492566
http://www.linuxquestions.org/questi...d.php?t=492332
http://www.linuxquestions.org/questi...d.php?t=492258

Woops.

Last edited by RedNovember; 10-16-2006 at 08:19 PM.
 
Old 10-16-2006, 10:21 PM   #2
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,883
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
You need to do something along the lines of kdesu synaptic,or sux synaptic.

The reason root can't use X is you are already logged in as a user.

The password thing is covered in another thread. Quickest way to get help for these kind of things is in IRC. Open any IRC client and do:
/server irc.debian.org
/join #debian
 
Old 10-17-2006, 12:19 AM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by RedNovember
On Debian etch, kernel 2.6.17, I've recently been getting the problem of KDE su prompts erroring on the correct password (saying it is wrong). Now I know for a fact that it is not wrong, because I can log in as root from the console. However, I cannot run any graphical apps:

Code:
rednovember@debian:~$ su
Password:
debian:/home/rednovember# synaptic
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


(synaptic:6368): Gtk-WARNING **: cannot open display:
debian:/home/rednovember# konqueror
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

konqueror: cannot connect to X server :0
Now this is a major problem as I cannot run synaptic. I tried logging in from a console login as root (Debian doesn't allow graphical root login, apparently). This worked, and I was able to startx, but it started GNOME, not KDE which I use. I don't know how to change the Desktop Environment from the console.

Why are root apps not connecting to my X server? How can I fix this? All user apps are doing fine with X and KDE.

EDIT: And here I was thinking this was a unique problem seeing as I'd never heard of it.
http://www.linuxquestions.org/questi...d.php?t=492566
http://www.linuxquestions.org/questi...d.php?t=492332
http://www.linuxquestions.org/questi...d.php?t=492258

Woops.
Try the following in your /root/.bashrc changing to your username of course.

Code:
## allows me to run X program as root

export XAUTHORITY=/home/stephen/.Xauthority
 
Old 10-17-2006, 03:02 PM   #4
RedNovember
Member
 
Registered: Oct 2005
Distribution: Debian etch
Posts: 103

Original Poster
Rep: Reputation: 15
I just did
Code:
xhost +
su
synaptic
 
Old 10-18-2006, 06:32 PM   #5
RedNovember
Member
 
Registered: Oct 2005
Distribution: Debian etch
Posts: 103

Original Poster
Rep: Reputation: 15
I found a more permanent solution at the bottom of this post:
http://www.linuxquestions.org/questi...hreadid=285904
This will give all users x authorization.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to compile kde 3.4.2 on Etch. Problem: kde-config program not found Yury Debian 4 03-30-2010 04:32 PM
Debian Etch and KDE 3.5 slowness knowledgeispwr Debian 3 11-19-2006 12:03 PM
Etch KDE 3.5.3 CUPS max_mad Debian 2 08-19-2006 09:16 AM
cups broken in kde? Using Etch Mohtek Debian 3 07-09-2006 10:54 PM
Has the KDE 3.4 upgrade in Etch broken anything for you? vharishankar Debian 12 12-15-2005 08:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:51 AM.

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