Last active
May 9, 2020 17:54
-
-
Save sierra-tango-echo/d80422313b86f88f539aceb6695a4016 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
search cloud.pri.rscfd1.alces.network pri.rscfd1.alces.network mgt.rscfd1.alces.network ib.rscfd1.alces.network bmc.mgt.rscfd1.alces.network rscfd1.alces.network whiteways.tech | |
nameserver 10.10.0.51 | |
echo 'ZONE="Europe/London"' > /etc/sysconfig/clock | |
ln -snf /usr/share/zoneinfo/Europe/London /etc/localtime | |
yum -y install ntpdate | |
yum -y install vim | |
cat << "EOF" > /etc/profile.d/flightcenter.sh | |
#Custom PS1 with client name | |
[ -f /etc/flightcentersupported ] && c=32 || c=31 | |
if [ "$PS1" ]; then | |
PS1="[\u@\h\[\e[1;${c}m\][cloud-cfdhpc1]\[\e[0m\] \W]\\$ " | |
fi | |
EOF | |
touch /etc/flightcentersupported | |
echo 'PEERDNS=no' >> /etc/sysconfig/network-scripts/ifcfg-eth0 | |
echo 'PEERROUTES=no' >> /etc/sysconfig/network-scripts/ifcfg-eth0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment