Error Please Start X Windows and Execute Ecalib Again
The Windows Subsystem for Linux (WSL) was introduced past Microsoft in the Windows 10 Ceremony Update. It allows users to run a full Linux user space in Windows. It is a much nicer arroyo for most applications than Cygwin, or using a Linux VM. It is not an emulator either. Think of it every bit GNU/Linux/Windows (apologies to Richard Stallman). This guide starts off with Microsoft'due south instructions for installing the WSL, and then goes a few steps further past describing how to run graphical Linux applications.
Enable the Windows Subsystem for Linux feature
You lot tin enable the feature using a GUI or command-line interface.
GUI Method
- From the Start Menu, search for "Plow Windows features on or off" (type 'plough')
- Select Windows Subsystem for Linux
- Click OK
Control-line Method
Open up a PowerShell prompt as administrator and run:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Subsequently enabling Windows Subsystem for Linux
Restart your computer when prompted.
It is important that yous DO restart when prompted as some of the infrastructure which the Windows Subsystem for Linux requires can only be loaded during Windows' boot-up sequence.
Install your Linux distribution of choice
Linux distributions can exist installed using a script, or past using the Microsoft Store links below:
- Ubuntu
- Kali Linux
- Debian GNU/Linux
- Fedora Remix for WSL
- Pengwin
- Pengwin Enterprise
- Alpine WSL
Afterwards installation your Linux distribution will exist located at:%localappdata%\lxss\
This directory is marked equally a hidden system folder for a very good reason:
Avoid creating and/or modifying files in this location using Windows tools and apps! If you lot do, information technology is probable that your Linux files will exist corrupted and data loss may occur. Delight read this blog post for more data.
Create a UNIX user
The first fourth dimension you launch a Linux distribution in Windows, yous will exist prompted to create a UNIX username and password.
This UNIX username and password has no relationship to your Windows username and password, and it can be dissimilar.
Use the same username that you apply on remote Linux/UNIX systems, and so you won't demand to specify it in individual configuration files, or every time you run commands similar ssh
. Read more.
Update the Linux distribution
After y'all accept fix up your user, update the OS.
To do this on Debian/Ubuntu based distributions, run:
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt-go autoremove -y
Install mutual tools
The Debian distribution for WSL is minimal, so many packages that you lot might wait to be installed, such every bit ca-certificates, are not installed. To ready this, run:
sudo apt install -y ca-certificates findutils control-not-found vim nano ringlet openssh-client less screen apt-utils top htop whois git python3-pip
Accessing the Windows filesystem from WSL
Windows drives are mounted past their bulldoze messages under /mnt
. For example, your Windows C: drive is accessible via /mnt/c.
To make information technology easier to access your Windows user directory, consider adding a symbolic link, such as:
ln -s /mnt/c/Users/Sean/ ~/winhome
On Amazon WorkSpaces, this your Windows user directory is located in /mnt/d/Users
.
That way, your Windows user directory is accessible from ~/winhome
.
Graphical Applications
In order to run Linux GUI applications using WSL, yous must:
- Install a X server for Windows
- Configure bash to tell GUIs to apply the local 10 server
Install VcXsrv
In order to run graphical Linux applications, you'll need an X server.
VcXsrv is the only fully open source and upwardly-do-date native 10 server for Windows. Download and run the latest installer, then locate the XLaunch shortcut in the Start Menu, and click it.
You will be greeted with a setup wizard. Take the default options. On the concluding page of the sorcerer, click on the Save configuration button, and save the configuration file in %appdata%\Microsoft\Windows\Offset Menu\Programs\Startup
, so vcXsrv will launch at startup without request well-nigh these options, then click on the Finish push button.
You may receive a prompt to allow information technology through your firewall. Cancel/deny this asking! Otherwise, other computers on your network could access the server.
A Ten icon will announced in your organization tray.
Configure bash to use the local X server
- In bash run:
repeat "consign DISPLAY=localhost:0.0" >> ~/.bashrc
- To accept the configuration changes accept effect, restart bash, or run:
. ~/.bashrc
Instructions for fish crush users
If yous employ fish instead of fustigate:
-
echo "prepare -10 Brandish localhost:0.0" >> ~/.config/fish/config.fish
- To take the configuration changes take effect, restart fish, or run:
. ~/.config/fish/config.fish
Test a graphical awarding
- Install
x11-apps
sudo apt-get install x11-apps
- Run
xeyes
A new window will open, containing a pair of eyes that will follow your mouse movements.
Running remote GUI applications over SSH
To utilise a GUI awarding from a server, simply use the -X
switch with the ssh
command, for instance:
ssh -X [electronic mail protected]
And run the GUI application from the crush prompt.
Instead on installing the Linux version on Visual Studio Code on your WSL Linux distribution, install Visual Studio Code in Windows, and add the Remote Evolution extension pack.
After reloading Visual Studio Code, click on the light-green arrows at the bottom correct corner of the window, and select Remote-WSL: New window
action.
A new window volition open up with a Linux shell and editor. You will be able to edit files on the Linux file system.
Whatever Visual Studio Code extensions need to be installed in your Windows example of Visual Studio Lawmaking first, and so on the WSL instance.
Source: https://seanthegeek.net/234/graphical-linux-applications-bash-ubuntu-windows/
0 Response to "Error Please Start X Windows and Execute Ecalib Again"
Mag-post ng isang Komento