Install Linux shell on Windows 10: Difference between revisions
Line 8: | Line 8: | ||
Technically this can't be called Linux, because the Linux kernel is replaced by the Linux subsystem in Windows. The only thing that is left are the GNU utilities and software. There are some limitations, of which the most important are that you can't use the shell for graphical software, server software, nor Windows software. You have however access to the Windows filesystem. | Technically this can't be called Linux, because the Linux kernel is replaced by the Linux subsystem in Windows. The only thing that is left are the GNU utilities and software. There are some limitations, of which the most important are that you can't use the shell for graphical software, server software, nor Windows software. You have however access to the Windows filesystem. | ||
== Step by Step Recipe == | == Step by Step Recipe - Ubuntu shell on Windows == | ||
* Make sure you run the 64 bit version of Windows 10 | |||
* Enable the developer mode. Go to the Settings app > Update & Security > For developers > Use developer features, where you select ''developer mode''. | |||
* Go to the Windows 10 search and search for ''Turn Windows features on or off''. Open the best match, scroll through the list and select ''Windows subsystem for Linux''. Click Ok. | |||
* Reboot your PC. This might take a while. | |||
* Open the Windows Store and search for Ubuntu. Install the app. | |||
* Click on the Ubuntu button in the start menu, or use the command ''ubuntu'' in the command prompt (Windows 10 search for ''cmd'') | |||
* Let the script run and go through the steps to make a user account. You can use any username or password, but it might be convenient to use the same user credentials as for your Windows installation. | |||
* You are ready to go! | |||
== Step by Step Recipe - Hyper Terminal == | |||
== And then? == | == And then? == |
Revision as of 22:35, 4 December 2017
Purpose
To install and then run a full bash shell in Windows 10. This makes you able to use most of the shell functionality in Windows, from running scripts to using package managers. This could be of use for people new to shell, or when you don't want to boot in Linux on a Windows/Linux dualboot to use a specific command line tool.
Details
This solution is not a virtual machine, but makes use of the Linux subsystem which is part of Windows 10. Microsoft collaborated with Canonical on developing a distribution of the Ubuntu shell that runs on this subsystem. Technically this can't be called Linux, because the Linux kernel is replaced by the Linux subsystem in Windows. The only thing that is left are the GNU utilities and software. There are some limitations, of which the most important are that you can't use the shell for graphical software, server software, nor Windows software. You have however access to the Windows filesystem.
Step by Step Recipe - Ubuntu shell on Windows
- Make sure you run the 64 bit version of Windows 10
- Enable the developer mode. Go to the Settings app > Update & Security > For developers > Use developer features, where you select developer mode.
- Go to the Windows 10 search and search for Turn Windows features on or off. Open the best match, scroll through the list and select Windows subsystem for Linux. Click Ok.
- Reboot your PC. This might take a while.
- Open the Windows Store and search for Ubuntu. Install the app.
- Click on the Ubuntu button in the start menu, or use the command ubuntu in the command prompt (Windows 10 search for cmd)
- Let the script run and go through the steps to make a user account. You can use any username or password, but it might be convenient to use the same user credentials as for your Windows installation.
- You are ready to go!
Step by Step Recipe - Hyper Terminal
And then?
If all went well:
- If you open the default windows command prompt, the command bash will let you enter the Ubuntu shell
- If you open Hyper you will automatically enter the Ubuntu shell