LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 06:33 AM   #1
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Rep: Reputation: 32
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, 06: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, 06: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, 04:47 AM   #4
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Original Poster
Rep: Reputation: 32
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, 05:09 AM   #5
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Original Poster
Rep: Reputation: 32
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, 12:28 PM   #6
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Original Poster
Rep: Reputation: 32
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



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 06:32 AM
Connecting remote X-application Musikolo Linux - Software 1 11-09-2004 06:37 PM
Connecting to a remote server Mossaiby Linux - Networking 5 07-30-2004 03:38 PM
Connecting to remote XServer ibrar_ Linux - Networking 4 07-09-2004 03:22 AM
Connecting Linux box to Internet through Windowx XP box over LAN pcd007 Linux - Networking 1 03-14-2004 09:02 AM

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

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

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