Setting up the linux environment
Step 1: Setting up Linux on your windows
- Turn on WSL on windows features
- Search “Windows Features”
- Tick Windows Subsystem for Linux
- Restart your windows
- Download and launch and install a distribution linux from here
- Create username and password
- Done, now you ready to use your linux on windows
Step 2: Setting up your VS code environment
- On your windows download the linux packages from here to your local directory (“D:/temp/ubuntu.deb”)
- On your linux, change directory to your windows directory
- cd /mnt/d/temp
- Run the below command
- sudo apt-get install libgtk2.0-0 libxss1 libasound2
- sudo dpkg -i ubuntu.deb
- sudo apt-get install -f
- If you get this error “error while loading shared libraries: libX11-xcb.so.1:”, try run complete package as per below command
- sudo apt-get install gconf-service libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxss1 libxtst6 libappindicator1 libnss3 libasound2 libatk1.0-0 libc6 ca-certificates fonts-liberation lsb-release xdg-utils wget
- To run the vs code, run this command
- code .
Reference:
- https://nickjanetakis.com/blog/using-wsl-and-mobaxterm-to-create-a-linux-dev-environment-on-windows
- https://medium.com/@cloverinks/how-to-fix-puppetteer-error-ibx11-xcb-so-1-on-ubuntu-152c336368