LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 09-20-2006, 10:43 AM   #1
pujansrt
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


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

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301
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.
 
  


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 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 08:15 AM
kdialog --menu command tardigrade Programming 2 01-17-2006 01:37 PM
How to show a variable menu list in Kdialog? linx win Debian 1 11-26-2005 10:33 AM
kdialog replacement Khabi Linux - Software 2 04-09-2005 01:10 AM
Variable info in kdialog? Klas Programming 1 01-08-2005 08:58 AM


All times are GMT -5. The time now is 05:58 AM.

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