Now installing software on the anonymous Unix cube is slightly different than installing software on
the other virtual machines because the others were based on fedora and as we see in Fedora comes with
its nice package installer.
So if we go on the personal or on the work, they're all based on Fedora.
So if we want to install something on any of them, we go to the Fedora Template and we click on software.
This will launch a really nice graphical interface that allows us to install software and anything we
install in here will become available to work, personal, untrusted and so on.
Because they're all based on the fedora 30 now, because the Unix, because the non Unix and the disposable
Unix that we use are based on the if you look in here, you'll see they're based on the UND X 15, you'll
see that installing software on the x 15 is a little bit different than Fedora because it does not have
a nice package manager and nice graphical interface.
Therefore we're going to have to install software from terminal.
Now, don't worry about this.
I'm going to take you through it right now.
If you've done any of my other courses, then this will be very easy and very familiar to you.
But I still suggest you watch this lecture as you might learn a trick or two.
Now, to do this, we're going to have to let me minimize this.
We're going to have to go to the template that we want to install software on.
And like I said, there is no graphical user interface that allows us to install software.
Therefore we're going to have to do it from the terminal.
Okay.
Now, this will start a nice terminal for us.
I'm just going to clear it screen.
And the first thing that you want to do when you start this terminal is update the sources from which
you can download packages and software.
We need to do this with admin privileges, so to run a command with admin privileges, we have to first
type sudo and then type the command that we want to run.
And in my case, I want to update the sources, like I said.
So the command will be up to get.
Update.
So update is the program that we use to install software on Debian based operating systems such as Linux.
And what we want to do is literally just update the sources from which we can download software.
We're not updating anything.
We're literally just updating the list of packages that we can install.
Once this is done, we can search for packages and install them.
So let's say for example, you want to install pidgin.
If you remember, we use pidgin before for instant messaging entails.
So let's say you want to install this to do that.
First of all, let's say you don't really remember the program name or you want to search because you're
not sure what the name of the pidgin package.
So let's say you want to search for this program.
We're going to do sudo again and we're going to do apt catch and we're going to say i want to search
for a package called pidgin.
Now this will list all of the packages that has the word pigeon in them.
So you'll see the package that you want.
Plus a lot of other packages may be related, maybe not even related.
So, for example, let's say you're looking for a chat program or a messaging program, you can just
do a catch search message.
In my example, as you can see right here, I have the name of the package that I want to install or
the name of the program pigeon.
And I also have the description of it, which is a graphical multi protocol instant messaging client.
So all I need to do is basically install a package called pigeon.
Now to do that again, we're going to do pseudo because we need to run this under admin.
We're going to use the same program update and instead of updating the sources, we're going to say,
I want to install a program called Pigeon.
Very, very simple.
We're going to hit enter.
And because I've actually downloaded and installed this before, it's automatically downloaded and install
it for me without asking me.
But for you, if you're installing software or a package for the first time, it's going to ask you
to confirm and you're just going to have to type Y and hit enter to continue the process.
Now, once this is done, pigeon's installed now on my template virtual machine, my UNIX workstation
15.
Like I said, we never use the templates to run the actual software.
We only use them if we want to update or install software.
So this is done, this is installed.
We're happy with it.
I'm going to close it and I'm going to shut down my UNIX workstation.
And wait for it to fully shut down.
And once it is off, I'm going to go to my cubes manager again.
I'm going to go to the machine that I want to use the program from.
So, for example, the anon x right here, we're going to go to its settings so it can click on this
or we can right click and go to settings.
We're going to go to applications and as you can see, we have the pigeon instance manager available
for us in here.
Now you want to make sure that the machine is off when you're doing this.
Otherwise you won't see it.
If you don't see it, try to click on refresh applications and it should become available.
Now, once we have it, we're going to click on it here to make it available in the dropdown menu in
here and we're going to click on okay.
So now I can go in here and I can go to my and on UNIX and I have pigeon instant messenger right here
so I can click on it, wait for the virtual machine to start and it will start paging for me once the
virtual machine is working and perfect.
As you can see now I have pigeon working inside my an on next domain and we can use it exactly the same
that we learned with tails.
We click on ADD, you create your user or your login to your existing account and then you start communicating,
sending messages and so on.
Now in this example, obviously I literally just installed Pigeon, but you can follow the exact same
steps if you want to install any other program or any other package.
Now I highly recommend you get comfortable with using the terminal and installing programs through the
terminal through APT Gate.
But if you really want to have an easy way of installing programs, a graphical user interface, then
you can install a program called Synaptic which basically interacts with APT Gate and allows you to
install software through a nice graphical user interface, similar to what we did when we were installing
programs inside the Fedora 30 virtual machine.
Now to do this, we'll have to install synaptic, we'll have to install this graphical interface.
So let me turn off my UNIX machine again and we're going to go back to the terminal of our template,
which is the UNIX workstation and we're going to clear the screen.
And this time instead of doing APT get installed pigeon, we're going to install a program called Synaptic.
We're going to hit enter.
It's asking me if I really want to do this.
I'm going to say yes, please install it for me.
And like I said, this is literally just a graphical user interface that allows us to install packages
if you really don't want to use the terminal.
Perfect.
Now it's installed and usually we don't use any programs inside the template.
Virtual machines.
Like I said, we use them inside the domains.
This is what we did literally with pigeon and with everything else.
But because synaptic, the program that we installed is a program that allows us to install other packages
and other programs, it only makes sense to use it inside the template so that all of the other virtual
machines that are based on this template would inherit these programs.
Therefore, we'd want to use this inside our template virtual machine.
So back to the queue manager, we're going to select our template, which is the UNIX Workstation 15.
We're going to go to its settings.
Applications.
We're going to scroll down.
We're going to look for the package manager.
We're going to add it here to the right.
We're going to click on OC.
And now if we go to the dropdown menu over in here, you'll see we have a new entry which will allow
us to launch this graphical interface for the package manager for APT Get.
We're going to close this warning and perfect.
As you can see, we have a program that has a nice graphical user interface.
You can use the search button in here to search and then if you want to install any package, you literally
just tick it in here from the list.
Mark for installation and mark and then click on apply to apply the changes and install the package.
Like I said, I highly recommend getting used to using the terminal.
It is much better and if you know how to use it, you can use it across multiple platforms.
You're also installing less packages so there is less attack surface.
And finally, there are people reporting issues with synaptic inside UNIX.
They're saying it creates a lot of problems.
So you can see whatever is due to best and just go with it.
Now, finally, before we wrap this up, I'm going to close this.
I'm going to quit.
I just want to show you how you would update any virtual machine or any template.
I've touched on it before, so you can actually start the template, whether it's a fedora or Debian
or even if it's another operating system.
Literally look up how that operating system gets updated and follow the steps.
So usually for Linux you do apt get update, apt get upgrade and then apt get dist upgrade to upgrade
for another distro if there is a new release.
Alternatively, you can actually just do it in here from your cubes manager for example.
Again, let's say you want to update your UNIX workstation, right click, click on update.
This will automatically start the virtual machine if it's off.
In my case it was already on.
It will start the terminal, it will check the sources and once it gets a list of all the updates,
all you have to do in here, it's asking us to confirm you hit y hit enter and it will update it for
you.