个人工具

UbuntuHelp:CitrixICAClientHowTo

来自Ubuntu中文

跳转至: 导航, 搜索


Parent page: Internet and Networking This guide explains how to install the Citrix ICA Client on Ubuntu. The Citrix ICA Client allows access to remote Windows sessions run from a Citrix server.

Citrix Client 11 on Ubuntu 8.04 - Ubuntu 9.10

You do not have to run wfcmgr if you are only using the XenApp web plugin and nor do you have to install Openmotif but you do need to have libxaw7 installed.

32-bit

Install Citrix's 32-bit client from its linux clients download page (currently here), then add any needed libraries and make them work with your system. 1. Install the 32-bit Citrix client.

  1. Download the linux client tarball (currently here) to some temp dir, e.g. /tmp/citrix
  2. Extract the tarball, e.g. (change parameters as necessary)
DOWNLOAD_DIR="/tmp/citrix"
TARBALL_FN="linuxx86-11.0.140395.tar.gz"
pushd ${DOWNLOAD_DIR}
tar xfz ${TARBALL_FN} # add '> /dev/null' for quiet

1.#3 From the download directory, run the text-mode installer

sudo ./setupwfc

Take the option to "Install Citrix Receiver", install to

/usr/lib/ICAClient

, choose additional options as needed, and quit the installer. 1.#4 Check to see that the installer created

  • the executable /usr/lib/ICAClient/wfcmgr
  • a launcher like Applications>Internet>Citrix Receiver or Internet>Citrix Receiver

1.#5 Check that /usr/lib/ICAClient/wfcmgr has needed libraries, e.g.

CLIENT_EXEC="/usr/lib/ICAClient/wfcmgr"
ldd ${CLIENT_EXEC}

You will probably get results like

linux-gate.so.1 => (0xf77a3000)
libXm.so.4 => not found
libXp.so.6 => /usr/lib32/libXp.so.6 (0xf777f000)
libXpm.so.4 => /usr/lib32/libXpm.so.4 (0xf776c000)
libSM.so.6 => /usr/lib32/libSM.so.6 (0xf7763000)
libICE.so.6 => /usr/lib32/libICE.so.6 (0xf7748000)
libXmu.so.6 => /usr/lib32/libXmu.so.6 (0xf772f000)
libdl.so.2 => /lib32/libdl.so.2 (0xf772b000)
libpthread.so.0 => /lib32/libpthread.so.0 (0xf7712000)
libc.so.6 => /lib32/libc.so.6 (0xf75cd000)
libXt.so.6 => /usr/lib32/libXt.so.6 (0xf757a000)
libX11.so.6 => /usr/lib32/libX11.so.6 (0xf744b000)
libXext.so.6 => /usr/lib32/libXext.so.6 (0xf743b000)
libXau.so.6 => /usr/lib32/libXau.so.6 (0xf7437000)
libuuid.so.1 => /lib32/libuuid.so.1 (0xf7431000)
/lib/ld-linux.so.2 (0xf77a4000)
libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf7413000)
libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf740e000)

Note the not found above. If you don't get one of those, try just running /usr/lib/ICAClient/wfcmgr: if that launches the Citrix Receiver, you're done, and you can probably exit these instructions. If not, proceed to next step. 2. Download and setup all needed 32-bit libraries.

  • If you are missing libXm.so.4

Install motif and create a symlink to the latest similar library

sudo aptitude install libmotif3
ls -al /usr/lib/libXm.so*
# if the latest version is libXm.so.3.0.2, then
sudo ln -s /usr/lib/libXm.so.3.0.2 /usr/lib/libXm.so.4

Repeat running ldd until all libraries are found. I.e.

CLIENT_EXEC="/usr/lib/ICAClient/wfcmgr"
ERROR_STRING='not found'
ldd ${CLIENT_EXEC} | fgrep -e "${ERROR_STRING}"

should produce no output. 3. Run the native client from a terminal, e.g.

${CLIENT_EXEC}

The Citrix Receiver should launch with no errors. Choose Connections>Exit to quit the native client. If you see errors in the terminal, use the terminal messages to guide your efforts. You may need to repeat steps above. 4. Run the client from the launcher noted above.

64-bit

If Citrix provides a 64-bit client at its linux clients download page (currently here) download and install that. Unfortunately, at the moment (31 Jan 2010) it does not, so you will need to also install 32-bit libraries and make them work with your 64-bit system. 1. Install the 32-bit Citrix client.

  1. Download the linux client tarball (currently here) to some temp dir, e.g. /tmp/citrix
  2. Extract the tarball, e.g. (change parameters as necessary)
DOWNLOAD_DIR="/tmp/citrix"
TARBALL_FN="linuxx86-11.0.140395.tar.gz"
pushd ${DOWNLOAD_DIR}
tar xfz ${TARBALL_FN} # add '> /dev/null' for quiet

1.#3 From the download directory, run the text-mode script

./setupwfc

Take the option to "Install Citrix Receiver", then install to the default directory

/usr/lib/ICAClient

and exit.

  1. Check to see that it created the executable /usr/lib/ICAClient/wfcmgr (and also Applications>Internet>Citrix Receiver, though that's just a link).
  2. Check that /usr/lib/ICAClient/wfcmgr has needed libraries, e.g.
CLIENT_EXEC="/usr/lib/ICAClient/wfcmgr"
ldd ${CLIENT_EXEC}

You will probably get results like

linux-gate.so.1 => (0xf77a3000)
libXm.so.4 => not found
libXp.so.6 => /usr/lib32/libXp.so.6 (0xf777f000)
libXpm.so.4 => /usr/lib32/libXpm.so.4 (0xf776c000)
libSM.so.6 => /usr/lib32/libSM.so.6 (0xf7763000)
libICE.so.6 => /usr/lib32/libICE.so.6 (0xf7748000)
libXmu.so.6 => /usr/lib32/libXmu.so.6 (0xf772f000)
libdl.so.2 => /lib32/libdl.so.2 (0xf772b000)
libpthread.so.0 => /lib32/libpthread.so.0 (0xf7712000)
libc.so.6 => /lib32/libc.so.6 (0xf75cd000)
libXt.so.6 => /usr/lib32/libXt.so.6 (0xf757a000)
libX11.so.6 => /usr/lib32/libX11.so.6 (0xf744b000)
libXext.so.6 => /usr/lib32/libXext.so.6 (0xf743b000)
libXau.so.6 => /usr/lib32/libXau.so.6 (0xf7437000)
libuuid.so.1 => /lib32/libuuid.so.1 (0xf7431000)
/lib/ld-linux.so.2 (0xf77a4000)
libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf7413000)
libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf740e000)

Note the not found above. If you don't get one of those, try just running /usr/lib/ICAClient/wfcmgr: if that launches the Citrix Receiver, you're done, and you can probably exit these instructions. If not, proceed to next step. 2. Download and setup needed 32-bit libraries.

  1. Download 32-bit libraries (changing parameters in the following as necessary):
