Now before moving on and talking about the other security domains such as the disposable and the vault
and this lecture I want to talk about another task that is very essential and that you'll probably need
to do often.
This task is basically installing software.
So if you look at the machines that we have right now for example the personal or even the work machine
they don't really have a lot of software.
We have Firefox.
We have the files manager at terminal and that's pretty much it.
We don't have a ward editor.
We don't have pigeon for example for instant messaging and so on.
So you can do the simple tasks such as opening images playing music and videos and an access in the
Internet but anything outside of that you'll probably need to install software to do that.
Now as we do this you'll also get a better understanding on the structure of cubes and you'll have a
better understanding of the template virtual machines the ones that we have right here.
Now as I said before the template virtual machines are machines that you're not supposed to use to run
your day to day tasks.
These are machines which the other machines such as the domains that we have here are based of keep
going through this lecture and you will understand exactly what I mean.
So right now I have my work machine running great here as you can see I have my file manager and as
we've seen before.
If we store stuff within our home directory.
So we are in home right now as we can see and anything we store in here will be persistent and will
be maintained after we restart or shut down the domain or the virtual machine.
But if you store anything outside of this which is where applications libraries and packages get installed
they get installed outside of your home directory.
Anything that gets installed outside of the home is not persistent.
So every time you restart or shut down the computer anything outside of the home directory goes back
to its original state.
This is done for security reasons.
For example if someone manages to hack into this domain and they install some malware that'll start
every time you start your computer.
This will automatically be removed because it will be installed outside of this home directory.
So anything outside of the home goes back to its original state.
Every time you restart or shut down the computer this original state is stored in your template virtual
machine.
So let me show you if we go here to the cubes and we click on the cube manager you'll get a program
similar to a task manager and in here you'll see all of the cubes all of the virtual machines that you
have.
And it'll show you important information about each one of these machines.
Now again you'll notice the domains are the ones that have colors in here.
And these are the ones that we use for our day to day tasks.
And then we have the template and the system virtual machines and Black.
Now you'll notice for each of these domains for example for the personal and the template column it's
telling us what template it's running or what operating system it's running.
So you can see the personal is running Fedora 30.
You can see the untrusted the system at the Warwick all of them run the template that is called fedora
30.
Now fedora is a Linux operating system.
And basically each one of these virtual machines or security domains are based on the fedora 30 template.
So when we start to work virtual machine it uses the fedora 30 template so we can see the fedora 30
in here.
It creates a virtual machine that uses this virtual machine as a template.
And the only thing that it replaces is the home directory.
So the only thing that it replaces is what we see in here which are the user files that they use in
their day to day tasks.
Now because every time we start the computer it pulls everything outside of the home from the template
virtual machine.
This means that if we install software on the template virtual machine it will be installed on all of
the virtual machines that use this template as a template.
So if I installed pidgin for example in my fedora 30 template work personal untrusted all of these virtual
machines used the fedora 30 as a template and therefore all of these virtual machines will automatically
have this software installed on them.
Now this can also be dangerous because keep in mind if you install malware on your template virtual
machine all of the other virtual machines based on this template will inherit the malware.
So you want to be very careful on what you install on your template virtual machine.
Now as an example I actually want to install libre office which is a program that allow us to open the
different office files in Linux because I want to open this Word file in future lectures.
So I want to be able to use libre office and my work domain.
And based on this we know work is based on the fedora template.
Therefore we're going to install libre office on fedora 30 and it'll automatically be available for
all of the other virtual machines that use the fedora 30 as their template.
Now before doing so before going and installing anything on this we need to enable networking on this
virtual machine because by default to improve its security the template virtual machines are not configured
to be connected to the internet so you can right click and go to Settings you can click on the icon
in here or you can go from the top left go to the Template virtual machine and click on the cube settings
not its settings.
So we're going to enter the cube setting the virtual machine setting and what we want to do is modify
the networking as you can see by default.
It's set to none and we want to set this to assist net so that it gets connected to the Internet.
We're going to click on.
OK.
And now we're ready to go and install software on this virtual machine.
So again we'll go into the top left.
We're going to go to the virtual machine and we're going to click on the software in here to launch
the software manager.
Now first of all this will start the fedora 30 template virtual machine and then only when it starts
at the launch the software manager.
So similar to starting any application within any virtual machine.
So now you can look for the program that you want to install from the list here or you can click on
the search and search for it.
So I'm just going to search for office and the program that I want to install is libre office writer.
So we're going to click on it and click on install.
So it's very intuitive and very similar to install the software on most operating systems.
Now you want to give this some time depending on your machine sometimes again it seems like it's stuck
at one stage but it's not.
It's loading.
So just be patient with it.
And once it's done you'll have the software installed perfect.
Now the installation is complete.
So right now we have installed this software the Labor Office writer on the fedora 30 virtual machine.
So I'm going to close myself to our manager and I don't want to use this virtual machine anymore because
like I said the we don't use the templates virtual machines for our daily use therefore we're just going
to go to my cubes and I'm gonna shut it down.
Now you'll notice we have a new icon in here beside all of the virtual machines that use the fedora
as its template.
And if we hover over this icon you'll see that is telling us that once our template is stopped once
we shut down the fedora machine the changes that we made to the template will be reflected on these
machines because these machines use the fedora as their template.
Now I'm also going to go ahead and turn off my work computer so the software that I installed should
be available in my work and in all of the other machines that use fedora as a template.
So let's go ahead and start my work and I'm just going to go to my file manager and I'm gonna go to
my downloads because I've already downloaded Microsoft Word document in here just for testing.
So let's right click this and open with libre office writer as you can see we have a new option in here.
This wasn't available.
This is only available because we installed Office writer and the only reason why it's available in
work because work uses the fedora 30 as its template.
And since we installed this in the template it's going to be available to all virtual machines that
are based on this template such as the work virtual machine or the work domain.
So if I click on this ad to load the program and I'll be able to read this document now one last thing
that I want to show you before we wrap this up I'm going to close this and if I go in here and go to
my work you can see that I have some of the programs that are installed in the work domain in the work
virtual machine such as the files Firefox and my terminal.
While I still don't see the Labor Office writer which is why I just installed so it'll be really nice
if I have it here and I'll be able to access it directly from here so that it'll automatically start
the work domain.
And then from there launch the office writer similar to what happens if I just click on firefox.
Now doing this is very simple.
Again we're gonna go back to our cubes manager.
We're going to click the machine that we want to modify which is my work in this example.
We're going to click on it settings and here and we're gonna go to applications and this will list all
of the applications available on this virtual machine.
We're going to click on refresh applications first to get a list of all of the applications available.
This will have to start with the template in the background.
As you can see and it'll automatically shut it down wants to refresh is done.
And then in here on the left side we have all of the programs installed on the work virtual machine.
So we're going to look for the programs that we want to add to the menu that we have in here.
So I'm going to scroll down and you can see I have my libre office right there in here.
So I'm just going to click on the right arrow and we have libre office added now in here.
So I'm going to click on.
Okay.
And now if I go to my menu and go to work you'll see that I have a new entry for the program that I
picked.
And I can just simply click this from here to start libre office whenever I want.
So if the virtual machine is running this will instantly start the program.
If the virtual machine is off it'll first start an instance of my work virtual machine and then it will
automatically launch the program that I selected which is labor office.
In this case.
So that's it for this lecture.
Now you know how to install software in cubes and use it in the different domains so you can use this
to install any program you want.
Not only libre office whether you want to install pidgin or any other software that we used before or
any other software that you're used to.
You can follow the exact same steps to install it on cubes and then make it available to any domain
or to any virtual machine within your cubes.
Installation.