How to install Oracle JDK 7 in Ubuntu Server 12.04 via apt-get command line?

# Step 1: Add the repository for JDK 7.
sudo apt-add-repository ppa:webupd8team/java

# Step 2: Update
sudo apt-get update

# Step 3: Install JDK and associated utilities
sudo apt-get install oracle-java7-installer

# Step 4: Set the default java interpreter used by the system.
sudo update-alternatives --config java

References:

Advertisements

How to install Apache, MySQL, PHP and PhpMyAdmin in Linux Mint from command line?

I am a great fan of Linux Mint. It’s Ubuntu based. I have been using Linux Mint for the past three years. Recently, I migrated to the latest version – Linux Mint 9 codenamed ‘Isadora’.  The default installation of the desktop edition of Linux Mint 9 does not install Apache, MySQL and PHP. Therefore, I decided to write a post that would be useful for other fellow readers, users of Linux Mint 9 detailing how to install Apache, MySQL and PHP on Isadora.

The installation can be divided into multiple steps.

  1. Install the core packages – Apache2, MySQL and PHP.
  2. Test if the web server is up and running.
  3. Test if PHP is working.
  4. Install PhpMyAdmin.
  5. Test MySQL (via PhpMyAdmin).

Continue reading “How to install Apache, MySQL, PHP and PhpMyAdmin in Linux Mint from command line?”