Before Need Activate Windows subsystem For Linux.

How to Activate Windows subsystem for Linux

Once you’re sure you’re using the correct version of Windows 10, open the Settings app and head to Update & Security > For Developers. Activate the “Developer Mode” switch here to enable Developer Mode.

img_570999e304309.png

Next, open the Control Panel, click “Programs,” and click “Turn Windows Features On or Off” under Programs and Features. Enable the “Windows Subsystem for Linux (Beta)” option in the list here and click “OK.”

After you do, you’ll be prompted to reboot your computer. Click “Restart Now” to reboot your computer and Windows 10 will install the new feature.

img_570999427548f.png

 

:: Now How To Use Lxrun

  • Right click on Start and Select Command Prompt or Win + X
  • in cmd can following some commands lxrun
InstallSubsystem

lxrun /install                        >>>this command for installing Subsystem linux on your PC
lxrun /install /y                     >>> with this command do not prompt user to accept

Uninstall or ReinstallSubsystem
  
lxrun /uninstall                      >>>this command for reintalling subsystem
lxrun /uninstall /full                >>>forFull uninstalling SubsystemOtherCommands
  
lxrun /setdefaultuser                 >>> with this command can Setdefault user and Profile
lxrun /setdefaultuser root            >>> can set user root for access Perm
lxrun /update                         >>>forCompleteUpdatingYourSubsystemLinux

 

:: Space Need For subsystem

Subsystem Package size: 185 MB

Space For Install: 1GB or More

 

:: How To access Subsystem Location

Subsystem Location: C:\Users\username\AppData\Local\lxss

Note: lxss folder is Super Hidden

 

:: Your Profile or root Profile location

Your Profile: C:\Users\username\AppData\Local\lxss\home\yourname

root Profile: C:\Users\username\AppData\Local\lxss\root\

 

:: Subsystem System files

C:\Users\username\AppData\Local\lxss\roofs\

 

:: Subsystem Version Info

cat /proc/version                 >>>CommandForSomeDetails

Linux version 3.4.0-Microsoft (Microsoft@Microsoft.com) (gcc version 4.7 (GCC) ) #1 SMP PREEMPT Wed Dec 31 14:42:53 PST 2014

lsb_release -a              >>>ForSomeDetail about os

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:        14.04
Codename:       trusty

 

:: How to fix unable to resolve host error

Use This command for fix this error:

echo 127.0.0.1 your_pc_name >>/etc/hosts

your_pc_name change to your pc name.