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—-------------------