How to Run Linux on Microsoft Azure Cloud

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
in this video we're going to take a look at how we can install the linux operating system onto microsoft's azure cloud services now wait wait wait a second before you quickly run into the comments and tell me about all the other hardware options i have or whether i should use unix or whether i should use a unix-like operating system such as minix or linux or whether i should use openbsd a very secure version of open source unix there are many options and that's why it's so important for us to learn unix and unix-like operating commands because these types of operating systems are what run embedded systems a lot of the networking equipment that we have runs on a unix-based operating system so learning and teaching these skills is going to be important for both ourselves and our students as well as the functionality that they provide and running linux in azure makes a lot of sense not just from a learning and teaching standpoint because i can allocate the resource play with it for a while and then de-allocate it without having to worry about any other types of configuration have a nice consistent environment for that but i can also put it into a production work load where for example let's say i write a program that's going to have unix as as its core and then i want to deliver that on a global scale so in this video we're going to talk about linux on azure if you're interested in seeing linux on aws google or ibm cloud let me know i'm happy to make videos on that as well or if you want to see me do open bsd on a raspberry pi can also do that as well even if you want to see how we can use our mac operating system terminal command in order to learn unix and linux we can do that as well but in this video like i said linux azure let's go to create any resource in azure we first go to azure.com we'll go to the portal and log in with our account so i'm going to go in and create a new resource and if i was to go into something like compute you'd actually see that there are several different linux distros that are available here i could also type in linux and there is in the marketplace a number of linux products available to me lots of different things that i can do i'm going to go back to compute and i'm just going to grab a generic red hat installation and so grab let's grab red hat i think aids here so we'll grab red oh grab red hat enterprise so go ahead and create this i have a lot of different choices here so what i'll do is i'll go in and create a linux virtual machine here 8.4 and it'll just ask me a few questions as i go through now it is important to understand that linux has a lot of different options available for me so if i'm installing my own version of linux on some old hardware in my you know that i have in my classroom or in my basement or in my office what i can do is i can make a lot of decisions around whether i want a graphical interface a lot of packages that i can install at the same time i install linux what i'm going to be doing here in azure is installing a pretty basic version of linux and you can see that in terms of you know i'll use my subscription here i'm going to create a new resource group and i'll just call it uh you know youtube linux demo i'll just do a lowercase youtube linux demo so i'll create a resource group where that's going to live then i'll go in and give it a name and i'll call it red hat linux and what i'll do is choose a location so i'll just put this into central canada notice that down here i can have different sizes so i've got this little one that's 542 a month it's important to note i'm not going to leave this running 24 hours a day seven days a week for an entire month uh even 542. that gets it can get expensive actually if you if you go in and grab a larger machine this is a very very low powered linux machine but again remember that i'm putting this in azure just so i can do demos or just so that i can use it for teaching or just so that i could have a student log into it and do simple linux command line and it is important also to realize that linux command line is really probably what i want to begin with my teaching i i don't want people getting distracted by the gui my preferred machine to run linux is actually a raspberry pi because they're very inexpensive and they have a really nice interface and you can do a lot with them i have lots of videos on the channel about raspberry pi's in education but for now i'm just doing it here in azure again i'm not going to create high availability this could of course be the foundation for something that i wanted to do in terms of a production system that's globally distributed so on and so forth instead of using ssh public key i would have to store that and then reference it i'll use a password so i'll just put in my name here and then i'll put in my super secret password which is super secret no it's not but everybody jokes about that they say is your super secret password super secret no it's not it's the same password but i use it just for education so if i go in here and notice it's going to open up port 22 to ip addresses in a production system i would not want to do that so in this case here what i can also do is i can bring my own license in here but i'm going to go in and just accept what i put in here so far and i'm going to go into my disks underneath my disks i can choose to have ssd disks i can even go down to a standard you know non-critical infrequent access i can go there it'll lower the price just a little bit i can choose to have encryption at rest so this is one of the comments i always get is if you put it in the cloud they're going to steal your data that's a little bit of a tinfoil hat paranoia the the reality is you can encrypt it and uh nobody wants your data and so if we go in here and we'll go into networking and when we take a look at networking we can go in i'm it's going to create a new network in here i can choose some some subnet defaults in here public ip so it's going to be rh linux ip i can go in and i can choose things such as nick security groups in there i'm not going to worry about this i'm just going to go to the selected ports in there and allow it in can do load balancing so again i'm not really doing a lot of the back end management of my linux distribution i'm just showing you how to install linux in azure as a basic system so underneath here you can also see that i'm going to go in i can choose how i'm going to monitor it one of the things that i do want to go down here is i'm going to have this automatic shutdown so you can see here that at 7 pm every night it's going to automatically turn off and that means it's going to automatically start charging me much less so if i do accidentally leave it on this is a 5.75 74 machine per month so if i leave it running for a month it's still not going to be that expensive and it is important from a if you're using your own credit card you really want to be careful at monitoring your costs but if you're using credits that you might get so i know that microsoft gives my students a hundred dollars credit during their their academic lifetime so that's often more than enough to run a machine for a couple hours turn it off even get rid of resources so i'll go into the advanced here and underneath the advanced i can put scripts in there we're not going to do anything there tags if i'm managing multiple machine that's a great way to keep track of things and then i'll just go into my review and create it's going to give me a summary of what i've chosen here and then i'm going to go ahead and i'm going to say okay yes i have a port open it passes the validation and then i'm going to say create i'm going to connect to this machine using my um my my command line so i'm just going to use ssh to connect to this machine so i'll be using command line on this particular machine it's going to be .0074 a cent per hour so you can also have more powerful vms in there as well and i'm just going to go back to my basics here and make sure if i look at this here that i have put in just the one yeah i just want to make sure i didn't mess up the name and i'm going to review and create it and it's now going to go in and create this machine for me if i pop up here you can see that's initializing the deployment i can get more information on this deployment as well quite too far so i can get more information on the deployment and see what's happening once the deployment is done i can go to the resource so we'll go to the resource itself it's going to give me some information that i'm going to need in order to connect so it's going to tell me where it's running it's going to give me information on the network and such what i really want to look at here is this public ip address because that's what i'm going to do is i'm going to go in and i'm going to use that in order to connect to the machine using my secure shell and you'll notice that right now there's there's still some things happening in the background this is more important if i go into my networking and i decide to open up or create firewall rules to allow let's say for example i want to create a firewall rule to allow remote desktop to come in if i install a graphic interface on here well there's a couple of steps to that i'd have to go in add an inbound and an outbound rule for remote desktop then i'd have to actually go and enable remote desktop on the machine i really like the idea here is that what i'm going to do is i'm just going to use a command line version of linux because that's going to actually make it so that i'm again not distracted by a lot of the games that might be on a distribution or some of the graphical interfaces a lot of times we lean into the graphical interface a little bit too much and when we first want to learn something like a unix operating system or linux operating system we don't want to lean on a graphical interface we want to go command line and learn a lot of command line tools first so i'm just going to copy this to the clipboard and then i'm going to bring up my command prompt and then i'm going to go and i'm going to go secure shell and i'm going to actually go to that specific machine and then it's going to say okay do you really want to go there it's going to yes i do want to go there you could use other ssh hosts as well notice because i didn't use ssh key where i didn't have to specify where i was storing a read-only copy of my ssh key that might be a little more advanced if you're just doing this for the first time so i'm using password so this is where i'll put in my super secret password if i can type and talk at the same time and then now i'm connected to my linux machine and i can do things like my present working directory so i can see what directory i'm currently in you can do things like if i want to go in and make a directory so i make a directory called one i'll make a directory called two there are ways to create multiple directories at the same time but and then when i do an ls to list what's here you can see i've got the two directories in here so there's a lot of different things i can do i can change directory to the one directory so i'm now underneath the one directory i can again look at what the present working directory is that i'm in so there's lots of different commands that you can put on there you can go in and create a file so if i want to go in here and say something like i'll just do a touch command touch demo.txt so you can go in there and then when i do a list you can see that i've got demo.txt in there so if i look at my present working directory again i'm in the one directory and i've created a file underneath there called demo.txt you can also go in and if i want to go let's say i want to do a manual page on the touch command you can see this is a full you know distribution of linux in here so i can get information on that so i can go and use the manual pages in there as well i can do things like well anything i want to do with linux now it may not seem super exciting right now because we're used to graphical interfaces but this is where i begin learning about linux and the nice thing about having it in azure is i am not affecting any changes on a local machine now if i have a dedicated local machine a lot of times like for example in a classroom environment you can just have a raspberry pi you just use the microsd cards and all you do is you you'll make a whole bunch of those that have a generic installation of raspberry pi on them every day you come in you put in these fresh little cards you boot up and everything's clean the students can do whatever they want they can destroy the system for all you care well not the hardware but they can destroy the operating system and then what you can do is just go in there and take a new sd card put it in but here you know if when you're done with it no matter what they do you can just go in and delete the resource when you're done it's fairly inexpensive it's fairly easy to set up as you just saw and i believe it's a useful way to create an environment where students can go in and start playing around and learning some of the some of the different things that are involved in in linux and all that the standard stuff is in there so you can go in and you know if you want to go old school here i can go to my vi terminal this brings back a lot of memories for me because i first began when i first began with computers it was on a univac system using fortran 77 wacom fortran 77 so i don't even want to tell you how long ago that was thanks for watching here's a video on working with the unix subsystem in windows and let me know about any other videos you might like to see around these skill sets
Info
Channel: Learning and Technology with Frank
Views: 291
Rating: undefined out of 5
Keywords: edtech, education, microsoft azure, azure cloud, linux on azure, cloud computing, azure tutorial, windows azure, how to install linux on azure, frank bergdoll, learning and technology with frank, red hat linux on azure, azure tutorial for beginners, microsoft azure tutorial, microsoft azure training, azure, learn linux, linux in the cloud, how to, teach linux, computer science skills, computer science, UNIX, Linux
Id: gb2dD8erES4
Channel Id: undefined
Length: 13min 47sec (827 seconds)
Published: Wed Nov 03 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.