So before you get into reading this article, I have to say this is going to be all technical. This area is for me to use as a reminder to find info easier than thumbing through a thick redhat book…

Partitions

for webserver

  • 02gb swap
  • 05gb /
  • 20gb /home
  • 10gb /usr
  • 30gb /opt
  • 40gb /var/www
  • 10gb /var/video
  • 40gb /var

turning on the network interfaces at boot up

  • edit the /etc/sysconfig/network file and make sure you have NETWORKING=yes and your HOSTNAME=yourhostname
  • edit the /etc/hosts file and make entries for localhost.localdomain localhost and other hosts needed
  • edit the /etc/resolv.conf file and put in the dns servers
  • edit the /etc/sysconfig/network-scripts/ifcfg-XXXX and put in:

ifcfg:

    DEVICE=XXXX
    BOOTPROTO=dhcp
    ONBOOT=yes

or for static

    DEVICE=XXXX
    BOOTPROTO=none
    ONBOOT=yes
    NETWORK=###.###.###.###
    NETMASK=###.###.###.###
    IPADDR=###.###.###.###
    USERCTL=NO

controlling services when they start/stop to make a list of services when they start/stop in the init runlevels:

chkconfig --list

to list only one service

chkconfig --list <service name>

to change when a service is started or stopped at init levels

chkconfig --level <levels> <service name> [on|off|reset]

to use a text based manager for the current level

ntsysv

to use a text based manager for multiple levels

ntsysv --levels <levels>

enabling quotas

  1. edit the fstab table and mark the selected partitions with ro,acl,acl,usrquota,grpquota
  2. restart the server
  3. run quotacheck -uvg <device name> to build files for first time </ol> package managment to register the rhn package management:
    rhn_register (as root)
    before installing packages, make sure you get your GPG key! its found on the root directory of your cd/dvd disk and installed with the following:
    rpm --import <key file>
    to verify the key has been installed:
    rpm -qa gpg-pubkey*
    to view the details of the key:
    rpm -qi <key's name>
    to list available packages for installing with yum:
    yum list available
    to list dependancies:
    yum deplist <package name>
    to show updates that should be applied:
    yum list updates
    to apply all updates from the command above:
    yum update
    to apply an update to a list of packages:
    yum update <package name> <package name>
    system boot process to change the system run levels in command line:
    ntsysv --level <levels>
comments powered by Disqus