Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Suppose on box2 I...
have an xprogram started, say firefox,
have an ncurses program started, say rtorrent,
and I want to start mplayer-gui.
1)
With ssh on box1, after i've already logged into box2, I would like to open, see, and manipulate firefox on box1. How do I do that?
2)
Same question, only for an ncurses based program. I want to bring up a program already running on box2.
3)
I want to start mplayer-gui. I'd like to start it while I'm on box1, and stop the gui from showing on box2 eventually, but keep it running with a gui on box2.
Q1 is pretty straight forward: you need to ensure sshd on box2 is running with 'X11Forwarding yes' in /etc/ssh/sshd_config, once it is you can connect with 'ssh -X user@box2' and any X progs should run on box1.
Q2 .. I'm not sure theres any way to redirect an already running ncurses process to a new ssj session, happy to be corrected though
Q3 .. not sure this is possible, theres no problem starting the app and leaving it running disconnected from your ssh session but I don't think you can prevent it from displaying in the local X server...
Q1 is pretty straight forward: you need to ensure sshd on box2 is running with 'X11Forwarding yes' in /etc/ssh/sshd_config, once it is you can connect with 'ssh -X user@box2' and any X progs should run on box1.
kbp
That's the rumor. What I can't find is what command to type after I am in ssh.
For example, if I want to start a new process, 'mcc', i just type 'mcc' and no problem, it appears on box 1.
But what if 'mcc' is already running on box2? Do I use the pid or what?
Like I said in answer to Q2, I don't think it's possible to disconnect an app running on a local X server and reconnect it to run on a remote X display via your ssh session
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.