Skip to topic | Skip to bottom
Home
Socialtools
login



Socialtools.StandardConfigFilesr1.1 - 09 Nov 2003 - 10:59 - TWikiGuesttopic end

Start of topic | Skip to actions

Config files in /etc

For the initial Debian installation

/etc/bash.bashrc

Add this to support programmable completion in all interactive shells:

# enable bash completion in interactive shells

if [ "$PS1" -a -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi

/etc/profile

Should contain:

# Use Maildir mailboxes for everyone.
MAIL=~/Maildir

# The 'bin' directories of software installed under /usr/local
LOCAL_PATH=

# The 'man' directories of software installed under /usr/local
LOCAL_MANPATH=

PATH=/usr/bin:/bin:/usr/bin/X11:/usr/games:$LOCAL_PATH
MANPATH=/usr/share/man:/usr/X11R6/man:$LOCAL_MANPATH

# Any Perl modules in unorthodox places.
PERL5LIB=

# Make CPAN.pm use passive FTP, because we're behind a firewall.
FTP_PASSIVE=1

if [ "$BASH" ]; then
  PS1='\u@\h:\w\$ '
  if [ -f /etc/bash.bashrc ]; then
    source /etc/bash.bashrc
  fi
else
  if [ "`id -u`" -eq 0 ]; then
    PS1='# '
  else
    PS1='$ '
  fi
fi

export MAIL PATH MANPATH PS1 FTP_PASSIVE PERL5LIB

umask 022

See StandardSourceInstalls for an explanation of LOCAL_PATH, LOCAL_MANPATH and PERL5LIB.

/etc/hosts

Should contain:

127.0.0.1 localhost
10.0.0.243 myserver.example.org myserver

/etc/kernel-pkg.conf

As per the RaidLvmHowto, you need to add this:

# make symoblic links in /boot instead of /
image_in_boot := True

The result is /etc/kernel-pkg.conf.

/etc/crontab

Some system maintenance tasks need to be done about every three months, so we modify /etc/crontab to run scripts quarterly. Those scripts go in /etc/cron.quarterly (make sure to create this directory by typing mkdir /etc/cron.quarterly).

One such script, /etc/cron.quarterly/fsck-reminder, sends an email reminding root to fsck the ext3 filesystems, since this isn't done automatically (see RaidLvmHowto for an explanation). Remember to make this script executable when you install it.

After the full standard configuration

/etc/fstab

If you created the filesystems recommended in StandardRaidLvm, you should have this /etc/fstab.

/etc/resolv.conf

After you set up BIND, this should contain just one line:

domain example.org

/etc/init.d/sysklogd

In StandardBind, we explain how to run BIND in a chroot jail; this requires telling the system logging daemon to provide a Unix domain socket in the chroot jail. To do this, add this line:

SYSLOGD="-a /chroot/named/dev/log"

StandardRssh has a similar requirement. If you are using rssh, add:

SYSLOGD="$SYSLOGD -a /chroot/www/dev/log"

/etc/syslog.conf

See StandardSympa.
to top

I Attachment sort Action Size Date Who Comment
fstab manage 1.2 K 02 Feb 2003 - 16:16 BenjaminGeer /etc/fstab
kernel-pkg.conf manage 1.0 K 02 Feb 2003 - 16:54 BenjaminGeer /etc/kernel-pkg.conf
crontab manage 0.8 K 03 Feb 2003 - 02:05 BenjaminGeer /etc/crontab
fsck-reminder manage 0.1 K 28 Apr 2003 - 21:47 BenjaminGeer /etc/cron.quarterly/fsck-reminder

You are here: Socialtools > ServerConfigStandard > StandardConfigFiles

to top

Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Open-org? Send feedback