Administration
  Home arrow Administration arrow Page 11 - Kernel, Cron, and User Administration,...
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ADMINISTRATION

Kernel, Cron, and User Administration, Part 2
By: McGraw-Hill/Osborne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 7
    2004-10-06

    Table of Contents:
  • Kernel, Cron, and User Administration, Part 2
  • Updating Your Boot Loader
  • The Kernel Source Tree and Documentation
  • The Kernel RPMs
  • GUI Kernel Source Management
  • The Linux Kernel tar File
  • Understanding Kernel Configuration Options
  • Compiling and Installing a Custom Kernel
  • The cron and at Systems
  • Setting Up cron for Users
  • Certification Summary
  • Self Test
  • Lab Questions
  • Self Test Answers
  • Lab

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    The Best Selling PC Migration Utility.
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Kernel, Cron, and User Administration, Part 2 - Certification Summary
    (Page 11 of 15 )

    You can have great control over how your Linux installation is set up and configured. You can control almost all aspects of the user environment, as well as the details of your kernel. Any variables or system-wide functions you may need to run can be kept in the /etc/bashrc or /etc/profile script.

    You can set up quotas to limit the user’s disk usage. You can set up one quota per partition, and set soft and hard limits for users. With grace periods, you can set up a soft limit to give users an appropriate warning.

    The easiest way to update a kernel is to install (and not upgrade it) from a Red Hat RPM. When you do, it automatically updates your boot loader files as needed.

    Alternatively, the kernel can be optimized for your particular installation and hardware, and you have detailed control over its configuration. To make a modular kernel, you need to run six commands: make mrproper, make config, make dep, make clean, make modules, make modules_install and make install. If you are compiling a monolithic kernel, you will notneed to run the last two module-related commands.

    The cron and at daemons allow you to schedule jobs to run at any given time.

    Two-Minute Drill 

    Here are some of the key points from the certification objectives in Chapter 5.

    Shell Configuration Files

    • All system-wide shell configuration files are kept in the /etc directory.
    • /etc/profile is the system-wide startup shell script for bash users.
    • All users have hidden shell configuration files in their home directories.

    Setting Up and Managing Disk Quotas

    • Quotas are used to limit a user’s or a group of users’ ability to consume disk space.
    • Quotas are set on specific filesystems mounted to standard Linux formats.
    • Quota support must be enabled in the kernel. By default, quotas are enabled in RHEL 3 kernels.
    • Quotas have soft limits and hard limits. If both soft and hard limits are set, then a user can exceed his or her soft limit for a modest period of time.
    • Users and groups may never exceed their hard limits.

    The Basics of the Kernel

    • The kernel lies at the heart of the operating system.
    • You can recompile Linux kernels to minimize size and maximize efficiency.
    • To optimize the Linux kernel, it is a best practice to compile kernels with only needed elements, and configure modules for most hardware.
    • Modular kernels, with separate device modules, are more efficient than monolithic kernels, where device drivers are integrated into the kernel.
    • If you’re going to update your kernel, you should keep a copy of your current working kernel.
    • There are a number of RHEL 3 kernels available for different types of CPU and levels of RAM.
    • Linux kernels and related files are stored in the /boot directory.
    • The /proc directory provides a window to what Linux sees in your computer.
    • Changing the values of variables in the /proc directory can change the behavior of your running kernel. For example, setting ip_forward = 1 enables routing.
    • Kernel modules are managed by a special kernel thread, kmod. Additional settings can be configured through /etc/modules.conf.
    • The lsmod command lists currently loaded modules; important related commands are insmod, rmmod, and modprobe.
    • Basic RHEL 3 modules are stored in the /lib/modules/2.4.21-4.EL directory.

    New Kernels, the Easy Way

    • Kernel version numbers are organized in major.minor.patchformat. Red Hat adds a build number to the Linux kernels that it builds from source code.
    • It’s fairly easy to install a Red Hat kernel from RPM, as long as you remember to install and not upgrade. This allows you to return to the current working kernel if you have a problem.
    • Sometimes, what you need is a kernel patch, which supports upgrades of one patch version number. Unfortunately, patches are not always compatible with Red Hat built kernels.
    • It’s important to create a new boot floppy whenever you install a new kernel.
    • When you install a Red Hat kernel from RPM, the process should automatically update your boot loader (GRUB or LILO).

    Kernel Sources

    • The kernel source tree is accessible through /usr/src/linux-2.4, which is normally linked to the actual directory with kernel source files.
    • Kernel sources can be loaded from the kernel-source RPM or from a Linux kernel tarball downloaded from a site such as ftp.kernel.org.

    Recompiling a Kernel

    • Your current kernel configuration is stored in the config-versionnumberfile in the /boot directory.
    • You can modify kernel settings from the /usr/src/linux-2.4 directory with one of the following commands: make config, make menuconfig,or make xconfig. The last two lead to a long series of menus.
    • Once you’ve made the proper backups and boot disks, set the EXTRAVERSION variable in your Makefile, run the make mrproper command, and placed current settings in /usr/src/linux-2.4/.config, you’re ready to modify your kernel.
    • Once you’ve settled on and saved your changes, run the make dep, make clean, make bzImage, make modules, make modules_install, and make install commands, you’ve compiled your new kernel, and it should be ready for use from the GRUB boot loader.

    The cron and at Systems

    • The cron system allows any user to schedule jobs so they run at given intervals.
    • The at system allows users to configure jobs to run once at a scheduled time.
    • The crontab command is used to work with cron files. Use crontab -e to edit, crontab -l to list, or crontab -d to delete cron files.
    • The /etc/cron.allow and /etc/cron.deny files are used to control access to the cron job scheduler.

    This is part one from the fifth chapter of Red Hat Certified Engineer Linux Study Guide (Exam RH302), fourth edition, by Michael Jang. (McGraw-Hill/Osborne, 2004, ISBN: 0-07-225365-7). Check it out at your favorite bookstore today. Buy this book now.

    More Administration Articles
    More By McGraw-Hill/Osborne


     

       

    ADMINISTRATION ARTICLES

    - Configuring Load-Balanced Clusters
    - Load-Balanced Clusters
    - UNIX Time Format Demystified
    - Making Changes in the CVS
    - Building Your First CVS Repository
    - CVS Quickstart Guide
    - Authorizing Users in Samba
    - Handling User Accounts in Samba
    - Authentication in Samba
    - Accounts, Authentication, and Authorization
    - Advanced Concepts on Dealing with Files and ...
    - Dealing with Files and Filesystems
    - More Hacks for the User Environment in BSD
    - Personalizing the User Environment in BSD
    - Customizing the User Environment in BSD




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway