Skip to main content

Connecting to Juniper VPN with Ubuntu 10.04 64bit

Ran into my first snag. Apparently the Juniper Network Connect client for Linux doesn't like 2 things about the defaults installed on Ubuntu 10.04 64bit:
  1. Requires the Sun JRE/JDK, not the OpenJRE/OpenJDK installed by default.
  2. Requires the 32bit JRE, not the 64bit JRE
Obviously frustrating. I found the following resources to overcome this problem:

Switching from OpenJRE/JDK to Sun's version (without uninstalling, due to dependency issues).
Setup the 32bit JRE to run alongside the 64bit, and Download and modify the junipernc script by pointing it to the 32bit version. To do this, add this line after the # lines at the beginning:
export JDK_HOME=/usr/lib/jvm/ia32-java-6-sun

Test your setup here when you're done.

To reconnect after disconnecting, you might need to relogin to the vpn website and then run the connection script again. The session doesn't always exit nicely.

The big downside to all this is that you'll now have 3 different Java environments installed on your machine. Figuring out which one is running for what can be a bit tricky. It would be ideal for Ubuntu to allow either environ to begin with, but I understand why they can't do that.

Comments

  1. hey..i did all changes, but still i am not able to connect vpn connection.

    I have ubuntu10.04 64 bit.I installed sun jdk and i did setup 32bit JER also.
    When o .i start the connection. its process but after processing ,connection window does close.it appear for time being.

    I have java -version

    java version "1.6.0_24"
    Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
    Java HotSpot(TM) Server VM (build 19.1-b02, mixed mode)

    Is there any solution?


    Regrads
    Pooja Gupta

    ReplyDelete

Post a Comment

Popular posts from this blog

Black Cursors on Win7/2008 R2 Using rdesktop for Ubuntu 10.04

I recently setup a Win 2008 R2 VM and proceeded to remote connect to it from Ubuntu 10.04. Everything worked perfectly except the mouse cursors were black (and some were corrupt). Solution? Use a newer version of rdesktop that doesn't ship with Ubuntu. There is a handy PPA that can be added using the following command: sudo apt-add-repository ppa:ricolai/ppa sudo apt-get update sudo apt-get install rdesktop [UPDATE] It appears ricolai may have removed the package from his PPA. To remedy the situation, I've uploaded the working binaries for x64. Sorry, I don't have the x86 any longer. More information on the bug can be found here: https://bugs.launchpad.net/ubuntu/+source/rdesktop/+bug/385974?comments=all

Remote Connection: Free NX vs. VNC

Apparently, there's some debate in the Linux world about remote connections. I've been using VNC for 8 years or so now. It's reliable, but definitely slow. I've found that NoMachine's NX Server (free edition) suits my needs best. It works even better than Windows' Remote Desktop, and of course much better than VNC (which really stinks). In my case, it opens a new session, when I connect to the server, but I think it can be configured to connect to an existing session as well. You might want to give it a try: http://www.nomachine.com/products.php I'll give it a try and get back to you all... UPDATE: I've installed the server on both my laptop and my desktop Ubuntu machines following the instructions found at https://help.ubuntu.com/community/FreeNX . The results are astounding! While not identical in terms of functionality to VNC, I personally prefer the results. It's actually closer to an RDP session. I haven't tested the client to the ful...

Mounting VMware VMDK Disks in Ubuntu (Linux)

Took me a while to find the info on this, but it's fairly simple once you piece together all the information out there. First off, I'm not converting this to VirtualBox. I'm simply accessing the HD as though it were mounted on my local file system (Ubuntu). The VMDK image is for a WinXP virtual machine. First off, verify you have vmware-mount on your system. Drop to terminal, type "vmware-mount". You should get info regarding usage. If not, you need to install VMware Server or VMware Workstation (it's bundled with them). When prompted during the install, say 'Yes' to installing the additional tools packages. Not sure which one it's in, but it's there. Sorry, perhaps someone else can clarify this point. Next, navigate to the location of your VMDK and type "vmware-mount -p .vmdk". This will show you a list of mount points within the file (first column). Create /mnt/ using "mkdir /mnt/ " Next, type "sudo vmware-m...