Heads up! To view this whole video, sign in with your Courses Plus account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Linux Servers on VirtualBox!
You have completed Linux Servers on VirtualBox!
Preview
Linux installs with slightly older software packages by default. Security holes may have been discovered since they were released. To install fixes for those holes, we need to update the software.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
There's one last thing we should take care
of with setting up our Ubuntu server.
0:00
When you log in you'll probably see a
notice that software updates are available
0:04
including some security updates.
0:08
For security's sake, let's install those.
0:12
We're going to use the apt-get package
manager again to install these updates.
0:15
And as before we're going to need to
preface that with the sudo command so
0:19
that we run with
administrative privileges.
0:23
So we type sudo apt-get space and
then the update subcommand.
0:25
It'll ask for our password.
0:33
And then it'll download the latest
information about the packages that
0:39
are available.
0:42
Now let's run the upgrade subcommand
to upgrade all the packages that
0:44
are currently available.
0:47
We type sudo apt-get, as before,
followed by upgrade instead of update.
0:49
It will ask if we want to
install updates to all these.
0:59
Yes is that the default so
we'll just hit Enter, and
1:01
it will download and
install them for us automatically.
1:05
Now following a major update like this,
a system restart may be required.
1:14
We can do that with
the command sudo shutdown.
1:18
We can pass the -r flag to it, saying that
we want to restart after the shutdown.
1:24
And then normally shutdowns
are delayed by a little bit,
1:32
but we can shut down now by adding
now to the end of the command.
1:35
Hit Enter to submit the command, and
1:39
your connection will be closed because
the virtual machine is shutting down.
1:41
So now we're back at the prompt
on our host machine.
1:47
We can just type ssh
1:50
username@hostcom, and
1:54
any time to reconnect via ssh.
1:59
In addition to issuing shutdown commands,
you can also suspend the virtual system
2:06
and restart it any time see the teachers
notes for info on how to do this and more.
2:10
So now you have a virtual Linux server
running on your computer, ready for
2:15
use anytime you wanna experiment
with deploying applications.
2:19
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up