Arkiv

Arkiv för maj, 2012

Install Citrix Receiver in Fedora 16 (x64)

maj 29th, 2012 Inga kommentarer

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: http://download.citrix.com.edgesuite.net/akdlm/7044/ICAClient_12.1.0-0.x86_64.rpm?__gda__=1338288995_9d0910b8194edff271b41bda11c7737b&__dlmgda__=1338375095_b3e64146e93e0a1743df89c33919b677&fileExt=.rpm

This is another URL to get the Citrix Receiver: http://www.citrix.com/English/SS/downloads/details.asp?downloadId=2316611&productId=1689163

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/npica.so npica.so

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

$ sudo yum install libasound.so.2

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:

/opt/Citrix/ICAClient/wfica

In my case I got error 61 because I hadn’t the certificate for ”Entrust.net 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

Done!

Ref: http://www.linuxplanet.org/blogs/?cat=1997

Ref: http://www.agaveblue.org/howtos/Citrix_ICA_How-To.shtml

Ref: http://support.citrix.com/article/CTX106631

Categories: Linux, Red Hat / CentOS Taggar:

Download gscan2pdf source and run

maj 9th, 2012 Inga kommentarer

THIS IS ONLY A DRAFT!!!

http://gscan2pdf.sourceforge.net/

Ladda ner koden:

cd ~/code
git clone git://gscan2pdf.git.sourceforge.net/gitroot/gscan2pdf/gscan2pdf

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:

/home/holm/code/gscan2pdf/bin/gscan2pdf

// 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://gscan2pdf.git.sourceforge.net/gitroot/gscan2pdf/gscan2pdf

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

$ bin/gscan2pdf
 Can't locate Gscan2pdf/Document.pm 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:

# ADDED BY TOBIAS HOLM 2012-05-12 (TO FIND LIBS)
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/Options.pm line 7.
 BEGIN failed--compilation aborted at /etc/perl/Gscan2pdf/Scanner/Options.pm line 7.
 Compilation failed in require at /etc/perl/Gscan2pdf/Document.pm line 7.
 BEGIN failed--compilation aborted at /etc/perl/Gscan2pdf/Document.pm 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: https://metacpan.org/module/Sane

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/Document.pm 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 Taggar: