Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux 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.


  Search this Thread
Old 09-20-2006, 11:43 AM   #1
LQ Newbie
Registered: Jun 2006
Posts: 22
Blog Entries: 1

Rep: Reputation: 15
kdialog error

Hi Guys,

I am getting the follwing error related to kdialog. It seems that it is not related to xlib since it is already installed.

Any idea?

root@linux:~#kdialog --msgbox "this is the test"

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

kdialog: cannot connect to X server :0

Pujan Srivastava
Old 09-21-2006, 11:27 AM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,845

Rep: Reputation: 342Reputation: 342Reputation: 342Reputation: 342
You apparently are logged in as user, then did su to root and tried to run a graphical application as root, from the command line.

The correct procedure. As user, issue the command: xhost +localhost. Then su to root. Then run kdialog.

When you're done, exit to user prompt, then run: xhost -localhost.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSh password with kdialog oTTo001 Linux - Software 4 05-11-2006 09:15 AM
kdialog --menu command tardigrade Programming 2 01-17-2006 02:37 PM
How to show a variable menu list in Kdialog? linx win Debian 1 11-26-2005 11:33 AM
kdialog replacement Khabi Linux - Software 2 04-09-2005 02:10 AM
Variable info in kdialog? Klas Programming 1 01-08-2005 09:58 AM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration