Last active
December 23, 2015 15:29
-
-
Save boardstretcher/6655517 to your computer and use it in GitHub Desktop.
clean install of scientific linux 6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Clean minimal install of Scientific Linux 6/Centos 6 | |
#Additional Security Removed (iptables, selinux) | |
#For additional hardening Information: | |
#http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Security_Guide/index.html | |
# initial installation | |
#use SL Install DVD (minimal install only exists on DVD) | |
#boot | |
#[tab] for Kernel Parameters (linux text asknetwork ) | |
#Select "minimal install" | |
#Log into system | |
# update system | |
yum update -y | |
# disable ip6 | |
echo "" >> /etc/sysctl.conf | |
echo "# Disable IPV6" >> /etc/sysctl.conf | |
echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf | |
echo "net.ipv6.conf.default.disable_ipv6 = 1" >> /etc/sysctl.conf | |
# disable iptables | |
chkconfig ip6tables off | |
chkconfig iptables off | |
# disable selinux | |
sed -i 's/\=enforcing/\=disabled/g' /etc/selinux/config | |
# install epel repo | |
yum install -y epel-release | |
# change annoying blue directory color to something readable | |
sed -i 's/DIR\ 01\;34/DIR\ 40\;33/g' /etc/DIR_COLORS | |
# add time and date to history for security | |
echo "export HISTTIMEFORMAT=\"[%h/%d .. %H:%M:%S] - \"" >> /etc/bashrc | |
# add colorized grep results for easy reading | |
echo "export GREP_OPTIONS='--color=auto'" >> /etc/bashrc | |
echo "export GREP_COLOR='1;32'" >> /etc/bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment