X Security Settings in Ubuntu

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.