In the print dialog, choose "Save as PDF" as the destination.
Operating Systems 1, Lab 8
Build a virtual machine, install Ubuntu inside it, then explore it as a user.
Part 1
Why there are hundreds of Linux systems
Linux is not a whole operating system: it is the kernel, the engine that talks to the hardware
Applications
the accessories
Desktop environment
the body and interior
Shell, commands, tools
the controls
Linux kernel
the engine
A distribution = kernel + tools + desktop + applications, packaged to install
| LTS (long-term support) | Latest release | |
|---|---|---|
| Support | up to 10 years | 9 months |
| Typical use | stay about two years, until the next LTS | upgrade every 6 months |
| Strength | rock-solid stability | newest desktop and apps |
Part 2
A computer made of software
| Way | What happens to Windows |
|---|---|
| Clean install | removed; Linux takes the whole disk |
| Dual boot | both stay; choose one at every start-up |
| Microsoft Store | Linux inside Windows, command line only |
| Virtual machine | nothing changes: Linux runs like an app |
| Requirement | Why |
|---|---|
RAM >= 4 GB | host and guest share it; with less, the guest lags |
Free disk >= 12 GB | for the virtual disk file |
| Internet | download VirtualBox and the ISO (or copy them over) |
| Virtualization in BIOS | without it the VM will not start |
The sources say out of the red area; half is this lab's safe limit
| Resource | Rule |
|---|---|
| RAM | as much as you can spare, out of the red area: at most half the host |
| CPUs | every core is taken from the host: at most half the host cores |
| Virtual disk | 10 GB minimum, 15-20 GB preferable, 30 GB in the 24.04 video |
The lab document's host has 8 GB of RAM. Predict: how much may the VM get?
The video's host has 12 cores and gives the VM 5. Predict: inside the rule? And 8?
| Allocation | Host space lost on day one | Later |
|---|---|---|
| Dynamically allocated (default) | a small file | grows as files are stored |
| Fixed size | the whole size, at once | never grows |
The host has 50 GB free; you create a 20 GB disk. Predict the free space right after, for each allocation.
Part 3
From an empty VM to the Ubuntu desktop
30 GB; Finish: the VM boots the ISOAfter language, accessibility, keyboard layout and a wired connection
| Question | Choose | Why |
|---|---|---|
| Try or install | Install Ubuntu | Try = a live session, nothing installed |
| Installation type | Interactive | automated is for many machines from one config file |
| Applications | Default selection | basic utilities; extended adds more |
| Third-party software | checked | graphics, Wi-Fi hardware, media formats |
| How to install | Erase disk and install | see the next slide |
The installer says Erase disk and install Ubuntu. Predict: does this erase Windows?
10-15 minutes of copying and installingFix a small screen, add copy-paste and drag-and-drop with the host
sudo apt-get install bzip2 tarSimulated with -s (no password, changes nothing) on an Ubuntu 24.04 based machine
$ apt-get install -s bzip2 tar
NOTE: This is only a simulation!
apt-get needs root privileges for real execution.
Reading package lists...
Building dependency tree...
Reading state information...
bzip2 is already the newest version (1.0.8-5.1ubuntu0.1).
tar is already the newest version (1.35+dfsg-3ubuntu0.4).
0 upgraded, 0 newly installed, 0 to remove and 22 not upgraded.Not in a hypervisor partition (HVP=0) (VERR_NEM_NOT_AVAILABLE).
AMD-V is disabled in the BIOS (or by the host OS) (VERR_SVM_DISABLED).
Result Code:
E_FAIL (0x80004005)Part 4
The GNOME desktop as a normal user
| Area | What it does |
|---|---|
| Dock (left edge) | launch and switch apps; a dot shows a running app |
| Show Applications | the app grid, like the Start menu: All and Frequent |
| Activities (top left, Super key) | all windows spread out, search, workspaces |
| Clock (top middle) | calendar and notifications |
| System menu (top right) | volume, network, lock, settings, power off |
Search: the fastest way to open anything
fireSeparate desks on one screen
Search settings, or the gear in the system menu
| Panel | Use it to |
|---|---|
| Appearance / Ubuntu Desktop | style, wallpaper; dock auto-hide, size, position |
| Notifications / Search | silence one app; choose where search looks |
| Privacy & Security / Power | automatic screen lock (Screen Lock); screen off, suspend |
| System, Users | Unlock, then add a user; the Administrator switch makes an administrator |
| System, About | Ubuntu version, memory, processor, disk; System Details: virtualization |
Part 5
Where is my C drive?
| Windows | Linux |
|---|---|
C:\ top of the main drive | / (root) top of everything |
C:\Users one folder per user | /home one folder per user |
C:\Users\student\Documents | /home/student/Documents |
\ separates folders | / separates folders |
a drive letter such as E: | a folder under /media |
| Folder | Holds |
|---|---|
/home | the users' personal folders; yours is your home folder |
/etc | configuration files of programs and the system |
/media | removable devices, such as a flash drive |
/mnt | another place where drives are mounted |
User student, file C:\Users\student\Documents\report.odt. Predict the Ubuntu path.
C:\Users\student\Documents\report.odt -> /home/student/Documents/report.odt
C:\Users\student\Pictures\trip\beach.png -> /home/student/Pictures/trip/beach.pngCreate Hidden Folder, rename it to .Hidden Folder. Predict what happens.
Part 6
Install, remove, update
| Where | What you do there |
|---|---|
| Explore | featured apps and categories: productivity, development, games |
| Search results | Filter by: Snap packages (the default) or Debian packages |
| Manage | installed apps; Check for updates, Update all |
| Software Updater app | system updates: all of Ubuntu, not only the apps |
| Format | Comes from | Updates | Note |
|---|---|---|---|
| Native | Ubuntu repositories | critical fixes only | loads fastest |
| Snap | Snap Store | automatic, newest | has all dependencies inside; slower start |
| AppImage | developer's site, one file | download a newer file | runs on any distribution |
App Center finds GIMP, but a classmate says there are two. Predict: where is the second, and how do you tell them apart?
You double-click a downloaded AppImage and nothing happens. Predict why.
sudo apt install libfuse2t64Part 7
About 30 minutes: four on paper, then tasks in your own VM
About 8 minutes
| Host | RAM | Cores | Free disk |
|---|---|---|---|
| A | 8 GB | 4 | 40 GB |
| B | 16 GB | 12 | 100 GB |
| C | 4 GB | 2 | 10 GB |
| Host | Max RAM | Max CPUs | Runs a VM? |
|---|---|---|---|
| A | 4 GB | 2 | yes |
| B | 8 GB | 6 | yes |
| C | 2 GB | 1 | no: 10 GB free is below 12 GB |
About 6 minutes
C:\Users\student\DownloadsC:\Users\student\Pictures\trip\beach.pngC:\E:Documents.mozillanotes.txt.Hidden Foldermy.photos.config/home/student/Downloads/home/student/Pictures/trip/beach.png//media/etcAbout 6 minutes
VERR_SVM_DISABLEDAbout 10 minutes
lab8, rename it .lab8, then find it with Show Hidden Files/ is the top, homes live in /home, and a leading dot hides a fileMahmoud Abas|Linux: Ubuntu Installation and Basics