HowTo: set a GUI in a Ubuntu AWS EC2 instance

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi everyone so to do I'm going to talk a little bit about Amazon Web Services a cloud service that you can use for free at least try for free and it allows you to create machines that will work for you instead of having a local machine doing that into this session I'm going to talk a little bit hard to create open to the instance with a GUI honored or to SSH on to that machine and how to use VNC to control applications graphical applications within it so to start off if you don't have an Amazon account you should have one you should get one it's free to use for a little while and I'm going to sign in sorry about the internet this is Australia you can't use Netflix and the web at the same time so bear with me it's might be a little bit slow so just to give you a little bit of basis why do I do this the reason is very simple sometimes you want to run an application say are any kind of application that school based did there's not a server for that and it's not that easy to get it onto a server anyone we use it in the cloud so okay I've got a user so my username and password so the best thing is to set a machine set a virtual machine and just have it righted so Amazon Web Services allow you to use heaps of systems either be the virtual service in the cloud that's what are we going to use be storage database analytics and all of the machine learning modules Internet of Things management developments heaps of services that Amazon provides you to all the services have the same basics so they are provided to you they're scalable in do build to your credit card given the time that you use them so most of them are very cheap some of them could be really expensive and because it's based on the time that you using it if you keep using it it will gonna add up a little bit so we're going to start off by using an ec2 instance and I'm going to tell you how to create one so basically what we're going to do is create a new instance once we get it up and running so here's the dashboard here's what it tells you so this is what I have this is the kind of information tool I have I have actually have a volume to key base all right in display mode with jr. so I'm going to launch and Liston's this is very simple process is super easy to create a virtual machine I'll just click II and when it decides not to beach ball anymore okay so choose your Amazon machine image Amy so there are different types of machine images that you can choose some of them are already pre-built by community so let's say you want an hour studio so there's already in our studio on it some of them you can buy their pre-loaded with software so you can buy them but we're going to start off today by talking about how to do the simplest version of normal using Ubuntu server 64-bit alright we've chosen the type of machine now what kind of family can we used we can use a general put this machine we can have a computer optimized machine GPU is this is encase you want to render something memory and storage optimized there are very different versions of it are we going for the T tooth micro which is free so it's a one CPU 1 gigabyte machine you can go forth crazy as this one for instance if you feel like - or well there's even other machines that you can choose and you can configure whatever you like so we're going to t1 micro we can already launched it will be going to configure every single step so that's easier first step is the number of instance that you want to do well discuss just one but it allows it to do an auto scaling group let's say if you're running a web server something like that you want a little bit more scalability you can say I want ten instances and scale it up up until 10 that of course will cost you a bit more so we're going to live everything like it is right now we're going to add some storage now we can add new volumes and discuss we don't need to but the size of 8 gigs filled 11 sufficient we go for 20 that should be enough in a general purpose we don't need much more and now we're going to tag the instance so we're going to give it a name in this guy's we're going to call it a bone to GUI all right so next we're going to configure our security group so security groups are port forwarding or NAT forwarding in Reverse basically telling the Machine it's going to be listening on their sports every other ports going to be close to the world so we're going to call this open to GUI it's better just give it a name and we're going to put SSH port 22 open we can add new rules like five nine or one for VNC and a have it access to everyone but I'm not going to do this for two reasons first reason we really don't need to we can tunnel the SSH we can tunnel through SSH and open this port as well the other reason is that sometimes because of your organization or your university configuration you can't really access boots that are not really standard it doesn't allow you to access this port so we don't need it we're not going to even use it now we review it see how it is all the things that we've decided to do very good launch it now a key P what is a key pair keep it is a little following and a store in your computer that will give you or allow you to connect to the machine so through SSH so we got to create a new key pair we're going to give it a new boom to GUI name we're going to download it and it's going to be stored in our computer or fuzzy to keep it in a safe place so it's even theirs it's taken quite a long time love Australians into it okay all done let's learn sir instance and again this is in our downloads folder right so while it loads we can go back to the dashboard and see how it's running all right we know that it has an IP and it's a TC micro with a nice little IP when it's done it's going to show connect button are we going to use that button to connect to the machine so to connect I'm going to use bash on get so this is what I like to use best because it's basically a bash interface it's basically an X so it's much easier to use but you can use pretty if you want to all right should be your right still doesn't allow me to connect still pending all right it's going to take a little bit should be running that one you're taking a little bit I'll be back one so alright all done now let's click connect it will give me an example of how I can connect to it and this is really good because it's already gives us the code that we need so we come here to bash past it not accessible no we need to change out directory and now we connect all right yes I do want to connect and it will connect to the machine again sorry for the slow internet but blame Australia me SBS now what I'm going to do okay here I am connected to the machine what I'm going to do is run a set of commands the first one is this it is a simple sudo apt-get update so I get all the back all the new packages everything that's near as you can see even so it's fast and the processing it's very /i internet service slow so the second thing that I'm going to do and I'm going to come here to notepad is I'm going to install a bin to desktop and a certain number of tools so I'm going to install app get install okay already it's already doing it so what I'm doing is installing 2.1 gigabytes worth of files which is all the desk components this is terrible is ah all right although that's hep components a VNC server oh it's been aborted based everything's all right here okay so get install Ubuntu desktop fancy full server non panel I'm setting Stemmons Mehta City Nautilus a non terminal all right dependency three yes I do okay now we're going to let it start rolling and it's going to take me about five minutes to get it done so I'll be right back all right it took me about six seven minutes to run and now I got the entire desktop system I'm going to start my VNC server VNC server and the first thing it's going to ask me is for a password this password I'm going to use to log into the VNC server so I'm just setting up a password verifying it all right now I've got my VNC server working second thing that I'm going to do is kill the VNC server I'll do this by Gil mantra number one all right why am I going to kill it because I need to go to the X startup file and edit it so I'm going to go to C and I'm going to sue the vehm X startup alright second thing that I'm going to do is I'm going to comment out everything comment out this this this also this and this and because I've cheated a little bit I've got what I need to run already based it here I'm going to provide you with a link with all the with where I found out everything about this so this Stack Overflow thread where you can understand how to install the system and to this modifications so based all done ctrl C to save it to points lovely get to quit it all right now we're going to start our we could start our new VNC server but then again because we're only listening to port 22 we couldn't use it so the first thing we're going to do is exit now second thing we're going to do is we're going to reconnect to the server but we're going to use - l59 or one two points local host two points five nine or one this is basically telling me yeah connect to that host but tunnel port five nine or one as well so everything that host is starting here on for five or one put it to my local host port five five nine or one alright we're going to connect again beautiful already connected and the first thing I'm going to do is again kill my server yeah it's a VNC server it's not a vns server okay nothing there server little bit weird geometry of 1920 the Eddie start it up and now put it word so now my self is working now the next thing I'm going to do is run a VSC a VNC viewer on localhost v 901 it asks me for a password which is great because I gave him my password already so this is telling me that the system is working there's my desktop and here it is an entire desktop where I've been to running which is not what I wanted gonna disconnect from this one gonna Skype because I'm going to reconnect it on another machine I'm gonna make that this one and I'm going to connect again see if I'm tunneling correctly so you have this Louis alright I'm tolerate to just see if this is the Machine you don't want yes it is so it has one processor with one gigabyte of RAM so graphical interface very simple to use and as you seen 8 gigabytes is not enough 3 gigabytes already got nearly 4 and this machine is already running and now I'm going to show you what it is why we used this full now this is a very simple machine we want to be 1 gigabyte of RAM let's just say got an extra large machine with 40 cores and 160 gigabytes and you can run GUI applications on it so that's why I use the system I'm going to exit this yes I'm sure disconnect I'm going to exit my virtual machine and I'm also going to do something very important I'm going to disconnect and stop the instance that I'm running why because it's charging me even if it's not it's still charging me to time so whenever you're done with an instance just stop it that's the best policy that you can get now I'm going to switch back to my other machine and I'm going to show you how do you have a big machine so again back lash lo9 o1 points host:5 901 let's reconnect so this is another machine that I'm using and let's go and connect through here and see I'm just going to wait a little bit so prepares my desktop and again I'm connected to another machine says is encrypted but this one it's a little bit bigger so the reason why I use it why is this kind of systems as because now I've got 40 cores and I can run applications like 9 which is a graphical user interface to do data mining without any issue and taken advantage of 40 cores 160 gigabytes of RAM so as you can see it loads pretty fast it's not the fastest thing to load but and because I'm a little bit laggy it allows me to load all my workflows and this might take a little bit because it's a huge workflow are it allows me to run very heavy machines in this case I'm running around 105 million rows of data and I'm wrangling all that data so something that would be impossible to do on a desktop machine I can do it and as it's also machine so let's go see how it's running just one go running because it's single thread and the other thing that's very important whenever you use software tools GUI software tools or even our studio server tools always make sure that you're using it on parallel processing otherwise they're not going to take any advantage of having a virtual machine rather than the normal system so as you can see it's already loaded it's a big big messy work floats 105 million rows that are being read and then to be processed and it's a very slow system but it actually works very well in a fast machine is this one so that's the reason why I'm running a GUI on as Amazon services and the reason behind all that is though there's a free version of 9 for the desktop there is not a free version for the server and sometimes you want to use the power of a tool that is not very easily accessible as a server you want to use it in a GUI and again as you can see I can do all of that I can and this machine I've got our studio as well which is really interesting so I can sign in with our studio and the good thing about having our study in this machine is that if I do the same thing that I did with the port but instead of not five nine on one I'll use 87 87 then I can log into this machine in our studio so this is the video of how to build an AWS machine connectedly the blue guys build another WS machine get up into on it stop it started configure everything and run a GUI on it hope you enjoyed it any comments and suggestions just comment below thank you
Info
Channel: Pedro Fernández
Views: 38,016
Rating: undefined out of 5
Keywords: AWS, Knime, Cloud, Ubuntu, tutorial, cloud computing, amazon web services
Id: 9BAoJ7JZHr0
Channel Id: undefined
Length: 20min 41sec (1241 seconds)
Published: Sun May 29 2016
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.