Project 0, Linux Dabbling CS-3013 A-term 20081 Project 0: Linux & Virtual Machine Dabbling CS-3013, Operating Systems.

Slides:



Advertisements
Similar presentations
Installing DOS and Windows98 under MS Virtual PC.
Advertisements

Dayu Zhang 9/8/2014 Lab02. Example of Commands pwd --- show your current directory This is home of venus, not your home directory Tilde: means you are.
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
Logging into ITAMS as an Exempt Employee To Login to ITAMS for the first time: Open your web browser. Click File, Open, and type the following address:
Project 1CS-3013 A-term Programming Project #1 Forking Processes Due Tuesday, September 8, 11:59 PM.
Project 0: Linux & VM Dabbling CS-3013, C-term Project 0: Linux & Virtual Machine Dabbling CS-3013, Operating Systems.
Project #2, Linux Kernel Modifications CS-502 Fall Programming Project #2 Linux Kernel Hacking CS-502 Operating Systems Fall 2006.
Project 0: Linux & VM Dabbling CS-502, Fall Project 0: Linux & Virtual Machine Dabbling CS-502, Operating Systems.
Guide To UNIX Using Linux Third Edition
Guide To UNIX Using Linux Third Edition
Project 0 -- Linux Dabbling CS-502 (EMC) Fall Project 0 Linux & Virtual Machine Dabbling CS-502, Operating Systems Fall 2009 (EMC)
Overview Basic functions Features Installation: Windows host and Linux host.
Project 0 -- Linux Dabbling CS-3013 A-term Project 0 Linux & Virtual Machine Dabbling CS-3013, Operating Systems.
Getting Started with Linux: Novell’s Guide to CompTIA’s Linux+ (Course 3060) Section 2 Use the Linux Desktop.
Cap 333 Network Administration. Grades  20 marks distributed on  Assignments / Project Activities Individual Pairs  1 or 2 tutorial quizzes.
Red Hat Installation. Installing Red Hat Linux is the process of copying operating system files from a CD, DVD, or USB flash drive to hard disk(s) on.
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Introduction to UNIX/Linux Exercises Dan Stanzione.
Introduction to. What is Office 365 Office 365 is the same Office you already know and use every day. Office 365 is powered by “the cloud” which is a.
1 Web Server Administration Chapter 3 Installing the Server.
Chapter 9 Part II Linux Command Line Access to Linux Authenticated login using a Linux account is required to access a Linux system. The Linux prompt will.
CSN08101 Digital Forensics Lecture 1B: Essential Linux and Caine Module Leader: Dr Gordon Russell Lecturers: Robert Ludwiniak.
DIY: Your First VMware Server. Introduction to ESXi, VMWare's free virtualization Operating System.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
Hands-On Virtual Computing
File Recovery and Forensics
Unix Basics Chapter 4.
CENT 305 Information Systems Security Linux Introduction.
University of Management & Technology 1 Operating Systems & Utility Programs.
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
1 FreeBSD Installation ISOC/AfNOG Michuki Mwangi (Original materials by Hervey Allen – NSRC)
Installation Overview Lab#2 1Hanin Abdulrahman. Installing Ubuntu Linux is the process of copying operating system files from a CD, DVD, or USB flash.
Chapter 2: Installation Overview Part 1. Installing Fedora/RHEL is the process of copying operating system files from media to the local system and setting.
1 ITI 1120 Lab # 1 An Introduction to the Lab Environment Contributors: G. Arbez, M. Eid, D. Inkpen, A. Williams, D. Amyot.
SUSE Linux Enterprise Desktop Administration Chapter 14 Customize the Graphical Interface on SUSE Linux Enterprise Desktop 10.
Diagnostic Pathfinder for Instructors. Diagnostic Pathfinder Local File vs. Database Normal operations Expert operations Admin operations.
Cap 333 Network Administration. Grades  20 marks distributed on  Assignments / Project Activities Individual Pairs  1 or 2 tutorial quizzes.
Welcome to CS323 Operating System lab 1 TA: Nouf Al-Harbi NoufNaief.net.
Linux Operations and Administration Chapter Two Installing OpenSUSE.
1 FreeBSD Installation AFNOG X Cairo, Egypt May 2009 Hervey Allen.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
FTP COMMANDS OBJECTIVES. General overview. Introduction to FTP server. Types of FTP users. FTP commands examples. FTP commands in action (example of use).
The Kernel At a high level, the kernel in an operating system serves as the bridge between applications and the actual data processing of the hardware.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
Virtual Machines. A virtual machine takes the layered approach to its logical conclusion. It treats hardware and the operating system kernel as though.
HOW TO INSTALL WINDOWS 7? This step-by-step guide demonstrates how to install Windows 7 Ultimate. The guide is similar for other versions of Windows 7.
CEG 2400 FALL 2012 Linux/UNIX Network Operating Systems.
Active-HDL Server Farm Course 11. All materials updated on: September 30, 2004 Outline 1.Introduction 2.Advantages 3.Requirements 4.Installation 5.Architecture.
Chap 1 ~ Introducing LINUX LINUX is a free-stable multi-user operating system that derives from UNIX operating system Benefits: 1) Linux is released under.
VMware Recovery Software RECOVER DATA FROM CORRUPT VMDK FILE.
2Operating Systems  Program that runs on a computer  Manages hardware resources  Allows for execution of programs  Acts as an intermediary between.
Using Virtualization in the Classroom
Operating System Kernel Compilation
CS1010: Intro Workshop.
CSC227: Operating Systems
Installation and Configuration
Using Linux and Lab Setup OS Lab 1
9 Linux on the Desktop.
Create A Virtual Machine
Virtual Machines.
Project 0: Linux and Virtual Machine Dabbling
Operating System Kernel Compilation
Using Virtual Machines to Teach CS-502 Operating Systems
Project 0: Linux & Virtual Machine Dabbling
SUSE Linux Enterprise Desktop Administration
Linux as a Virtual Machines
Linux Operations and Administration
Windows.
Operating System Kernel Compilation
Windows Operating System
Presentation transcript:

