LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-03-2002, 07:41 AM   #1
vikasmj
LQ Newbie
 
Registered: Dec 2002
Distribution: Red Hat Linux 7 and above
Posts: 1

Rep: Reputation: 0
remote xwindows support


How do I access xwindows after logging from a telnet session.
 
Old 12-03-2002, 07:55 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
you can't do it over telnet. telnet is crap. try ssh, you will of course need to be runnign X locally in order to run any applications.

there are much largeer solutions around aswell, such as XDMCP and VNC. have a look around.
 
Old 12-03-2002, 08:29 AM   #3
Bill Krauss
LQ Newbie
 
Registered: Mar 2002
Posts: 13

Rep: Reputation: 0
Re: remote xwindows support

Quote:
Originally posted by vikasmj
How do I access xwindows after logging from a telnet session.
If the two machines are on the same network then you need to do two things:
asdfasdf
 
Old 12-03-2002, 08:37 AM   #4
Bill Krauss
LQ Newbie
 
Registered: Mar 2002
Posts: 13

Rep: Reputation: 0
As I was trying to say...

Let's say you're sitting at a machine called acorn and connecting to a machine called banana. If the two machines are on the same net you need to

a: on acorn (the X server), open access permissions for the display
The simplest, but least secure ways to do it is:
xhost + # this opens access to anyone
xhost +banana #only to banana

man xhost for more secure options, also check out xauth

b: on banana (the X client) set the environment variable DISPLAY so it refers to the first display on acorn
export DISPLAY=acorn:0


Then, on banana, fire up a simple X app such as xlogo as a test.


If the two machines have a firewall between them (blocking port 6000), then you can tunnel the connection using ssh.
 
Old 12-03-2002, 08:43 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
this still will not work under telnet. only ssh
 
Old 12-03-2002, 09:17 AM   #6
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Well that depends on your interpretation of doing it through telnet. If you are allowed direct access to the machines xserver usually at port 6000. Then you can telnet to the machine and set the display and start an x application. A new connection to port 6000 will be opened to handle all the xserver stuff, but you've started the application from a telnet connection.
It's just that ssh does it in a different way, it allows all the data sent to and from the server to pass through a ssh tunnel so it will also be encrypted. And at the same time bypass firewalls.
 
Old 12-03-2002, 09:20 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
shows how much i know... sorry...
 
  


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
Restricting XWindows remote connections (iptables) Harpune Linux - Networking 4 02-17-2004 07:03 AM
help installing xwindows via remote vher Linux - Newbie 2 10-02-2003 10:28 PM
Xwindows proggy to run windows remote session coopsys Linux - Software 3 08-26-2003 01:38 PM
Remote Xwindows from windows to unix simquest Linux - General 3 09-12-2002 07:44 PM
Remote Xwindows from windows to unix simquest Linux - Software 3 08-23-2002 07:30 PM


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