Linux Configuration Files
Overview
- The configuration files in the etc directory play the same role in Linux
that the registry does in Windows.
- The big difference is that you can write comments in a configuration file
- Learn about fstab, ftpaccess, hosts.deny, and many other key configuration
files.
- Learn to use LinuxConf to configure many of these files.
- Back up your configuration files!
rc.d/rc.local
fstab
exports
resolv.conf
httpd.conf
network
- What I'm talking about here is how networking us set up under RedHat and
Mandrake and other RedHat derivatives
- The network file establishes the basic info about your network environment
NETWORKING=yes
HOSTNAME=shadowfax
GATEWAYDEV=eth0
GATEWAY=10.254.2.17
ifcfg-eth0
- This is how you set up your ethernet connection
- The file is located in /etc/sysconfig/network-scripts/
DEVICE=eth0
USERCTL=no
ONBOOT=yes
BOOTPROTO=none
BROADCAST=10.254.2.31
NETWORK=10.254.2.0
NETMASK=255.255.255.224
IPADDR=10.254.2.16
inetd and xinetd
httpd
- In some cases, you may want to change, or uncomment: ServerName localhost
User apache
Group apache
User ccalvert
Group nobody
#CGI Module
ScriptAlias /scripts/ "/home/ccalvert/scripts/"
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
At the very end of the file, and this is the most important part:
SetEnv LD_LIBRARY_PATH /home/ccalvert/kylix/bin:/home/ccalvert/kylix
SetEnv HOME /home/ccalvert
SetEnv LANG en_us