0% found this document useful (0 votes)
54 views2 pages

Lab01 - Introduction To Linux

The document provides steps to install Ubuntu in a virtual machine using VirtualBox, create folders and files in the Ubuntu terminal, write a simple C program to print 'Hello world', compile and run the program, and submit a video by the due date demonstrating the Ubuntu installation.

Uploaded by

olumbarb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views2 pages

Lab01 - Introduction To Linux

The document provides steps to install Ubuntu in a virtual machine using VirtualBox, create folders and files in the Ubuntu terminal, write a simple C program to print 'Hello world', compile and run the program, and submit a video by the due date demonstrating the Ubuntu installation.

Uploaded by

olumbarb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

KT24403: Operating System

Lab 1: Introduction to Linux (5 Marks)

STEP 1
Download and install VirtualBox

STEP 2
Download Ubuntu 16.04.6: https://old-releases.ubuntu.com/releases/16.04.6/

STEP 3
In VirtualBox, create a new machine using Ubuntu image

STEP 4
Start the new Ubuntu machine, to get the following running:

STEP 6
Create a new folder. In the Terminal, type:
mkdir OS
cd OS
STEP 7
Create a new file one.c, in the Terminal type:
nano one.c

In nano editor, type the following code:

#include <stdio.h>

int main(void) {
printf("Hello world\n"); return 0;
}

Save the code, press Ctrl X, then choose Y, and finally press ENTER.

In the Terminal prompt, compile the code, type:


gcc one.c -o one

Run the code, in the terminal, type:


./one

SUBMISSION
Due: 27 March 2024
Task: Upload a one-minute video link to demonstrate the installation of Ubuntu in your system.

Guide: https://youtu.be/BlyIvDHSTvs?si=cC1E1--w-QwjRnzU

You might also like