#/bin/sh ## Disable SE Linux cp /etc/selinux/config /etc/selinux/config-bak sed 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config-bak > /etc/selinux/config ## modify fstab default security cp /etc/fstab /etc/fstab.orig sed '/\/tmp/s/defaults/noexec,nosuid/g' /etc/fstab.orig > /etc/fstab #add default nameserver echo "nameserver 64.38.192.12" >> /etc/resolv.conf #sync clock rdate -s clock.psu.edu #disable unnecessary services chkconfig portmap off chkconfig nfslock off chkconfig xinetd off chkconfig cpuspeed off chkconfig firstboot off chkconfig gpm off chkconfig iptables off chkconfig rpcgssd off chkconfig rpcidmapd off chkconfig smartd off #fedora related post install shizm #update yum and install stress util cd /etc/yum.repos.d/ mv fedora-updates.repo /root/fedora-updates.repo wget http://192.168.200.3/fedora-updates.repo wget http://192.168.200.3/fedora-extras.repo rpm --import /usr/share/rhn/RPM-GPG-KEY rpm --import /usr/share/rhn/RPM-GPG-KEY-fedora rpm --import http://192.168.200.3/RPM-GPG-KEY-Fedora-Extras yum -y update mv /etc/yum.repos.d/fedora-updates.repo /root/fedora-updates.repo.kstart mv /root/fedora-updates.repo /etc/yum.repos.d/fedora-updates.repo yum -y install stress cd /usr/src