We are going to detail, step by step, the configuration process of a new Linux machine destined to the development of C/C++ projects. Linux offers a wide variety of environments, versions, and configurations. It will be very helpful to be able to test our developments on most platforms.
1. VirtualBox
It is unlikely (or impractical) that we have physical machines for each and every one of the versions of Linux where we are going to work. Virtualization will be our great ally and VirtualBox a good option.
Create a new virtual machine with 4Gb of Ram, 2 Processors and 64Mb of Video.
50 Gb HDD dynamically reserved.
Network->Bridget Adapter.
From Storage, select the *.iso image inside the Optical Drive.
Boot the virtual machine and install the system in question.
On the virtual machine: Devices->Insert Guest Additions CD Image (Figure 1).
On the virtual machine: Devices->Drag And Drop->Bidirectional.
On the virtual machine: Devices->Shader Clipboard->Bidirectional (Figure 2).
Restart the virtual machine.
2. Enable stale repositories
In the event that the distribution is outdated, it is likely that we will need to update the repository paths, in order to be able to install the necessary packages: