Redirecting program display to XRDP session
Hi there. Wasn't 100% sure where the proper place would be to post this. Seems to me like a beginners question, mostly because I'm not entirely sure of the terminology used. A disclaimer right at the top(ish) since as I wrote this out I realized this may grab someone's attention... yes I'm using root, and yes the end-user is using root; I understand the risks.
I have a Ubuntu server (12.04 LTS) running at a remote site, connected by WAN. I started with SSH access, and as the needs evolved, I ended up needing a graphical display. So I installed ubuntu-desktop, xrdp, x window manager, and gnome-session-fallback (as a suggested fix for a problem I was having getting xrdp working correctly).
I'm able to connect now and connect via Microsoft RDP from a windows station to the Ubuntu server. There may be instances where the end-user at that site using this server will need to run applications locally on this server. This end-user however is not a linux user, and so -finding- the program that they need to run may sometimes be an issue.
I was hoping there was a way for me to SSH into the server, and run a program, pointing it to the Xvnc session open so that the end user logged in via RDP would have it just show up on their screen:
root@sanitized:/# ps aux | grep Xv
root 16331 0.0 0.9 25684 19856 ? S 08:31 0:10 Xvnc :10 -geometry 1680x1050 -depth 16 -rfbauth /root/.vnc/sesman_root_passwd -bs -ac -nolisten tcp
A google search mentioned changing the display variable, and had several commands, but I was hoping I could build an understanding rather than just copy and paste into SSH.
I may be completely off-the-ball on this one, but I do see /proc/10 exists... but I'm not sure where to go from there.
I also saw using ssh -X or ssh -Y, but I'm not sure if that works with an xrdp session?
EDIT:
I see that /proc refers to the PID of a process now. In my case, that would mean I would want /proc/16331 right?
Last edited by ErikTheAngry; 04-10-2013 at 02:49 PM.
|