I ssh tunnel into a remote desktop running Ubuntu via a terminal - and use gnu screen to do my work there. I have enabled X11 forwarding in my ssh config for the use of X11 applications launched from one of screen's tabs.
Every few hours though, I cannot launch a new app (say for example emacs) - the message is that connection to localhost:10 display failed.
So something that works when I reattach to a screen session stops working for a while.
Any ideas as to how to solve this?