Russia mainly works on three operating systems ubuntu, Mac OS and windows.
And note that I will only use ubuntu for this course.
That's the OS with which you will probably have less problems with the setup, the tools and everything
else.
And as you're just starting with Ross, I advise you to use ubuntu.
Don't make your life more complicated.
I know for some people it works on windows, but you'll probably have lots of issues.
And as you can see, macOS is not even a tier one anymore.
It's tier three, so you cannot really rely on it.
Okay, so here for Ross to Jazzy, you will need to install ubuntu 24.04 if you don't already have it.
So if you already have ubuntu 24 installed on your computer, great, just go ahead and jump to the
next lesson.
If not, then you have two choices.
You can install ubuntu natively with a dual boot or create a virtual machine.
The best overall is to install ubuntu natively.
With this you will be able to follow this course and do all the projects that you want.
If, however, you cannot install ubuntu natively, for example, if you are using a computer from work
and you don't have the permission to install an operating system, then starting with a virtual machine
is okay, at least to learn the Rosetta basics.
So having Linux basics is a prerequisite for this course, meaning that you have probably already installed
ubuntu or something similar in your life.
If not, you can find lots and lots of tutorials online on how to install ubuntu as a dual boot.
The configuration, of course, is going to depend on each one's computer.
Okay, but I really recommend that you do that before continuing.
Now, just in case you are completely stuck, or if you don't have the permission to install a dual
boot, I will show you how to install a virtual machine with ubuntu 24, and that should be enough to
get you started and finish this course.
So let's get to it.
First, you will need to download the ubuntu 24.04 ISO, so you can just type ubuntu 24.04 download
on Google and just go to the ubuntu page, which here you see we have ubuntu 24.04.
And then you might have a dot one or another number here.
It doesn't really matter.
Just make sure you have those numbers here.
And as you can see here we can download.
So I just click on the button.
It's going to download the desktop version.
So I ask you to sign up but you don't need to do it.
You just wait a bit and you see it's starting to download.
Now if you get to the page here and it's not ubuntu 24 and if it's another version, just go back and
you can go to okay, you have a page here which is releases that ubuntu.com.
Just click here and you just go to that page and you can choose well any release you want.
So 24.04 you see and then you have the desktop image that you can download.
It's going to be the same.
Great.
And while this is downloading we can also download VirtualBox.
So VirtualBox is the software that we will install the virtual machine in.
So you just go to the virtualbox.org website and then you have well you can find the download button
somewhere.
And then they ask you well what host you have.
So this is the current operating system that you are using.
So here I'm on Windows.
So I'm going to click on windows.
If you are on macOS you're going to click here.
Well depending on the computer you have you just click on one of those here for windows host I click
here and that's going to download the VirtualBox installer and both the ISO.
So the ubuntu ISO and VirtualBox installer are downloaded now.
So you can see it's almost six gigabytes to download.
It could be quite long.
So make sure that you have a good internet connection speed to download that.
Once you have the two let's install first VirtualBox so you can just run the executable.
Here I have to press yes on a pop up to allow the installer to run.
Okay.
And you will get to a menu like this.
So you click on next.
You accept the terms.
Next you can choose a location here I'm just going to keep the default one.
I click on next and let's install it if it has missing dependencies.
Well you just click on yes.
Then you can modify those if you want.
Next install.
And let's wait a bit.
And when it is installed you just click on finish.
You can start it directly after that if you want.
And you will get to a menu like this.
So here on the left that's going to be empty for you.
Okay.
Those are actually already installed virtual machines before.
So for you it's going to be empty.
Now what we can do is to create a new virtual machine in VirtualBox.
So you click on new here and let's give it a name.
So the name doesn't really matter.
It's just something that you can recognize.
So let's name it ubuntu 24.04, for example.
Ros2 course, then there is a folder where the VirtualBox is going to be installed.
You can change that if you want.
I'm going to leave it by default and then you have the ISO image.
So here we will use.
So that's the one I've just downloaded.
So it may find it automatically.
If not you just well you just browse to find the ISO that you have downloaded.
And then well I just type ubuntu so it recognizes the keyword.
It's going to put Linux and Ubuntu.
You make sure you have Linux and Ubuntu here okay.
With ubuntu 64 bit then you are going to skip unattended installation.
All right.
We're going to make sure to click on this box.
This is a new feature that they have so they can install more stuff for you.
But I have recently tested it and there are still some issues.
So better to skip it.
And we're going to do everything ourselves.
Then you can click on hardware here.
This is going to be the Ram used for the virtual machine.
Now how much Ram to allocate for the VM.
Well depends how much you have on your computer.
Here I have 16GB so I don't need to use two gigabytes.
I can put more.
For example, I could put six giga or maybe up to eight eight gigabytes can be nice.
I would say between 6 and 8.
Now if you have only eight gigabytes of Ram then you're going to put four.
And if you have less than eight gigabytes of Ram, well try some values.
Okay.
Maybe you could go with 2 or 3GB and see if it works.
All right.
You can always change this later on.
So you can change the settings after you have created the VM.
So it's okay.
You can try one value and see if it's too slow or not.
And maybe well if you don't have enough Ram, you might also need to get a better machine.
So that's for the Ram, for the processors, for the CPUs.
Well I have eight CPUs and I'm going to put what I'm going to put four okay I'm going to go all the
way up to the limit here with the green bar and the red.
So I would say just use half of your CPUs.
And then we are going to click on hard disk.
And yes, we are going to create a virtual hard disk.
Now that's going to be where all the files are going to be installed.
This is the location by default and it says 25GB.
I'm going to increase it to well I'm just going to put 35 here.
So I recommend that you use minimum 30 giga okay 30 to 40GB should be enough.
And anyway it's not going to take 35GB right now okay.
It's going to increase as you add more files inside your virtual machine.
So you can put a higher number here.
It's not going to allocate the full size right away.
Good.
And now we can click on finish.
And we have a new virtual machine.
Now before we start I'm going to click.
So select the virtual machine and click on settings, because there are a few things that we want to
modify and that we're not in the installation settings.
So first, as you can see, any time you come back to the settings, you can you see, you can modify
the Ram, you can modify the CPUs.
So those are settings you can change later on.
I'm going to click on well system and then acceleration.
We are going to disable that setting.
Enable nested paging and then on display.
If this is checked you will uncheck it okay.
Enable 3D acceleration.
We don't want to check that.
And for the the video memory we are going to go all the way up to 128MB if possible.
Okay.
So I'm using those settings.
So you can probably avoid unexpected behaviors and problems with the graphical interface in the virtual
machine.
If things are not working correctly when you run the VM, you might go back and maybe check that again.
Maybe the 3D acceleration.
Okay.
It depends really on your machine.
So.
Each machine is different.
You might need to do different settings.
But I would recommend first to start and try with the ones that I just showed you.
Now I click on okay and you can just start.
So you double click or you select it and you start the virtual machine.
And then you have this menu here.
And that's well that's the boot menu.
You can use the up and down arrow keys you see to navigate.
We're just going to choose the first one try or install ubuntu.
You can just press on enter.
So you wait a bit.
You might have some logs like this but you just wait a bit.
And as you can see we get to this startup menu.
Okay.
So you just wait until it is done.
Don't change.
Don't click on anything.
And then we can follow the startup menu.
So choose your language.
I'm going to keep English.
I also recommend you do the same.
So you can follow the same options as me and have the exact same text.
So next what we can skip the accessibility menu.
Next.
Then you get to choose the keyboard layout.
So if you have a standard US English layout you keep this one.
For me, I have to go to the.
French because yes, we do have a different keyboard, so make sure that it corresponds to your keyboard.
And then you click on next.
To connect to the internet we are going to use the wired connection.
Wired connection means that we are just going to use the connection of your host.
So here the windows connection okay so we already have internet.
Then you might see this.
An update is available for the installer.
So if you see that, you just update now.
So you update the installer okay.
You can close the installer and then you will get back to this.
You should see here install ubuntu on the desktop or also here on the menu.
So you just double click.
And if you start the installer again you need to do the steps again.
So English next next.
And let's go to the keyboard layout.
So the French one next also next we are going to choose interactive installation.
Next.
And then what apps would you like to install.
Let's just go with the default selection which is just the essentials okay.
With a web browser we don't need anything else okay.
So click on next.
I recommend you click on that okay.
Install third party software for graphics and Wi-Fi hardware.
Because if you don't do that, maybe you will get an error when you start the virtual machine.
Okay.
Especially if you have an Nvidia graphic cards, which is my case.
So with this you can be sure that you have the correct drivers.
I'm going to leave that one here.
Let's click on next.
And then how do you want to install ubuntu.
So here this is a virtual machine.
Okay.
We have a virtual disk that's empty.
So we're just going to erase the disk and install ubuntu.
Okay.
We don't lose anything.
If you were to install ubuntu as a dual boot you would have an option that is like something like install
ubuntu alongside windows.
Okay.
You would not want to erase the complete disk.
But here for a virtual machine we don't erase anything.
So we're just going to erase the virtual disk and install ubuntu on it next.
And then let's choose a name for the account.
So try to keep things simple here.
In my case I'm just going to go with Ed and the computer's name.
I'm going to name it ed vm.
For example, something very simple.
And for the password I'm going to use something very simple.
Okay.
You can use a stronger password if you want.
And I'm going to keep the rest like this.
Click on next.
Almost done.
So let's choose a time zone.
Next.
You can see a recap of what's going to be done.
Okay.
With the partitions that are going to be created etc. you can click now on install and you're going
to have to wait for a few minutes.
The installation is now complete, so it took me about 25 minutes to give you an idea because it can
be quite long.
And once you get to this screen, you can just click on restart.
Now that's going to restart the virtual machine.
Now you see you have this.
Please remove the installation medium and press enter.
So just press enter.
There's no nothing to remove.
Okay.
Just press enter.
We can log in with our.
So the password that you've set previously.
We are now on the ubuntu desktop.
And you see for the first time you will get also this menu.
You can just click on next.
And then they're going to try to sell you Ubuntu Pro.
You can skip for now.
Okay.
You click on next.
You can choose to share system data or not.
We'll just do whatever you want and just finish.
And that's it.
So now ubuntu is successfully installed.
But we have a few more steps to do to get everything 100% right.
First of all, we are going to update the packages.
So it's not because you just installed ubuntu that everything is up to date.
Okay.
So we're going to update the packages from the terminal.
So for that you can open a you can just open a terminal.
You type cmd for example, you open a terminal, I'm going to right click here and pin to dash.
Okay.
So I can start it again from here.
And let's do a sudo apt update to update the sources.
As you see I have 200 packages to upgrade and I will do sudo apt upgrade.
Okay.
Press enter and let's wait a bit more.
And a few minutes later everything now is up to date.
And there is one last step.
And that is relative to the virtual machine.
Here you can see if I try to increase, you see if I try to resize the window here, the resolution
here of the desktop is not going to change.
And also at this point, if you try to copy and paste from into the virtual machine, it also might
not work.
So for this we need to install what's called the guest additions CD image.
To properly install that we will need to.
First I'm going to do clear, but we need to first install a few packages sudo apt install.
And that's going to be build essentials.
All right.
Here I have a pop up saying that you need to restart.
I'm going to say restart later.
So build essential.
You can press tab for auto completion gcc and then make and then Perl and then d k m s.
So you install those 12345 packages okay.
Some might already be installed.
You press yes to install all of that.
And then on the top menu of the Virtual Machine window you can click on devices and insert Guest Additions
CD image.
So you will see a new CD here okay.
You can click on it.
That's going to open a file manager with some software to run.
And let's just do a right click inside and do open in terminal.
So now we are in the folder I can do LS and see what we have here.
And you will run the vbox Linux additions run with sudo so sudo and then dot slash vbox Linux additions
dot run.
Make sure you use autocompletion.
Put the password and let's wait for a few seconds and you can see at some point after maybe a minute
or two, the command will finish and exit.
So best thing here is let's do a reboot.
So let's do sudo reboot or let's just shut it down.
So to shut it down properly you can do a pseudo shutdown here.
But we can also click here.
So better to shut down with this menu than just closing the window.
So we're going to do a shut down.
So power off.
And then we open the VirtualBox manager again.
And let's start this machine again.
Let's log in.
And you can see now we have the desktop that's resizing.
So you may need to resize the window first to see this.
And then we still have the disk here you can right click and eject.
Okay.
And finally to enable the copy and paste let's go to devices shared clipboard.
You see it's disabled.
You can go to bi directional.
So you can copy and paste from the virtual machine to your host, and also from the host to the virtual
machine.
Everything is set up.
So for the following lessons I'm going to use my own dual boot.
But you can follow 100% of the course using this virtual machine that we have just installed.