I have an ubuntu 13.04 instance in the Amazon EC2 Cloud. I am trying to run some java programs on the server that require a GUI desktop environment. I need just 1 desktop instance to connect to via remote desktop. I would like just to be able to re-connect every time, and when I disconnect I would like the instance to keep running while I am not connected, just as if I walked away from a desktop computer. Of course it should be possible to formally "log off" of the instance, and that would end my desktop session, but many times I need the programs to continue to run while I am not physically connected.
I am wondering if any of you has had any experience with this, if so, what should I try?
Right now I have the LXDE desktop running, and I can connect via xrdp. The problems I am getting, the BIG problem, is that the desktop environment is very unstable. Many times I disconnect without notice and cannot reconnect. Also I notice that the server sometimes just shuts down my java program automatically (I am still trying to figure out the exact cause). For example just now I logged on to the LXDE and fired up my java program. minutes later the RDP disconnected and now I am unable to re-connect. I will prob have to reboot the instance.
Another problem, but not nearly as serious as the first, is that every time I re-connect via XRDP (assuming it hasn't crashed) it automatically starts a new desktop session instead of re-connecting to the old one. It isn't a big deal, I can always find the ID of the previous session and edit the config file via ssh to force a connection to that ID, but it is a pain and should be automatic.