So I have Ktorrent running all the time on my remote host, and I have to change some of the settings on it every once and a while that can't be changed through the web ui. So I was wondering if there was a way to have the applications gui show up on my local computer so that I can change the settings. Both computers are running the same version of Ubuntu, and I need the window that opens up to be the same instance of the application that is already running on my remote computer. Any one have any ideas on how to do all of this.
3 Answers
There are many ways to accomplish this task including ForwardX11, xhost, and freeNX.
On your ubuntu machine running ktorrent edit the file /etc/ssh/ssh_config and add the following lines:
ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes
Next, open /etc/ssh/sshd_config and make sure this line is present (if not add/change it):
X11Forwarding yes
Restart the SSH server and from the client machine run: ssh -X user_name@server-ip
After you're logged in run gnome-session
or just ktorrent
.
Other SSH options that may work:
Alternatively UltraVNC
and x11vnc
both offer "single window sharing".
x11vnc
can be used with the -id
or -sid
option to share a single application window. To find the id of the application run the command xwininfo
on the server and click the window or use the -id pick
option to have x11vnc run xwininfo remotely.
http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
http://forum.ultravnc.info/viewtopic.php?t=14780&sid=5e458a6faabff7ea00f050d88b0b69eb
You can start the application in a different X server like Xvnc
. You can then connect to this X server via various "Remote Desktop Clients" from any computer.
-
One can also share the default desktop over VNC with e.g.
x11vnc
. What one uses is case based. Jun 4, 2012 at 14:17 -
I don't want to open another instance of the client. It has to be the one that is already running.– werdhoJun 4, 2012 at 14:17
-
@Garethj94: Then look at
x11vnc
which shares an existing desktop session over VNC. Jun 4, 2012 at 14:18 -
@DanielAndersson is it possible to just do that for one application in the desktop or would it be the entire desktop, also what ports would it be running on?– werdhoJun 4, 2012 at 14:26
Though the question was, how to display a running application, in this case, I would suggest you using some remote control plugin.
http://maketecheasier.com/remotely-control-ktorrent/2011/02/23
-
The web ui does not let you change the download location for the files. It can only be done from the application.– werdhoJun 6, 2012 at 0:39