Centennial College Information and Communication Engineering Technology Course: CNET 222 Lab 2: Installing Ubuntu
Centennial College Information and Communication Engineering Technology Course: CNET 222 Lab 2: Installing Ubuntu
Centennial College
Information and Communication Engineering Technology
Instructions:
F. Shafique Page 1 of 18
CNET 222 Lab 2 Installing Ubuntu
2. Select the Custom configuration and click Next.
3. Virtual Machine Hardware Compatibility: If you are also going to be using the VM on
an older version of VMware Workstation (for example, at home), choose the required
compatibility. If you do not need backward compatibility, leave the default selection and
click Next.
F. Shafique Page 2 of 18
CNET 222 Lab 2 Installing Ubuntu
4. Choose the I will install the operating system later option and click Next.
5. Select Linux as the guest OS and select Ubuntu 64-bit as the version from the drop
down menu.
6. In the text box for Virtual machine name enter:
“Ubuntu-” + your initials + last four digits of student number
Choose the “Location:” to be in your USB drive. Make sure you create a folder
preferably with the same name as your virtual machine. If you fail to do this, your
virtual machine files will be scattered in the folder you have selected.
Then click Next.
F. Shafique Page 3 of 18
CNET 222 Lab 2 Installing Ubuntu
7. Processor Configuration: Increase the number of processors to 2 (based on the
recommended requirements for the Ubuntu desktop). Click Next.
8. Increase the memory to 4GB (4096MB) for better performance. The minimum required
is just 1GB.
9. Select Network Address Translation as the network type and click Next.
10. Leave the recommended I/O controllers and click Next.
11. Leave the recommended disk type and click Next.
12. Select Create a new virtual disk and click Next.
13. Increase the maximum disk size to 30GB. Choose between storing the disk as a single
file or splitting it into multiple files. The trade-off here is between individual file size
and VM performance. Click Next.
F. Shafique Page 4 of 18
CNET 222 Lab 2 Installing Ubuntu
14. Keep the default disk file and click Next.
15. Review the virtual machines settings.
Take screen shot # 1 showing the Virtual Machine specifications.
Click Finish.
16. The virtual machine has been created but has no operating system installed yet. Before
we power it on, we must mount the iso image. In order to do this, from the VM home
page, click on CD/DVD (SATA) under Devices. Then select Use ISO image file and
browse to the Ubuntu iso file on your disk. Click OK.
F. Shafique Page 5 of 18
CNET 222 Lab 2 Installing Ubuntu
17. Power on the virtual machine. On the Welcome Page, click Install Ubuntu. (Make sure
the language selected is “English”).
18. Keyboard Layout: Keep the default English (US) and click Continue.
19. Updates and other Software: Select the Normal installation. In other options,
Choosing to Download updates while installing might take some additional time now
but will save time later. Click Continue.
20. Installation Type: Select Erase disk and install Ubuntu and click Install Now. When
prompted to write the changes to disk, click Continue.
Note: if you want to create custom partitions on the virtual disk you can click “Something
Else” here and partition the disk.
F. Shafique Page 6 of 18
CNET 222 Lab 2 Installing Ubuntu
21. Where are you?: page, select Toronto. Click Continue.
22. Who are you?: Fill out the information as follows:
• Your name: your full name (first and last)
• Your computer’s name: initials-ubuntu (All lowercase, for example, fs-
ubuntu)
• Pick a username: your first name (It must all lower case, for example,
fareha)
• Choose a password: Pa$$w0rd
• Confirm your password: Pa$$w0rd
Leave all other options as is and click Continue.
The installation can take a few minutes to complete.
F. Shafique Page 7 of 18
CNET 222 Lab 2 Installing Ubuntu
23. When the installation is complete, click I Finished Installing on the bottom then click
Restart Now. If you are prompted to remove the installation media, click
VM→Settings→CD/DVD (SATA). Select “Use physical drive” and click OK. Then restart the
virtual machine. You might have to Shutdown the guest to change the settings.
24. Once the restart is complete, Take screen shot # 2 of the login screen.
25. Login with the user created during installation.
26. Online Accounts: Click Skip.
27. What’s new in Ubuntu?: Click Next.
28. Livepatch: Click Next.
29. Help improve Ubuntu: Select No, don’t send system info and click Next.
30. Privacy: Click Next.
31. You’re ready to go!: Click Done.
32. If you see a Software Updater pop-up, click Install Now to install any updates.
33. Open the terminal by right-clicking anywhere on the desktop and clicking Open in
Terminal from the menu.
F. Shafique Page 8 of 18
CNET 222 Lab 2 Installing Ubuntu
34. Enter the following command to view the network information of the Ubuntu VM.
ip a
Take screen shot # 3 showing the result of the command.
F. Shafique Page 9 of 18
CNET 222 Lab 2 Installing Ubuntu
35. Open Firefox from the sidebar. Browse to www.centennialcollege.ca.
Take screen # 4 of the college website.
36. Shutdown Ubuntu before the next exercise.
F. Shafique Page 10 of 18
CNET 222 Lab 2 Installing Ubuntu
2. Select Network Adapter and click on Finish. Make sure the Host-only network
connection is selected for the new adapter. Click OK.
3. Power on Ubuntu and login.
4. Open the Network Settings by clicking the downward arrow on the top right-corner of
the task bar, expanding Ethernet (ens38) Connected and clicking Wired Settings.
5. Click the gear icon beside Ethernet (ens38) and on the IPv4 tab, select the Manual IP
method and enter the following information:
a. IP address: 172.16.0.15
b. Subnet mask: 255.255.255.0
c. Default gateway: 172.16.0.2
d. DNS: 172.16.0.15 (Automatic OFF)
F. Shafique Page 11 of 18
CNET 222 Lab 2 Installing Ubuntu
6. Click Apply.
7. Turn ens 38 off and then on for the setting to take affect.
8. Open a terminal window and type the following command to see the ip information
ip a
Take screen shot # 5 showing the result of the command.
You can open Firefox again and verify that the Internet is working correctly.
F. Shafique Page 12 of 18
CNET 222 Lab 2 Installing Ubuntu
F. Shafique Page 13 of 18
CNET 222 Lab 2 Installing Ubuntu
3. Apt can be used to check for updates to the system and software installed on it using
either of the following commands:
sudo apt list --upgradeable
or
apt-get --just-print upgrade
4. Sometimes apt can run into issues and the best way to start fixing these is by cleaning
up the metadata and cache that apt creates. Doing this periodically even when there is
no error ensures that apt continues to work optimally. Run the following commands to
clean up apt:
sudo apt-get check
sudo apt-get clean
sudo apt-get autoremove
Take screen shot # 7 showing these commands ran successfully.
5. By default, apt checks for updates daily immediately after the system boots. This is very
important to keep your system up-to-date and secure. However, in our course this
usually interferes with the manual installation of packages and therefore we will
disable these on our virtual machine (Note that this is not best practice). Run the
following four commands to stop these daily checks and updates:
sudo systemctl disable apt-daily.service
sudo systemctl disable apt-daily.timer
sudo systemctl disable apt-daily-upgrade.timer
sudo systemctl disable apt-daily-upgrade.service
F. Shafique Page 14 of 18
CNET 222 Lab 2 Installing Ubuntu
2. Click on Software & Updates and click the Updates tab. Modify the settings as shown
in the image below. Click Close and on ‘The information about available software is
out-of-date’ pop-up, click Reload.
F. Shafique Page 15 of 18
CNET 222 Lab 2 Installing Ubuntu
Make sure you have all your work on your external USB hard disk.
F. Shafique Page 16 of 18
CNET 222 Lab 2 Installing Ubuntu
F. Shafique Page 17 of 18
CNET 222 Lab 2 Installing Ubuntu
• Security practices recommend that once you have completed the commands you
need to execute as the administrator you should switch back to your ordinary
user. You can do this by typing exit at the command prompt.
4. Review the commands below. Use the manual pages to find out what they do and fill out
the table.
Linux Command Description
cd
pwd
more
less
head
tail
rm
mv
cp
mkdir
rmdir
clear
5. You can close the terminal by typing exit or clicking the X on the left right corner.
Appendix B. Shutdown
To shutdown Ubuntu, click on the gear in the upper right corner and then click on
‘Shutdown’. You can also shutdown from the terminal by typing the following command:
sudo shutdown now
F. Shafique Page 18 of 18