Thursday, April 26, 2007

Installing Cups on HP-UX

Important Note: Installing CUPS on HP-UX will overwrite important files. I was not aware that swremove did not restore the previous binaries. Make sure you make a backup of the lp basic back-end or are able to re-install the package from the install medium. I do not have access to an HP-UX machine and cannot help anyone with more than what is written here.

Guide to installing Cups on HP-UX
(copied here for future reference, and for anyone on the net who needs this information)
Taken from several sources on the net, with the official one being:
http://www.cups.org/doc-1.1/sam.html#BUILDING_INSTALLING

CUPS is supposed to be the "Common Unix printing system". It compiled on all the Unix platforms I ever worked on, although sometimes I thing it should be renamed CLiPS ("Common Linux printing system")

Important note: the guide does not include the Foomatic-rip filters and is therefore very limited in functionalities. To install the Foomatic filters once you have completed this guide see:
http://en.wikipedia.org/wiki/Foomatic and http://www.linux-foundation.org/en/OpenPrinting/Database/Foomatic

1)The Basics
We'll build from source, so you need to have the latest compiler and makefile Gnu tools. (at minimum GNU make is required) You can get those from:
http://hpux.connect.org.uk/
http://hpux.connect.org.uk/hppd/hpux/Gnu/make-3.81/
http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-4.1.2/
And the run-time dependencies (for GCC):
http://hpux.connect.org.uk/hppd/hpux/Gnu/gettext-0.16.1/
http://hpux.connect.org.uk/hppd/hpux/Development/Libraries/libiconv-1.11/

You also need some libraries from for Jpeg, tiff, png and zlib support (theses are used at CUPS compile time)
http://hpux.connect.org.uk/hppd/hpux/X11/Graphics/jpeg-6b/
http://hpux.connect.org.uk/hppd/hpux/X11/Graphics/tiff-3.8.2/
http://hpux.connect.org.uk/hppd/hpux/X11/Graphics/libpng-1.2.16/
http://hpux.connect.org.uk/hppd/hpux/Misc/zlib-1.2.3/

once copied, install using (do this for each file):

swinstall -s /tmp/filename-version-0.1.depot \*

you might want to copy all the software into a depot, and install from there:

swcopy -s /tmp/filename-version-0.1.depot \* @ hostA:/tmp/sw
swinstall -s hostA:/tmp/sw


2)EPM
You'll want to make packages for the HP software depot(or maybe another package in case you to install it on something else). We'll use EPM, the package-builder from ESP, the company behind Cups.

EPM support the following packages type (from the makefile):
aix, bsd, deb, gui, inst tardist, pkg, native, osx, portable, rpm, swintall depot
And the website says it support the following OS:
AIX, Debian GNU/Linux, FreeBSD, HP-UX, IRIX, Mac OS X, NetBSD, OpenBSD, Red Hat Linux, Slackware Linux, Solaris, and Tru64 UNIX.
http://www.easysw.com/epm/
Download the source from:
http://www.easysw.com/epm/software.php
and copy to /tmp
Extract using:
gunzip epm-4.0-source.tar.gz
tar -xvf epm-4.0-source.tar

Compile:
cd /tmp/epm-4.0
./compile
gmake swinstall depot

This will make a .depot file in the hpux-version directory. Install this software using

gunzip /tmp/epm-4.0/hpux-11.11-hppa/epm-4.0-hpux-11.11-hppa.depot.gz
swinstall -s /tmp/epm-4.0/hpux-11.11-hppa/epm-4.0-hpux-11.11-hppa.depot \*

Again, you might want to copy it first:
gunzip /tmp/epm-4.0/hpux-11.11-hppa/epm-4.0-hpux-11.11-hppa.depot.gz
swcopy -s /tmp/epm-4.0/hpux-11.11-hppa/epm-4.0-hpux-11.11-hppa.depot \* @ hostA:/tmp/sw
swinstall -s hostA:/tmp/sw

3)CUPS
Get cups
http://www.easysw.com/cups/software.php

and copy to /tmp
Extract using:
gunzip cups-1.2.8.tar.gz
tar -xvf cups-1.2.8.tar

Compile
cd /tmp/cups-1.2.8
./configure
gmake depot

If it does find the Jpeg, Zlib, Tiff or Png Librairies, see:
http://www.cups.org/doc-1.1/sam.html#BUILDING_INSTALLING

