Create your own linux/mysql/php development box for Windows or Mac OS X

Download iso of ubuntu server edition 11
	http://www.ubuntu.com/download/server/download
Download VirtualBox
	http://www.virtualbox.org/wiki/Downloads


Install VirtualBox
	
Create a new VM with 1000mb ram and 20GB of storage
	- bridge the network connection
	- default install (enable openssh server)
	
$ sudo su -
$ visudo
$ vim /etc/network/interfaces
	auto eth0
	iface eth0 inet static
			address 192.168.7.55
			netmask 255.255.255.0
			gateway 192.168.7.1

$ /etc/init.d/networking restart
$ ifconfig
$ ping google.com  //confirms internet connectivity
$ apt-get update  //update package manager sources
$ apt-get install mysql-server  //install mysql
$ apt-get install apache2
$ apt-get install php5
$ php -v  //confirm php 5.3.5
$ apt-get install samba  //install samba
$ vim /etc/samba/smb.conf
	- enable (uncomment) [homes]
	- read only = no
	- create mask = 0775
	- directory mask = 0775
$ sudo smbpasswd myusername
$ /etc/init.d/smbd restart //restart samba service to apply changes
	- should be able to connect to your smb share via windows or mac (http://support.apple.com/kb/HT1568)
$ apt-get install git-core

Leave a Comment