SOURCE_DIR="/tmp/motif"
TARGET_DIR="/usr/lib32"
DEB_URI="http://ftp.ubuntu.com/ubuntu/pool/multiverse/o/openmotif/libmotif3_2.2.3-2_i386.deb"
DEB_FN="$(basename ${DEB_URI})"
DEB_FP="${SOURCE_DIR}/${DEB_FN}"
mkdir -p ${SOURCE_DIR}
mkdir -p ${TARGET_DIR} # should be there already
pushd ${SOURCE_DIR}
wget -O ${DEB_FN} ${DEB_URI}
dpkg -x ${DEB_FN} ${SOURCE_DIR}
sudo cp -r ${SOURCE_DIR}/usr/lib/* ${TARGET_DIR}/

1.#2 Link to 32-bit libraries as needed. E.g., for the error

libXm.so.4 => not found

above, check to see that a similarly-named library exists among your 32-bit libraries, and link to that. E.g.

MISSING_LIB_NAME="libXm.so.4"
MISSING_LIB_BASE="libXm.so"
TARGET_DIR="/usr/lib32"
SOURCE_DIR="/usr/lib"
find ${TARGET_DIR} -name "${MISSING_LIB_BASE}*" | xargs ls -al
ln -s ${TARGET_DIR}/libXm.so.3.0.2 ${TARGET_DIR}/${MISSING_LIB_NAME}

1.#3 Rerun `ldd` and loop the previous steps until

CLIENT_EXEC="/usr/lib/ICAClient/wfcmgr"
ERROR_STRING='not found'
ldd ${CLIENT_EXEC} | fgrep -e "${ERROR_STRING}"

produces no output. 3. Run the client from a terminal, e.g.

${CLIENT_EXEC}

You should get no errors; if you do, use the terminal messages to guide your efforts. You may need to repeat steps above. 4. Run the client from the launcher, e.g. Applications>Internet>Citrix Receiver

Download Citrix client 10.6

http://www.citrix.com/English/SS/downloads/downloads.asp?dID=2755 or http://www.citrix.com/ and click on 'Download' Under "Select Downloads by Product," choose "Citrix XenApp." Now click on "Linux ICA Clients." Download this item: Version 10.6 English 6/28/07 1.8 mb .tar.gz x86 client - requires OpenMotif 2.2.x

Install Prerequisite Software

In a terminal window:

  sudo aptitude install libmotif3
  sudo aptitude install libxaw7

Expand Zip file and Install

Move the .tar.gz file to a temporary folder and extract installation files. For example, assuming you downloaded to your Desktop:

  mkdir /tmp/citrix-install
  cd /tmp/citrix-install
  mv ~/Desktop/en.linuxx86.tar.gz ./
  tar xvf en.linuxx86.tar.gz

Now, install the Citrix Client

  sudo ./setupwfc

When you see the menu: Select a setup option: 1. Install Citrix Presentation Server Client 10.6 2. Remove Citrix Presentation Server Client 10.6 3. Quit Citrix Presentation Server Client 10.6 setup Type "1" (without the quotes) and hit enter. Choose the defaults and accept the license. And yes, you want to integrate with KDE and Gnome. Finally, at the setup menu, choose: 3. Quit Citrix Presentation Server Client 10.6 setup

Put wfica and wfcmgr on the Search Path

Create links in a folder that is on the search path

  sudo ln -s /usr/lib/ICAClient/wfica /usr/local/bin/wfica
  sudo ln -s /usr/lib/ICAClient/wfcmgr /usr/local/bin/wfcmgr

Using the Citrix Client 10.6

This will now be enabled for use with a Citrix Web Interface - without any further action. If you do not use a Web Interface system, configure the client using the Configuration Manager

/usr/lib/ICAClient/wfcmgr &

(You can download the 'Admin Guide' from the download location - see above.) Note: If wfcmgr doesn't launch in Gutsy, there may be a problem with the loading of fonts See http://ubuntuforums.org/showthread.php?t=591450&highlight=citrix In summary, edit /etc/X11/xorg.conf and change '/usr/share/X11/fonts/' to '/usr/share/fonts/X11'

Accessing your PC Drive and Local Printer from the Citrix Session

Printing

Your default Ubuntu printer should be available within the Citrix session automatically In Presentation Server 3/4, the name will be something like - 'PIXMA-IP4000 [UPD`:`PS] (from APAC-whcold_sin) in session 1' using driver 'HP Color Laser``Jet PS' If you do not see a printer like this, ask your Citrix Administrator to check that the 'HP Color Laser``Jet PS' driver is installed on the Presentation Server.

Accessing your PC Drive

Run the Citrix Client Manager

/usr/lib/ICAClient/wfcmgr &
CitrixICAClientHowTo?action=AttachFile&do=get&target=wfcmgr-drivemapping.png

Choose Tools/Settings/Preferences/Drive Mapping Choose settings similar to the attached screen-shot The Read & Write Access options have 3 settings - enabled, disabled(X), and prompt(?) Click the 'Apply' button, then 'OK' If you do NOT see a C: drive in your Citrix session - or it is already being used for another drive - don't worry - you will see your Ubuntu folder in Windows Explorer under My Network Places - Entire Network - Client Network - \\Client - \\Client\C$. At the command prompt or in batch files, use the UNC \\Client\C$.` ` Note: The C$ must be uppercase. You can do likewise with other drives - D:, E:, etc. and create drives \\Client\D$, \\Client\E$, etc. in your Citrix session. It is usual practice to assign A: and B: to floppy drives. <
>

Citrix Client 10 on Dapper

This following guide is written for Dapper. It works for the author, but YMMV.

Download the Citrix ICA Client RPM

Locate and download the latest (currently version 10.0) ICA Linux client RPM from: http://www.citrix.com/lang/English/downloads.asp

Convert the RPM package to .deb

Install the 'alien' package:

sudo apt-get install alien

Create the .deb

alien ICAClient-10.0-2.i386.rpm

This will create the file 'icaclient-10.0-2.i386.deb'

Install the .deb

sudo dpkg -i icaclient-10.0-2.i386.deb

Install the motif libraries

sudo apt-get install libmotif3

Kubuntu only: install libxp6

sudo apt-get install libxp6

Firefox PNAgent ICA Plugin

Symlink the PNAgent ICA plugin for Firefox

sudo ln -s /usr/lib/ICAClient/npica.so /usr/lib/firefox/plugins/npica.so

Client Setup

You should now be able to configure the client by running:

/usr/lib/ICAClient/wfcmgr

Setup a new connection from: Tools -> Settings -> Preferences (pull down to) Server Location (Your network admin should be able to supply the details) Configure the server options: Connection -> New -> Network (Again, your network admin should be able to supply the details) Configure display options: Connection -> Properties -> Network (pull down to) Window Select 16 million colors (if your vid card supports it) & Seamless Window Once the client is configured, you can launch the ICA client by running:

/usr/lib/ICAClient/wfica

You also might like to update the PATH definition in /etc/environment to include /usr/lib/ICAClient Alternatively, create a symlink for wfica:

sudo ln -s /usr/lib/ICAClient/wfica /usr/local/bin/wfica