Optional Advanced
LRP Linux kernel has to be recompiled with parallel port
and printer module support:
on the machine where you compile the kernel
edit /usr/src/linux/.config
in the "General Setup" section:
CONFIG_PARIDE_PARPORT=m
edit /usr/src/linux/.config
in the "Character devices" section:
CONFIG_PRINTER=m
CONFIG_PRINTER_READBACK=y
modify modules.lrp
add these 3 kernel modules to /lib/modules
parport.o
parport_pc.o
lp.o
root.lrp has to be modified to create parallel ports and lp
ports.
add to /var/lib/lrpkg/root.dev.mk
mknod lp0 c 6 0 >null 2>&1
mknod lp1 c 6 1 >null 2>&1
mknod lp2 c 6 2 >null 2>&1
mknod par0 c 6 0 >null 2>&1
mknod par1 c 6 1 >null 2>&1
mknod par2 c 6 2 >null 2>&1
add to /var/lib/lrpkg/root.dev.mod
chmod 666 lp* >null 2>&1
chmod 640 par* >null 2>&1
etc.lrp has been modified:
modify /etc/network.conf
to use
static IP address,
modify /etc/inetd.conf if you use LPD
modify /etc/services if you use LPD
lpd.lrp
/etc/printcap
/etc/hosts.lpd which has hostname or ip addresses that use this
box.
The source code used is p910nd-0.7.tar.gz
modify p910nd.c (approximately at line 75)
modify Makefile
comment out the line with LIBWRAP
un-comment the line above it.
reason: the LRP library does not support tcp wrapper library
Previous code was p910nd-0.4.tar.gz
modify line 56 in p910nd.cIf the source code is in .tar.bz2, use bunzip2 to decompress it.
© 2002-2007 Nicholas Fong
Last revision date: January 08, 2005