LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-14-2004, 03:00 PM   #1
..:eMa:..
Member
 
Registered: Sep 2003
Location: Italy - Milan
Posts: 61

Rep: Reputation: 15
Xserver Refuse Connection


Hi!

After installed some apps via apt-get, when I tried to lunch them I see:

ServerONE:/# xhost
Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
xhost: unable to open display ":0.0"

OR:
ServerONE:/# emacs &
[1] 428
ServerONE:/# Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
emacs: Cannot connect to X server :0.0.
Check the DISPLAY environment variable or use `-d'.
Also use the `xhost' program to verify that it is set to permit
connections from your machine.


[1]+ Exit 1 emacs

Even:
ServerONE:/# xawtv
This is xawtv-3.72, running on Linux/i686 (2.2.20-idepci)
Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
Error: Can't open display: :0.0
ServerONE:/#

Someone have an idea?

Tks!
..:eMa:...
 
Old 04-14-2004, 03:29 PM   #2
..:eMa:..
Member
 
Registered: Sep 2003
Location: Italy - Milan
Posts: 61

Original Poster
Rep: Reputation: 15
My Answer:

xhost + (enter)

Any host could launch any user's apps.
 
Old 04-14-2004, 04:20 PM   #3
llamakc
Member
 
Registered: Nov 2003
Distribution: Debian & Ubuntu
Posts: 402

Rep: Reputation: 31
My suggestion:

exit out of your su session and try these as the user.
 
Old 04-14-2004, 04:58 PM   #4
geekzen
Member
 
Registered: Mar 2004
Location: Canada. The Great white north.
Distribution: Debian Sid
Posts: 183

Rep: Reputation: 30
Yes. You CANNOT start x programs as root, though you can sudo into them.
 
  


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
setting-up an xserver connection with remote host through local firewall. qanopus Linux - Security 5 02-02-2006 10:11 AM
xserver-xorg config warning: migrating xserver-xfree86 templates doctorwebbox Debian 9 07-27-2005 07:24 PM
why my sendmail refuse to connection? lzyking Linux - Software 1 08-11-2003 04:06 AM
XServer Connection Problem guygriffiths Linux - Software 6 08-03-2003 03:11 PM
An offer you shouldn't refuse! taz.devil Linux - General 0 11-14-2001 11:20 PM

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

All times are GMT -5. The time now is 01:23 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