2.2 KiB
Installation
Linux
Note that if you are working on a Windows machine you will need to either use Windows Subsystem for Linux, Virtualbox, or VMware to create an instance of Linux on your machine. I personally prefer to use WSL but any of the three will work just fine. If you are on Mac or Linux then you can skip down to setup.
WSL
Here is a link for WSL. I am using Ubuntu 24.04 which is currently the latest, but almost any flavor will be fine. Here is a WSL Cheat-sheet that you may find useful.
VMWare and Virtualbox
Video on installing Ubuntu into VirtualBox. Video on installing Ubuntu into VMWare Player.
You can download Virtual Box. You can download VMware Workstation Player.
Then you will need to download an Ubuntu iso file and load it into either VMware or VirtualBox.
Setup
-
Log into your Linux or Mac OS
-
Launch a terminal window
-
Install the following packages (see images below)
- Install:
- g++ (compiler)
sudo apt install g++ - gdb (debugger)
sudo apt install gdb - vs code
- g++ (compiler)
- Install as needed:
- cmake (compile and link tooling)
sudo apt install cmake - git
sudo apt install git
- cmake (compile and link tooling)
- Install:
-
Verify everything installed (see image below)
-
To check vs code, type "code ." while in wsl or other virtual machine, and that should start vs code.
-
In you home directory, create a working directory called "dev" that you will use during this course
-
Change directory into dev
-
Create a new directory called Module1
-
Change directory into Module1
-
Create a directories called bin and src
-
- Go to properties in vscode, User Snippets, cpp.json and copy-paste text from cpp.vscode.snippet, save and restart vscode
Now we are ready to start Programming C++!
