HP LaserJet 3100 -- Printing from Linux

This is how I did it with Mandrake Linux 8.1

  • Get Ulrich Schmid's printing program from here.
  • Get this patch (.txt) that fixes an occasional memory allocation related core dump.
  • Decompress, patch and make it:
    	(0:56) [jk@jack] ~ > cd /usr/local/src/
    	(0:56) [jk@jack] /usr/local/src > tar xfz /tmp/lj3100.tar.gz 
    	(0:56) [jk@jack] /usr/local/src > cd lj3100
    	(0:56) [jk@jack] /usr/local/src/lj3100 > patch < /tmp/lj3100_print.patch 
    	(0:56) [jk@jack] /usr/local/src/lj3100 > make
    	
  • Copy it to a reasonable place:
    	(1:01) [jk@jack] /usr/local/src/lj3100 > sudo mkdir /usr/local/lj3100
    	(1:01) [jk@jack] /usr/local/src/lj3100 > sudo cp lj3100_mux lj3100_print lj3100_status lj3100_echo /usr/local/lj3100/
    	
  • Get Ghostscript from SourceForge or somewhere else. I used gnu-gs version 6.52.
    	(1:08) [jk@jack] /usr/local/src > tar xfz /tmp/ghostscript-6.52.tar.gz
    	(1:08) [jk@jack] /usr/local/src > cd ghostscript-6.52
    	
  • Apply this patch to the ghostscript Makefile.
    	(1:10) [jk@jack] /usr/local/src/ghostscript-6.52 > (cd src && patch < /tmp/ghostscript.patch)
    	
  • Get the JPEG library from ftp.uu.net or a mirror and extract it into the ghostscript tree:
    	(1:15) [jk@jack] /usr/local/src/ghostscript-6.52 > tar xfz /tmp/jpegsrc.v6b.tar.gz 
    	(1:15) [jk@jack] /usr/local/src/ghostscript-6.52 > ln -s jpeg-6b jpeg
    	
  • Make and install ghostscript:
    	(1:16) [jk@jack] /usr/local/src/ghostscript-6.52 > ln -s src/unix-gcc.mak ./makefile
    	(1:16) [jk@jack] /usr/local/src/ghostscript-6.52 > make
    	(1:45) [jk@jack] /usr/local/src/ghostscript-6.52 > sudo make install
    	
  • Download this boot script and put it into place:
    	(1:43) [jk@jack] ~ > sudo cp /tmp/lj3100 /usr/local/lj3100
    	(1:43) [jk@jack] ~ > sudo chmod 755 /usr/local/lj3100
    	(1:43) [jk@jack] ~ > sudo ln -s /usr/local/lj3100/lj3100 /etc/init.d/lj3100
    	(1:45) [jk@jack] ~ > sudo ln -s /etc/init.d/lj3100 /etc/rc0.d/K62lj3100
    	(1:45) [jk@jack] ~ > sudo ln -s /etc/init.d/lj3100 /etc/rc1.d/K62lj3100
    	(1:45) [jk@jack] ~ > sudo ln -s /etc/init.d/lj3100 /etc/rc2.d/S58lj3100
    	(1:46) [jk@jack] ~ > sudo ln -s /etc/init.d/lj3100 /etc/rc3.d/S58lj3100
    	(1:46) [jk@jack] ~ > sudo ln -s /etc/init.d/lj3100 /etc/rc4.d/S58lj3100
    	(1:46) [jk@jack] ~ > sudo ln -s /etc/init.d/lj3100 /etc/rc5.d/S58lj3100
    	(1:47) [jk@jack] ~ > sudo ln -s /etc/init.d/lj3100 /etc/rc6.d/K62lj3100
    	
  • Configure LPRng printing using printtool:
  • Reboot.
  • Start printing.-)

  • http://www.kivela.net/jaska/projects/lj3100/
    Jaska Kivelš
    Last modified: Sat Sep 27 16:26:16 EET DST 2003