Linux 一个配置文件确实会导致图形化界面无法启动。
export DISPLAY=localhost:1.0 也存在问题,后寻找此文件,贴于机器,即可用。
该配置文件为:/etc/X11/xorg.conf ,内容如下:
xorg.conf(5) xorg.conf(5) NAME xorg.conf and xorg.conf.d - configuration files for Xorg X server
INTRODUCTION Xorg supports several mechanisms for supplying/obtaining configuration and run-time parameters: command
line options, environment variables, the xorg.conf and xorg.conf.d configuration files, auto-detection, and
fallback defaults. When the same information is supplied in more than one way, the highest precedence mech‐
anism is used. The list of mechanisms is ordered from highest precedence to lowest. Note that not all
parameters can be supplied via all methods. The available command line options and environment variables
(and some defaults) are described in the Xserver(1) and Xorg(1) manual pages. Most configuration file
parameters, with their defaults, are described below. Driver and module specific configuration parameters
are described in the relevant driver or module manual page.
DESCRIPTION Xorg uses a configuration file called xorg.conf and files ending in the suffix .conf from the directory
xorg.conf.d for its initial setup. The xorg.conf configuration file is searched for in the following
places when the server
|