How to remotely execute the GUI program in Linux has been checking for memory leaks today. By dumping the memory information jmap dump, a GB binfile is generated. If it is downloaded to a local machine, it takes about two hours to analyze the Memory data by running the MAT (Memory Analyzer) on the server for convenience. Currently, www.2cto.com is commonly used in Ubuntu for two desktop DISPLAY managers: lightDM and gnome display manager. In Ubuntu11.10, lightDM is used by default, a lightweight and faster display manager. Here we will only describe how to configure the lightDM environment: first enter the configuration file:/etc/lightdm. conf adds a configuration line after [SeatDefaults]: xserver-allow-tcp = true # Open Port X11 (6000) and log on to the remote server through ssh on the local machine, import the GUI to the local server (Remote server) to the environment variable $ export DISPLAY = <Client_IP>: 0.0 allow access to xserver on the client (your own Ubuntu: $ sudo xhost + finally open the mat on the server.