Skip to content

Instantly share code, notes, and snippets.

@phillf
Last active June 11, 2021 18:02
Show Gist options
  • Save phillf/c851ef7ce076830a1aedf3ef0d9854aa to your computer and use it in GitHub Desktop.
Save phillf/c851ef7ce076830a1aedf3ef0d9854aa to your computer and use it in GitHub Desktop.
TWHC Base Install
#
# TWHC Base CentOS Config
# Last Updated: Sunday 21 July 2019
#
# Update system packages
yum update -y
# Install Mandatory packages
yum install sssd realmd oddjob oddjob-mkhomedir adcli samba-common samba-common-tools krb5-workstation openldap-clients policycoreutils-python vim -y
# Add Sudoers
echo "%TPA-FL\ Linux\ Admin\ Grant ALL=(ALL) ALL" > /etc/sudoers.d/twhc-grant
# Config complete messaging
echo "Base config complete!"
echo "To join this machine to the domain run: \"realm join --user=UserName DomainName.tld\""
echo "System Information"
hostnamectl
echo "IP Address"
hostname -I
#
# TWHC Base Ubuntu Config
# Last Updated: Sunday 21 July 2019
#
# Update system packages
sudo apt update -y
# Install Mandatory packages
sudo apt -y install realmd libnss-sss libpam-sss sssd sssd-tools adcli samba-common-bin oddjob oddjob-mkhomedir packagekit
sudo apt -y install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
# Add Sudoers
echo "%TPA-FL\ Linux\ Admin\ Grant ALL=(ALL) ALL" > /etc/sudoers.d/twhc-grant
# Config complete messaging
echo "Base config complete!"
echo "To join this machine to the domain run: \"realm join --user=UserName DomainName.tld\""
echo "System Information"
hostnamectl
echo "IP Address"
hostname -I
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment