#apt-get install hpoj hpijs

then copy the ppd files to

cp HP-PSC_1400-hpijs.ppd /usr/share/cups/model

add printer in http://localhost:631

more info