please go to Eli the computer guy calm
in order to view schematics code and
more for the projects that you are
learning about welcome back so in
today's video I'm going to show you how
to install Ubuntu server into a
VirtualBox so I have VirtualBox
installed on my macbook pro the system
that I use for my demonstrations here
now please remember that with VirtualBox
you can install this on to Mac you can
install this on to windows or you can
install this on to Linux so if you're
using a different operating system more
or less the entire process should be
pretty much identical there may be a
couple of tweaks in there just keep that
in mind if you're going to be using
Windows so what we're going to do is
we're going to install ubuntu server
into an instance on VirtualBox and then
once that instance has been created with
ubuntu server then we can interact
without a bunch of server installation
as if it's a full life computer because
it really is is a full-fledged
virtual server now that is now sitting
on your desktop or laptop PC now if
you're going to be using VirtualBox it
is important to remember that you do
need enough system resources to be able
to run a virtualization at least pretty
decently I'm using a pretty old MacBook
Pro system as my demo system here is a
2013 but it does have 16 gigs of RAM and
it does have a PCI Express solid-state
drive so I would recommend if you're
going to be using VirtualBox in order to
do these projects and experiments that
you should have at least I would argue
you should have 16 gigs of RAM you can
probably get away with eight gigs around
really necessary but you should also
have a solid-state drive because do
remember when you boot up an instance of
a virtual machine then the hardware of
your system is going to be used both for
the host computer so whatever your main
computer is and for that virtual machine
so you can run into some problems where
if you start using a whole bunch of
resources that you don't normally use
the host machine it may slow down or you
may get some bugs you may run into some
quirks that type of thing so just kind
of keep this in mind I would really
argue if you're gonna be doing things
with the VirtualBox and such you really
should have 16 gigs of RAM but you know
8 gigs a
gigs should be enough and I'll talk
about that a little bit more when I
actually show you how to do this so
let's go over to the computer and I'll
show you how to install Ubuntu server
into an instance of a VirtualBox onto
your computer so the first thing that we
need to do is we need to go to bond to
calm so we simply go to Ubuntu dot-com
and then we are going to click on the
download link once we clicked on the
download link we see we have a number of
options here wavy bun - desktop is what
we are not doing today we are going to
be doing a bun - server but before we
download Ubuntu server one of the things
that we need to look for is what are the
system requirements for this operating
system that will be that we will be
installing within a virtual box because
if we don't give the operating system
that will be installing within
VirtualBox
enough system resources then it may
crash or there may be some major
problems so for this unfortunately it's
not really easy to find where the
requirements are oops so what we're
going to do is we're going to go down
here and we see these installation
guides so we're gonna go to a bunch of
server because we're going to be doing a
bunch a server you click on a bunch of
server and then over here we can look
for requirements and then here what it
says you will need to consider the
following before starting the
installation ensure you have at least 2
gigs of free storage space so not Ram
that's just free storage space access to
DVD or USB blah blah blah but that
doesn't really give us a lot of
information that doesn't tell us how
much RAM or any of the other things that
we need so if you go down here and you
click on a CD server guide pages you can
then go down and this actually gives you
the minimum requirements for the server
operating system so standard or minimal
Debian installer that's what we're going
to be doing there's something called a
live server we're not gonna be messing
with that today and so then we can see
what are the requirements for this so
for a server standard installation it is
1 Giga processor that's no big deal
512 Meg's of RAM so that's easy
and then 1.5 gig hard drive space for
the base system but curiously enough and
then it says all tasks installed 2.5
gigs so before I said you only needed 2
gigs of space and so this is why it's
good to really just try to drill
and figure out what the exact
requirements are so for this day today
what I'll be doing is I will give the
server a gig of ram just to make life
easier for me and I'll probably use the
default that VirtualBox offers for
creating a hard drive and just do ten
gigs of space just for four to make life
easier so those are there again we can
go down here we can look at server
minimal installation something to think
about
again if you're gonna be looking at
creating a server that that's very very
very test specific let's say you are
literally just created a DHCP server or
literally just creating a DNS server
well if you see you see the requirements
for a server minimal really are minimal
at this point a 300 megahertz processor
I'm sure you can find 300 megahertz
processors anymore if you're going to
have to find a very old computer to find
a 300 megabyte processor and then 384
Meg's of RAM same 1.5 or 2.5 gigs for
storage space so again this is one thing
to be thinking about when you're going
to be creating machines what do you plan
to use the machine for think about what
the resource requirements are and then
spec out whatever system or think about
what you will be creating the virtual
machine so with that let's go back over
we're gonna get out of that we're going
to go back have to just do a bun to calm
again so we go back to a bun - we go to
download okay again we're taking a look
at this so we're gonna be doing server
you go down you're gonna see two
versions of the server that you can
download you're gonna see right right
now it's 18.04 LTS and you'll see
19-point oh for the green LTS whenever
you see the LTS when LTS stands for is
long term support what this means is
basically this means this is Ubuntu z'
official or chronicles official version
of ubuntu server and they will be
supporting it for five years so
basically you know that this version
will be supported for a significant
amount of time 1904 what these are these
are kind of like the bleeding edge to
the cutting edge versions they throw a
couple of things in there that
some tests they do some experiments some
things work out well some things don't
work out so well and so especially when
you're learning I would argue just
always stay with the LTS generally
unless you unless you're doing
experiments or unless there's a very
specific product or service that the
newer version gives you that the LTS
doesn't give you how it argue generally
just use LTS past that then you just
click on the LTS link and then it should
automatically start downloading there
you go you see it starts downloading and
you can see it comes out to be 884 Meg's
I will cancel that there because I have
already downloaded it so from there what
we're going to do is we're going to go
to a virtual box so you will open up
VirtualBox and this is what you're
looking at from here we're going to need
to create a new a virtual machine so
that we can install the operating system
onto it or gonna do is we're going to go
up here and when I click on this weird
blue star II type button this allows us
to create a new virtual machine then
it's going to ask us what it what is the
name and so when we say the name
basically over in this left hand side
you're in a whole bunch of servers or
virtual machines and so this is that
name this is to be clear this is not the
host name for the server this is not the
server's name this is the friendly name
to you so you know what the hell the
server is so for us button to install
demo so I'll just call it a bone to
install demo so then when it's over on
the left hand side I don't know oh
that's that's the the virtual machine I
created for when I was installing Ubuntu
then you get the options for what type
so we will do Linux and Linux now is
64-bit so we'll leave it a 64-bit the
machine folder where this thing's gonna
get dumped we'll leave it there as
default and we'll continue and the
question is is how much ram now that's
why we need to look at those those
requirements right so we were looking at
what 500 and so Meg's of RAM in order
for the minimum requirements to make the
server work and so we're sitting here
and we see at thousand 24 as the default
and that's fine for us I'll just leave
it at a thousand 24 it is important to
remember who bun to desktop
go to install the desktop I'll show you
this bundu desktop requires two gigs of
ram so if you don't look at the system
requirements and you simply go through
this and leave the defaults sometimes
it'll work out for you sometimes it'll
be horrible so just do remember to look
at the system requirements and make sure
when you're plugging in these numbers
that they meet the system requirements
they were gonna hit continue
then do we want to create a new virtual
hard disk now yes we want to create a
new virtual hard disk now we're going to
create it what type what disk file type
we will just simply leave it as VDI then
we will continue do we want to be
dynamically allocated or fixed so what
this means is we will give it a max size
that it can grow to but it will only
grow so the the size of the file
basically size of that VDI file will
only grow as as is required as the
server takes up more and more space so
if you put fixed so basically I put
fixed size and I says it's ten gigs then
it will automatically be ten gigs in
size if I say dynamically allocated I
can say it can grow to ten gigs in size
but when it Ischl II is installed maybe
use this 2.5 then it uses three then it
uses fie then it uses six it'll it'll
grow so we'll leave the dynamically
allocated and that's what I would
suggest for for most things then it's
going to ask how much space do we want
and for I think ten gigs again the max
that was required for the minimum was
2.5 but especially since we have this
dynamic growth wheel and as well just
give it ten gigs make life easy for
ourselves and then we're going to click
the create and yeah so there we go we
got the bun to install demo now that's
that's not all we have to do we have to
actually connect the ISO file to this
virtual machine so that we can boot off
of it and install Ubuntu so in order to
do that what we're going to do is we
make sure that this is highlighted all
right so you simply single click in
order to highlight which virtual machine
you want to be dealing with we want to
deal with a bun to install demo so then
we're going to go up and click on this
settings one of the first things you
should just make sure is you go over to
network
and again if you're gonna be doing
networking with your virtual machine
make sure that the attacked 2 is set to
what you want it to I would say right
now just leave it to the default of that
if you don't know what these different
settings are just make sure it's just at
net and leave it there and then we are
going to go over to storage so storage
is where we actually connect the ISO
file
it doesn't really weird this is just
piss-poor user user experience it really
is so basically in order to connect the
ISO that we will boot off of in order to
be able to install the operating system
you have to come to storage then you
click on empty then you go all the way
over does weird little circular thing
over here and then you click on this and
then you do choose virtual optical
optical disk file so I can click on that
and so I've already downloaded the ISO
file so you have to make sure again
you're gonna be installing an operating
system it needs to be an ISO file so if
you downloaded a file that was zipped or
tall tarball something like that make
sure you you uncompress it decompress it
to get your ISO file you need the ISO
file and so what we need here is the
Ubuntu 18 point oh four point three a
live server and AMD we simply click on
that you do open and now that's
connected so see here we have the Ubuntu
live server so on and so forth
we see the 848 Meg's in size and there
we go so that's the main thing that we
need to do to be able to connect that
ISO file and then we're going to simply
connect do ok and then from there all
we're going to do is we just double
click so we double click on our virtual
machine and it starts booting up
so there we go we can get rid of these
little those things up there we see it's
starting to copy files that type of
thing into the the virtual hard drive
that we've created
so here as a standard you know choose
your language so you can you can use the
arrow keys to go up and down English is
my language so from here I just simply
hit enter then layout very end of the
keyboard nothing to modify there so I do
done then it asks about your network
connections I would argue if you see
stuff here and it all works you should
just leave it yes leave it unless you
know what you're doing I guess so hit
done then a proxy address so if you have
some kind of proxy address for some
reason you can plug that in there we
don't so done a mirror address for uh
for who bought to for downloading things
installing updates and all that kind of
stuff we don't we don't need to modify
that so we just hit enter then it asks
so since we're using a virtual machine
you know we're just gonna use the entire
virtual disk it is something to be
thinking about when you're installing
Ubuntu onto a physical computer you can
think about do you want to use the
entire hard disk do you want to use an
entire hard disk and set up some called
LVM will deal with LVM later do you want
to configure things manually for right
now all you're gonna do is you're gonna
hit enter and that says choose a hard
disk to install we've only got one so we
just that header gives us all this
information yeah it looks good and done
and then from here it says are you sure
you want to continue so so it defaults
to no you hit the arrow key to continue
make sure it's read and then hit enter
mmm and now it's going to ask for your
name your host name so this is where you
plug in the server name or the host name
the user name so on and so forth so I'm
just gonna say my name is Bob we're
going to say your servers name is we're
just gonna call a server pick a username
so I'm using tab in order to move
between these fields I'm using tab pick
a username I will do Bob tab choose a
password one two three four five six tab
one two three four five six tab and now
we're done so my name is Bob your
servers name is server the username
it's just Bob that's just it password is
1 2 3 4 5 6
that's all confirmed then I will click
done this is doing do you want to
install OpenSSH server so this is how
you you connect to a server basically
using SSH that's a big way that you
connect to 2 Linux servers for right now
we're 4 by default we're just gonna not
install that we won't deal with that
right now so if I wanted to install it I
simply hit the spacebar to do the X I
will uh neck sit and then I have tab to
do done then these are these are snaps
so these are additional things you can
add to your server environment
kubernetes docker containers live patch
clients PowerShell all kinds of
interesting things basically this is the
type of thing where if you know what any
of these words are if you know what any
of these things mean I all means hit the
spacebar to install it if you don't know
what any's words mean hit to have to go
done and just leave it as it is and so
now it's going through and it's actually
doing the install process and installing
ubuntu server on to our virtual machine
so I went through all of that don't
really care about the fold log again you
can hit the arrow key to go up to view
full log if you really want to we're
just gonna leave it at reboot and then
we will hit return enter and so as we
can see it's going through and it is now
actually starting up the server
operating system please remove the
insulation medium and press Enter so I
did that
so it's going through starting
everything up
okay so once this start unless it
finishes does all the okay's then all
you have to do is you just press return
so when it stops doing anything just
press return and it'll ask you for the
server login all gonna do is then this
type and Bob then it's going to ask for
a password one two three four five six
and yeah we're logged in there we go
that's your blinking cursor as you're
like this is what noobs do they're
always like yeah I can't wait to install
Linux and then they install Linux and
then I'm like oh look it's a blinking
cursor so you change directory go back
to root just to show you we've got the
full file a folder structure these are
the the files and folders sitting in a
room we can use ping the sense of the
network should be working so I can do
something like ping cnn.com or you know
and we can see we're pinging cnn.com so
we can see that this is a fully
functional server right now and now we
can go and start playing and doing some
cool stuff now one of the things to take
a look at is what happened to the
installation media so a problem with
news a lot of times is you have the
installation CD or DVD you put that into
the cd-rom onto your desktop or laptop
computer you install the operating
system then you forget to pull out the
CD or DVD and then you install the
operating system again and then again
and again and again and again and so an
important thing to be thinking about is
making sure what happens to the
installation media once the installation
is done so you don't simply boot into
that installation process every time you
reboot you're at your virtual machine
what's cool about VirtualBox for that is
if you go over you take a look at
storage what you can see is that this is
it is automatically clear to the ISO
file that we had in there as the the
virtual the installation media so
basically you go you you connect the ISO
in order to install the operating system
and then once the installation process
is over it will simply clear that ISO
file out so you don't have to worry
anymore so you don't have to go back and
manually disconnect that ISO file so
that's one thing to think about so that
that's really what there is to to
installing a Linux server into
VirtualBox again this is a full-fledged
linux server and from here we can go
when we can start teaching you all the
tasks that are required in order to man
manage an ubuntu server so that's all
there is to installing ubuntu server and
a VirtualBox right so basically you
download the ISO file you make sure you
know what the system requirements for
the operating system are you create a
virtual machine that has more than those
requirements then you connect the ISO
file in the storage and away you go
there's really just not a whole hell of
a lot to it but what I can tell you
again why a lot of why a lot of people
give up people don't fail but why a lot
of people give up is they go through all
this process they feel really cool if
you're really excited and then literally
they're sitting there looking at a
blinking cursor and that's what you got
right that's that's the command line
that's bash is a blinking cursor so if
you know the commands to type in you can
do some really cool fancy things if
you're not really sure what to do
yeah the blinking cursor can't can't
help you I think that's one of the
reasons why people get very oh very
worried they get very concerned about
the command line world is that it you
can't really into it how to do things
unless you know other command line
operating systems like you know Unix
maybe you can you can do Lennox but when
you're dealing with a GUI world when
you're dealing with the graphical user
environment world you can right-click
you can left-click you can double-click
things right you can sit there you can
um you can figure out what to do it may
take you a little while but you should
you can probably figure out how to get
something accomplished in the command
line world you don't got right class you
got commands you got arguments you know
file names you've got directories if you
know what to type in and how to type it
in you can do some cool things if you
don't know what to type in
you just got a blinking cursor so just
realize that when you get into
command-line world the command line is a
lot about just just pure memorization of
pure memorization because that's
something a lot of people nowadays in
this modern computer world write they
they really they go off their hunches
they they think oh I'll just figure out
how to do XYZ right they're used to
using Smart TVs they're used to using
tablets are used to using smartphones
are used to using Windows or Mac and
they go how how hard can Linux be I
figured out how to use a Mac in a day
well using the command line command
lines not a Mac so we're gonna go into
it we're gonna do many classes on
basically how to how to be able to
configure and do things with the command
line just realize when you're sitting
there looking at that that blinking
little cursor it's not just it's not
just you everybody just has that one
moment after they install their first
there for their first Linux server where
they go oh crap what the hell did I get
myself into so with that as always I
enjoyed doing this video and I look
forward to see what the next one