Skip to content

Instantly share code, notes, and snippets.

@zaininnari
Last active December 16, 2015 00:10
Show Gist options
  • Save zaininnari/5345918 to your computer and use it in GitHub Desktop.
Save zaininnari/5345918 to your computer and use it in GitHub Desktop.
#!/bin/sh
/bin/sed -i 's/ONBOOT="no"/ONBOOT="yes"/g' /etc/sysconfig/network-scripts/ifcfg-eth0
service networking restart
/bin/sed -i 's/#PubkeyAuthentication yes/PubkeyAuthentication no/g' /etc/ssh/sshd_config
service sshd reload
yum -y install sudo
yum -y groupinstall "Development Tools"
groupadd vagrant
useradd vagrant -g vagrant -G wheel
echo "vagrant"|passwd --stdin vagrant
echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment