Getting can not open display error in wslg on windows Insider build.
If you are installing Ubuntu or other distro from Windows Store then they comes with wsl version 1. wslg is only compatible with WSL 2.
you can list the distros using :
wsl --list -v
then choose distro you want to use and fire below command:
wsl --set-version your_distro_name_with_version_goes_here 2
for example:
wsl --set-version Ubuntu-20.04 2
after that restart wsl using
wsl --shutdown
Check screen shots for refeence.
Source : https://github.com/microsoft/wslg
Related
This question already has answers here:
Shutdown or Reboot a WSL session from inside the WSL session
(2 answers)
Closed 2 months ago.
So, I totally begineer at WSL and I have installed and running WSL. And, I found that I can enter the default distro by just typing wsl and pressing.
But, how to exit from the same terminal, without going into powershell window and then typing wsl --shutdown
Want to Shutdown WSL distro from within the same terminal and flexiblity to shift from Wsl to powershell mode within the same terminal on desire. In simple terms to exit the linux distro and get back to powershell mode just like I can get into distro mode by using wsl command.
To shutdown WSL from inside a Linux distro :
wsl.exe -t $WSL_DISTRO_NAME
I completely borked my Alpine configuration when attempting to connect Docker Desktop several times. I've done the usual --unregister Alpline and then reinstalling from the app store.
Is there a quicker way of doing this?
I've gotten this to work in Windows 11 Pro without touching the UI.
Open Windows Powershell in Windows Terminal.
Verify that Alpine is installed: wsl -l -v
Unregister Alpine: wsl --unregister Alpine
Verify that Alpine has been unregistered: wsl -l -v
Register Alpine by starting it: Alpine
Unregistering the Alpine distro from WSL does not delete it from your system.
I am using windows and didn't wanted to switch to linux. I still wanted to learn it so I downloaded ubuntu subsystem for windows. It works fine and I can also execute linux commands on it. But the problem is I can't check my pip version using "pip --version" command also I can't access nodejs . It says that node isn't recognized. But it is working fine on my cmd windows terminal. How can I make it work ? Do I really have to download all these packages again after running "sudo apt update" command.
Yes, you have to download all these packages again for Ubuntu-WSL. That is because WSL is not compatible with windows executable, just like Ubuntu is supposed to be.
I want to use a redis browser and I found redis-desktop-manager.
(http://redisdesktop.com/download)
I downloaded a deb file but it requested libicu52.
Frist. How can I install this one in Ubuntu12.04.
Second. I found later that it seems to support Ubuntu version 14+.
Would I run this on 12.04 version?
For the dependency of libicu52 Redis Desktop fail to install. You can follow bellow step:
Step 1: To download the libicu52 file. Run the command in the terminal:
wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu52_52.1-8ubuntu0.2_amd64.deb
Step 2: Install libicu52 by executing this command:
dpkg -i libicu52_52.1-8ubuntu0.2_amd64.deb
Now, Attempt once again to install redis-desktop-manager client from debian file, I believe now everything is fine ;)
FYI, redis-desktop-manager installs and runs perfectly on my 15.10 systems.
You can probably compile redis-desktop-manager from source on your system, using the libicu* version that comes with 12.04. I would also consider upgrading: 12.04 is no longer supported, has been replaced as an LTS by 14.04 and it generally far behind.
FWIW redis-desktop-manager installs and runs fine on my 15.04 and 15.10 systems.
Appc is successfully setup via terminal. Each prerequisite installed but on Studio launch Appcelerator cannot find/recognize installed node and tries to install node again and prompts "cannot install node on platforms other than windows or mac".
Since I am using the latest version of Titanium so it requires the latest Node.js (nodejs, node and npm). Appcelerator tries to install node because it does not find any compatible version.
Secondly Appcelerator tries to install all pending prerequisites and it cannot install node on platforms other than windows or mac so you have to install nodejs via terminal.
To debug issues try to run programs via terminal. Particular to Appcelerator in Ubuntu, go the directory and run it by command $ ./AppceleratorStudio
It will prompt all ERRORS, WARNINGS and NOTICES.