Rebuild WSL2 devenv
Actually, my development envrionment was broken when I was developing web application and updating my PC to Windows 11 for a week, ...and suddenly it said 'Goodbye'. My Windows PC is still Windows 10, definitely I failed updating OS in the fact.
I don't touch Windows PC much except to play games, somehow I want to write codes using by it. It was 100% a whim. That's why I started restoring the broken environment.
Reset Ubuntu App
At first, I need to reset Ubuntu application, so do by following these steps.
- Open the configration menu
- Go to the App & Functions page
- Search from the list, you fill
ubuntu
and find ubuntu app from here - Click the target application and go to the detail
- Click the reset
Renew Ubuntu app
You already reset the old Ubuntu app, so you can create a new one on your PC, it should be the same as to buy new PC. very happy.
- Open the search window and fill in
ubuntu
- Click the application, then start to create new ubuntu app. It's a very easy task
- Finally, you can check creation of the application
- Open PowerShell and type
wsl -l -v
then you can see the result as following
If you have time, it's better to change the default distribution to Ubuntu
because the default of my env was docker-desktop-data
.
The reset process is now completed. So, let's get started to create new environment!
Set up new environment
Installation Alacritty
You can install the alacritty which is a modern terminal emulator that comes with sensible defaults, but allows for extensive configrations.
After installing, you need to set configuration as follows:
- Execute
Win + R
, and search%appdata%
- Create alacritty directory and also create
alacritty.yml
which is configuration file for alacritty. - Configure settings
- Then, you start up
alacritty
( Don't forget to install Zellij beforehand. )