bootstrap.sh 590 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. rm /etc/localtime
  3. ln -s /usr/share/zoneinfo/Europe/London /etc/localtime
  4. setenforce 0
  5. sed -i "s/SELINUX=enforcing/SELINUX=permissive/g" /etc/sysconfig/selinux
  6. yum update -y && yum clean all
  7. yum install -y tcpdump krb5-workstation ntp
  8. systemctl stop firewalld
  9. systemctl disable firewalld
  10. systemctl enable ntpd
  11. cat <<EOF >> /etc/sysctl.conf
  12. net.ipv6.conf.all.disable_ipv6 = 1
  13. net.ipv6.conf.default.disable_ipv6 = 1
  14. net.ipv6.conf.lo.disable_ipv6 = 1
  15. EOF
  16. mkdir -p /var/log/kerberos
  17. cp /vagrant/krb5.conf /etc/krb5.conf
  18. echo "10.80.88.88 kdc.test.gokrb5" >> /etc/hosts
  19. reboot