0% found this document useful (0 votes)
69 views

001 - Introduction and Installation

This document provides instructions for students to set up Linux virtual machines using VirtualBox on their computers for an introductory Linux class. It recommends a laptop or PC with at least 8GB RAM and 60GB storage. It instructs students to download VirtualBox, Fedora Workstation 37 ISO, and Ubuntu Server 22.04 ISO files before class. It guides setting up a NAT network in VirtualBox and creating virtual machines for Fedora and Ubuntu, allocating 4GB RAM and 60GB of disk space. Students are asked to install Fedora in the virtual machine and configure a user account. The homework is to install the Ubuntu VM, read assigned chapters, and answer questions about Linux distributions and the relationships between Linux, Unix,
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)
69 views

001 - Introduction and Installation

This document provides instructions for students to set up Linux virtual machines using VirtualBox on their computers for an introductory Linux class. It recommends a laptop or PC with at least 8GB RAM and 60GB storage. It instructs students to download VirtualBox, Fedora Workstation 37 ISO, and Ubuntu Server 22.04 ISO files before class. It guides setting up a NAT network in VirtualBox and creating virtual machines for Fedora and Ubuntu, allocating 4GB RAM and 60GB of disk space. Students are asked to install Fedora in the virtual machine and configure a user account. The homework is to install the Ubuntu VM, read assigned chapters, and answer questions about Linux distributions and the relationships between Linux, Unix,
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/ 29

Linux, day 1

1
Lab prep

18
What will you need?
• A semi-recent (5 years) laptop, or PC.
– Intel i5/i7, AMD Zen2, Apple ARM
– At least 8GB RAM
– At least 60GB of storage space

19
Apple ARM systems
• Students with M1/M2 CPUs need UTM or Parallels.
– UTM lets you run x86_64 Linux.
– Parallels will only run ARM Linux.

See: https://mac.getutm.app
20
Instructions before class
• My e-mail asked you to download:
• VirtualBox installer (.exe or .dmg)
• Fedora Workstation 37 (.iso)
• Ubuntu Server 22.04 LTS (.iso)

• Apple ARM users need UTM, instead of VBox.


– And ARM64 versions of Fedora and Ubuntu.
21
If you didn't get them
• In our “Files” on Teams / Office365,
– VirtualBox is under “Virtualization”.

• Do not download the ISOs at school.


– Ask me for a USB stick with ISOs.

22
Guided exercise: installation

36
Many ways to run Linux
• You can run Linux "bare metal" on your computer.
• Windows offers WSL2, a "Linux inside Windows".
• VirtualBox, VMWare et al run "virtual machines".
• Containers let us run mini virtual environments.

37
What will we do?
• Two "virtual machines" with Fedora and Ubuntu,
• Running in VirtualBox on our PC,
• Connected to a "NAT" network,
– Which provides network/Internet access.

• Want RedHat Enterprise too? Check the homework!

38
What will we make?

39
Objectives
• Install VirtualBox
• Create a VM
• Install Fedora Workstation

40
Installing VirtualBox
• Windows? Just follow the wizard.
– MacOS? Ditto!
– Linux? Download the RPM or DEB and install.

• On MacOS, you need to allow VBox kernel modules.


– System Preferences -> Gatekeeper -> Allow

41
Create a NAT network

42
Create a NAT network
• In the VirtualBox preferences / settings:


43
Create a NAT network
• In the VirtualBox Network settings:
– Find the “NAT Network” tab.
– Create a new NAT network “NATnetwork”.

44
Creating our VM
• Type: Linux, Fedora 37, 64-bit
• 4096 MB RAM
• Create a virtual hard disk
– “Dynamically allocated”, 60 GB, VDI type
• Network: connect to NAT Network “NATNetwork”
• Connect the Fedora ISO / DVD

45
Install Fedora
• For now, we’ll use the default disk layout.
• After the reboot, setup your user account.

46
You try!
• Can you double-check:
– Where does VirtualBox store the disk image?
– What size is the “disk” set to?
– What size is the image file really?

47
Closing

62
Next week
• Virtualization and networking
• Users and groups

63
Homework
• Reading:
– Chapters 1 and 2
– Chapter 10
– Chapter 16, "Using SSH"

64
Homework
• Try installing the Ubuntu server VM.
– Make sure it's in the same "NATnetwork".
– It needs less RAM. You can give it 1GB.

65
Homework
• Q1: How do the following Linux “distributions” relate
to each other?
– Red Hat Enterprise Linux
– Fedora Linux
– CentOS
– Oracle Linux

66
Homework
• Q2: How do the following Linux “distributions” relate
to each other?
– Debian
– Ubuntu
– Kali Linux

67
Homework
• Q3: Is “Linux” a “Unix”? Why?
• Q4: Is “MacOS” a “Linux”? Or a “Unix”?

68
Optional homework
• If you want to try the official RHEL, you can!
– Red Hat offer a free “developer” license.
– Register at https://developers.redhat.com/register

• The Red Hat Developers site also has free books!


– And they’re good books!

69
Reference materials

71
Resources
• PluralSight XK0-005 learning path
• Open source: Gratis vs Libre
• History of Unix (Wikipedia)
• Linux distributions (Wikipedia)
• Linux rocks!

72
Resources
•Andrés Aravena - First steps on UNIX

73

You might also like