WEBVTT

00:00.880 --> 00:07.900
Now before moving on and talking about the other security domains, such as the disposable and the vault.

00:07.900 --> 00:13.750
In this lecture, I want to talk about another task that is very essential and that you'll probably

00:13.750 --> 00:15.100
need to do often.

00:15.880 --> 00:19.390
This task is basically installing software.

00:19.480 --> 00:25.000
So if you look at the machines that we have right now, for example, the personal or even the work

00:25.000 --> 00:27.850
machine, they don't really have a lot of software.

00:27.850 --> 00:33.130
We have Firefox, we have the files manager at terminal and that's pretty much it.

00:33.130 --> 00:39.160
We don't have a word editor, we don't have pigeon, for example, for instant messaging and so on.

00:39.310 --> 00:46.060
So you can do the simple tasks such as opening images, playing music and videos and accessing the internet.

00:46.060 --> 00:51.520
But anything outside of that, you'll probably need to install software to do that.

00:51.970 --> 00:58.510
Now, as we do this, you'll also get a better understanding on the structure of cubes, and you'll

00:58.510 --> 01:04.120
have a better understanding of the template virtual machines, the ones that we have right here.

01:04.780 --> 01:11.620
Now, as I said before, the template virtual machines are machines that you're not supposed to use

01:11.620 --> 01:13.780
to run your day to day tasks.

01:14.290 --> 01:21.010
These are machines which the other machines, such as the domains that we have here, are based of.

01:21.670 --> 01:25.720
Keep going through this lecture and you will understand exactly what I mean.

01:26.400 --> 01:29.670
So right now I have my work machine running right here.

01:29.670 --> 01:36.960
As you can see, I have my file manager and as we seen before, if we store stuff within our home directory,

01:36.960 --> 01:39.330
so we are in home right now as you can see.

01:39.330 --> 01:46.590
And anything we store in here will be persistent and will be maintained after we restart or shut down

01:46.590 --> 01:48.540
the domain or the virtual machine.

01:49.170 --> 01:56.070
But if you store anything outside of this, which is what applications, libraries and packages get

01:56.070 --> 01:59.760
installed, they get installed outside of your home directory.

01:59.850 --> 02:04.650
Anything that gets installed outside of the home is not persistent.

02:04.650 --> 02:11.190
So every time you restart or shut down the computer, anything outside of the home directory goes back

02:11.190 --> 02:13.320
to its original state.

02:13.590 --> 02:15.750
This is done for security reasons.

02:15.750 --> 02:21.720
For example, if someone manages to hack into this domain and they install some malware that will start

02:21.720 --> 02:27.300
every time you start your computer, this will automatically be removed because it will be installed

02:27.300 --> 02:29.400
outside of this home directory.

02:29.730 --> 02:34.200
So anything outside of the home goes back to its original state.

02:34.200 --> 02:41.880
Every time you restart or shut down the computer, this original state is stored in your template virtual

02:41.880 --> 02:42.660
machine.

02:43.560 --> 02:51.870
So let me show you, if we go here to the cubes and we click on the cube manager, you'll get a program

02:51.870 --> 02:53.610
similar to a task manager.

02:53.610 --> 02:59.580
And in here you'll see all of the cubes, all of the virtual machines that you have, and it will show

02:59.580 --> 03:04.140
you important information about each one of these machines.

03:04.440 --> 03:09.630
Now, again, you'll notice the domains are the ones that have colors in here, and these are the ones

03:09.630 --> 03:11.940
that we use for our day to day tasks.

03:11.940 --> 03:16.020
And then we have the template and the system virtual machines in black.

03:16.770 --> 03:22.530
Now you'll notice for each of these domains, for example, for the personal and the template column,

03:22.530 --> 03:27.540
it's telling us what template it's running or what operating system it's running.

03:27.720 --> 03:34.740
So you can see the personal is running fedora 30, you can see the untrusted, the sis net, the work,

03:34.740 --> 03:38.610
all of them run the template that is called Fedora 30.

03:38.910 --> 03:46.050
Now Fedora is a Linux operating system and basically each one of these virtual machines or security

03:46.050 --> 03:50.160
domains are based on the Fedora 30 template.

03:50.550 --> 03:57.540
So when we start the work virtual machine, it uses the Fedora 30 template so we can see the fedora

03:57.540 --> 03:58.590
30 in here.

03:58.740 --> 04:05.400
It creates a virtual machine that uses this virtual machine as a template, and the only thing that

04:05.400 --> 04:07.650
it replaces is the home directory.

04:07.650 --> 04:13.470
So the only thing that it replaces is what we see in here, which are the user files that they use in

