In the afternoon, I want to run a GUI program on the server side, but the server side does not start the X service, so I want to direct the DISPLAY to my local machine directly, therefore, the settings for the DISPLAY environment variables are added on the server as follows: exportDISPLAY = xxx. xx. xx. xxx: 0.0 and then try to start gvim, but the error message indicating that the Xserver cannot be connected is returned. I thought about it. I guess it may be that the access control permissions of the Xserver on the local machine are not fully opened, so I ran to the local machine and ran
In the afternoon, I want to run a GUI program on the server side, but the server side does not start the X service, so I want to direct the DISPLAY to my local machine directly, therefore, the setting of the DISPLAY environment variable is added on the server as follows: export DISPLAY = xxx. xx. xx. xxx: 0.0
Then try to start gvim, but report information that cannot connect to X server.
I thought about it. It may be that the access control permissions of the X server on the local machine are not fully enabled, so I ran to the local machine and ran xhost +
Start gvim from the server, or the gui cannot be started, and the connection DISPLAY failure information is reported.
A little scratching your head.
Suddenly, some time ago, when I installed and configured Ubuntu myself, I saw in an article on the ubuntu Chinese site that the default security-related options of Ubuntu were relatively high, remote X access is forbidden. therefore, the "Deny TCP Connection to X server" option is found in System-> Administration --> Login Windows (for troublesome users, you can directly enter sudo gdmsetup, disable this option and restart the system. Then, you can successfully connect to X server of my local system from the server to run the GUI application on the server.