Project 0, Linux Dabbling CS-3013 A-term Project 0: Linux & Virtual Machine Dabbling CS-3013, Operating Systems

Project 0, Linux Dabbling CS-3013 A-term In this project, we will … Install our virtual machines and learn how to use them –This is the place you will work during this course! Build and install the Linux kernel –With your name on it! Follow Linux naming & numbering conventions Turn in the project using web-based Turnin

Project 0, Linux Dabbling CS-3013 A-term In this project, we won’t … … try to change anything in the kernel yet This is for a future project … try to support more than one machine architecture However, 32-bit and 64-bit architectures are different at the kernel level! Hardware-level code for different processor families is organized differently in kernel source code! Your kernel is not portable from one to another

Project 0, Linux Dabbling CS-3013 A-term Installing your Virtual Machine in the Fossil Lab Log into any Fossil Lab workstation Your user ID Your Fossil password (from TAs) Open VMware Workstation Select “Open an existing Virtual Machine” Navigate to folder P:\CS-3013\A-term 2008\Clonable SUSE Linux 10.3 (32-bit) Double click on SUSE Linux (a VMware Configuration File) Select “Clone this Virtual Machine” Select Linked Clone Choose snapshot = Template for clones Save in your home directory on H drive (or on your desktop)

Project 0, Linux Dabbling CS-3013 A-term Starting your Virtual Machine Start your virtual machine When it starts Click in virtual machine screen Use arrow keys to select OpenSUSE 10.3 Login is as student, password = CS-3013 Switching between Host and Guest Click in guest window to focus mouse and keyboard Type CTL-ALT to return focus to host …

Project 0, Linux Dabbling CS-3013 A-term Starting your Virtual Machine (continued) Full screen mode Type CTL-ALT-Enter to switch to or from guest full screen Interrupting CTL-ALT-DEL always goes to host system Use VM menu command to “send CTL-ALT-DEL to guest”

Project 0, Linux Dabbling CS-3013 A-term KDE – a Linux GUI interface Looks and acts a lot like Windows or Mac GUI Many similar tools and applications “Start” menu is in lower left corner under the “Gecko” icon YaST, the SUSE administration tool Select User and group administration Create new user identity for yourself Log out, log in as new identity, delete student

Project 0, Linux Dabbling CS-3013 A-term YaST, the SUSE administration tool A much more efficient/effective way to manage your system Administer hardware, software, users, services, etc. Root password CS-3013 (same as student password) Access via third tab under “Gecko” icon Use it to set up your own user ID Delete student ID

Project 0, Linux Dabbling CS-3013 A-term Other Notes When input focus is in guest window Inserted CD/DVD is recognized by guest OS Same for USB flash drive Snapshots Makes a record of the state of your virtual machine Any subsequent changes are made in copy-on-write mode Shared folder with host operating system Seems to work this term!

Project 0, Linux Dabbling CS-3013 A-term Share your thoughts and experiences in the Fossil Lab with your colleagues Use the class list!

Project 0, Linux Dabbling CS-3013 A-term Questions?

