LinuxQuestions.org
Review your favorite Linux distribution.
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 05-07-2003, 07:33 AM   #1
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1/13.37/14/14.2 RH 6.2/7/EL6.5 SuSE 8.2/11.1
Posts: 484

Rep: Reputation: 30
connecting to X from remote box


Hi there, this should be easy for someone...

I have two RH boxes running, what I wish to do is ditch the monitor/keyboard/mouse from one of the machines but would still like to use some graphical features.

I thought it was possible to run graphical applications on a remote Linux machine.

Currently when telneting into the remote machine, and running timetool, I get the following:

Xlib: connection to "david14.MATRIX:0.0" refused by server
Xlib: Client is not authorized to connect to Server

Help as always is appreciated...
 
Old 05-07-2003, 07:46 AM   #2
mayankjohri
Member
 
Registered: Mar 2002
Location: INDIA
Distribution: Mandrake Linux 9.2, Knoppix 3.0
Posts: 158

Rep: Reputation: 30
try ssh and tell me what happens
 
Old 05-07-2003, 07:47 AM   #3
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Well on the remote computer you will most likely need to run the command xhost + (gives access to all hosts) or xhost + hostname (gives access to a specific host).
And you will need to set the DISPLAY variable to make sure it gets displayed on the right machine.
 
Old 05-08-2003, 05:47 AM   #4
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1/13.37/14/14.2 RH 6.2/7/EL6.5 SuSE 8.2/11.1
Posts: 484

Original Poster
Rep: Reputation: 30
Unhappy Still no further forward...

OK, here is the deal, I have logged on to the remote box and run xhost + david14
xhost -

then when I run xhost it indicates that access control is enabled and lists the name of the local computer to which I wish to use to access this machine remotely.

Going back to the other box, if I try to do anything that requires X I get the following:

Xlib: connection to "david14.MATRIX: 0.0" refused by server
Xlib Client is not authorised to connect to Server


All help would be greatly appreciated...
 
Old 05-08-2003, 06:09 AM   #5
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1/13.37/14/14.2 RH 6.2/7/EL6.5 SuSE 8.2/11.1
Posts: 484

Original Poster
Rep: Reputation: 30
a little more info'

When I do the same on the other machine, ie allow access using xhost

I can connect to it no problem...

Surly this has nothing to do with different graphics cards or something...
 
Old 05-09-2003, 01:28 PM   #6
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1/13.37/14/14.2 RH 6.2/7/EL6.5 SuSE 8.2/11.1
Posts: 484

Original Poster
Rep: Reputation: 30
got it...

Got it working...

What I had to do was run xhost + boxname
where boxname would be the name of the machine I wished to connect to, ie the remote computer.

I would have thought, xhost would have to have been run on the remote machine, not on the local machine.

Anyway, it works...

cheers for all the help
 
  


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
send syslogs of aix box to remote rhel box gsr_kashyap AIX 2 04-05-2006 07:32 AM
Connecting remote X-application Musikolo Linux - Software 1 11-09-2004 07:37 PM
Connecting to a remote server Mossaiby Linux - Networking 5 07-30-2004 04:38 PM
Connecting to remote XServer ibrar_ Linux - Networking 4 07-09-2004 04:22 AM
Connecting Linux box to Internet through Windowx XP box over LAN pcd007 Linux - Networking 1 03-14-2004 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration