![]() ![]() In the middle of the attempt to install the Xinit package, trying to start X server through StartX, but always show "unable to connect to X Server:connection refused", many attempts to debug, no results.Ĭonsider a different x server, after a simple screening, found that vcxsrv is very suitable for use in WSL environment ĭo not support the Direct Bash command installation, can be downloaded after the following link to install, launch after successful installation, select display number (typically 0), until "next" until completion, at which time the server should be running in the background.īefore starting chromium, set the environment variable dispaly: In fact, there is no/dev/tty0 this file, view log and according to the error message temporarily failed to find a solution, the basic determination is the interface problem (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information. Please consult the The X.Org Foundation support (EE) parse_vt_settings: Cannot open /dev/tty0 (Input/output error) Ubuntu18.04 The following error was found after the X server was started and terminates itself: Here, only a different way of thinking, no intention to find a package called X server,Ī little understanding of the first to understand in the native Linux ecosystem, the graphical interface function is called only when needed, there is a specific protocol, configuration of a specific manager, the server can be successfully invoked, and the Windows interface and the system itself is the integration of the characteristics of a completely different. ② an article mentions the command "Xhost +", which grants all users access to X Window server, so that all users can use the current graphical interface.įirst, you must explicitly run this command, there is a vulnerability, the hidden danger of the same Linux system.īy Xhost + "name", grant specific client permissions, but still invalid, unable to successfully start the browser. Will find that they can not find the first three files, namely LIGHTDM and GDM, both the Graphics Manager package, are not installed, you have to install before you can modify, test. Test Result: Invalid, if you are installing Ubuntu 18.04 LTS for Windows 10 (and of course there is a desktop version, interested in trying to download the command line), ETC/PAM.D Gdm-autologin and Gdm-password ![]() ① an article mentions to modify the following files separately Here can basically determine is not the authority problem, but at that time did not respond to, still with the authority problem to explore Running as root without -no-sandbox is not supported. Initially thought to be root permission problem, start root, run for the first time, fail įollow the prompts to join the-no-sandbox command, run the second time, failure, the same display cannot open display the graphical interface cannot be opened (chromium-browser:3733): Gtk-WARNING **: 22:32:21.618: cannot open display: :0.0ĭisplays the cannot open display, i.e. Want to be able to simulate the launch of a specific browser under Linux on the Ubuntu command line.įinally select Install Chromium-browser, an open source browser, run the following command: Sprintf(launch, "x-www-browser ‘%s‘ &", url) Reading the P445 of headfirst C (that is, Hi-c) involves the following code to launch a specific browser on different systems to launch a particular browser WIN10 System Installation ubuntu18.04 command-line tool (installed via Microsoft Store) It is relatively simple to start the graphical interface in WSL environment by VCXSRV this x server, but there are still compatibility problems, the configuration still needs to be perfected. Launching the browser essentially launches the graphical interface, which is also applicable to other GUI programs. ![]() First, the conclusion, the solution at the end: ![]()
0 Comments
Leave a Reply. |