Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.