Configure the system to print

Add the p9100.lrp package to the boot media - floppy/hard disk or CF card.

Call the p9100.lrp package by adding p9100 to the list of packages called in the syslinux.cfg file on the boot media.

Save the file and, if you had mounted the media, unmount it.

Copy the three modules lp.o, parport_pc.o, parport.o to the /lib/modules directory

To make sure the system calls them, add the following entries in /etc/modules

parport
parport_pc
lp

You can get to /etc/modules via the Bering menu by choosing:

Packages Configuration | Modules | Modules

Save the changed file and quit out of the Bering menu. We also need to ensure there are sufficient printer and parallel interfaces for the system to use. From the command line, change directory to:

cd /var/lib/lrpkg

Edit the file root.dev.mk by issuing

ae root.dev.mk

Check the file for the following lines:

(...)
mknod lp0 c 6 0 >null  2>&1
(...)
mknod par0  c 6 0 >null 2>&1

In the stock Bering 1.1 distro, you are likely to find lines setting up two lp nodes. Make sure you add the lines required to set up the "par" nodes.

If you need nodes for more than one printer and parallel port, add more nodes, incrementing the nodes as show below:

mknod lp1 c 6 1 >null  2>&1
mknod lp2 c 6 2 >null  2>&1

mknod par1  c 6 1 >null 2>&1
mknod par2  c 6 2 >null 2>&1

Save and quit the root.dev.mk file.

Set the appropriate permissions on these nodes by editing the root.dev.mod file, which is in the same /var/lib/lrpkg directory.

To this file, add the following:

chmod 666  lp*  >null 2>&1
chmod 640 par* >null 2>&1

Save and quit the root.dev.mod file.

Set security to allow printing from remote machines You need to configure the Shorewall rules file to allow incoming print requests on ports 9100 through to 9102

From the Bering menu, select Packages Configuration, Shorewall, Rules

Assuming that you have one local interface in a zone called "loc" representing the internal network, add the following rule:

ACCEPT	loc	fw	tcp	9100:9102

Save and quit the file with CTL+S

You should not need to allow access to ports 9100 to 9102 in /etc/hosts.allow because the version of p9100 compiled in the p9100.lrp package is not under TCPWrapper control. That is to say, p9100 runs in daemon mode, not from inetd/inetd.conf.

Having made all these changes, you need to back up the configuration and restart the system. In the Bering menu, backup all packages (unless you want to try to figure out which packages are affected by the changes you made).