Linux - GeneralThis 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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
ok i have 2 computers running red hat 7.3. Each has X installed. when i ssh into one computer from another, is there any way to use a GUI while working through ssh? kind of like pcanywhere or windows remote desktop? if so can you please explain how to do this. I know whenever I enter any X commands in ssh it tells me that X is already running on display 0. can anyone help me out?
3. run this command in the xterm
4. run this command in the xterm
ssh -X remotemachine
That's it, just run any X app you want on the remote machine by typing the command in the xterm
Also if you start X on the local machine without a window manager you could also run a window manager from the remote machine, because it's an X app, that's a lot slower though. You really just want to run the X apps for the best performance.
Last edited by DavidPhillips; 06-20-2003 at 01:46 PM.
While this is not a remote desktop, unless you start a window manager from the xterm. It is by far the best way to be able to run X apps on a remote machine and still maintain security.
If you want a remote desktop I would go with vnc over ssh or setup your local machine to where you can run xinit without starting a window manager and then crank up wmaker or other wm from the ssh login.
On the client machine (the one you are sshing from), edit the /etc/ssh/ssh_config file and make sure the following lines are enabled:
Make sure you don't have a local (~/.ssh_config) file that overrides these directives.
From an X session on your client machine, ssh in to your host machine and run an X program (xv, for example). xv should pop up on your local machine. It's running on your host machine. . . Do the same for other programs.
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Okay... I am getting a bit confused here.. but Msound, are you trying to run an entire nested Xwindows session on your remote desktop.. or are you simply trying to have Xwindows applications that are running on the remote server displayed on your local machine?
I agree with the posters above, in that if you are trying to run an entire desktop, then VNC is definitely the way to go. "man vncserver" and "man vncviewer" for all the info you need.
If however, you just want to have say something like Mozilla running on the remote server, but displaying on your local machine... then it should work by default with RH v7.3. Just ssh into the remote server and issue the command line command for whatever app you want to run (i.e. "mozilla", etc) and it will by default display on your local machine.