Tutorial7: Installing Linux / Live Linux / Virtualization
Contents
INSTALLING LINUX / LIVE LINUX / VIRTUALIZATION
Main Objectives of this Practice Tutorial
- List and explain common Linux Installation Methods
- Define and explain the purpose of using a Live Linux distribution
- Define and explain the purpose of Virtualization
- Download and install Knoppix Live in a virtual machine
Tutorial Reference Material
Course Notes |
Concepts |
YouTube Videos | ||
Course Notes: | Installing Linux | Knoppix Resources | Instructional Videos: |
KEY CONCEPTS
Installing Linux
Having a Linux system on your home computer provides access to a large selection of open source software.
Installing your own version of Linux on your notebook or desktop computer also can make it easier to practice working
in the Linux environment and learn how to perform routine Linux OS administration tasks.
A Linux distribution (often abbreviated as distro) is an operating system made from a software collection that is based upon the Linux kernel and, often, a package management system. Linux users usually obtain their operating system by downloading one of the Linux distributions, which are available for a wide variety of systems ranging from embedded devices (for example, OpenWrt) and personal computers (for example, Linux Mint) to powerful supercomputers (for example, Rocks Cluster Distribution).
Reference: https://en.wikipedia.org/wiki/Linux_distribution
Steps in the Linux Installation Process:
- Select a Linux Distribution and download a Linux Distribution Install ISO file
to your Computer (Note: Be aware of any required Hardware Requirements for the Linux OS prior to installation.) - Burn an Linux Distribution CD/DVD, or USB, or use downloaded file when creating a virtual machine.
- Once booted, the installation process transfers the live image to a disk (or flash memory) and configures the system.
- For most distributions, the installation involves a guided graphical environment help assist with the Linux installation process.
Linux Installation Methods
Standalone Installation
- Linux is the only OS on the computer
- Any existing data on your hard disk will be erased
Dual-boot / Multi-boot Installation
- A boot menu allows the user to select the desired OS.
- This options provides a method to access your computer if one OS fails to boot-up.
- Most Linux distributions can access the Windows partition even if your Windows OS cannot boot-up.
- This booting method is great for troubleshooting
(example: booting into other OS to confirm that you can connect to the Internet to rule-out hardware issues. - It is recommended to back up important data before proceeding.
- It is recommended to install the Linux OS last, as other operating systems may not offer a multi-boot option.
Virtualized Installation
- Virtualization requires a compatible processor: not all processors support that feature.
- Most recent multi-core processors support virtualization.
- The virtualized OS is installed and run in a window under another OS.
- The installation can usually be accomplished from an ISO image.
- One or more virtual machines can be run at the same time.
- The guest OS shares hardware with the host OS and possibly other virtualized systems.
- Special software is used to manage the entire process, referred to as the hypervisor.
- The guest systems have network access through the host.
- The selection of virtualization software (which allows creation and running of virtual machines) depends mainly on the host OS, although some are cross-platform. Other considerations as to virtualization software may be features, support, price and/or personal preferences.
Popular VM software for Windows and MAC include:
- VMware
- Oracle Virtual Box
- KVM
- XEN
Live Linux CD
A live CD (also live DVD, live disc, or live operating system) is a complete bootable computer installation including operating system which runs directly from a CD-ROM or similar storage device into a computer's memory, rather than loading from a hard disk drive. A Live CD allows users to run an operating system for any purpose without installing it or making any changes to the computer's configuration. Live CDs can run on a computer without secondary storage, such as a hard disk drive, or with a corrupted hard disk drive or file system, allowing data recovery.
As CD and DVD drives have been steadily phased-out, live CDs have become less popular, being replaced by live USBs, which are equivalent systems written onto USB flash drives, which have the added benefit of having write-able storage. The functionality of a live CD is also available with a bootable live USB flash drive, or an external hard disk drive connected by USB.
Reference: https://en.wikipedia.org/wiki/Live_CD
The Knoppix Live CD is available to run on workstations at Seneca College via AppsAnywhere or you can download and run it on your home computer.
- Steps to Run Knoppix from AppsAnywhere:
- Start your Seneca College lab workstation and login to your Seneca Windows account.
- Click on the Search Apps area located in the top right corner of the MyApps window and type the word: knoppix
- Select the knoppix application icon and click Launch. Your file manager will open and display both the Knoppix virtual machine icon and a Knoppix Installation ISO file.
- Double-click on the icon Knoppix.vbox The Virtualbox application will launch and display the virtual machine for Knoppix.
- Double-click on the Knoppix VM in the left window to launch this VM and click the Switch button when prompted to enter scale mode.
- Steps to Run Knoppix Live from Your Computer:
- Click on the following link to download the lastest knoppix ISO:
https://www.knopper.net/knoppix-mirrors/index-en.html - If you are burning to a CD, click on the following link for instructions:
Install Knoppix LInux
NOTE: If you are burning to a USB, click on the following link for instructions:
How to Boot Knoppix from USB
INVESTIGATION 1: BOOTING KNOPPIX (LIVE LINUX) VIA VIRTUALBOX
In this section, you will then download the Knoppix Live Distribution on your computer and create a virtual machine for Knoppix Linux.
Once you launch the Knoppix Linux distribution, you will learn to perform a few basic operation in the Knoppix Linux graphical environment.
NOTE: In order to save time, you will be downloading and using an already created Knoppix Linux VM.
Perform the Following Steps:
- Click on the following link to access the Oracle Virtualbox website and click on the link to download and install
the Oracle Virtualbox virtualization application on your computer: Oracle Virtualbox - Click on the following link and download the Knoppix Live Distribution to your computer: Knoppix Virtualbox VM
NOTE: This file is approximately 5GB in size and might take a while to download. - Unzip the downloaded zip file (In MS Windows: Right click and Select "Extract All")
- Open your file manager application and double-click on the Knoppix.vbox file.
NOTE: Should you still have difficulty running Knoppix on your home machine/laptop you may ask your
Learning Centre ULG leaders for additional help in troubleshooting why Knoppix was not working on your home machine/laptop. - Allow a little time for the Knoppix Linux distribution to start. This is a graphical Linux distribution which will start-up in a desktop environment.
NOTE: You are NOT prompted for a username and password because this is a Linux Live distribution,
and you have been assigned a generic account. - On the bottom left-hand side, click on the Knoppix start menu (similar to the Windows start menu).
- In the start menu, select System Tools
- In the system tools menu, scroll down and select to launch the terminal application called xterm
- In the bash shell, issue the following Linux command: whoami
What is the name of your generic Knoppix Linux Live account? - Issue the following command to connect to your Matrix account (when prompted for your password, enter your MySeneca password as you do when checking your MySeneca email. NOTE: Nothing appears on the screen as you type your password but ensure you press Enter when done.): ssh yourSenecaId@matrix.senecacollege.ca
Where you able to connect to your Matrix account? - After logging in to your Matrix account, issue the following command to terminate your Matrix session: exit
- Make certain to close your xterm application.
- Use the Knoppix start menu to launch a web-browser and go to the Google website.
- Use the Knoppix start menu to select Office and then select LibreOffice - Writer to launch a word processor application.
- Create a small document and save changes to your home directory using your first name, and exit the Libreoffice word processing document.
- Use the Knoppix start menu to select logout, then select shutdown to terminate your Knoppix Linux Live session.
- Repeat the steps to launch a new Knoppix Linux Live session.
- Use the Knoppix start menu to launch a graphical file manager.
- In the file manager, search for your word processing document file that you saved on your home directory. Is there document there. If not, why?
- Use the Knoppix start menu to shutdown your Knoppix Linux Live session.
- Work on the Linux practice questions located at the bottom of this tutorial.
LINUX PRACTICE QUESTIONS
The purpose of this section is to obtain extra practice to help with quizzes, your midterm, and your final exam.
Here is a link to the MS Word Document of ALL of the questions displayed below but with extra room to answer on the document to simulate a quiz:
https://ict.senecacollege.ca/~murray.saul/uli101/uli101_week7_practice.docx
Your instructor may take-up these questions during class. It is up to the student to attend classes in order to obtain the answers to the following questions. Your instructor will NOT provide these answers in any other form (eg. e-mail, etc).
Review Questions:
- Define the term Linux Distribution.
- List and explain two advantages of installing a Linux distribution on your home computer or laptop.
- List and explain two things to consider prior to installing a Linux distribution on your home computer.
- Explain why installing Multi-boot for Linux is useful for computer troubleshooting.
- Define the term Virtualization.
- List the steps to boot the Knoppix Linux distribution from a Workstation at Seneca College.
- List the steps to boot the Knoppix Linux distribution from a CD or USB from your home computer.
- List the home pages of the Linux distributions shown in the Linux distribution image above.