System Administration: Linux Track 2 Workshop June 2010 Pago Pago, American Samoa.

Slides:



Advertisements
Similar presentations
Static Routing Exercise AFNOG 2003/ Track 2 # 1 Static Routing Exercise u Unix network interface configuration u Cisco network interface configuration.
Advertisements

Static Routing Exercise. What will the exercise involve?  Unix network interface configuration  Cisco network interface configuration  Static routes.
CIS 193A – Lesson9 Network Infrastructure. CIS 193A – Lesson9 Focus Question What are three high level subnets a corporate intranet will want to support?
Intel® Manager for Lustre* Lustre Installation & Configuration
Static Routing Exercise Scalable Infrastructure Workshop AfNOG 2011.
Linux network troubleshooting If your network connection is not working..
Operating Systems Concepts 1/e Ruth Watson Chapter 11 Chapter 11 Network Maintenance Ruth Watson.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 4 Installing and Configuring the Dynamic Host Configuration Protocol.
Getting Started with Linux: Novell’s Guide to CompTIA’s Linux+ (Course 3060) Section 2 Use the Linux Desktop.
Network Performance Toolkit (NPToolkit) A Knoppix Live-CD Rich Carlson Tools Tutorial 12/4/06.
Module 9 - Networking. 1.Network Concepts and Commands 2.Network Files 3.Network Services 4.Configure a network device 5.Network File-System (NFS & CIFS)
Using the jFed tool to experiment from zero to hero Brecht Vermeulen FGRE, July 7 th, 2015.
© 2010 VMware Inc. All rights reserved VMware ESX and ESXi Module 3.
Installing Linux Redhat: A how to guide in installing and configuring Redhat 6.2.
PacNOG 6: Nadi, Fiji Installing Ubuntu Server 9.04 Hervey Allen Network Startup Resource Center.
Objectives  Understand the purpose of the superuser account  Outline the key features of the Linux desktops  Navigate through the menus  Getting help.
Securing LAMP: Linux, Apache, MySQL and PHP Track 2 Workshop PacNOG 7 July 1, 2010 Pago Pago, American Samoa.
INFO 320 Server Technology I Week 6 Networking 1INFO 320 week 6.
Linux Operations and Administration
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 7 Connect the SUSE Linux Enterprise Server to the Network.
Terminal and Console Access Unix/IP Preparation Course May 29, 2011 Dar es Salaam, Tanzania.
V Avon High School Tech Crew Agenda Old Business –Delete Files New Business –Week 10 Topics: Coming up: –Yearbook Picture: Feb 7 12:20PM.
Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql.
The Network Management Lab pc pc pc pc pc Virtual Servers Your Laptop.
Connecting to Network. ♦ Overview ► A network connection is required to communicate with other computers when they are in a network. Network interface.
Static Routing Exercise u Unix network interface configuration u Cisco network interface configuration u Static routes u Default route u Testing.
System Administration and Basic Functionality Version 4.0 – September 2007 Q-Advisor Quick Start.
Using the jFed tool to experiment from zero to hero Brecht Vermeulen Thijs Walcarius GEC 22, March 24 th, 2015.
Working with Ubuntu Linux Track 2 Workshop June 2010 Pago Pago, American Samoa.
1 FreeBSD Installation ISOC/AfNOG Michuki Mwangi (Original materials by Hervey Allen – NSRC)
Configuring BackTrack Michael Holcomb, CISSP Upstate ISSA Chapter.
Cisco Confidential © 2010 Cisco and/or its affiliates. All rights reserved. 1 MSE Virtual Appliance Presenter Name: Patrick Nicholson.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 4 Installing and Configuring the Dynamic Host Configuration Protocol.
Graphing and statistics with Cacti AfNOG 11, Kigali/Rwanda.
Static Routing Exercise
PacNOG 6: Nadi, Fiji Terminal and Console Access Hervey Allen Network Startup Resource Center.
1 FreeBSD Installation AFNOG X Cairo, Egypt May 2009 Hervey Allen.
Networking in Linux. ♦ Introduction A computer network is defined as a number of systems that are connected to each other and exchange information across.
How to connect to the Internet 1998/12/09 KEIO University, JAPAN Mikiyo
Networking in Linux: a brief overview. TCP/IP  TCP/IP concepts we have seen are applicable to Linux (a version of UNIX, where TCP/IP started)  Some.
Static Routing Exercise Mark Tinka & Isatou Jah. What will the exercise involve?  Unix network interface configuration  Cisco network interface configuration.
© 2008 Cisco Systems, Inc. All rights reserved.CIPT1 v6.0—1-1 Getting Started with Cisco Unified Communications Manager Installing and Upgrading Cisco.
PacNOG 7: Pango Pango, American Samoa Terminal and Console Access Hervey Allen Network Startup Resource Center.
Poor Man’s VIRL How to run VIRL as Bare Metal on resource-constrained PC (works on as well) Dec 30, 2015 Kaoru Yamashita.
Terminal and Console Access Unix/IP Preparation Course July 19, 2009 Eugene, Oregon, USA
1 FreeBSD Installation AFNOG Chix 2011 Blantyre, Malawi 31 st Oct - 4 th Nov 2011 Dorcas Muthoni and Evelyn Namara.
Linux Operations and Administration
Static Routing Exercise AFNOG 2002 / track 2 # 1 Static Routing Exercise u Unix network interface configuration u Cisco network interface configuration.
Lab 8 Overview Apache Web Server. SCRIPTS Linux Tricks.
Module 14: Advanced Topics and Troubleshooting. Microsoft ® Windows ® Small Business Server (SBS) 2008 Management Console (Advanced Mode) Managing Windows.
Chapter 4: server services. The Complete Guide to Linux System Administration2 Objectives Configure network interfaces using command- line and graphical.
Linux and Coldfusion MX Mid-Michigan Coldfusion User’s Group, Nov
Using Networks. Assignment Issues find syntax Permissions HW4 3c /proc vs /tmp vs /var.
Chapter 7: Using Network Clients The Complete Guide To Linux System Administration.
LINUX Network Concepts M.S.Dibay Moghaddam Second Linux Festival Amir Kabir University of Technology Computer & IT Department.
Using Linux Kaya Oğuz Room: 310.
Home Networking CCCC Linux Desktop SIG August 20, 2007.
Linux network troubleshooting
VMware ESX and ESXi Module 3.
Using the jFed tool to experiment from zero to hero
Network Configuration
Chapter 2: Configure a Network Operating System
Running your own web server
Unix Linux Administration I
Advanced Network Training
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
Chapter 2: Configure a Network Operating System
OPS235: Week 1 Installing Linux (Lab1: Investigations 4 - )
Module 12 Network Configuration
Presentation transcript:

System Administration: Linux Track 2 Workshop June 2010 Pago Pago, American Samoa

Concepts to be Covered We will do numerous exercises to reinforce these ides: Run levels Terminal and Console Access Out of Band (OoB) Configuring Your Network Interfaces RAID Backup Strategies Deployment System Monitoring Using SSH (intro)

Classic Linux Runlevels Looks like this: For more details see:

How do we Use This? In modern Linux we largely don’t, except for: init 0 init 1 init 5 (or “exit” from runlevel 1) init 6 See “man init” for more details. init 0  Stop our system init 1  Single User Mode or “emergency mode” init 5  Day to day use init 6  Reboot our server

How do we Use This? What happens at each runlevel? init 0  Links in /etc/rc0.d are executed. init 1  Links in /etc/rc1.d are executed. Login as root user only. Minimal file system access. init 5  Links in /etc/rc5.d are executed. Gui is started. Day-to-day working state. init 6  Scripts in /etc/rc6.d are executed.

With Ubuntu We Actually Do… What happens at each runlevel? init 0  Links in /etc/rc0.d are executed. init 1  Links in /etc/rc1.d are executed. Login as root user only. Minimal file system access. init 2-5  Links in /etc/rc5.d are executed. Gui is started. Day-to-day working state. init 6  Scripts in /etc/rc6.d are executed.

With Ubuntu We Actually, Actually Do… As of Ubuntu Server 9.10 the System V init system has largely been replaced with an asynchronous initialization system called upstart. Upstart is written/created by Canonical, the makers of Ubuntu:

What Starts X/X.Org/Gnome/KDE? Previously GUI started at runlevel 5. Default runlevel was defined in /etc/inittab For runlevel 5 in /etc/inittab X/X.Org (GUI) was often started. Now we define default runlevel in /etc/init/rc-sysinit.conf Now we define if/how Gnome (KDE, etc.) start in /etc/init/gdm.conf

It’s All Pretty Cool You have complete control over your system! The default configuration is very likely all you need, but you can change system bootup and behavior exactly as needed if you wish. Now we’ll look at a short Terminal and Consoles presentation and exercise.

This page intentionally blank

Configuring Your Network Interfaces You can do this manually: # ifconfig eth netmask (Anyone know what size network this is?) You might need a gateway… # route add default gw (We’ll describe this in detail later) Upon reboot your changes will be lost

Configuring Your Network Interfaces To make changes stick edit: /etc/network/interfaces For one of our classroom PCs: # The primary network interface auto eth0 iface eth0 inet static address netmask network broadcast gateway dns-nameservers dns-search pacnog.bluesky.as

Virtual Interfaces or Network Aliases You can make a single NIC look like 2, or more… # ifconfig eth0: netmask What’s the “eth0:0”? How you can bind multiple IP addresses to one NIC on a host. To make this permanent…

Network Aliases cont. In the file /etc/network/interfaces: # The primary network interface auto eth0 iface eth0 inet static address netmask network broadcast gateway dns-nameservers dns-search pacnog.bluesky.as auto eth0:0 iface eth0:0 inet static address netmask gateway See “Man interfaces” for more information

Network Configuration Telling your system where to look for DNS: /etc/resolv.conf Telling your system what your host’s name is: /etc/hosts /etc/hostname The file /etc/hosts is “poor man’s DNS”

Exercises Change your machine’s IP address $ sudo ifconfig eth XX netmask See if you can ping someone else in the classroom. Address range is to 110 $ ping XX When you are done set your network back the way it was: $ sudo /etc/init.d/networking restart

RAID and Backup Separate presentation

Deployment Deploying lots of servers… Should we do this by hand? You could use “the cloud” -Google -Amazon -Cisco -others… Virtual images: -VMWare -VirtualBox (truly free, so far) -Citrix -Parallels -others…

Deployment Continued Deployment tools: rsync G4L (Ghost 4 Linux) Cfengine Puppet

System Monitoring A massive topic! Bottom line – something needs to be monitoring your box in some way so that you know when something unusual happens… Logging? Requires secondary tools to parse your logs and notify you of events.

System Monitoring Continued A few possibilities Simple to verify services are still up and running: Nagios Cacti Munin OpenNMS Zabbix Home grown scripts Notification is a bit trickier. Nagios is very good at this.

System Monitoring Continued Monitoring for other items… What about: System load Responsiveness Disk space RAID volume in degraded state Excessive processes Overheating etc Previous tool set can do this. Generally will need installed client, snmp service or scripts using ssh.

SSH – Your most important tool To admin a Linux/Unix box ssh is the tool. With ssh you can: Connect securely and remotely to boxes you administer. Connect to boxes on private networks using ssh tunneling tricks. Connect using public/private key pairs to avoid the use of passwords. Write scripts to back up your boxes remotely and automatically. Create simple, easy-to-use admin tools: -We have done this for this class and will demonstrate now.

SSH – Your most important tool We’ll do more in-depth SSH exercises later this week. For now, we are setting the tone: SSH is how you work as a system administrator in the world of Linux and Unix.