Project 0, Linux Dabbling CS-3013 A-term To get started with kernel build Find kernel sources in /usr/src –i.e., a link to /home/src –Current version is linux Clone kernel source tree by linked copy: – –In a command shell, do cp –al /usr/src/linux kernelSrc –Creates a linked copy of original tree in new directory called kernelSrc –Or whatever you wish to name it

Project 0, Linux Dabbling CS-3013 A-term Digression on Unix/Linux Hard Links Directory entries point directly to files Two directory entries may point to same file! Same or different directories (within same file system) Same or different name Name attached to directory, not file Permissions & attributes attached to file, not directory Called hard links (as opposed to symbolic links) Modifications to file seen thru all hard links mv and rm commands change directories, not files! File goes away when all directory entries (i.e., hard links) to that file are deleted and file is closed.

Project 0, Linux Dabbling CS-3013 A-term Cloned Source Tree All directories are copied All directory entries are hard-linked to files in original source tree I.e., only one copy of each file exists To modify a file:– Unlink it in your directory (via mv or rm ) Replace with modified copy in your directory Original still remains intact in original directory

Project 0, Linux Dabbling CS-3013 A-term To Modify a File mv file.c file.c~ Edit file.c~ in your favorite editor Save as file.c (Eventually) rm file.c~ EMACS and patch do this automatically Most other editors require you to do it manually

Project 0, Linux Dabbling CS-3013 A-term To Build Linux Kernel “Make configuration” step –As ordinary user Build kernel files and modules –As ordinary user Install modules, boot file, etc. –Need root privileges

Project 0, Linux Dabbling CS-3013 A-term To Build Linux Kernel (continued) Always build to a separate destination tree mkdir ~/kernelDst make O=~/kernelDst … Reason –Making the configuration generates a lot of include files and other sources –If you don’t specify a destination, it fills up your source tree –Your patch files grow to megabytes!

Project 0, Linux Dabbling CS-3013 A-term Making the Configuration In a command shell –cd kernelSrc Do one of:– –make O=~/kernelDst config Very long and tedious –make O=~/kernelDst menuconfig Still somewhat long and tedious; also hokey –make O=~/kernelDst xconfig Nicer; a reasonable GUI with very small print –make O=~/kernelDst gconfig Really nice; a better GUI; highly recommended

Project 0, Linux Dabbling CS-3013 A-term Make configuration (continued) Edit “General Setup” line to name your “Local version” No other edits necessary for this project. Save and quit If need to rebuild, use make O=~/kernelDst oldconfig to reuse same configuration

Project 0, Linux Dabbling CS-3013 A-term To Build Kernel In a terminal window (i.e., a shell), do: – –cd kernelSrc –make –j4 O=~/kernelDst Takes ~30 minutes on dual-core 2.4 GHz Core Duo, 1 GByte RAM in VM (2 GByte real memory) Almost 1.25 hours on 3 gigahertz Pentium, 3 GByte Rebuilds after small edits are much faster Changing.h files causes longer rebuilds

Project 0, Linux Dabbling CS-3013 A-term Note: building with multiple processors Generally faster to do –cd kernelSrc –make –j4 O=~/kernelDst –j = number of concurrent build “jobs” SUSE advice –2  number of processors –Fossil Lab workstations have two processors (dual core)

Project 0, Linux Dabbling CS-3013 A-term Warnings Lots of warnings from files you never touched Not your problem No warnings allowed in your own code! In this course

Project 0, Linux Dabbling CS-3013 A-term For Project Submission Redirect build output to a file Submit –A subset of that file (this project only) –Output of uname –a command

Project 0, Linux Dabbling CS-3013 A-term To Install Kernel Requires root privileges –sudo make modules_install install –Root password = CS-3013 –Note order of arguments! Puts kernel, initrd file, symbols in /boot –Changes links for vmlinuz, initrd Adds entries to /boot/grub/menu.lst –So your kernel shows up on boot screen –So you can select which kernel to boot

Project 0, Linux Dabbling CS-3013 A-term Running Your Kernel Restart your virtual machine Click in boot window Use arrow keys to select desired kernel or system To determine which kernel is running:– –uname -a

Project 0, Linux Dabbling CS-3013 A-term Submitting your Project From within your virtual machine, visit – Log in Submit output of your build as Project 0 This is to test the ability to submit projects from the virtual machine!

Project 0, Linux Dabbling CS-3013 A-term Project Due Due date:– –Tuesday, September 2, 6:00 PM Normally, projects are due the afternoon before class, but this due date is extended to accommodate problems, questions, etc.

Project 0, Linux Dabbling CS-3013 A-term Questions?