Install
gunzip /tmp/cups-1.2.8/dist/cups-1.2.8-hpux-11.11-hppa.depot.gz
swinstall -s /tmp/cups-1.2.8/dist/cups-1.2.8-hpux-11.11-hppa.depot \*

or
gunzip /tmp/cups-1.2.8/dist/cups-1.2.8-hpux-11.11-hppa.depot.gz
swcopy -s /tmp/cups-1.2.8/dist/cups-1.2.8-hpux-11.11-hppa.depot \* @ hostA:/tmp/sw
swinstall -s hostA:/tmp/sw

Congratulation, you have a basic (almost nothing included) working Cups!

4)Finishing touch
Configuration files are in:
/etc/cups
Logs are in
/var/log/cups

To add a printer:
lpadmin -p printer -E -v device -m ppd_file
To add a printer using the old system V interface files:
lpadmin -i/path_to_file/file

Monday, April 23, 2007

VT, My toughts

I was listening to Twit 95. I stopped the playback after they stopped talking about the Virgina Tech school shooting, because I feel I have to get this opinion written first.

This is a horrible tragedy. A useless lost of life and something that should not be. We all know that, and we all agree.

But the similarities mostly ends there. And no one can agree on what should be done.

I especially blame the "traditional" media on doing the wrong thing.

They are all focused on the killer, the circumstances behind the killing, the dead, and the police response...

Sorry, as much respect I have for the dead, I think they should focus their attention on what is important now that it's over:

The living. And the heroes.

The teacher who try to save his student deserve more respect than he is getting right now. He gave his life, so his students could say "I am alive... thank to him"

I know there are others, but we don't hear about them.

And please, help the students. They are going trough a hard time right now.

Some will simply get over it easily.
Some won't be able to get near the school.
Some will have nightmares for months.
Some will commit suicide.

You will probably never hear from them, but they will have to carry the burden of for the rest of their lives.

I live in Montreal. I was 9 when, in 1989, someone decide that 14 women didn't deserve to live.

And it's been seventeen years since the Polytechnique shooting, and the first thing the local journalist did when VT happened was to go down and ask the student what they thought of the shooting.
Simple math will tell you that the oldest student was probably 4 or 5 in 1989. They don't remember a thing, and they simply said: "It's horrible. Now excuse me, I got finals in 2 days, I have to work"

And I think it's good that it has come to this.

And to the students of Virginia Tech:

Please go on with your lives. DO NOT GIVE UP. DO NOT LOSE HOPE. You have been caught in a what should have not be. Please, do not let the sacrifices be in vain. You can all do it. Cry all the tears in your body if you have to, but please, do not let the killer get what he wanted.

Be firm
Be strong

Surprise us all...

Saturday, April 07, 2007

Online dating, the weird and useless bunch

Well, it's been a bit more than a month since my last 'thoughts' on the concept of dating...

There's a smell of spring in the air, and I'm seeing more people taking a practical approach to the "I'm still single" paradigm.

They tried online dating.

While I haven't seen the results yet, I decided to investigate the idea myself, and do a bit of scouting of the various website first.

Well... let's just say it's a bit overwhelming... I'm up to 26 links now, and still counting...

I won't list all the sites here (they are on del.icio.us anyway: http://del.icio.us/ve2dmn/dating ), but I did notice a couple of interesting site that are out of the ordinary:

Flirting in Traffic is the most bizarre one. You make an account, and they give you an ID tag to put on your car. Anyone who finds you interesting can note the ID and try to contact you online. It's kind of a reverse online dating thing...

PodDater is another strange one. You make a video of yourself, and than people can download the video to their IPods (or any other movie-capable portable media player), like a TV dating service. You can subscribe to it, like a podcast.

On the same idea as PodDater, VerbDate is a dating site made to connect 2 people via voice chat, you can have a sort of phone date.

Than, there's Engage.com , where people vote for who should meet whom. Kind of an interesting concept.

Then there's the free sites:

OkCupid seems to be a very popular one. You can take a test that will then evaluate who you will possibly be most compatible with, based on common answers...

PlentyOfFish is another big free one. Seems basic, but has been going on for a couple of years now...


These are all probably just fine, but none of these would actually work around here, because of how English-centric they are. No French equivalent means it automatically disqualify more than half of the local resident...

Because, in the end, If there isn't a critical mass, it will simply fail...