1 00:00:06,630 --> 00:00:09,060 - All right, apart from the Ubuntu distribution 2 00:00:09,060 --> 00:00:13,080 and the redhead distribution, there is this new kit in town. 3 00:00:13,080 --> 00:00:16,140 We call it Windows Subsystem for Linux. 4 00:00:16,140 --> 00:00:18,507 Now, what is Windows Subsystem for Linux? 5 00:00:18,507 --> 00:00:22,230 Windows Subsystem for Linux is Linux integrated 6 00:00:22,230 --> 00:00:24,570 in the Windows operating system. 7 00:00:24,570 --> 00:00:27,270 It's something that you need to separately enable 8 00:00:27,270 --> 00:00:28,950 and I will show you how to do that. 9 00:00:28,950 --> 00:00:30,390 But once you have done that 10 00:00:30,390 --> 00:00:32,940 then you get an Ubuntu inches that can be started 11 00:00:32,940 --> 00:00:35,790 as a part of the Windows operating system. 12 00:00:35,790 --> 00:00:39,720 It is basically a Linux shell and Linux utilities 13 00:00:39,720 --> 00:00:43,110 that are run on top of the Windows kernel. 14 00:00:43,110 --> 00:00:45,300 Windows Subsystem for Linux uses parts 15 00:00:45,300 --> 00:00:46,830 of the Windows operating system 16 00:00:46,830 --> 00:00:48,720 and that is what makes it different. 17 00:00:48,720 --> 00:00:52,290 So if you really want to become an expert on in Linux 18 00:00:52,290 --> 00:00:55,500 then WSL is not the best way to get started. 19 00:00:55,500 --> 00:00:59,100 You better go go for a real Linux distribution 20 00:00:59,100 --> 00:01:01,800 but if you go for the command line experience 21 00:01:01,800 --> 00:01:04,260 and you don't care so much about kernels 22 00:01:04,260 --> 00:01:09,260 and service management and stuff, then it's okay to use WSL. 23 00:01:10,260 --> 00:01:11,190 Much of what we do 24 00:01:11,190 --> 00:01:15,510 in this course is completely compatible to WSL. 25 00:01:15,510 --> 00:01:17,190 Now, WSL, as I mentioned 26 00:01:17,190 --> 00:01:19,650 uses parts of the Windows operating system. 27 00:01:19,650 --> 00:01:20,640 And for that reason 28 00:01:20,640 --> 00:01:23,190 it is different from the other distributions 29 00:01:23,190 --> 00:01:26,640 in particular regarding the boot proxy procedure 30 00:01:26,640 --> 00:01:28,080 and kernel use. 31 00:01:28,080 --> 00:01:31,260 But as I just said, these are not very important topics 32 00:01:31,260 --> 00:01:36,260 in this course, so that shouldn't be too too important. 33 00:01:36,300 --> 00:01:39,598 WSL does offer full command line experience 34 00:01:39,598 --> 00:01:40,800 and that makes it, most 35 00:01:40,800 --> 00:01:44,201 of the things we are doing here will work in WSL as well. 36 00:01:44,201 --> 00:01:45,690 And for that reason 37 00:01:45,690 --> 00:01:48,840 I wanna tell you how to get started with WSL. 38 00:01:48,840 --> 00:01:50,880 Here are the requirements. 39 00:01:50,880 --> 00:01:53,730 You need a recent version of Windows. 40 00:01:53,730 --> 00:01:56,220 You need to make sure that HyperV is enabled 41 00:01:56,220 --> 00:01:59,910 in the Windows features after doing so you restart. 42 00:01:59,910 --> 00:02:03,420 Then you run a PowerShell with administrative privileges 43 00:02:03,420 --> 00:02:07,296 and you use the command WSL minus minus install 44 00:02:07,296 --> 00:02:11,160 and then you restart and you will have access to WSL. 45 00:02:11,160 --> 00:02:12,063 Let me show you. 46 00:02:14,520 --> 00:02:17,010 So WSL, what are we going to do? 47 00:02:17,010 --> 00:02:21,340 Well, here we are on Windows 10 enterprise edition 48 00:02:22,230 --> 00:02:25,500 and I need to start by enabling HyperV. 49 00:02:25,500 --> 00:02:30,500 So let me, let me go to, to the search bar and let me look 50 00:02:30,960 --> 00:02:34,710 for HyperV of course, in Windows, there are different ways 51 00:02:34,710 --> 00:02:36,540 to get access to your stuff. 52 00:02:36,540 --> 00:02:41,220 And here, if I look for HyperV I'm getting turn Windows 53 00:02:41,220 --> 00:02:44,430 features on or off, that's exactly what I need. 54 00:02:44,430 --> 00:02:47,070 HyperV is a virtualization layer in windows 55 00:02:47,070 --> 00:02:49,470 and WSL needs it. 56 00:02:49,470 --> 00:02:52,590 So I'm selecting it, I'm clicking okay 57 00:02:52,590 --> 00:02:54,750 and then it is searching for required files 58 00:02:54,750 --> 00:02:56,640 and applying the changes. 59 00:02:56,640 --> 00:03:00,150 And once it is done, we will need to reboot the 60 00:03:00,150 --> 00:03:00,990 Windows machine. 61 00:03:00,990 --> 00:03:03,213 So restart now, there we go. 62 00:03:11,940 --> 00:03:14,883 So here, I'm in my, my login screen. 63 00:03:17,816 --> 00:03:21,930 And once we have done that, we are ready to use HyperV 64 00:03:21,930 --> 00:03:25,230 and we can go for the next step. 65 00:03:25,230 --> 00:03:28,770 And the next step is PowerShell. 66 00:03:28,770 --> 00:03:30,750 So I need PowerShell. 67 00:03:30,750 --> 00:03:34,203 And in PowerShell, I need to run it as administrator. 68 00:03:36,840 --> 00:03:38,500 And yes, that is allowed. 69 00:03:38,500 --> 00:03:41,100 There we go, this is PowerShell. 70 00:03:41,100 --> 00:03:44,020 And in the PowerShell I'm using WSL 71 00:03:47,070 --> 00:03:50,200 minus minus install 72 00:03:52,560 --> 00:03:55,350 and that is going to install the virtual machine platform 73 00:03:55,350 --> 00:03:59,790 and the WSL system and the WSL kernel. 74 00:03:59,790 --> 00:04:02,747 And it'll download Ubuntu depending on your internet speed 75 00:04:02,747 --> 00:04:05,133 that might take a minute or so. 76 00:04:06,780 --> 00:04:09,873 All right, and again, we need to reboot. 77 00:04:14,430 --> 00:04:17,460 Again and here we go restarting windows to make sure 78 00:04:17,460 --> 00:04:19,563 that we can start using WSL. 79 00:04:25,350 --> 00:04:26,280 So here we go. 80 00:04:26,280 --> 00:04:27,933 I can log in again. 81 00:04:30,150 --> 00:04:32,790 And now that we have logged in 82 00:04:32,790 --> 00:04:36,873 let's do WSL and now we can see WSL run command. 83 00:04:37,800 --> 00:04:42,800 So after the reboot, the WSL insulation is resuming 84 00:04:44,095 --> 00:04:47,100 and you can see it installing Ubuntu. 85 00:04:47,100 --> 00:04:49,200 So again, a little bit 86 00:04:49,200 --> 00:04:51,363 of your patience until this is finished. 87 00:04:52,500 --> 00:04:55,200 So once you are done, you will get access 88 00:04:55,200 --> 00:04:57,657 to WSL, Windows Subsystem for Linux. 89 00:04:57,657 --> 00:05:00,090 Here we can see Windows Subsystem for Linux 90 00:05:00,090 --> 00:05:04,740 in which I'm use a student and in which I can use Linux 91 00:05:04,740 --> 00:05:08,310 as if it were a regular Linux distribution. 92 00:05:08,310 --> 00:05:10,860 So you can use your Linux commands 93 00:05:10,860 --> 00:05:15,090 and just proceed with all that I am going to teach 94 00:05:15,090 --> 00:05:16,653 in the next couple of lessons.