Installation of SAP Citrix Client and Prerequisites
===================================================

SL6 32 bit
----------

First tests with rebuild of SRPMS of pcsc-lite and pcsc-lite-libs
version 1.5.2-7 without hal support.

Install pcsl-lite 1.5.2 (SmartCard daemon)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Run::

    # yum install pcsc-lite
    # yum install pcsc-lite-libs


Install Omnikey SmartCard driver
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Run::
  
    # yum --enablerepo beta install omnikey-usb-3121-driver # todo: move the driver to the stable repo
    # /etc/init.d/pcscd restart

or for debug mode::

	# /usr/sbin/pcscd -df


Install Citrix ICA Client
~~~~~~~~~~~~~~~~~~~~~~~~~

Run::
  
    # yum install openmotif libXp
    # yum install ICAClient


SL6 64 bit
----------

Install pcsc-lite-1.5.3
~~~~~~~~~~~~~~~~~~~~~~~

The following packages have to be present/installed.

	- alsa-lib, alsa-lib.i686, gtk2-devel, gtk2-devel.i386, glibc, glibc.i686, glibc-devel, glibc-devel.i686
	- libgcc, libgcc.i686, libusb, libusb.i686, libusb-devel, libusb-devel.i686
	- libXpm, libXpm.i686, libXaw, libXaw.i686, nspluginwrapper, nspluginwrapper.i686
	- openmotif, openmotif.i686, openmotif-devel, openmotif-devel.i686
	- libusb1, libusb1.i686, libusb1-devel, libusb1-devel.i686

Remove the preinstalled pcsc-lite packages::

	# rpm -e --nodeps pcsc-lite pcsc-lite-libs pcsc-lite-openct


Download, unpack pcsc-lite-1.5.3 sources, run configure and build the
daemon::

	# wget --no-check-certificate https://alioth.debian.org/frs/download.php/3017/pcsc-lite-1.5.3.tar.bz2
	# tar xvf pcsc-lite-1.5.3.tar
	# cd pcsc-lite-1.5.3.tar

	# ./configure --enable-usbdropdir=/usr/lib/pcsc/drivers --disable-libhal --prefix=/usr CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32

	# make
	# make check
	# make install


Install Omnikey SmartCard driver
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Run::

	# yum --enablerepo beta install omnikey-usb-3121-driver # todo: move the driver to the stable repo
	#todo: dependency pcsc-lite-libs???
	# /etc/init.d/pcscd restart

or for debug mode::

	# /usr/sbin/pcscd -df


Install Citrix ICA Client
~~~~~~~~~~~~~~~~~~~~~~~~~

Run::

	# yum install openmotif libXp
	# yum install ICAClient


Start SAP Session
-----------------

Plug in the Omnikey 3121 USB SmartCard reader, and plug in the
SmartCard.

Start the Citrix Receiver (E.g. in KDE: Applications --> Internet -->
Citrix Receiver) and login to the terminal server tsadlm01, use your
Windows login and password.

Then run the APPGATE_Start application by clicking the icon.

Open the connection to the server acc1.caz.admin.ch using the method
certificate and keep the autoselected certificate, read from the
SmartCard reader. Click ok.

Enter your password for the SmartCard token and click ok.

Internet Explorer starts and pops up to websites, HP something and one
from the BIT.  Close them or leave them, as you like.

Switch to the cmd.exe console of the terminal server and press any
key.  UltraLogon will start and open the SAP main window, where you
select your session.
