Introduction: Set Up Linux for Windows!
Welcome to the instruction set for setting up Linux for Windows! This instruction set is to help beginners to command-line set up an Ubuntu Linux system on their Windows machine and connect their windows files to their linux system. The Linux subsystem is a nice alternative finally included by Windows to let users run Linux without having to use a virtual machine or change their entire operating system.
Setting it up can be done in as quick as 5 minutes and only takes 10 steps! (Steps 1-8 are set up for the Linux Subsystem. Steps 9-10 connect your Windows files to your Linux system.)
Let’s get started.
In order to complete this tutorial you will need:
- Windows 10 or higher
- Your Windows Store Username and Password
- Administrator Access to your computer
Step 1: Search Powershell
HINT: MUST be powershell not command prompt! If it doesn't look like the second picture attached here, you've probably opened command prompt.
Step 2: Right Click and Choose the Option “Run As Administrator”
Step 3: Type Into the Shell:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Hint: You can paste the line into the shell by right clicking the shell after copying the text.
Step 4: Type Y and Press Enter to Restart Your Computer, When Prompted.
Step 5: Search the Ubuntu App From the Windows App Store
HINT: If you can’t find it this is the link for the browser based version:
Ubuntu is one of the most commonly used forms of Linux, hence the one I chose, but all other versions available in the app store are valid as well.
Step 6: Get It, Entering Your Windows Account Name and Password If Necessary.
HINT: If you can't get it make sure that you are signed in, typed your username and password correctly, and that your computer is on Windows 10!
Step 7: Run It Once Downloaded
HINT: You can search it like I did or just click the pop-up that will appear on the right side of your screen.
Step 8: Set Up Your Username and Password
HINT: Make sure to write it down! You will need to type in your password every time you include sudo in your commands!
Step 9: You Activated Linux! ONTO PART TWO....
Now type in ls (which stands for list). Ls will list out all the files you can access.
Notice that there are no files right now! That’s because you are not connected to your windows files, only your linux. In order to connect your window files you need to follow the next steps.
Step 10: Type In:
<strong><u>ln -s /mnt/c/folderNameOnWindows </u></strong>
replacing folderNameOnWindows with the name of the folder you want to be able to access in the Linux machine.
For example if I wanted to connect my Window's documents I would type the command in the picture.
Hint: You can paste the line into linux by right clicking the window after copying the text.
Step 11: Check It Worked
Check that your files are connected by using the ls command again. The folder should appear in light blue.
HINT: Your windows folder will be in light blue compared to the dark green of Linux made folders
HINT: If you want to access the files you just connected use the cd command (which stands for change directory)