0% found this document useful (0 votes)
36 views11 pages

Ajaya Os Lab 1

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)
36 views11 pages

Ajaya Os Lab 1

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/ 11

TRIBHUVAN UNIVERSITY

Faculty of Humanities and Social Science


RATNA RAJYA LAXMI CAMPUS
Exhibition Road, Kathmandu

Lab report of Operation System (CACS 251)


LAB-1: Installation of Virtual Box and
Ubuntu

Submitted by: Submitted to:

Name: Ajaya Bhattarai Computer Department (BCA)

Roll no.: 02 Name: Anand KC

BCA 3rd Semester (A)


…………………………
Signature

-By Ajaya Bhattarai


Steps to install Virtual Box
1. Open Oracle download page.
2. Under the “VirtualBox binaries” section, click the “Windows hosts” option
and save the installers on the computer.

3. Double-click the VirtualBox-x.x.x-x-Win.exe file to launch the installer


4. Click the Next button.
5. Click the Next button again.

6. Click the Next button to continue with the VirtualBox installation.

-By Ajaya Bhattarai


7. Click the Yes button to confirm the virtual network adapter installation
warning on Windows 11.

8. Click the Yes button to install any missing dependencies (if applicable).
9. Click the Install button.
10. Click the Finish button.

-By Ajaya Bhattarai


Steps to create new machine in virtual box
1. Download and Install VirtualBox

2. Create a Virtual Machine

3. Allocate Memory

-By Ajaya Bhattarai


4. Set up the Hard Drive

5. At last, we see the summary which describes the configuration that we have
chosen for new virtual machine.

-By Ajaya Bhattarai


Steps to install ubuntu
1. Go to the Ubuntu official website to download the Ubuntu ISO and
download the latest version.

2. Install the ubuntu


On the next screen, you will have the option to either try or install
Ubuntu.
• Try Ubuntu
Choosing “Try Ubuntu” will not make any permanent changes to your
computer. This is ideal if you’re still on the fence about using Ubuntu or have
limited system resources. If you follow this route, you will still have the option
to complete the installation later directly from the test homepage by
clicking Install Ubuntu
• Install ubuntu
Installing Ubuntu will overwrite any other operating system on your
computer or in the allocated partition. This will erase all your data, including
settings, documents, files, photos, and videos. Be sure to back up your data
beforehand! Now, click Install Ubuntu.

-By Ajaya Bhattarai


Select your language; this is set to English (US) by default. Next, select your keyboard
layout and click Continue.

3. Update ubuntu
It’s always a good idea to try to update Ubuntu after installation to
ensure you have the latest features, security patches, and software
updates. There are two ways to update Ubuntu: via the Software
Updater app or via Terminal.
4. Start using Ubuntu
Congratulations! You’re now ready to start using Ubuntu for a variety of tasks. For
instance, you can create and edit documents with LibreOffice which is a popular full
office-suite compatible with DOC, DOCX, XLS, XLSX, PPT, and PPTX files. Other
popular apps that can spice up your Ubuntu experience include WPS Office, VLC
Media Player, GIMP, Steam, Kdenlive, Krita, VirtualBox, Google
Chrome/Firefox/Brave, Scribus, OpenShot, Geary, Atom, and Darktable.

-By Ajaya Bhattarai


List of Basic Commands in Linux with their use Example

-By Ajaya Bhattarai


-By Ajaya Bhattarai
Steps to install GCC in Linux
1. Open the terminal:
• Press Ctrl+Alt+T on your keyboard to open the Ubuntu terminal. This is
where we’ll run the installation commands.

2. Update Package Lists


• Before we install GCC, let’s ensure that our package lists are up to
date. Enter the following command and press Enter:

3. Install GCC
• Now, it’s time to install GCC. Enter the following command and press
Enter:

• Ubuntu will ask you to confirm the installation. Type ‘Y’ and press
Enter to proceed.
• This will install GCC from the Ubuntu repositories.

4. Verify the installation


• To make sure GCC is installed correctly, you can check the compiler
version by running the following command:

-By Ajaya Bhattarai


A sample c program and its steps to compile and run in Linux environment (P)

1. Open a text and create a new file named hello.c


2. Add a following code to hello.c:

3. Save and close the text editor


4. Open the terminal and navigate to the directory where hello.c is saved
5. Compile the C program using GCC

6. Run the compiled binary file

Now, the output is printed on the terminal

-By Ajaya Bhattarai

You might also like