bring up ncurses program through ssh
I have a few questions.
I have box1 and box2. I'm currently on box1. 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. |
Hi secretlydead,
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... cheers, kbp |
Quote:
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? |
Hi secretlydead,
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 cheers |
All times are GMT -5. The time now is 11:31 PM. |