Tag: ubuntu

How To Install LAMP in Ubuntu

Step-by-step instructions on how to install LAMP (Linux Apache MySQL PHP) in Ubuntu.

Before we start, it’s best to do an update:

Apache

Install the webserver.

PHP5

Install PHP5 along with it’s apache module.

MySQL

Install MySQL along with it’s php and apache modules.

Then restart the server with:

Alternative, you can ignore everything above and just run the following commands:

Presumably, it just installs the same things, only with less typing copy pasting.

How to Install VirtualBox Guest Additions in Ubuntu Server 12.04

Had this Evernote’d, seems incomplete (and I don’t know how accurate it is) but I’ll post this anyway, might become useful one day…

To save my non geek readers, of which I don’t believe I have any (readers that is…) from having to scroll through blocks of useless code/jargon. Click the link below for what should be a fairly accurate step-by-step guide on how to install VirtualBox guest additions in Ubuntu Server 12.04, along with how to auto mount your shared folders.

Installing VirtualBox Guest Additions on Ubuntu Server 12.04

  1. sudo apt-get install dkms
  2. sudo apt-get install build-essential
  3. sudo apt-get install linux-headers-uname -r
  4. sudo reboot
  5. cd /media
  6. sudo mkdir cdrom [if doesn’t exist]
  7. sudo mount /dev/cdrom /media/cdrom
  8. cd cdrom
  9. ls
  10. Run the relevant installer:
  11. sudo ./VBoxLinuxAdditions.run

Auto mount shared folder

  1. comment out the share mounting lines in /etc/fstab
  2. edit the /etc/rc.local file [not the /etc/init.d/rc.local file] to add the mount points in the form of: mount.vboxsf -w HOST_FOLDER /MOUNT_POINT

e.g. my original /etc/rc.local file contained the following:

It now looks like this: