Ubuntu 8.04 LTS (Hardy Heron) Apache-PHP-MySQL Server

Once again, here's my updated simple installation of Apache, PHP and MySQL in Ubuntu 8.04 LTS (Hardy Heron) Server.

  1. Install SSH Client and Server (for my remote access)
    sudo apt-get install ssh
  2. Install Database Server
    sudo apt-get install mysql-server-5.0
  3. Install Apache HTTP Server
    sudo apt-get install apache2
  4. Install PHP5 and Apache PHP5 module
    sudo apt-get install php5 libapache2-mod-php5
  5. Restart Apache
    sudo /etc/init.d/apache2 restart

How to connect to your remote Linux Desktop (Ubuntu 8.04) in Mac

From your Mac, how you can connect to your remote Ubuntu desktop?

Note: This is also applicable to other Linux desktop with some variations in step 1-3

  1. Open Remote Desktop Preferences
    System -> Preferences -> Remote Desktop
  2. Enable Sharing by desired
  3. Select Security as desired

How to read CHM file in Ubuntu and other Debian based Linux

Some of my ebooks are in chm format and there is no default application that can read this file.

To install chm reader in Ubuntu, open your terminal and enter the following command:

sudo apt-get install xchm

How to install common multimedia codecs in Ubuntu

Sometimes you you want to play some music or video but it doesn't allow you because it asked for some strange codecs that you may not understand :)

Good news is, it relatively easy to download most of them all together.

Here's how:

  1. Switch to super user
    sudo -s -H
  2. Update and upgrade your present system by using these two separate commands
    apt-get update

    apt-get upgrade

  3. Here's now the magic; install the following common codecs

How to know what version of Ubuntu you're using

With Ubuntu's LTS (Long Time Support) and usual 6 months release cycle, sometimes you tend to confuse or forget what version of Ubuntu you are using.

How to know what version of Ubuntu you're using?

Easy! Fire up your your terminal and type this command:

lsb_release -a

How to quit applications in iPhone

Did you experience while checking email and while waiting to finish downloading new emails, you press the Home button and open other applications like for example Safari browser or notes and after some time the vibration and alert sound for new email will come up? As like any other UNIX machine, iPhone is capable of doing multiple tasks at the same time. Cool!

Now, the problem is how you can assure that there is no other unneeded applications are running (except the phone process) that will surely waste your battery?

iPhone's Two-Finger Tap

We know we can double-tap iPhone to "zoom in" whatever you tap and magnifying it like in Safari, Photos and Google Maps.

But do you know that can also use your two fingers to tap?

Yes, two-finger (single) tap on the screen “zoom out” Google Maps.
Pretty good shortcut combination with one finger double tap for zooming in.

How to copy CD/DVD Disk in Ubuntu

Duplicating CD or DVD in Ubuntu is so easy.

First we create an image of the CD/DVD to your hard disk drive.

sudo umount /dev/cdrom
readcd dev=/dev/cdrom f=file.iso

And then, we finally burn the iso image file to blank or writable CD/DVD .

Right click on Image (ISO) file -> Write to Disc... -> Write

HyperTerminal replacement in Ubuntu - Minicom

I was kinda surprise that HyperTerminal is not available anymore in Windows Vista. No problem, I rebooted my notebook to Ubuntu and fire-up minicom.

  1. By default, minicom is not installed in Ubuntu, so you need to install it first.
    sudo apt-get install minicom
  2. Find the name of your Serial Port
    dmesg | grep tty
    In the output look for something like "tty". The output in my case is like this:
    $ dmesg | grep tty
    [ 17.341823] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

Ubuntu 7.04 : Apache-PHP-MySQL Server

Here are the packages you need to install to make your Ubuntu 7.04 as webserver with PHP and MySQL support.

  1. Install Apache:
    sudo apt-get install apache2
  2. Install PHP5:
    sudo apt-get install php5-common php5 libapache2-mod-php5
  3. Install MySQL:
    sudo apt-get install mysql-server mysql-client
  4. To use MySQL with PHP:
    sudo apt-get install php5-mysql