Skip to main content

Private Computer — Linux

You install GCC (g++) and Visual Studio Code via your distribution's package manager. Below you will find the commands for the most common distributions. If you use a different distribution or cannot find the packages, please ask your tutors.

1. Installing GCC​

Open a terminal and run the command for your distribution. Confirm the prompts and enter your password when asked.

Ubuntu, Debian, Linux Mint:

sudo apt update
sudo apt install g++ gdb

Fedora:

sudo dnf install gcc-c++ gdb

Arch Linux, Manjaro:

sudo pacman -S gcc gdb

2. Checking the compiler​

Enter the following command in the terminal:

g++ --version

An output should appear that starts with g++ and contains a version number. If an error message such as command not found appears instead, the compiler is not installed (correctly).

3. Installing Visual Studio Code​

Install Visual Studio Code as a Snap package:

sudo snap install code --classic

Snap is preinstalled on Ubuntu. On other distributions you may need to install Snap first; instructions for your distribution can be found on the Snapcraft page.

Setting up Visual Studio Code is described in the main guide.

4. FAQ and problems​

You can find the general FAQ here.