Greetings again to another fantastic guide by your boy, SWAKES. If you're an avid reader of my shite or wanting to pick out a certain project, you would have noticed everything is mostly written for a Linux environment. A bit selfish of me I know but I really can't be arsed to write stuff twice. In my defence, most of the stuff will only run on Linux OS any who. For all those Windows users out there (triple can't be arsed for OSX), there is a way to run Linux (Bash) on your OS. Previously we'd have to spin up a virtual machine in something like VirtualBox (which you can still do), but we can do this all through the Windows 10 store and a few configuration changes. Lets crack on ...
If you're still rocking Windows 7, this isn't for you. Like most people, you'd be hopefully using Windows 10.
Enabling Windows Subsystem for Linux
- Right click on the start menu and click on Settings.
- In the Search box, type
Turn Windows Features On Or Offand click on the item that populates in the list.
- A window will pop up with a list of folders with checkboxes next to them. Scroll down and check the box for
Windows Subsystem for Linux.
This will install the needed files. Follow any directions that pop up and restart when asked. You will need to do a restart to get this working so pop back here after.
Ubuntu app from the Windows Store.
- Go to Microsoft Store, find and install the Ubuntu App
- Follow the on-screen prompts to install the app.
- When the app is ready, the button that said 'Install' will change to say 'Launch'. Click Launch. This will start the Ubuntu installation. This installation only happens the first time the app is launched. It's the actual Ubuntu (or Linux) OS installing and mounting to your Windows File System.
Finish Installing the Ubuntu App.
Once loaded, it will ask you to enter a username and password. This will be the root/admin user for the Ubuntu File System (don't use your Windows password)
Finally, you should be at
/home/<your username>. This is the root level of your Ubuntu user.
Now you're finally setup with a Linux environment, there are some things you need to remember:
- Whilst in Bash, you are able to read/write to both the Linux and Windows File System. Windows cannot write anything in Linux File System.
- To get to your Windows files (C:/) use the command
- First command things to run are
sudo apt-get update && sudo apt-get upgrade