LinuxQuestions.org
Help answer threads with 0 replies.
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 06-02-2005, 04:51 PM   #1
dhatcher
LQ Newbie
 
Registered: Jun 2005
Location: Cupertino, CA
Distribution: Debian 3.0
Posts: 27

Rep: Reputation: 15
Trouble starting Synaptic after KDM install


I installed Synaptic this morning. Love it. Was using it fine, until I decided to go ahead and upgrade from gdm to kdm. After installing kdm and restarting I receive an error trying to start Synaptic. Error follows:

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


(synaptic:962): Gtk-WARNING **: cannot open display:

I'm using
Debian 3.0
Kernel 2.4.18

One interesting thing I noticed is that where it shows the (synaptic:962) - the number keeps changing. Last time it was 707 and before that 6.. something.

Help please!
 
Old 06-02-2005, 05:05 PM   #2
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,733
Blog Entries: 12

Rep: Reputation: 456Reputation: 456Reputation: 456Reputation: 456Reputation: 456
I take it you are trying to start Synaptic from a console.

Try opening a console/terminal as a user then typing kdesu synaptic

or instead of using "su" you can use "sux"

Or just find Synaptic in your menu and click on it.
 
Old 06-02-2005, 05:25 PM   #3
dhatcher
LQ Newbie
 
Registered: Jun 2005
Location: Cupertino, CA
Distribution: Debian 3.0
Posts: 27

Original Poster
Rep: Reputation: 15
Hey that worked! Thanks a bunch!
 
Old 06-02-2005, 09:37 PM   #4
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,142
Blog Entries: 4

Rep: Reputation: 121Reputation: 121
I also had this problem and was wondering why it happened. After seeing your post I realize that this problem can be traced back to the time when I installed KDM and removed GDM. I also solved it by using kdesu but I was wondering why su stopped working for GUI apps from the terminal.

See this thread: http://www.linuxquestions.org/questi...hreadid=326868

Thanks a lot for posting this problem! Sometimes it helps us diagnose our own problems as well.

Last edited by vharishankar; 06-02-2005 at 09:39 PM.
 
Old 06-02-2005, 10:33 PM   #5
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,733
Blog Entries: 12

Rep: Reputation: 456Reputation: 456Reputation: 456Reputation: 456Reputation: 456
Crap took a little while to find anything on kdesu. Here is a site that explains how it works.

"The KDE su Command"
http://www.bellevuelinux.org/kdesu.html

Basically what it boils down to is: KDE su is a graphical front end for the UNIX® su command.

Last edited by craigevil; 06-02-2005 at 10:34 PM.
 
Old 06-03-2005, 12:13 PM   #6
dhatcher
LQ Newbie
 
Registered: Jun 2005
Location: Cupertino, CA
Distribution: Debian 3.0
Posts: 27

Original Poster
Rep: Reputation: 15
Actually the kdesu command did not work either. I found where to launch Synaptic from the GUI and so far that is the only way it comes up. I admittedly have not take the time to read the kdesu article you posted yet, though.
 
Old 06-03-2005, 02:58 PM   #7
dhatcher
LQ Newbie
 
Registered: Jun 2005
Location: Cupertino, CA
Distribution: Debian 3.0
Posts: 27

Original Poster
Rep: Reputation: 15
After discussing this with a good friend of mine who is a Unix system admin. He told me my env. is shot. Something about command line X being broken.

He tried to have me do an

export DISPLAY=localhost:0.0 - 15.0 and still nothing worked.

Again the error when trying to open Synaptic (I also found this to possibly be the cause of the problem why I cannot open the Citrix client) is:

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Cannot open display.

Any thoughts?
 
Old 06-03-2005, 04:01 PM   #8
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
I don't know if this will do you any good but try this first: "su" to root and run "dpkg-reconfigure xserver-common" and choose "Console users only".

If that doesn't help, do (still as root) "ln -fs /home/your_username/.Xauthority /root" (where "your_username" is your user name). After this you should be able to open GUI apps (like synaptic) from the root terminal even if you originally logged in as normal user. But it would be a bit safer if you could just use sux, kdesu, or gksu.
 
Old 06-03-2005, 09:21 PM   #9
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,142
Blog Entries: 4

Rep: Reputation: 121Reputation: 121
Instead of kdesu, try su-to-root command. This works fine with Synaptic.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Starting up KDM instead of GDM? vbraun Fedora 9 01-19-2007 11:14 AM
Synaptic Not Starting xaphalanx MEPIS 3 10-11-2005 06:58 AM
starting kde through kdm ulmo Linux - Newbie 2 09-12-2004 07:45 AM
kdm is starting up on tty2 instead of tty7 peterrobin Linux - General 7 09-02-2004 03:05 AM
KDM starting of X TChris Mandriva 6 02-16-2004 05:08 PM


All times are GMT -5. The time now is 03:27 PM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration