Created
July 22, 2014 13:56
-
-
Save casimiroarruda/b830bb7125b970b510f7 to your computer and use it in GitHub Desktop.
Build environment ubuntu 14.04 simple
This file contains 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 | |
#install ubuntu 14.04 server, LAMP + Openssh server stacks | |
echo '# 2nd networkcard' >> /etc/network/interfaces | |
echo 'auto eth1' >> /etc/network/interfaces | |
echo 'iface eth1 inet dhcp' >> /etc/network/interfaces | |
/etc/init.d/networking restart | |
ifup eth1 | |
apt-get update && apt-get upgrade | |
#reboot | |
#insert virtualbox linux additions cd | |
apt-get install php5-dev php5-mysqlnd php5-xdebug php5-xsl php5-cli php5-json php5-readline build-essential gcc avahi-daemon linux-headers-`uname -r` dkms | |
mount /dev/cdrom /media/cdrom && cd /media/cdrom | |
./VBoxLinuxAdditions.run | |
mkdir /mnt/Projects | |
echo 'Projects /mnt/Projects vboxsf rw,fmode=0777,dmode=0777 0 0' >> /etc/fstab | |
echo vboxsf >> /etc/modules | |
#reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment