Ch01 administrators-tasks

Embed Size (px)

DESCRIPTION

Linux Server Administration

Citation preview

  • 1. Linux Server Admin Administrators Task Chatchai J 2012-11-08

2. Administrators Task System/Server Admin ? 3. Admins Task ? ? 4. SAs Role Appendix A The Practice of System and NetworkAdministrations2nd, Addison Wesley, 200750 $US 5. Sas Role ! 6. Linux Administration Books http://www.linuxtopia.org/online_books/ On-line, Free ( ??) Search google 7. Essential System Administration 8. Essential System Admin (1st ed) Introduction to System Admins Jobs Superuser Communication with users Admins tools UI Unix Ways Files Processes Devices Unix Filesystems Layout 9. Essential System Admin (cont.) Startup and Shutdown Boot Process Starting a boot Initialization Script Shuting down and halts System crash When system wont boot User Accounts Adding new user Unix Groups 10. Essential System Admin (cont.) Security 11. Essential System Admin (cont.) Security () Trust No One include yourself Backup Have plan B Read good books (available on internet) and practice . 12. Essential System Admin (cont.) Security () () 13. Security () ! / 14. Essential System Admin (cont.) Automating Routine Tasks Using Scripts Periodic Program Execution (cron) Managing System Resources Monitoring System Load Controlling Execution Priorities Process Resource Limits Managing Memory Managing Disk (quota) 15. Essential System Admin (cont.) Filesystems and Disks mounting and dismounting (mount) managing disk space usage (df, du) check and validate filesystem disk and filesystems adding disks ... 16. Essential System Admin (cont.) Backup and Restore 17. Backup and Restore 18. Backup and Restore () Murphys Law 19. Backup and Restore () amanda backup rsync, etc. (backup on disk) backuppc commercial solution ( !) 20. Essential System Admin (cont.) Terminal and modems () Printer and spooling ( ) TCP/IP Network Management Accounting 21. Essential System Admin (3rd ed. 2002) http://www.amazon.com/Essential-System-Administration-Techniques-Edition/dp/0596003439#reader_0596003439See Chapters List 22. Other books? http://www.goodreads.com/shelf/show/system-administrationPopular System Admin Book- #1 The Practice - #2 Essential System - #3 Time Management for System Admin.. 23. Debian System Admin superuser on debian su sudoadd new package to system apt-get install PACKAGE debian repository /etc/apt/sources.listadd contrib and non-freeremove deb-src we dont need source packages for server change security.debian.org to ftp.th.debian.org/debian-securityupgrade from squeeze to wheezy 24. /etc/apt/sources.list /etc/apt/sources.list.d # apt-get update error ! 25. We need sudo command# apt-get install sudo# apt-get remove sudo# dpkg -l | grep sudo# ls -l /etc/sudo*# apt-get purge sudo# dpkg -l | grep sudo sudo # dpkg -L sudo# dpkg -l sudo 26. Package Management# apt-get install PACKAGE# apt-get remove PACAKAGE# apt-get purge PACKAGE# apt-cache search PACKAGE|KEYWORDS# apt-cache show PACKAGE 27. Package Management using aptitude aptitude full text windows, and command line# aptitude# aptitude install sudo# aptitude remove sudo# aptitude purge sudo# aptitude search sudo# aptitude show sudo# man aptitude synaptics GUI package management util 28. Update & Upgrade$ sudo apt-get -y update &&sudo apt-get -y upgrade &&sudo apt-get clean &&sudo apt-get -y autoremove