04:13.470 --> 04:20.010
their day to day tasks now because every time we start the computer, it pulls everything outside of

04:20.010 --> 04:22.620
the home from the template virtual machine.

04:22.620 --> 04:29.160
This means that if we install software on the template virtual machine, it will be installed on all

04:29.160 --> 04:33.180
of the virtual machines that use this template as a template.

04:33.180 --> 04:41.100
So if I installed Pidgeon, for example, in my Fedora 30 template work, personal untrusted, all of

04:41.100 --> 04:47.580
these virtual machines use the fedora 30 as a template and therefore all of these virtual machines will

04:47.580 --> 04:50.850
automatically have the software installed on them.

04:52.290 --> 04:58.110
Now this can also be dangerous because keep in mind, if you install malware on your template virtual

04:58.110 --> 05:03.980
machine, all of the other virtual machines based on this template will inherit the malware.

05:03.990 --> 05:09.840
So you want to be very careful on what you install on your template virtual machine.

05:10.440 --> 05:16.650
Now as an example, I actually want to install Libre Office, which is a program that allows us to open

05:16.650 --> 05:23.340
the different office files in Linux because I want to open this word file in future lectures.

05:23.730 --> 05:28.180
So I want to be able to use Libre office and my work domain.

05:28.200 --> 05:32.780
And based on this, we know work is based on the Fedora template.

05:32.790 --> 05:38.790
Therefore, we're going to install Libre office on Fedora 30 and it will automatically be available

05:38.790 --> 05:44.250
for all of the other virtual machines that use the Fedora 30 as their template.

05:45.090 --> 05:51.120
Now, before doing so, before going and installing anything on this, we need to enable networking

05:51.120 --> 05:58.320
on this virtual machine because by default to improve its security, the template virtual machines are

05:58.320 --> 06:01.620
not configured to be connected to the Internet.

06:02.130 --> 06:05.070
So you can right click and go to settings.

06:05.070 --> 06:12.510
You can click on the icon in here or you can go from the top left, go to the template virtual machine

06:12.510 --> 06:16.170
and click on the cube settings, not its settings.

06:16.710 --> 06:20.130
So we're going to enter the cube setting, the virtual machine setting.

06:20.130 --> 06:23.340
And what we want to do is modify the networking.

06:23.370 --> 06:30.390
As you can see, by default it's set to non and we want to set this to this net so that it gets connected

06:30.390 --> 06:31.560
to the Internet.

06:32.190 --> 06:34.200
We're going to click on okay.

06:34.530 --> 06:39.960
And now we're ready to go and install software on this virtual machine.

06:40.350 --> 06:42.420
So again, we're going to the top left.

06:42.420 --> 06:49.170
We're going to go to the virtual machine and we're going to click on the software in here to launch

06:49.170 --> 06:50.580
the software manager.

06:51.180 --> 06:56.820
Now, first of all, this will start the Fedora 30 template virtual machine, and then only when it

06:56.820 --> 06:59.250
starts, it will launch the software manager.

06:59.250 --> 07:03.570
So similar to starting any application within any virtual machine.

07:04.290 --> 07:09.390
So now you can look for the program that you want to install from the list here or you can click on

07:09.390 --> 07:11.130
the search and search for it.

07:11.130 --> 07:13.380
So I'm just going to search for office.

07:14.510 --> 07:17.970
And the program that I want to install is Lever Office Writer.

07:17.990 --> 07:22.310
So we're going to click on it and click on Install.

07:23.480 --> 07:29.090
So it's very intuitive and very similar to install and software on most operating systems.

07:29.840 --> 07:32.720
Now you want to give this some time depending on your machine.

07:32.720 --> 07:36.710
Sometimes, again, it seems like it's stuck at one stage, but it's not.

07:36.710 --> 07:37.490
It's loading.

07:37.520 --> 07:39.080
So just be patient with it.

07:39.080 --> 07:42.200
And once it's done, you'll have the software installed.

07:43.980 --> 07:44.370
Perfect.

07:44.370 --> 07:46.800
Now the installation is complete.

07:46.800 --> 07:54.000
So right now we have installed this software, the lever office writer on the Fedora 30 virtual machine.

07:54.300 --> 08:00.000
So I'm going to close myself to our manager and I don't want to use this virtual machine anymore because

08:00.000 --> 08:05.040
like I said, the we don't use the template virtual machines for our daily use.

08:05.040 --> 08:09.420
Therefore we're just going to go to my cubes and I'm going to shut it down.

08:09.960 --> 08:18.990
Now you'll notice we have a new icon in here beside all of the virtual machines that use the fedora

