- Download the Ubuntu Server ISO: http://www.ubuntu.com/download/server
- Create a new container and install Ubuntu Server Don't use the Setup Wizard to do this, instead mount the ISO and use Ubuntu's setup process During the install process, also add the LAMP + OpenSSH + Samba modules when asked
More info: http://www.artandlogic.com/blog/2013/10/running-vmware-fusion-6-headless/
- Open AppleScript and make a new script with the following code:
do shell script "sudo /Applications/'VMware Fusion.app'/Contents/Library/vmrun -T fusion start /Users/[username]/Documents/'Virtual Machines.localized'/'Ubuntu 64-bit.vmwarevm' nogui" with administrator privileges
(Replace [username] with the name of your Mac's user folder)
-
Save your file as an AppleScript Application: "Start Headless Server" and add a shortcut to your dock
-
Duplicate the Applescript and modify the code to:
do shell script "sudo /Applications/'VMware Fusion.app'/Contents/Library/vmrun -T fusion stop /Users/[username]/Documents/'Virtual Machines.localized'/'Ubuntu 64-bit.vmwarevm' soft" with administrator privileges
(Replace [username] with the name of your Mac's user folder)
- Save your file as an AppleScript Application: "Stop Headless Server" and add a shortcut to your dock
- Right click on the new AppleScript Applications, go to Get Info, and paste in a funky icon to help differentiate the scripts
- Start the server and ssh into it using Terminal / iTerm2 using the credentials you set up during Ubuntu installation (you did write those details down, didn't you?)
- Set up user login accounts: https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-12-04
- Set up SSH Keys to connect from host machine -> VPS -> Production Server: https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2
- Set up SFTP / VSFTPD: https://help.ubuntu.com/10.04/serverguide/ftp-server.html (Make sure you make the home folder of ftp point to /var/www/
sudo usermod -d /var/www/ ftp
Some commands may require "sudo" to be run or else they might fail.
- Install VMWare Tools: http://www.ehowstuff.com/how-to-install-vmware-tools-on-ubuntu-14-04/
- Install PHPMyAdmin:
sudo apt-get install phpmyadmin
and read setup instructions for Ubuntu 13.10+, then visityour.ip.address/phpmyadmin
- Install Webmin: http://ubuntuhandbook.org/index.php/2013/12/install-webmin-official-repository-ubuntu/ then visit
your.ip.address:10000
- Install Git:
apt-get install git
- Install node.js + NPM
- Install Ruby using Ruby Version Manager: http://rvm.io/rvm/install
\curl -sSL https://get.rvm.io | bash -s stable --ruby
- Install Sass (Ruby Gem):
gem install sass
http://sass-lang.com/install - Install Compass:
gem install compass
http://compass-style.org/install/ - Install PIP: https://www.npmjs.org/package/pip
- Install Bower: http://bower.io/#getting-started
- Install Grunt: http://gruntjs.com/getting-started and https://github.com/gruntjs/grunt-contrib-sass
- Install Guard-livereload: gem install guard-livereload https://github.com/guard/guard-livereload
- Install Sass-Grunt connector:
sudo npm install grunt-contrib-sass --save-dev
- Install GIT Prompt: https://github.com/magicmonty/bash-git-prompt