Run Linux on Windows 10 using WSL (draft)

Setting up the linux environment

Step 1: Setting up Linux on your windows

  1. Turn on WSL on windows features
    1. Search “Windows Features”
    2. Tick Windows Subsystem for Linux
    3. Restart your windows
  2. Download and launch and install a distribution linux from here
    1. Create username and password
  3. Done, now you ready to use your linux on windows

Step 2: Setting up your VS code environment

  1. On your windows download the linux packages from here  to your local directory (“D:/temp/ubuntu.deb”)
  2. On your linux, change directory to your windows directory
    1. cd /mnt/d/temp
  3. Run the below command
    1. sudo apt-get install libgtk2.0-0 libxss1 libasound2
    2. sudo dpkg -i ubuntu.deb
    3. sudo apt-get install -f
  4. If you get this error “error while loading shared libraries:”, try run complete package as per below command
    1. 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
  5. To run the vs code, run this command
    1. code .