0

[Linux]Various cleanup after installing CentOS 4.4

This will apply to both x86 and x86_64 servers. Various cleanups are : Edit /etc/hosts 127.0.0.1 localhost.localdomain localhost xxx.xxx.xxx.xxx server.example.com server Usually selinix is not needed and if it is set on permissive it just outputs alot of logs Edit /etc/selinux/config SELINUX=disabled SELINUXTYPE=targeted Import the GPG keys for software packages # rpm –import /usr/share/rhn/RPM-GPG-KEY* Update the system # yum update -y Install some software packages # install fetchmail wget bzip2 unzip zip nmap openssl lynx fileutils ncftp gcc gcc-c++ NTP Setup yum install ntp chkconfig –levels 235 ntpd on ntpdate 0.pool.ntp.org /etc/init.d/ntpd start

0

[FreeBSD]Network Time Server

To setup NTP on FreeBSD : Edit /etc/rc.conf ### Network Time Services options: ### ntpd_enable=”YES” ntpd_program=”/usr/sbin/ntpd” ntpd_flags=”-p /var/run/ntpd.pid -f /var/db/ntpd.drift” Create /etc/ntp.conf server time.nist.gov prefer server 127.127.1.0 fudge 127.127.1.0 stratum 10 driftfile /var/db/ntpd.drift Reboot the computer or start ntpd manually # ntpd -p /var/run/ntpd.pid -f /var/db/ntpd.drift

0

[FreeBSD]Updating Sources with CVSup

If the sources are not installed in /usr/src use sysinstall to install it : # /usr/sbin/sysinstall edit /etc/make.conf and add WITHOUT_X11=yes Install the CVSup port # cd /usr/ports/net/cvsup-without-gui # make && make install && make clean Create the work directory /usr/local/etc/cvsup/sup # mkdir -p /usr/local/etc/cvsup/sup Create the file /usr/local/etc/cvsup/sup/supfile *default host=cvsup4.FreeBSD.org *default base=/usr/local/etc/cvsup *default prefix=/usr *default release=cvs tag=RELENG_6 *default delete use-rel-suffix *default compress src-all ports-all tag=. Install the portupgrade utility to make managing ports easier # cd /usr/ports/sysutils/portupgrade # make && make install && make clean Create /usr/local/bin/cvsrun to automate CVSup #! /bin/sh # cvsrun – Weekly CVSup Run echo… Continue Reading