08:18.990 --> 08:20.310
as its template.

08:20.430 --> 08:26.430
And if we hover over this icon, you'll see that it's telling us that once our template is stopped,

08:26.430 --> 08:32.910
once we shut down the Fedora Machine, the changes that we made to the template will be reflected on

08:32.910 --> 08:37.890
these machines because these machines use the fedora as their template.

08:38.280 --> 08:44.490
Now I'm also going to go ahead and turn off my work computer so the software that I installed should

08:44.490 --> 08:50.520
be available in my work and in all of the other machines that use Fedora as a template.

08:50.910 --> 08:56.370
So let's go ahead and start my work and I'm just going to go to my file manager.

08:57.610 --> 09:03.550
And I'm going to go to my downloads because I've already downloaded Microsoft Word document in here

09:03.550 --> 09:04.640
just for testing.

09:04.660 --> 09:07.940
So let's right click this and open with labor.

09:07.960 --> 09:10.990
Office Writer As you can see, we have a new option in here.

09:10.990 --> 09:12.520
This wasn't available.

09:12.520 --> 09:16.480
This is only available because we installed office writer.

09:16.480 --> 09:22.780
And the only reason why it's available in work because work uses the fedora 30 as its template.

09:22.780 --> 09:28.270
And since we installed this in the template, it's going to be available to all virtual machines that

09:28.270 --> 09:33.250
are based on this template, such as the work virtual machine or the work domain.

09:33.580 --> 09:38.620
So if I click on this to load the program and I'll be able to read this document.

09:39.870 --> 09:43.320
Now, one last thing that I want to show you before we wrap this up.

09:43.650 --> 09:44.940
I'm going to close this.

09:44.940 --> 09:51.990
And if I go in here and go to my work, you can see that I have some of the programs that are installed

09:51.990 --> 09:57.920
in the work domain, in the work virtual machine such as the files, Firefox and my terminal.

09:57.930 --> 10:02.320
But I still don't see the Labor Office writer, which is what I just installed.

10:02.340 --> 10:08.190
So it will be really nice if I have it here and I'll be able to access it directly from here so that

10:08.190 --> 10:14.580
it will automatically start the work domain and then from there launch the office writer similar to

10:14.580 --> 10:16.800
what happens if I just click on Firefox?

10:17.400 --> 10:19.210
Now doing this is very simple.

10:19.230 --> 10:21.840
Again, we're going to go back to our cubes manager.

10:21.870 --> 10:25.770
We're going to click the machine that we want to modify, which is my work.

10:25.770 --> 10:29.430
In this example, we're going to click on its settings and here.

10:30.700 --> 10:37.540
And we're going to go to applications and this will list all of the applications available on this virtual

10:37.540 --> 10:38.230
machine.

10:38.770 --> 10:44.710
We're going to click on refresh applications first to get a list of all of the applications available.

10:45.070 --> 10:50.650
This will have to start the template in the background, as you can see, and it will automatically

10:50.650 --> 10:52.990
shut it down once the refresh is done.

10:53.680 --> 10:59.650
And then in here, in the left side, we have all of the programs installed on the work virtual machine.

10:59.890 --> 11:05.170
So we're going to look for the program that we want to add to the menu that we have in here.

11:05.980 --> 11:11.110
So I'm going to scroll down and you can see I have my labor office writer in here.

11:11.200 --> 11:17.200
So I'm just going to click on the right arrow and we have Labor Office added now in here.

11:17.560 --> 11:18.790
So I'm going to click on.

11:18.790 --> 11:19.630
Okay.

11:19.900 --> 11:26.920
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

11:26.920 --> 11:32.620
I picked and I can just simply click this from here to start Labor office whenever I want.

11:33.310 --> 11:37.390
So if the virtual machine is running, this will instantly start the program.

11:37.390 --> 11:43.570
If the virtual machine is off, it'll first start an instance of my work virtual machine, and then

11:43.570 --> 11:48.790
it will automatically launch the program that I selected, which is Labor Office in this case.

11:49.420 --> 11:50.870
So that's it for this lecture.

11:50.890 --> 11:57.850
Now you know how to install software in cubes and use it in the different domains so you can use this

11:57.850 --> 12:03.940
to install any program you want, not only lever office, whether you want to install pigeon or any

12:03.940 --> 12:09.220
other software that we used before or any other software that you're used to, you can follow the exact

12:09.220 --> 12:16.150
same steps to install it on cubes and then make it available to any domain or to any virtual machine

12:16.150 --> 12:18.310
within your cubes installation.
