Archive for May, 2012

Install Citrix Receiver in Fedora 16 (x64)

May 29th, 2012 No comments

Download the Citrix Receiver client from Citrix homepage. You should be redirected there automatically when trying to access Citrix applications portal.

This was the URL in my case:

This is another URL to get the Citrix Receiver:

After the installation (download and install the rpm-package) check where your Netscape plugin folder is:

$ sudo find / -name plugins | grep -i "netscape\|firefox\|mozilla"
$ cd /usr/lib64/mozilla/plugins

Then check where your so module is:

$ sudo find / -iname *npica* -type f
$ sudo ln -s /opt/Citrix/ICAClient/

Install a missing dependency (because of 64-bits Fedora):

$ sudo yum install

The first time you click on an application, your browser is likely going to popup a dialog box giving you the choice to open the file or save the file. Choose the option to open the file. Where it asks for the application to use on this type of file, type in the path to the wfica application:


In my case I got error 61 because I hadn’t the certificate for “ Secure Server Certification Auth…”. To get in I used a Win7 computer, Internet Explorer 9, menu “Tools / Internet Options / Innehåll” / Certificates-button / “Betrodda rotcertifikatutfärdare”, mark the cert you want to export, click “Export”-button, save as “DER-encoded binary x509 file (.cer)”. I then copied this file into the folder: /opt/Citrix/ICAClient/keystore/cacerts

Or you can use “OpenSSL” to convert a PEM certificate exported from Firefox in Linux:

$ sudo openssl x509 -in /home/user/Downloads/exported_cert -inform PEM \
-out /opt/Citrix/ICAClient/keystore/cacerts/my_citrix.crt -outform DER





Categories: Linux, Red Hat / CentOS Tags:

Download gscan2pdf source and run

May 9th, 2012 No comments


Ladda ner koden:

cd ~/code
git clone git://

Skapa en länk så Perl hittar filerna:

sudo mkdir /usr/local/lib/perl
cd /usr/local/lib/perl
sudo ln -s /home/holm/code/gscan2pdf/lib 5.12.4

Starta programmet:


// Tobias 2012-01-01


Install gscan2pdf from Ubuntu repositories to get most of the dependencies:

$ sudo apt-get install gscan2pdf git libsane-dev libcanberra-gtk-module

You might get the following packages when installing gscan2pdf:

Följande NYA paket kommer att installeras:
cuneiform cuneiform-common gocr gscan2pdf libconfig-general-perl libcuneiform0 libextutils-depends-perl libextutils-pkgconfig-perl libfont-ttf-perl libgoo-canvas-perl libgtk2-ex-podviewer-perl libgtk2-ex-simple-list-perl libgtk2-imageview-perl libgtkimageview0 libio-stringy-perl libjpeg-progs libjpeg-turbo-progs libleptonica liblog-log4perl-perl libpdf-api2-perl libproc-processtable-perl libreadonly-perl libset-intspan-perl libtesseract3 libtiff-tools libwebp2 perlmagick tesseract-ocr tesseract-ocr-eng tesseract-ocr-equ tesseract-ocr-osd

Download the source via git:

$ git clone git://

Enter the directory. If you try to run it you can get this error:

$ bin/gscan2pdf
 Can't locate Gscan2pdf/ in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.12.4 /usr/local/share/perl/5.12.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.12 /usr/share/perl/5.12 /usr/local/lib/site_perl .) at bin/gscan2pdf line 121.                                      
 BEGIN failed--compilation aborted at bin/gscan2pdf line 121.

This is because the Perl script can’t find some libraries. To solve it, add the following at the top of bin/gscan2pdf:

use lib "/home/holm/code/gscan2pdf/lib/";

This is another problem you can bump into:

$ bin/gscan2pdf
 Sane version 0.05 required--this is only version 0.03 at /etc/perl/Gscan2pdf/Scanner/ line 7.
 BEGIN failed--compilation aborted at /etc/perl/Gscan2pdf/Scanner/ line 7.
 Compilation failed in require at /etc/perl/Gscan2pdf/ line 7.
 BEGIN failed--compilation aborted at /etc/perl/Gscan2pdf/ line 7.
 Compilation failed in require at bin/gscan2pdf line 121.
 BEGIN failed--compilation aborted at bin/gscan2pdf line 121.

To fix it, download Sane version 0.05:

Enter the folder where you downloaded the files and try to install Sane:

$ perl Makefile.PL
 Perhaps you should add the directory containing `sane-backends.pc'
 to the PKG_CONFIG_PATH environment variable
 No package 'sane-backends' found at Makefile.PL line 21
 Writing Makefile for Sane
 Writing MYMETA.yml

Ops! Install sane-backends components:

$ sudo apt-get install libsane-dev

Now compile Sane:

$ perl Makefile.PL
$ make
$ make test
$ sudo make install

Enter gscan2pdf folder and run the program:

$ cd ../gscan2pdf
$ bin/gscan2pdf

This is another error:

$ bin/gscan2pdf 
Bareword "Gscan2pdf::_cancel_process" not allowed while "strict subs" in use at /etc/perl/Gscan2pdf/ line 595.
Compilation failed in require at bin/gscan2pdf line 54.
BEGIN failed--compilation aborted at bin/gscan2pdf line 54.

Fix it by manually cleaning up a previous installation of Gscan2pdf.

sudo apt-get remove gscan2pdf
sudo rm -rf /etc/perl/Gscan2pdf
Categories: Bash, Linux, Ubuntu Tags: