Module 8 - Process Management. 1.Linux boot loader 2.Linux boot process 3.Linux processes 4.Linux services 5.Linux top 6.Remember proc ? 7.Linux Device.

Slides:



Advertisements
Similar presentations
Booting and Shuting Down WeeSan Lee. Roadmap Bootstrapping Boot Loaders Startup/Init Scripts Reboot & Shutdown Q&A.
Advertisements

Genesis: from raw hardware to processes System booting sequence: how does a machine come into life.
Chapter 9: Understanding System Initialization The Complete Guide To Linux System Administration.
Week 8 System Initialization and X Windows. Objectives  Summarize the major steps necessary to boot a Linux system  Configure the LILO and GRUB boot.
Linux can be generally divided into four major components: 1. KERNEL – OS, ultimate boss The kernel is the core program that runs programs and manages.
Booting the Linux Kernel Dr. Michael L. Collard 1.
Linux+ Guide to Linux Certification, Third Edition
Booting And Shutting Down. Bootstrapping  Bootstrapping is standard term for “starting up a computer”  During bootstrapping the kernel is loaded into.
Using tcpdump. tcpdump is a powerful tool that allows us to sniff network packets and make some statistical analysis out of those dumps. tcpdump operates.
Linux Intro Linux, the do it yourself OS Linux, successor to MINIX Linux, Unix for the masses (PC users) History:
Linux Boot Up Process Bootstrapping –Bootstrapping is the standard term for “ starting up a computer”. During bootstrapping, the kernel is loaded into.
1 Web Server Administration Chapter 3 Installing the Server.
Starting and Stopping Linux. Boot Process BIOS initializes hardware –Loads the boot sector MBR loads the bootloader –Point to kernel Kernel initializes.
Processes & Daemons Chapter IV / Part III. Commands Internal commands: alias, cd, echo, pwd, time External commands, code is in a file: grep, ls, more.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 1 Introduction to Managing the SUSE Linux Enterprise Server.
System Startup and Shutdown
UNIX Startup and Shutdown CSCI N321 – System and Network Administration Copyright © 2000, 2012 by Scott Orr and the Trustees of Indiana University.
File System and Directory Structure in Linux. What is File System In a computer, a file system is the way in which files are named and where they are.
Configuring Disk Quotas Linux System Administration To implement disk quotas, use the following steps: Enable quotas per file system by modifying /etc/fstab.
Booting and boot levels
Yi Shen Mar 18 th, Backup workshop Stanford Exploration Project.
System Startup & Shutdown Objectives –to interpret the Unix startup and shutdown configuration files –to be able to create a customised run level Contents.
1 Linux Basics for Networking. 2 Module - Linux Basics for Networking ♦ Overview This module focuses on the basics of networking using Redhat Enterprise.
Project 2. “Linux Fundamental” procfs By Dong Jae Shin.
COSC 4750 Customizing and maintenance. Installing software Redhat/Fedora (and linux in general) has a package installer, called rpm Many programs will.
UNIX Startup and Shutdown CSCI N321 – System and Network Administration Copyright © 2000, 2010 by Scott Orr and the Trustees of Indiana University.
Guide to Linux Installation and Administration, 2e1 Chapter 10 Managing System Resources.
Linux Administration. Pre-Install Different distributions –Redhat, Caldera, mandrake, SuSE, FreeBSD Redhat Server Install –Check HCL –Significant issues.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 6 Manage Linux Processes and Services.
Agenda Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Review next lab assignments Break Out Problems.
Guide to Linux Installation and Administration1 Chapter 4 Running a Linux System.
System Startup & Shutdown
Managing processes and services. 1. How Linux handles processes 2. Managing running processes 3. Scheduling processes.
CIS Lesson 5 Lesson 5 New Skills Boot time GRUB edits (review) Changing BIOS boot order on a VM (review) Mounting CD ISO and floppy Image files on.
EMT 2390L Lecture 5 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts.
Linux Startup Process Presenter: Dipu Gupta.
Linux Security. Module 13 – Linux Security ♦ Overview Linux is more prone today to security loopholes and attacks, both inside and outside the network.
Review Please hand in any homework and practicals Vim Scripting Inter-device communication.
CIT 500: IT Fundamentals Startup. Slide #2 Topics 1.Booting 2.Bootstrap loaders 3.Run levels 4.Startup scripts 5.Shutdown and reboot.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop V Files and the File System Part B – File System.
System Administration. Logging in as System Administrator System Admin login (aka superuser, aka root) –login id: root –Default PS1 prompt: # –Home directory:
UNIX Startup and Shutdown CSCI N321 – System and Network Administration Copyright © 2000, 2009 by Scott Orr and the Trustees of Indiana University.
Linux Kernel Programming (LKP). LKP New sub-course New sub-course We will learn together We will learn together Evaluation of this part of course will.
135 Shutdown and Reboot Version A.01 H3064S Module 17 Slides.
The Linux Operating System R.Bigelow. What is an Operating System An operating system is a collection of programs that manage a computer's resources.
Linux Processes Last Update Copyright Kenneth M. Chipps Ph.D. 1.
Sys Admin Course Service Management Fourie Joubert.
System initialization Unit objectives A.Outline steps necessary to boot a Linux system, configure LILO and GRUB boot loaders, and dual boot Linux with.
1 Setup and Compile Linux Kernel Speaker: Yi-Ji Jheng Date:
This slide deck is for LPI Academy instructors to use for lectures for LPI Academy courses. ©Copyright Network Development Group Module 10 Understanding.
Overview A) Power on or reset B) 1st stage boot loader C) 2nd stage boot loader D) Operate system.
Day 1 Tasks How do you backup the MBR (Master Boot Record) of a hard disk? How do you backup the primary partition table of an MBR type hard disk? How.
System Administration Startup Process. Why Care? ● Every process on your system comes about by following a specific chain of events from the machine startup.
The Linux Kernel About 6 million lines of code
The Boot Process The process of bringing the system from an "off" status to a running state is known as “booting”. The boot process takes place in four.
Operating System Basics
Package Management.
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
Package Management.
UBUNTU INSTALLATION
Proc File System Sadi Evren SEKER.
Chapter 11 – Processes and Services
Linux Start Sequence Summary
Operating System Kernel Compilation
SUSE Linux Enterprise Desktop Administration
The Boot Process The process of bringing the system from an "off" status to a running state is known as “booting”. The boot process takes place in four.
COP 4343 Unix System Administration
SUSE Linux Enterprise Desktop Administration
Configuring Disk Quotas
Presentation transcript:

