Part 1 — Setup — Linux Environment

Nelson Punch
Software-Dev-Explore
4 min readApr 14, 2024
Photo by Thomas Bennie on Unsplash

Distributions

Linux is an Operating System made from a collection of software that are based on Linux kernel.

Linux comprise:

Here we can checkout all Linux distributions.

Install Ubuntu

We will use VirtualBox a virtual machine to run Ubuntu.

Install VirtualBox

Download VirtualBox for your operating system and install it.

It is also recommend to install VirtualBox Extension Pack.

Install Ubuntu

Download Ubuntu. And start VirtualBox.

Create a new Virtual Machine. Machine -> New.

Fill the fields in the prompt window and click next.

  • Name: name of your virtual machine
  • Folder: location where your virtual machine to be stored
  • ISO Image: the ISO image you downloaded for Linux. In this case is Ubuntu ISO image
  • Type: select Linux
  • Version: in this case Ubuntu (64-bit)

Check Skip unattended Installation.

Configure virtual machine hardware.

Configure virtual machine hard disk.

Confirm your final summary and click Finish.

Select the virtual machine you just created and start it.

Select Try or Install Ubuntu.

Select your language and click Install Ubuntu.

Configure your keyboard layout.

Make sure you have internet connection and check two checkbox under Other options.

If you use virtual machine then leave it as default otherwise you can select Something else if you are on main operating system.

If a window prompt click Continue.

Select your location.

Fill your name and password then Continue.

Wait for installation to finish.

Click Restart Now when installation completed.

Press Enter.

Login with your user and password.

We have Ubuntu opertating system installed successfully. 🎉

After install Ubuntu

Update packages

Right click on desktop and select Open in Terminal.

In terminal type command sudo apt update . Enter password and hit Enter on keyboard.

Then run command sudo apt full-upgrade

Install Guest Additions

For better support we can install Guest Additions come with Virtual Box.

Insert the Guest Additions CD Image.

Type command cd /media/user/VBox_GAs_7.0.12/ hit Enter and then ls .

user in the path is your user name.

To install it, we run command sudo bash VBoxLinuxAdditions.run . Wait for it to finish installation and run command reboot to restart virtual machine.

Snapshot

Virtual Box allow you to snapshot current state of virtual machine in case you mess up the operating system and want to restore your virtual machine to current state.

To create snapshot. First power down virtual machine then in Virtual Box Manager screen select the virtual machine on left side and click Take button at top.

To restore. In Virtual Box Manager screen select the virtual machine and then on right side select snapshot you want to restore to. And click Restore button at top.

--

--