Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
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.
I have a computer running MythTV, and i was wondering how i could remotely connect to that machine, and start X applications on the already-running XServer?
Try Putty and VNC. If your firewall only accepts SSH connections, it is possible to do the following:
1. Use Putty to create an SSH tunnel on your VNC port. I believe that the default VNC port is 5901.
2. Once you are logged in, you have to start the VNC server. On my machine, I just type "vncserver".
3. Start the VNC client on the machine that you created the SSH tunnel on.
4. Connect to "localhost:5901".
5. Type your linux password and your desktop should load up in a window. This is kind of like the linux version of Windows' Remote Desktop.
Thanks for your reply, but this is not what i am trying to accomplish. I will try to explain it a little better.
[Machine A] - My linux machine
[Machine B] - Other linux machine ( LAN, running X-windows)
Machine B is already up and running X, lets say for example, Xine is playing a movie.
I can connect via SSH from Machine A to Machine B, but i can not run X applications because the Xserver is being run by another user on Machine B. I would like to be able to lauch an application into that Xserver instance from another console, which happens to be remote. I hope that clears up my questions.
What I described will log you into your X server on Machine B. Anytime you connect to your linux machine with SSH and VNC, you are logging into the X server. The only catch is that you will be using a different display ("1" in this case). If you already have an instance running on Machine B, you may in theory be able to connect to display 0 with VNC (the display that Machine B is currently using). You would have to check the VNC server documentation for how to run your VNC server on display 0. I've actually never done this before (it's just a crazy idea), so let me know if it works for you.
Thanks for your reply, but this is not what i am trying to accomplish. I will try to explain it a little better.
[Machine A] - My linux machine
[Machine B] - Other linux machine ( LAN, running X-windows)
Machine B is already up and running X, lets say for example, Xine is playing a movie.
I can connect via SSH from Machine A to Machine B, but i can not run X applications because the Xserver is being run by another user on Machine B. I would like to be able to lauch an application into that Xserver instance from another console, which happens to be remote. I hope that clears up my questions.
Karl
Assuming you want to launch something over xine, or under xine (while xine is in fullscreen mode) you could just attach and set the env variable, but you'll need to run xhost + as the user running the original x session (to allow remote connections). Then:
ssh -l whoever machineb
export DISPLAY=:0
kwrite funnyfile.txt
This would launch kwrite on DISPLAY:0 (your already running X session) and open the funnyfile.txt which of course contains helarious things you want the person to see when xine stops, things like cat < tail, which we all know will mean cat's got your tail! ha ha ha... I was watching that Simpsons episode where Bart goes to the smart school and they make stupid jokes like that, sorry.
Assuming you want to launch something over xine, or under xine (while xine is in fullscreen mode) you could just attach and set the env variable, but you'll need to run xhost + as the user running the original x session (to allow remote connections). Then:
ssh -l whoever machineb
export DISPLAY=:0
kwrite funnyfile.txt
This would launch kwrite on DISPLAY:0 (your already running X session) and open the funnyfile.txt which of course contains helarious things you want the person to see when xine stops, things like cat < tail, which we all know will mean cat's got your tail! ha ha ha... I was watching that Simpsons episode where Bart goes to the smart school and they make stupid jokes like that, sorry.
Cool
Thank you, this is exactly what i was looking for. Let the games begin...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.