Module 8 - Process Management

1.Linux boot loader 2.Linux boot process 3.Linux processes 4.Linux services 5.Linux top 6.Remember proc ? 7.Linux Device Management 8.Linux Massages log 9.Schedule tasks with cron Process Management

/boot directory How to configure the grub boot loader using grub.conf Linux boot loader

the init process and the boot flow Linux run levels /etc/init.d the init command changing default run level /etc/inittab Booting into single mode from the boot-loader menu Linux boot process

Find a process with ps # ps aux # ps –ef Kill a process with kill # kill -15 PID # kill -9 PID Linux processes

System-V Scripts The Init directories rc.local The chkconfig command Linux services

top free the /proc directory Linux Top

dmesg kudzu lsmod lspci lsusb Linux Device Management

/var/log/massages is the main kernel log Jul 7 14:20:59 NX102 kernel: iscsi: registered transport (be2iscsi) Jul 7 14:20:59 NX102 kernel: ADDRCONF(NETDEV_UP): eth0: link is not ready Jul 7 14:20:59 NX102 kernel: 8021q: adding VLAN 0 to HW filter on device eth0 Jul 7 14:20:59 NX102 kernel: e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control Jul 7 14:20:59 NX102 kernel: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready Jul 7 14:20:59 NX102 kernel: scsi1 : iSCSI Initiator over TCP/IP Linux Massages log

Schedule tasks with cron

# crontab -l # crontab -e * * * /home/ilanit/ort.sh > /dev/null 2>&1 cron daemon

1.Go to run level 3 2.Find your current run level 3.set your default init to 3 4.reboot and enter single mode, then change the run level back to 5. 5.Open a firefox browser, find the browser PID and kill it gently. 6.find all the services set to run in run level 5 7.set the cups server to start at all relevant levels 8.set the linux firewall not to start at all run levels Exercise

9.create a new title in the boot loader and call it Linux-Your-Name 10. Set this to be the default title. 11. Set the boot loader count down to 10 seconds 12. Add a new Virtual Hard Drive (1GB) to the VirtualBox Linux guest. 13. Reboot and check with dmesg to locate this new disk. 14.Create a cron job that will run every day at 12:30 past midnight (AM) and will look for files with 777 perm and save a list of the files under /tmp Exercise

15. Create a list of all linux usb and pci devices. 16. issue the lsmod mode and examine the output, do you see the Bluetooth driver loaded ? 17. what is this file ? # /etc/sysconfig/hwconf 18. Can you manually run kudzu ? 19. How many processes are currently running ? 20. Open 6 firefox browsers. can you kill them all In one single command ? 21. How can you count the linux cpu cores in one command ?

cat /proc/cpuinfo | grep -i cores | tr -s " " | awk '{print $4}' | wc -m