Last active
March 29, 2016 08:02
-
-
Save claudinec/dcf1a7d9c3b662f78475 to your computer and use it in GitHub Desktop.
vagrant-scripts
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 | |
# Originally copied from https://linode.com/docs/applications/configuration-management/vagrant-linode-environments | |
apt-get install apache2 -y | |
mv /etc/apache2/ports.conf /etc/apache2/ports.conf.backup | |
mv /etc/apache2/ports1.conf /etc/apache2/ports.conf | |
a2dissite 000-default.conf | |
a2ensite vhost.conf | |
service apache2 reload |
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 | |
# Originally copied from https://linode.com/docs/applications/configuration-management/vagrant-linode-environments | |
echo "vagranttest" > /etc/hostname | |
hostname -F /etc/hostname | |
ip=$(ip addr show eth0 | grep -Po 'inet \K[\d.]+') | |
echo "$ip $ip hostname" >> /etc/hosts | |
ln -sf /usr/share/zoneinfo/EST /etc/localtime | |
apt-get update && apt-get upgrade -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
apt-get install lamp-server^