Wednesday, October 27, 2010

Citrix client on Ubuntu 64 bit versions.

Installing the client seems to be a breeze after downloading from the Citrix website. The problem is it wont run unless you install the x86 version of OpenMotif.  It also requests libXm.so.4 instead of the installed libXm.so.3 library. Every time I have to do it I need to search how since I forget but there are so many hits that I just cant seem to find the one with all the steps. I have decided to post it here to make it easy on myself. Hopefully it will you as well.

  1. Make sure you already have the ia32-libs libraries installed since they are required by 32 bit programs running on 64 bit linux.  They probably are, but just in case...
    sudo apt-get install ia32-libs
    

  2. Download the linux x86 client of your choice from Citrix and install it (I used the tar.gz file), after you extract it to a folder run:
    sudo ./setupwfc
    

  3. Once that's done you can check if it doesn't run with the following command:
    /usr/lib/ICAClient/wfcmgr -icaroot /usr/lib/ICAClient
    
    Note:
    It should be requesting "libXm.so.4" and if it was a 64 bit application you could install OpenMotif like so:
    sudo apt-get install libmotif4
    
    ...but it wont have a 32 bit version in it and the client is a 32 bit application which wont use a 64 bit library.

  4. Create a temp folder and go to it in the console, once there run the following commands:
    wget http://archive.ubuntu.com/ubuntu/pool/multiverse/o/openmotif/libmotif4_2.3.3-5ubuntu1_i386.deb
    dpkg -x libmotif4_2.3.3-5ubuntu1_i386.deb ./libmotif/
    sudo mv ./libmotif/usr/lib/* /usr/lib32/
    sudo chown -R root: /usr/lib32/*
    rm libmotif3_2.2.3-4_i386.deb
    rm -rf ./libmotif/
    

  5. You should now be able to either click on the icon from the applications menu or you could simply run the first command in step 3.
Note:
If you are not running an Ubuntu (Kubuntu, Xubuntu, etc.) distro just make sure to replace the wget command with the right url to your distro's archive.
Enjoy and happy linuxing,

Marlon