Citrix error 61 not trusted certificate

Uncategorized | Monday June 21 2010 6:49 pm | Comments (0)

There is a issue with the Citrix Client on Linux with some certificates providers. If the client doesn’t recognize the certificate, you get this error when you try to launch an app:

“You have chosen not to trust the “CA PROVIDER” the issuer of the server security certificate”

and then the app won’t start. It’s likely because the CA hierarchy is not correct. The solution to go round this issue is to place the the missing bits (the CROSS certificate and the SSL ICA certificate) under the certificate folder of the client situated here:

/usr/lib/ICAClient/keystore/cacerts

Now it should be all sorted!

HP Web JetAdmin, printer and other…

Uncategorized | Thursday June 10 2010 1:56 pm | Comments (0)

I was looking at a way to change the IP address of a HP Web JetAdmin server and if it was possible to create ACLs based on Active Directory users when I come across a website presenting article to “hack” your network printer. It’s basically more of a compilation of useful things to know than hacking properly said but it could be quite useful and sometime fun. Anyway, it’s worth to check it out.

network printer hacking

On the other site, if for any reason you need to change the IP address of your web JetAdmin server, here is how to do it:

You first need to backup your settings. You can find the backup tool here if WJA is installed on the default path:

c:\Program Files\Hewlett-Packard\HP Web Jetadmin 10\WJABackupRestore

note that if you have a non standard install path, you will have to edit the location of ’set OSQL’ inside the script.

Once the backup is finished, open the file ‘HP.Imaging.Wjp.Core.WebServer.config.xml‘ in the Settings\WjaService\config folder and replace the IP address with the new one.

you should find something like that:

<property name=”HostIPv4Address”>
<type>HP.Imaging.Wjp.Sdk.Core.Framework.ConfigurationItemString</type>
<value>your.IP.address</value>
</property>

Run the restore script and allow it to overwrite the existing database.

You should now have a fully working HP Web JetAdmin!

batch resize photo on Linux

linux, tools | Thursday June 3 2010 8:00 pm | Comments (0)

if you are like me and you have a photo gallery to share your photo to your friends and family and other people, you may have come across the problem of resizing your photos. With a camera taking 4MB photos, I don’t want people to wait 1mn between each photo they look at so I resize them. You could say that I could use picassa or anything else like that but those services and other look-a-like don’t completely suit me.

Anyway, if you want to do that in a couple of secondes  on your favourite Linux distro, you need ImageMagick. It’s a very good command line tool that will allow you to script (or just manipulate)  your photo. Very useful  when you come back from a Safari with 2000 photos :)

you can usually find ImageMagick packaged for every distro but I’ll show you here how to get it for Debian (or any other distro using apt-get …)

sudo apt-get install imagemagick
cd ~/photos/myphotos/
mkdir resized
cp *.jpg resized
cd resized

ImageMagick doesn’t create a new photo smaller but actually resize it so that’s why you should keep a copy of your photos if you want to keep them in the original size.
The command to use is mogrify. It’s always good to have a look at the man page but you basically just need to do as follow to resize a photo -

To resize all the photo with a max height or weight:

mogrify -resize 1920 *.jpg

Or to give a fix size:

mogrify -resize 1024×786! *.jpg

You can do much more with ImageMagick so have a look by yourself!!!