0:30
Hi, everyone. Welcome back to C Sharp Corner Live Show. And as always, I'm your host, Stephen Simon
0:35
and we are back with another episode of C Sharp Corner MVP Show
0:39
one of my favorite shows that we run every Wednesday, 10 a.m. Eastern
0:44
and 4 p.m. CEST. Okay, so a couple of announcements before we go ahead and invite our guests
0:51
The usual announcement that on every Monday, we do Azure AI Show
0:55
Same timing, 10 a.m. Eastern. every Tuesday we do product showcase show and a copy with pros it's almost like alternate
1:02
then on Wednesday we do C-sharp on an MEP show where we feature one of our community leaders
1:07
and talk about their journey in the community followed by a technical session then we have
1:12
Ask Me Anything show we are at episode number 29 streaming every Thursday I host it well I'm the
1:18
host in every show right but and and I think tomorrow we're gonna have we're gonna talk about
1:25
the SQL. Then on Fridays, we have Growth Mindset hosted by Mahesh Yand. Then on Saturday, we have
1:32
Rocking the Code World with .NET Dave, where David, who is a 12 times Microsoft MVP, brings guests from
1:40
the .NET ecosystem, usually from the products team, program managers, directors. So pretty exciting
1:45
show to go ahead and watch. So hi, Deepak. Welcome to the show. Welcome everyone who is joining us
1:51
from different locations drop your location in the comments it's always interesting to know
1:56
from which location you are tuning uh in live shows so for today's episode we have
2:03
Asma Khalid who is a C Sharp Corner MVP Microsoft MVP she is from Pakistan Lahore
2:10
she's an aspiring YouTuber that's very interesting we can talk about that what kind of video she makes
2:16
right and without any further ado let's go ahead and invite our guest Asma Khaled
2:46
hi Asma welcome to the live show
2:59
hello Sivan how are you thank you for having me thank you thank you Asma thank you so much for
3:07
your time Asma we really appreciate it I know it's a kind of kind of almost like
3:12
eight o'clock at your place eight at the night what time is it yes yes it's 8 p.m here okay okay
3:19
so thank you so i know it's almost like you know time but we really appreciate so everyone who is
3:23
joining us today we are going to talk about um installing windows linux subsystem right and this
3:30
just goes over my head and if you guys have any questions related to this topic asmaga is going to
3:35
go and talk about this have some presentations and all and you guys can just drop in your comments
3:41
and we'll make sure that Asma answers it. And if she doesn't know, we'll just say, we don't know that
3:46
Okay, before we go ahead and talk about all these technical sessions
3:50
you know, everyone who's joining, this show is an MEP show where we not just talk about technical session
3:55
we also talk about how did one get started in the community
4:01
So Asma, let me quickly pull up your C-sharp corner profile and I was stunned to look at that you have written 78 articles
4:09
and your articles have been read close to six million times that's humongous that's that's a
4:17
very big number right and and you you have replied to 178 forums so asma this is a lot of time i think
4:26
that one has to go ahead and give i think writing 70 articles it's almost like two books right so
4:32
how do you how do you encourage yourself what actually got you to in this community at the
4:37
very first place? I think it always started with a single block. Back in 2012 when I was studying
4:46
my master's during my spring semester there was one particular assignment that I was able to
4:58
complete one of the feature and obviously during the semester I never shared my code with anyone
5:05
because obviously there's a competition. That particular feature can be used in our project as well as semester
5:14
And I never thought that people were keen to have that piece of code from me
5:21
I received lots of email from almost five to six of my peers
5:27
And they came to me offline as well and saying that they need that particular piece of code
5:33
that I have you know done so I was like shocked like okay the semester is off now why would they
5:40
you know even need that so I was at that time also exploring to do blogging because at that time
5:48
blogging has a bit little bit of a hype but I was not sure what kind of you know niche I'm going to
5:53
have because most of the blogs that I've seen they are based on you know cooking they are cooking
5:59
especially when we talk about the blog, the viral blog that, you know, they can, which can get you
6:06
some revenue and all those sort of stuff. So what I see either do cooking blogs, fashion blogs, you
6:14
know, daily news, update tech news, those sort of things. So what I, during that time in my
6:21
educational period, what I decided that instead of sharing my, that particular piece of code
6:27
individually to everyone why not just make a blog because what i realized at that time that when i
6:34
have certain issue i go to internet and i look into different beautiful blogs made by amazing
6:41
people and then i look into that you know problem set and the solution they give and then come up
6:47
with my own solution so i i thought why why not i should also share my side of the story too like
6:54
maybe we have similar blogs, but the story would be from my end. So I, you know, make my very first
7:00
post back in 2012 and share that particular link to all those who were requesting me, you know
7:07
to give me, give us your piece of code. Like I thought instead of going one by one to every
7:14
individual and explain, okay, what this is doing and how it is doing, which is because obviously
7:19
is just handing out a piece of code won't be enough. So I just make a proper blog post, and I post it
7:24
And I got very good response from it So from that I just started you know like just for the sake of fun I just you know whenever I feel like OK this is not on the Internet I don see any good blog posts of this particular topic
7:38
So I just, you know, start posting it. So as I, you know, as I progress in my career, I after my graduation, I receive an internship at Microsoft Pakistan
7:49
There was an innovation center here. So I joined there. one of my mentors, Deanna, he said to me that you seem like someone who is very interested
7:59
in sharing your knowledge because I really enjoy off the record helping someone else
8:05
solving someone else's problem. So he just kind of told me that why you not start to compete yourself into Microsoft MVP
8:16
At that time, I literally don't even know what MVP is all about
8:20
and I was like what is he talking about he's just putting me he just want me to do some extra
8:26
but why would I do that so I just I just you know didn't bother what he said and he was really you
8:32
know bucking me up motivating you know you should you should you know go down that path you are
8:37
doing the blog but you should go down that part but I was really not interested because at that
8:43
time I was also looking for you know proper jobs and all that so I didn't bother about it and later
8:50
on when I started my journey in the industry so I realized that there's a lot of thing that I can
8:58
share when I have a downtime you know when you are when you're doing a job you're not always
9:04
doing something there's always a downtime that you you like either you spend with talking with
9:12
your peers or just waste it so I thought instead of wasting it by you know not make it some some
9:17
productive I know this you know this I just start making small little solution and and share it
9:24
because I see there's a lot of blog but I don't see much of a solution which are in really working
9:30
form so that was my main aim to start to you know start a blog and share my knowledge but with the
9:38
working solution so anyone can download it and use it because when i see many of the blogs out
9:44
there when i download it sometimes they run sometimes they don't run so i ensure that
9:49
whatever i post it runs properly right so so that's how i started my journey and then i
9:57
for some reason that mvp thing that my mentor said to my i it's just stuck into my mind like
10:04
okay what is like that let's just explore it now because I'm doing and at that time I think I had
10:10
around 40 blog posts on my own website so I thought like okay let's just you know explore it I have
10:17
you know been into look looking to help from C sharp corner as well but I didn't know they also
10:25
have that you know everything and all that so I thought why not you know start publishing here as
10:31
well so i uh explore a bit microsoft mvp side i didn't know about c sharp uh sharp corner mvp
10:38
side i just uh you know started to join i i was i was like okay i'm posting on my own
10:44
site so why don't you know share it into a community which is very huge and and it will
10:49
be more helpful uh here instead i post independently it might not the information i post might not
10:56
channel to everyone if I join a community it will channel to a wider audience so that was my aim
11:02
job while when I you know registered myself with C-Shark Corner I didn't know like I was like hoping
11:08
okay I've just joined like I joined I did join C-Shark Corner in 2015 but I like really seriously
11:18
posting my stuff uh in 2016 so i was not expecting obviously i i thought i'm just you know starting
11:26
or it's not going to happen that quickly like i'm not going to be just i just started out and you
11:31
know microsoft mvp it's it's a very you know big thing like how can that i just say okay fine just
11:38
like keep doing and posting it and and on on on 2017 march around march and yes i think it's around
11:46
March or February I received an email from C Sharp Corner that congratulations that you are
11:54
a C Sharp Corner MVP. I was like what? I'm C Sharp Corner MVP? How is that even possible? I just
12:03
started out look I didn't even you know believe that it really happens like how is that even
12:10
possible i was not expecting because i just started it out so that really helped me out when
12:17
when i was you know someone from microsoft community also nominated me as an mvp and i was
12:24
shocked again like okay like and and that happened one month after i get the email of c-sharp corner
12:30
mvp like okay you've been nominated by someone uh for a microsoft i was like what you knew that
12:37
someone nominated you didn't knew that someone nominated you no i didn't know i didn't know i
12:42
was not even expecting did not like i told you that i just started in 2016 you know seriously
12:48
starting that whole track of mine so i i and i have that in mind that obviously microsoft
12:55
to become a microsoft mvp you have to do a lot of things you cannot just do one thing at a time
13:02
So I was conducting local sessions as well. I was participating in offline, you know, help with my local community
13:12
And I'm doing my own blog. I'm conducting sessions. I'm conducting, you know, posting on different forums as well and C Sharp Corner and then as well
13:23
So it just happened like crazy. and I was like okay just after one month of you know receiving an email from C-Shark Corner
13:33
I receive an email from Microsoft as well that you have been nominated and I was like oh my god
13:40
this is really happening and on April 2017 I was being you know selected as a MVP from Pakistan
13:51
and I was like, oh my God, this really happens. And the thing is, yeah
13:56
And, you know, the more, another more exciting thing is that at that time
14:01
when I become C Sharp Corner MVP, I was the first female from Pakistan
14:05
to become C Sharp Corner MVP and also the first female from Pakistan
14:13
to become a Microsoft MVP. There you go. That makes sense. So that is more, you know
14:21
an add-on happiness to that particular part like okay I'm not even just receive this recognition
14:30
but I also am the first female which is a which I you know at a huge huge huge huge responsibility
14:37
on your soul on your shoulder that how you you know go about now and how you can help out your
14:43
community so that's how my journey as an MVP started and it still continues alhamdulillah
14:50
Yeah you should definitely go in and tell more people about this that your first C corner and Microsoft female MVP That phenomenal I wasn expecting this in this live show that I be interviewing someone like this I actually you know my mentor here
15:06
when I told him that, okay, I have, I have become the MVP now. So he was very excited
15:12
Actually, he reached out to me and mentioned and asked me that he heard that because he's
15:18
employee there at Microsoft. So he asked me that I've heard that you have become Microsoft
15:25
MVP. Is that true? I said, yes, that is true. So he told me that you are the first female
15:30
from Pakistan to become an MVP. And I was like, oh my God. So I just, you know, go to
15:36
C Sharp Corner. And he also said me to confirm that from C Sharp Corner as well, because I
15:43
haven't seen any female MVP from there from Pakistan especially so I you know go to my Facebook
15:51
and contact Mr. Praveen and I ask him that am I the first am I have you ever like I simply asked
15:59
him and simply message him and said that are there any female MVPs from Pakistan before me
16:07
so he he just you know verify that and respond to me I still have that message
16:11
so he respond me that you you are the first one like you are the first one so I was like oh my
16:19
god this thing happened doubly so that that's phenomenal you know I think starting from from
16:27
as a college code that people were asking you right you deciding not you just go ahead and give
16:33
it to someone which just won't make sense you decide to go ahead and write a blog explain that
16:39
code then share it with people I think that is the basic fundamental from where it actually started
16:45
sharing in the community and all that you know that you know there's one day when people get
16:50
their luck it's actually all that hard work people have done in the past so those February
16:55
March April when you become a C Sharp Corner MVP Microsoft MVP I think I think it's just all that
17:02
you have been doing for the community in the past and this is this is so uh it's so nice and
17:08
so humble of you to go ahead and do that uh really great to hear as i said earlier i really wasn't
17:14
expecting uh this show to go at this way so uh thank you so much asma to what you do for the
17:21
community we really appreciate it uh we should sometime get you again to talk about uh more on
17:28
this as uh this is very exciting to go ahead and learn the c-sharp mvp and microsoft mv3 from
17:34
pakistan exciting stuff c-sharp is that's very special for me because it was my very first mvp
17:44
recognition that i received and i received microsoft recognition after that so it's very
17:49
special to me yeah and i see you know people people say amazing journey and motivation definitely
17:55
uh asthma your journey is really motivating from college itself right when you say your friends
18:01
started asking and that's how you did it uh very inspiring uh and and i won't take much of your
18:06
time i know you have a topic to go ahead and talk about everyone who's who's tuning us now
18:11
asma khaler is a c sharp corner and a microsoft mvp from pakistan first from pakistan to be
18:18
specific and and in this second half she's gonna talk about a technical topic that is installing
18:24
Windows Linux subsystem. It goes over my head what it is, but she's gonna tell a brief introduction
18:31
and maybe in depth. So Asma, you can go ahead and put your slides, then I'll add it to the stream
18:39
Is my slide, are you able to see my slide? Okay, so let me start. So first of all, thank you
18:48
C-Shop Corner for giving this opportunity to me. And let me discuss, today I will be discussing
18:56
about Linux subsystem on Windows. What it's all about, how you can enable it
19:04
how you can install it, and how you can work with it. So let's begin
19:10
So before we jump into how we can install and enable Linux subsystem
19:15
it's important to know what Linux subsystem is about. So Linux subsystem is basically a Linux environment
19:23
available directly on Windows machine without the overhead of installing any virtual box
19:29
or dual boot setup. So this particular feature is introduced in Windows operating system with Windows 10
19:39
And you can also use this system on Windows Server 2019 or above
19:45
So this is the basic system requirement for this feature on Windows
19:49
You have to have Windows 10 or above, or you have Windows Server 2019 or above
19:54
if you want to enable this feature on Windows Server. So now let's look into how we can enable
20:01
Linux subsystem on Windows. So for that, you need to go to Control Panel
20:08
then Uninstall Program, and then Turn Windows Feature On or Off. Here you need to enable a few features
20:18
You need to enable Hyper-V. You also need to enable containers. Now these two feature, it's recommended to enable them
20:29
Otherwise, if your Windows upgrade and you switch to Windows Subsystem second version
20:37
they might have issue and ask you to install these features. So it is recommended that you install these two particular feature, Hyper-V and containers beforehand
20:49
And then when you scroll down, you can see this feature, Windows Subsystem for Linux
20:54
And you also need to enable this. And then simply click OK
20:59
And the feature will be enabled and you need to reboot your system
21:04
I have already installed the feature. then let's look into how we can install a Linux subsystem on Windows so for to install a Linux
21:19
subsystem we have enabled the feature of a Linux subsystem now what we need we need a distribution
21:25
file of Linux a subsystem which you can go to this particular link which I have opened here
21:34
This is basically a Microsoft link where you can download any of the distribution of Linux available here of your choice
21:43
I have downloaded Ubuntu 2004, which I will be using today in this session
21:50
So when you have downloaded this particular distribution, I have downloaded it here
21:57
It will have .app extension. Now you can you need to extract this particular file
22:05
You can either extract it using PowerShell or you can simply rename it and change type
22:13
from app to zip. And then you can simply extract the content of this zip file
22:22
I have extracted it right here These are the content of this particular file You can see there a total of nine item as I have extracted a fresh distribution copy
22:36
Then you need to open a command prompt as an administrator. And you need to change your directory
22:48
to this distribution where you have extracted the distribution of your choice i have ubuntu so i'm i need to you know oh sorry for that i need to
23:01
copy this part and change my directory in command from like this cd space and then the directory
23:10
and then e change my drive because it isn't in the default c drive so now i'm in this all i now
23:21
need to call this ubuntu 2004.exe from command prompt and just simply enter now know that these
23:38
but these three now currently uh the system is being uh is installing so uh you need to every
23:47
time when you want to use this use this particular subsystem or you need to work on your linux
23:53
environment you need to do do these steps you need to you know every time you need to call ubuntu
24:00
2004.exe so i recommend instead of you know opening your command from again and again just simply
24:08
create a back file which i have created here let me just show you
24:17
So this is a run.bat. If you look into its content, it contains those three commands that I will be using
24:30
to open my Linux environment every time I want to work into it
24:35
So simply make a bat file. And whenever you want to access it
24:39
right click on your bat file and run it as an administrator
24:44
so here you can see the installation hence has started and it's asking me to give my username so
24:50
let me give and also my password i see your password
25:04
so here's i have successfully installed my windows my sorry my linux subsystem on my windows now
25:16
before i can use this linux environment i need to make sure to update and upgrade my linux
25:24
environment so i'm i have already have another copy with me with where i have you know update
25:33
and upgrade because update and upgrade take about 40 to 30 minutes which won't be possible to hear
25:39
show but i can show you the commands that you can execute to make these updates and upgrade
25:47
so after in installing your linux distribution on windows you need to simply update and upgrade
25:55
first update your linux system to its latest version of your packages and then upgrade
26:02
upgrade your system okay so let me switch to that particular copy
26:25
so as i have created my back file i can simply run it as an administrator
26:32
And here you can see that my Linux environment has started
26:51
Now if I run those command, now know this when you install this distribution, you become
27:00
the root user. As you know about the root, if you have worked in Linux, you know the concept of the root user
27:06
So in order to check that whether you as a since you know that my username that I created here is
27:13
Ubuntu, but in order to know that whether I have the privileges of a root user, I can I can, you know
27:21
type this particular command, which is pseudo space and it's it is who am I
27:31
So it's asking me my password, which I am giving what I have set during the installation
27:39
So here, if you can see it is showing me root. If it doesn't show you root, it means that you don't have the privileges of a root user
27:49
If you see the root word here, it means that you have all the privileges of a root user
27:59
So now let's look into the directory structure of a Linux subsystem
28:06
Since it's a Linux based environment, so it's directory structure is exactly same as you
28:13
see on the Linux. If you see this small tilde symbol here, it means that I'm currently not at the root of
28:21
my directory. So to do that, I just type CD. If I want to go one directory up, I need to type CD double dot and I will go one directly
28:33
up into my directory hierarchy. And if I want to directly go to root, all I have to do is CD slash forward slash and
28:42
just simply enter. So now I am at the root of my Linux environment
28:47
And if I type here command LLS, which means to list all the directory, which is available
28:53
into this particular folder. You can see all the direct directory which are available here
28:59
will be down here. Now next, let's make a simple directory
29:09
unit using a Linux environment. So into my root. So what I need to do, I need to type sudo mkdir
29:21
let's just name it my stuff. Oh, sorry. I just typed the sudo wrong. Sorry for that
29:45
So now if I run the LS command again, you can see that my directory has been created here
29:51
And if I want to access it, all I have to do is simply cd
29:56
and type the name of my folder and enter. Now I'm into entering into my directory
30:02
This is a standard way how you make a folder, a subdirectory or even a file in your Linux environment
30:10
Now let's take the advantage since we are on a Windows machine
30:14
So why not take the directory structure advantage of a Windows system
30:19
Instead of typing a command, let's say I have a folder and I want that folder to work on a Linux environment
30:28
What I will do that instead of one by one making folder or its content here from a command
30:34
what I do is simply copy it from my Windows environment and move that to my Ubuntu environment
30:42
How I can do that? Let's say this is my folder. It contains a simple C++ hello world program
30:51
So I just simply copy the folder. If you go into your installation directory where you have installed your Ubuntu environment
31:10
you notice that initially when you extracted a fresh copy, there were a total of nine items
31:17
in it. Now after installation, there's around 12 or 13 items. So in these items
31:24
roof, root FS is basically our main important directory, which is basically root of our Ubuntu
31:31
environment. So if I go into this particular folder, you can see all the directories and all
31:39
the files, which I can see right here into my Linux environment at its root folder. All of them
31:47
So I just simply use windows page command and page my my particular folder here
31:54
Now, if I go back to my Linux environment and then check my directory by simply typing
32:00
LS command, I can see that my folder is now available here. So now let's try to access it
32:06
So if I now try to access access it, I definitely get permission denied message
32:15
Why I'm getting this is because I'm a Linux environment does not understand that what sort
32:22
of permission that how this folder has been created. If I created the folder staying within the environment of the Linux, that it will easily
32:31
grant the permission that the fall permission to it. But I do not have, but Linux do not know how this folder just appear here
32:39
So it does recognize it, but it does not give it any permission
32:45
You can check the permission setting of these, all of these folder by using LS dash AL option
32:52
will list you all the permission, permission setting and the user ownership with the particular
32:58
file and directly in your Linux system. So when I execute it, you can now see here that my stuff, since this is I created using
33:09
my Linux environment so it has been given the default user permission while this particular
33:15
folder that I have copied don't have any permission. So that's why if I try to access it, I won't be able to access it
33:24
You can change anytime you take the advantage of Windows operating system and copy any folder
33:31
or file out of your Linux environment to your Linux environment. You always need to make sure to change the ownership and the permission setting of particular folder
33:43
To do that, to understand the detailed permission setting, I will share you a link here and
33:51
I will go into this slide. Let me just first share a command with you how you can change the ownership and the permission
33:59
setting of this folder. So first you first thing is that first you need to change the ownership of your folder
34:06
that you have copied here to do that. We use a command sudo then space
34:15
Then we use ch own. This is a change ownership. It means change ownership
34:21
So it's command is ch own then space minus capital R. This minus capital R means that
34:29
we want to change ownership recursively inside the folder. Like if the folder contain any directory, any sub directory
34:36
any file change the ownership of those as well. Then space and then the user, which you want to grant
34:47
permission, which you want to grant ownership to your folder. So I want to give my root folder the grant
34:55
to access this particular folder. So I'm typing here root name. So then name of your folder, which in my case is my stuff too
35:06
And simply at this point, the ownership has been changed. Now let's change the permission of our folder as well
35:14
So for that, we have command sudo space chmod. This means change mod or change the permission for your folder
35:26
Again, I changed the change permission, permission recursively for the subdirectories and the
35:32
file. Now here you need to type a code. So seven five five is basically a default permission setting on Linux system
35:43
Whether you are using subsystem or you are using, you know, directly the operating system in
35:48
virtual box or to do good So here you simply then type your folder whose permission you want to change and if you again type the command unless dash al you can now see that my the folder my underscore stuff
36:04
has the permission that is required here and if now i try to access it
36:11
so i i will be able to access it and if i again check whether it has something inside it and you
36:18
You can see it also being given the permission as I have used minus our command
36:25
So what is basically what does 755 is about. Let me just go to my slide back so you can go to this link and you know, look into the
36:38
detail of how this combination is made. What is all about just in a nutshell
36:43
CH mode gives user privileges, group privileges, and others, and privileges you want to give
36:51
to other users and that kind of stuff. So when you type 754, here, digit 7, 5, and 4, each represents 7, basically you are giving
37:06
7 to user, giving permission to user. five you're giving permission to a group and four is a permission you're giving to others, right
37:19
So let's see what the combination is about. Four stand for read, two stand for write, one stand for execute and zero stand for no permission
37:28
So for with the combination of this, so seven basically becomes four plus two plus one means
37:35
that this particular group will have read, write and execute permission. means that a four plus one five means that this particular group will have read no right but
37:47
execute privilege and only four means that this particular group will have only read privileges
37:53
so this that's how the permission work but you can go into the detail at that link as well so
38:00
now let's compile a simple C++ hello world program into our Linux environment for that
38:07
you first need to install your your you know C++ compiler to do that you need to
38:15
type following command which is sudo apt-get install G++ since I've already
38:31
have the version installed on my Linux environment you can see that it says that
38:38
G++ is already there I can check my version by typing G++ double dash version
38:47
and it will show me the version of the G++ compiler I have installed here so I
38:55
I have shown you this command, how you can install it. So this is a simple C++ program
39:05
It's just printing hello word out and as I execute my program
39:10
So now to execute this particular program here, as I show you that my stuff folder already contain my CPP file
39:20
And if you open it into your notepad editor, you can see that the code is already there
39:28
So now let's execute it. To execute it, we need to first
39:32
we need to use this particular command. So we type sudo, we type G plus plus, then we type
39:40
okay, sorry, before that, we need to go into our folder where that particular dot CPP file is
39:46
So let me change my directory first. Now sudo g++ then I will type name of my CPP file
40:00
Okay, sorry. Then dash o, you can dash o, this is this option
40:07
This is optional. You can, you know, type it here or you can leave it
40:11
What this does is it allows you to create your bind, compile binary of your program
40:18
you will use later on to see the output of your program so when you when you type dash o and give
40:26
the name of the output let's suppose i will name my binary file output so i i'm naming it by by my
40:35
binary name is output so when i enter it it start started to compile a program i really apologize
40:46
from the about the cat fight behind my house. So let's just enjoy that background view. So here
40:55
you can see that we have when we compile our code our output binary is generated here. Now
41:02
access it to actually see what my program output I need to type this dot forward slash and then
41:10
output which is just generated right now and when I execute it I can see the output of my
41:17
simple C++ program so this is how you can run a compile and execute a simple C++ program or any
41:28
your ccpp file so that's about the session from my end so if you would like
41:39
to you know reach out to me and stay connected to me you can go to my social channels and you can you know contact me directly through my email which is available right here on this slide So this is you know that about it from my end Let
42:00
you know, switch back to Steven. Yes. That was an amazing, amazing demo. I think, you know, I really didn't knew that you don't
42:12
have to create a virtual machine to use linux i really didn't know that and or not and not just
42:18
like a one a one version of linux you see we had red hat we had ubuntu you can go ahead and use
42:24
anything that you want right so so quick question asma that that even i think one of our viewers
42:30
are interested is why don't you install linux itself i mean uh we can go ahead and create two
42:37
users right or i can have one for windows i can have one for linux okay no merchant machines but
42:44
definitely i can do it so what is the main benefit of adding it of doing it through through this
42:52
sub system this sub system i think the main benefit is is that that you know ubuntu environment
42:59
environment is totally developer friendly environment so when you you know do some
43:04
very heavy intensive processing over it. It always have that particular issue that you know you your
43:11
system might crash you always need to have backup of you know backup snippet of that particular
43:17
state of your operating system operating system so that if something crashes down you can you know
43:24
restore it back to its original state. So and also you in order to work in Linux environment you
43:31
you always need to have a dual boot on your either you go to the dual boot to you know directly use
43:38
utilize your machine resources as a totally independent operating system or you can you know
43:45
you can use virtual boxes which mostly people use virtual boxes very you know only those people who
43:52
who you know deployment is based on linux only they go directly into the linux environment you
43:58
you know, either test out or either deploy it. So, but one advantage using a subsystem is that you can
44:06
you know, leverage Windows operating system with it as well. As we know that Ubuntu does have graphical UI interface
44:15
but still all, you know, the command base, it's still a command base operating system that it shines more
44:23
if you do all your stuff in that command-based environment. So if you are coming from that Windows background
44:32
so it will become very difficult for you to adopt into that command type of environment
44:37
As I show you, it's directly structured. It's very simple, even though creating it through commands
44:43
it's not that difficult. JOHN MUELLER I'm not running C++ like that. Yeah. Yeah
44:50
That's tough for many people. Yeah, that's not for many. But the thing is
44:56
a graphical user interface always give you the advantage over command line programming
45:03
Because as we move to the modern languages, we always feel more comfortable working in that less coding
45:13
and more usability kind of an environment. So we have Windows operating and we can directly work learning environment
45:21
So we can take advantage of both windows and we can also work on our Linux subs
45:26
And instead we just go and make a dual board and switch between operating system
45:32
One of the, another advantage which I've seen with the Linux subsystem is this particular session
45:38
that I installed Linux subsystem environment on a Windows 10 machine. But you can also install it on Windows Server as well
45:47
Windows Server 2019 and above. So that also give you the advantage
45:51
that you can concurrently deploy your Windows applications and your Linux application on the same machine
46:01
because server machine is always on. So you don't have to purchase a Linux server separately
46:07
to have only Linux operating system there and Windows server separately and have only Windows server there
46:15
You can have only Windows server you can deploy your linux application directly there i have worked with that and it worked really
46:24
well and it become more easy and resourceful yeah that that's i think a pretty cool thing i mean for
46:32
folks who are just using it for offline from your local system it's okay you can go ahead and and
46:38
uh do do virtual box and all that stuff but you gave i think a very good example that hey you have
46:45
a server running up which is costing you to compute the storage you don't want to buy two different
46:50
virtual machines or two different servers just to go ahead and take the leverage of two different
46:55
operating system uh start your sub system uh buy for windows and and start running any of your php
47:03
and it's totally free and it's and it's totally free it's a windows built-in feature like you
47:09
You don't have to, you know, for Windows Server, I think Docker is not free, free of course
47:15
It used the enterprise version there. So you don't need to spend any extra money to purchase a separate machine or to purchase, you know, specialized software or virtual boxes just to, you know, run it on a same machine
47:27
Because most of the time people just start trying out, you know, Windows, like Linux programming
47:36
They don most of the time totally intended to work into them Maybe they have a project into Linux or they go again to the virtual box but virtual box doesn really justify the resource you know utilization of Linux and it always gives you a lot of issues so
47:52
then they go to the dual boot and then they have issue that we have to switch between the
47:56
operating system it became difficult for them so I think this is a very good feature that
48:01
Microsoft introduced yeah and definitely as I popped Microsoft loves open source right this
48:07
the new microsoft that we are looking uh it wasn't the microsoft almost like five six years back they
48:13
already wanted to be a windows specific or microsoft specific but as we see dotnet core coming
48:19
up cross platform uh this lyrics things that comes inbuilt which i think many more people should know
48:26
about it let's stop those virtual boxes running up there i will take one last question that's
48:31
that has come from the comments asthma i think we're almost over time now that's on deepak he
48:36
says ma'am i cannot find hyper v in my system and i see uh many systems do not have it at the very
48:43
first place yeah so i'll take that out yeah so so basically to uh yes there's a reason if you don't
48:52
see hyper you need to explicitly go into your machine's bios to enable virtualization so you
48:57
need to make sure that whatever machine you have it has the ability to use virtualization and it
49:04
If it does have, then you need to go into the BIOS of your machine and ensure that virtualization is enabled from your BIOS
49:12
Once that is enabled, then you will be able to see the Hyper-V feature
49:17
Okay, perfect. Yeah, I see in Dell, you usually have to do it
49:22
I don't know, in one of the product laptops, you always have to go ahead and do it
49:27
And one of the laptops, it always comes activated. But never mind, I think it was a pretty cool demo, Asma
49:34
I think you did start about what is the subsystem, and then you go ahead in very detail talking about how you can run it, different users
49:45
I loved all those numbers that you have. Then you can go ahead and run an entire application
49:52
So pretty interesting. And I think definitely people who have watched us now
49:56
and people who will watch the archive session will definitely take the advantage of it as asma
50:03
other than thank you i really just cannot say anything more than that to you but
50:07
thank you asma for all that you do for the community uh we really need more people like you
50:13
78 articles 178 forums and so many blogs and all this time that you give the community that that's
50:20
really appreciable thank you so much uh everyone says thank you thank you debaugh thank you for
50:26
your time too any last words asma before we go ahead and close the session
50:46
thank you everyone thank you really really special i just said i really i just really want to thank
50:53
Okay, I just really want to thank C Sharp Corner for making such an amazing platform and giving people like me the opportunity to share my knowledge, you know, the way I wanted to share it
51:05
So that's basically my, you know, key here when I share my knowledge, I want to share it my way
51:11
So I really it's an amazing platform and it gives me a lot of opportunity, not just to, you know, share my thing, but also to learn and grow and, you know, and find the challenging question that people share and, you know, you know, train myself to and learn new things
51:30
So it's really amazing. All right. Asma, thank you so much. That's really nice
51:35
Thank you for you, Stephen, for creating such an amazing, you know, session today
51:39
well i don't do anything i just sit back so asma thank you so much once again and thank you so
51:46
much everyone who has joined us today in the live show we're gonna come back next week
51:50
thank you thank you thank you take care everyone Thank you
52:39
I think Steven just lost the connection but really thank you everyone for joining the
52:53
session and take care all of you around the globe and Allah Hafiz let's I'm just waiting
53:03
for Stephen to come join back I told you it was supposed to happen
53:12
yes it's so fun I'm saying Stephen just lost the connection I was just saying that
53:20
thanks everyone for joining us today and stay safe and take care of yourself globally
53:27
and that's it Allah Hafiz thank you everyone bye see you soon
53:34
take care bye see you