0% found this document useful (0 votes)
28 views34 pages

Lab 1

The document is a lab report detailing the installation of the Fedora OS on a virtual machine using VMware. It includes steps for setting up VMware, installing Fedora, and using tools like Midnight Commander and Eclipse for C/C++ development. The report concludes with instructions on creating and running a C++ project in Eclipse.

Uploaded by

luongwinter1
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)
28 views34 pages

Lab 1

The document is a lab report detailing the installation of the Fedora OS on a virtual machine using VMware. It includes steps for setting up VMware, installing Fedora, and using tools like Midnight Commander and Eclipse for C/C++ development. The report concludes with instructions on creating and running a C++ project in Eclipse.

Uploaded by

luongwinter1
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/ 34

FPT University – Ho Chi Minh City Campus

Student name: Phạm Minh Khôi


Student ID: SE171989
Major: Software Engineering
Class ID: SE1705
Subject ID: OSG202.

Lab 1: Installing the Fedora OS


on a Virtual Machine

Report outcome:
1- What is a virtual machine and why should it be installed?
2- Steps to install the Fedora.
3- Install and use the Midnight Commander.
4- Install and use the Fedora Eclipse.
5-Conclusion

1.Installing VMware

● VMware setup file:


● Run the setup file:
After restarting the computer:

We can check VMWare icon on Desktop:


You can also see install folder according to the installation directory.

2. Setup the Fedora 11 on the VMware

● Preparation: A folder that will store all needed file of the Fedora on a disk that
remains greater than 10 GB empty space:

● Start-up the VM to install the Fedora:

First, click the icon on the desktop


Choose create a New Virtual Machine
Change Virtual machine name to your name (in this case, it’s my name)
Adjust maximum disk size to 20GB and choose to split virtual disk into multiple files.
Click on Customize Hardware:
Then import the ISO image file.
Click OK.
If you choose the Power on this virtual machine after creation then click the Finish
button: The virtual machine will be created and it starts immediately and then the
Fedora will be installed.

However, this tutorial wants you to power on the machine manually after it is created.
So, do not choose the “Power on this virtual machine after creation” option. Click
finish button.
Can you see the virtual machine that you created? Choose to play a virtual
machine.

Choose install to Hard Drive.


Then click Begin Installation
Click Start set up and then create an account and password.

All things are ready for you to use.


Click Start using Fedora Linux to enjoy Fedora Linux.
3. Install and use the Midnight Commander

Click Terminal and code.


Type sudo -i and enter your password (Your password length (*****) will not appear so
you must memorise it correctly) and press Enter.

Note: If this step is missing ,errors may happen because this command
requires you to run it as Administrator access.

Then type : yum -y install mc and press Enter.


Once it completes, type mc then Enter.

Midnight Commander screen


4- Install and use the Fedora Eclipse for C/C++

First you turn on the terminal then type cat /etc/os-release and Enter.
Type wget “The latest download link of eclipse” then Enter to download.

After that, you type tar -xzvf eclipse-inst-jre-linux64.tar.gz to extract the Eclipse
installer package.
And then, run the Eclipse installer

cd eclipse-installer/
./eclipse-inst

Choose IDE for C/C++ Developers


Click Install to complete.
The installation is successful. Press Launch to use eclipse.

4.2- Use the Fedora Eclipse

We will create a C++ project on Eclipse

RUN PROJECT OUTSIDE ECLIPSE/THROUGH TERMINAL:


First, press Start and click Files, then find the project you created.
Copy folder path to use in terminal.

Explanation: Line 4 “Sorry! The child cannot be created!” is printed because this
code is executed in the child process(pChild=0)

Exercise: Create an object-oriented Project:

First, create a new C++ Managed build:


With .cpp files, you choose to create a Source file.
With .h files, you choose to create a Header file.
After creating and writing code as well as run the project, here is the:
—----------------------The End—-------------------

You might also like