Skip to content

Instantly share code, notes, and snippets.

@casimiroarruda
Created July 22, 2014 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save casimiroarruda/b830bb7125b970b510f7 to your computer and use it in GitHub Desktop.
Save casimiroarruda/b830bb7125b970b510f7 to your computer and use it in GitHub Desktop.
Build environment ubuntu 14.04 simple
#!/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