Posted by: alexdorand | February 7, 2010

VM + Fedora + Java 6

Let’s start by making our security server.

Let’s start installing the Fedora Operating System:

  • Open or run VirtualBox
  • Click on Next
  • Enter “opensso” as your VM name
  • Select Linux as your operating system and the select fedora
  • Set 400MB as your RAM and click next
  • select “Create new hard disk” that open another installation window, click on next
  • select “Dynamically expanding storage” and click on next
  • select a location for your virtual hard driveĀ  file
  • set the size to 8GB and click on next
  • click on finish
  • click on finish

Now you can install fedora operating system on your virtual hard drive. To do that you need to map the fedora iso file (DVD image).

  • click on the storage:

  • Select CD/DVD drive
  • click on the browse icon to select an iso file.
  • click on add and add the Fedora image you previously downloaded to the list and click on select
  • next click on ok. you are back on the home page.
  • select your virtual machine from the left panel and click on “Start” icon from

When you start the you the following window will appear in the VirtalBox application:

click on “Live System User” and the on the desktop click on “Install”

After the installation of the operating system is completed open a terminal:

At this point we are going to install java. First we have to remove the java came originally with the operating system by typing the following command in the terminal:

yum remove java

when java is removed, open the firefox browser and go to http://java.sun.com to download the latest version of java. Make sure you download the “ jdk-6u18-linux-i586.bin” instead of the rpm version.

copy the downloaded file to /opt/ by typing:

cp jdk-6u18-linux-i586.bin /opt/

now you have to go to the opt and install the java.

cd /opt/

First you have to make the file executable by typing:

chmod +x jdk-6u18-linux-i586.bin

the type

./jdk-6u18-linux-i586.bin

and complete the installation.

You then have to make sure that the java is accessible whenever you login and open a terminal. So you need to create a login shellscript file:

cd /etc/profile.d/

vi java.sh

Now you have to add the following lines to the file. when in vi press “i” for “INSERT” and paste the following lines:

export JAVA_HOME=/opt/jdk1.6.0_18
export PATH=$JAVA_HOME/bin:$PATH

now press “esc” and type :wq

Advertisement

Responses

  1. Dear Mr. Dorandish,

    We are a media production enterprise from the Middle East. We would like to avail your consultancy services regarding software in the respective field.

    If you could, kindly apprise to schedule an appointment.

    “The only way to have a friend is to be one.”
    Ralph Waldo Emerson


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Categories

Follow

Get every new post delivered to your Inbox.