• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Forget MAMP and WAMP, Use Virtual Box to Have a Real Ubuntu Server
 

Forget MAMP and WAMP, Use Virtual Box to Have a Real Ubuntu Server

on

  • 6,532 views

Session from DrupalCamp Wisconsin 2010

Session from DrupalCamp Wisconsin 2010

Statistics

Views

Total Views
6,532
Views on SlideShare
6,329
Embed Views
203

Actions

Likes
1
Downloads
24
Comments
0

8 Embeds 203

http://aaroncouch.info 184
http://www.zivtech.com 13
http://www.slideshare.net 1
https://www.zivtech.com 1
http://zivtech_redesign.local 1
http://zivtech.biters 1
http://zivtech.dev.zivtech.com 1
http://www.docshut.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Forget MAMP and WAMP, Use Virtual Box to Have a Real Ubuntu Server Forget MAMP and WAMP, Use Virtual Box to Have a Real Ubuntu Server Presentation Transcript

    • Forget MAMP and WAMP, Use Virtual Box to Have a Real Ubuntu Server DrupalCamp Wisconsin July 23 rd 2010
    • Ingredients
      • Virtualbox
      • Ubuntu Server 9.10
      • Drubuntu
      • LAMP
    • Why VirtualBox? Advantages:
      • Cross-platform
      • Large user-base / documentation
      • You are using the real deal!
      • Difficulty
      • Networking
    • Why Drubuntu?
      • Takes care of LAMP package installation
      • Community supported
    • Cooking time
      • Downloading and installing VirtualBox (30 minutes)
      • Downloading and installing Ubuntu (60 minutes)
      • Configuring LAMP (60 minutes)
    • Installing Ubuntu Server
    • Installing Ubuntu Server
    •  
    •  
    • Bridged vs. NAT
      • NAT hides behind the IP address of the VM host
      • Bridged creates its own virtual network interface
    • Connecting to Your VM
      • Add SSH to your ubuntu vm “apt-get install ssh”
      • If you are using bridged adapter type “ifconfig” to find your host ip address
      • ssh to your devm using that ip address (using putty in windows)
    • Port Forwarding
      • If you are using NAT adapter in Windows you must use port forwarding to connect through ssh
      • For instructions google “ssh port forwarding virtualbox”
    • Package management in Ubuntu
      • Using apt or aptitude
      • To get updates type “apt-get update” and “apt-get upgrade”
      • To install new packages type “apt-get” package-name
    • Installing Drubuntu
      • See http://drupal.org/project/drubuntu
      • Copy and Paste “ wget 'http://drupalcode.org/viewvc/drupal/contributions/modules/drubuntu/drubuntu-bootstrap.sh?view=co' -Odrubuntu-bootstrap.sh ; cat drubuntu-bootstrap.sh ; read -n1 -p "Run above script? (y/n)" ; bash drubuntu-bootstrap.sh ”
    • Managing Your LAMP
      • Webroot is /var/www
      • Apache settings /etc/apache
      • To access mysql type “mysql”
      • Hosts file /etc/hosts
    • Installing Drupal on Your VM
      • Go to webroot “cd /var/www”
      • Make sure you have ownership of webroot (root does by default)
      • “sudo chown username:username /var/www
      • “drush dl drupal”
    • Adding a database
      • “mysql -e” from the command line
      • 'mysql -e “creat database NAME”'
      • “create user 'USERNAME'@'localhost' identified by PASSWORD”
      • “grant all privileges on *.* to 'USERNAME'@'localhost'”
      • Or use phpmyadmin
    • Add Virtual Host
      • Should be able to start off with http://vboxipaddress/folder
      • Virtual hosts allow you to user internal site names (ie mysite.local)
    • Add a Virtual Host cont.
      • “cd /etc/apache/sites-available”
      • “cp default myhostname”
      • Update vhost file with internal hostname
      • “a2ensite myhostname”
      • change hosts file in host OS
    • What Does Drubuntu Do? LAMP Packages: curl php5-curl php5-xdebug php5-gd php-apc php5-mcrypt php5-dev php-pear libmagic-dev dnsmasq cvs subversion svn-load git-core bzr meld mysql-query-browser mysql-admin phpmyadmin ghex siege gworldclock konqueror wine cabextract opera google-chrome-beta
    • Running Headless Turn on: VBoxManage startvm VMNAME -type headless Turn off: VboxManage controlvm NMNAME poweroff
    • Using NAT with Host-only adapter Add network interface in ubuntu /etc/network/interfaces
    • Vim! Settings in /home/username/.vimrc