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.
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.
How do I start X from a remote console? I have my WorkStation running RH9 at home, and from work I need to start de X window manager (not to the work) Just starting the X as I were from home.
i too work on a remote server using ssh ...................i just "startkde" in the terminal.........it opens up.......................have i answered ur question??????:~
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.
ok my prob is the opposite... when i hit startx, it starts starts the x server on the remote computer.
I looked at the webpage you posted, but the how-to didn't solve my problem. It said that since i'm using ssh, on the server side edit the config file adding a line for:
Forwardx11=yes
i did that, with no success.
ssh -x rico@192.168.1.55 doesn't start x on my screen here. anyone know how I can do this? if so please help, thanx
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.
well i'll give it a try but the reason i wanted to use ssh was because of its security features. Exactly how secure, if you know, is this method you're proposing?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.