This guide worked for me for HP Laserjet 1006 with some additions. First i had to download, compile and install foo2xqx driver, because CUPS doesn't have driver for 1006.
Second, the method with automatic windows discovery didn't worked very well. The printer was added but printing garbage.
I...