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 08-04-2003, 06:12 AM   #1
_ben_deb_
Member
 
Registered: Jun 2003
Posts: 31

Rep: Reputation: 15
Failed connection to X Server


hello !!

When i logged into my user and i tape i log into root to start emacs for edite config file for example , i have this response:

failed to connect to x serveur :0.0
etc ...

i try to tape in user log:
xhost +localhost

and into root
export DISPLAY=:0.0

but it doesn't work still !!

even i tried my computer name !!!

someone could help me ?
 
Old 08-04-2003, 06:32 AM   #2
arunshivanandan
Member
 
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643

Rep: Reputation: 30
I assume you are working in textmode and you have never configured X.I have no information to go ahead.any way try using 'vi' and post results+more information here.
 
Old 08-04-2003, 11:27 AM   #3
_ben_deb_
Member
 
Registered: Jun 2003
Posts: 31

Original Poster
Rep: Reputation: 15
Ok ...
I am under X (kde ) so it hapened when i tried to start emacs into a console after i tape 'su' and 'password'
 
Old 08-04-2003, 09:35 PM   #4
rockmumbles
LQ Newbie
 
Registered: Jul 2003
Location: Podunk, Idaho
Distribution: Debian
Posts: 28

Rep: Reputation: 15
as 'user' you'll need to:
xhost +localhost
then:
su
then start your X app, then when you exit back to your 'user' make sure to:
xhost -localhost

HTH

-rock
 
Old 08-05-2003, 07:49 AM   #5
_ben_deb_
Member
 
Registered: Jun 2003
Posts: 31

Original Poster
Rep: Reputation: 15
Ok ..

i tried this but it still doesn't work !

it's probably a special security debian ...
 
Old 08-05-2003, 09:26 AM   #6
mason75
LQ Newbie
 
Registered: Jul 2003
Location: Cologne, Germany
Distribution: slack 9
Posts: 11

Rep: Reputation: 0
hi,

i've got the same problem under slackware 9
 
Old 08-05-2003, 07:25 PM   #7
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 32
Ok, I'm having this same problem with Debian Woody.

At first I thought I understood this. I even posted in another thread (someone having the same problem) describing how you have to run xhost as *you* but then 'su' to root to run your X program. But this really isn't working! Here's a little interlude of my efforts:


[john@baz ~]$ xhost
access control enabled, only authorized clients can connect


[john@baz ~]$ xhost +localhost
localhost being added to access control list


[john@baz ~]$ xhost
access control enabled, only authorized clients can connect
INET:localhost


[john@baz ~]$ su
Password:


[root@baz /home/john]# xcalc
Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
Error: Can't open display: :0.0


[root@baz /home/john]# exit
exit


[john@baz ~]$ xhost -localhost
localhost being removed from access control list


[john@baz ~]$ hostname
baz.foo.com


[john@baz ~]$ xhost +baz.foo.com
xhost: bad hostname "baz.foo.com"


[john@baz ~]$


I think the "INET" in the xhost output is a clue...

Any ideas anyone?
 
Old 08-05-2003, 07:35 PM   #8
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 32
Thumbs up

Whoops. Got it. :)

xhost +local:root
 
Old 08-06-2003, 11:26 AM   #9
_ben_deb_
Member
 
Registered: Jun 2003
Posts: 31

Original Poster
Rep: Reputation: 15
wellllll !!!

i will try this evening !!!!

thanks !!!!
 
  


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
Bind9: NDC command failed : rndc: connect failed: connection refused Boudewijn Linux - Networking 19 01-02-2014 07:19 AM
online_update failed - ERROR(Media:connection failed)[Connect failed] rover SUSE / openSUSE 8 02-22-2005 07:57 AM
connection to cups server failed only if from server itself in KDE applications kyuso Fedora 0 01-22-2005 10:34 PM
Blackbox: connection to X server failed Jeppesl Fedora 2 10-04-2004 02:40 AM
Basedisplay::Basedisplay: Connection to X server failed ? southpole.dk Linux - Software 13 04-12-2004 02:41 PM

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

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