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.
The short answer is that the remote X client needs to know what X server (your computer) to display its output on. If you use ssh (secure shell) to login, it should automatically set all that stuff up for you, and all you'll need to do is 'startx' to make it happen.
Edit: Let me get this clear, though: you want to sit at your computer at work, and run an X session on your home computer, having its display sent to your computer at work? If your computer at work is running X, then it's easy; if it has Windows, then it's a little bit trickier; you'll need to get CygWin or another X server for Windows. Of course you'll also need to configure your home computer for remote login, by running sshd (secure shell daemon) and making sure it's accessible to the outside world.
Hello! Thank you for your answer, but what I need is not so difficult than run my X server at work (that I have already discovered).
Imagine (ok, it is running) that I have logged in my machine before i leave my house and started X. For some reason (big uptime because of Xscreensaver) I remotelly shutdowned the X server. The terminal is still running (tty1 at home). What I need is to start the X at this terminal (tty1)
Ah, I see what you're asking. Hmm. Would it work to run '/sbin/init 5'? That should get your machine into GUI mode. I'm not sure how you'd verify that it worked afterwards, though; maybe run 'ps' to see if X is running.
Rico, I think the '-X' argument to ssh just tells it to be ready in case you want to run X programs; it doesn't actually run X. I don't think there's any need to actually use 'startx', since your local computer presumably already has an X server running. Did you try running an X application after logging in? Something basic like xeyes or xclock, just to see if it works.
setenv is not a command on my system. In any event, if it is possible I'd like to just use ssh to connect due to its awesome securtiy. And for learning purposes.
If what I'm trying to do is not possible please just let me know, so I'll stop trying but if it is, any words to help me out would be greatly appreciated.
The server is on my local network and I can already connect via ssh. I edited the ssh config file on the server side to allow Forwardx11=yes
Upon completion of that, I cannont run an x program on my server from my client with the graphical output on my client screen. The error says I "cannont open display".
You guys have been wonderful and I thank you so much for the help and attention you've already given me. I think I'm just missing some really easy step, that for the life of me I can't see. Assuming of course this is possible.