I used to call this installation my WebEx environment. WebEx has a requirement for a 32-bit Java installation. But, I found a few more needs for a 32-bit Java/browser such as a Juniper VPN.
Basically, I just did a variation on my older post about WebEx.
Here’s how I set it up:
Creating the Directory
I put all of the pieces under a single directory. I used to call it webex, but I am going to call it 32java. Here’s the commands:
cd ~/bin mkdir 32java
I downloaded Java from the Oracle Java Download Page.
Next, I simply extracted it under my new 32java directory.
cd ~/bin/32java tar -xzvf ~/Downloads/jre-7u4-linux-i586.tar.gz
I downloaded Firefox from the Download Page.
Again, I just extracted it into my 32java directory.
cd ~/bin/32java tar -xjvf ~/Downloads/firefox-12.0.tar.bz2
After just slapping these programs into a directory, I need some glue to make them work together. The glue is a little launcher script. The script’s responsibility is to set the environment variables to where it will use these paths to run the programs.
I used these commands to edit the script.
cd ~/bin/32java gedit ~/bin/32java/32java.sh
Then, in the gedit window, I wrote this script:
#!/bin/bash cd ~/bin/32java export ENV_HOME=~/bin/32java export FIREFOX_HOME=$ENV_HOME/firefox export MOZ_PLUGIN_PATH=$FIREFOX_HOME/plugins export PATH=$FIREFOX_HOME:$JAVA_HOME/bin/:$JDK_HOME/bin/:$PATH export JAVA_HOME=$ENV_HOME/jre1.7.0_04/ export PATH=$FIREFOX_HOME/firefox:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH firefox --no-remote -P WebEx
Next, you have to make the script executable. Also, make sure that your Java binary and Firefox binary are both executable.
chmod +x 32java.sh
Finally, I needed to link in the Java plugin. Before creating the symbolic link, you have to set all those variables.
export ENV_HOME=~/bin/32java export FIREFOX_HOME=$ENV_HOME/firefox export MOZ_PLUGIN_PATH=$FIREFOX_HOME/plugins export PATH=$FIREFOX_HOME:$JAVA_HOME/bin/:$JDK_HOME/bin/:$PATH export JAVA_HOME=$ENV_HOME/jre1.7.0_04/ export PATH=$FIREFOX_HOME/firefox:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH mkdir $MOZ_PLUGIN_PATH ln -s $JAVA_HOME/lib/i386/libnpjp2.so $MOZ_PLUGIN_PATH/libnpjp2.so
To make sure you really have a 32-bit environment, run your script and visit the Java testing page. Look for the i386 architecture.
Adding to the Menu
To make running this easier, I added it to the menu. I opened the Main Menu application (you may need to install it). I thought the launcher went well under the “Internet” section, and there I clicked the “New Item” button.
I chose the link to my new script. I also make sure that I included the word WebEx in the comment so that if I forget and search for it by that, it will still show up in the results.
Installing the Certificate
This next section is more of a reminder for me. I am thinking of using this with a Juniper VPN, and I have to have a certificate to connect.
I went to Edit > Preferences, Advanced > Encryption and clicked the “View Certificates” button:
Next, I went to the “Your Certificates” tab and clicked “Import”:
Finally, I had to browse and find the p12 certificate file. It asked for the password, and then, it said it was complete: