Click to See Complete Forum and Search --> : SuSE 8.1 LPRng printer server - configuration


rdeschene2
06-26-2004, 07:40 AM
FYI to anyone who is interested:
- this is probably obvious to many people, but I had to work at it a bit so I'm posting what I did here. There seems to be more info. on setting up samba than on how to share a printer among linux boxes on a network.

- this is how I setup my desktop to act as a print server for my laptop.
- the desktop is connected to a Netgear WGR614 wireless router/firewall through an Ethernet cable and the laptop is connected to the router via a 802.11g wireless card
- the HP Laserjet 4P printer is plugged into the LPT port of the desktop
- both laptop and desktop are running SuSE 8.1

On laptop: - first used YaST2 to install lprng and lpd, which caused the
automatic uninstallation of cups server.

- downloaded bug fixes for lprng, lpdfilter and cups-libs from SuSE and
installed as root using rpm -U Ran SuSEconfig Repeat on desktop/print server

- used ifconfig on laptop to determine it has IP address 192.168.0.4 and on
desktop to determine it has 192.168.0.2

On desktop/print server:
- as root edit /etc/hosts.lpd and add 192.168.0.4 to the end of the file
(allows this IP address to be treated as equivalent to the local computer for
lpd)
- as root edit /etc/inetd.conf and add a line (below where the "commented out"
printer line is already - this, like all of SuSE8.1 is setup to be
CUPS-centered)
printer stream tcp nowait lp /usr/sbin/tcpd /usr/bin/lpd -t
- went into YaST2 and select, Network Basic, inetd, turn on inetd with custom
configuration, scroll down the list to confirm there is a line that shows
printer is Active. Select Finish (to make sure inetd super-daemon is
restarted).

On laptop:
- YaST2, Hardware, Printer, Skip autodetection, Configure, Show more connection
types, LPD forwarding queue (it will basically send raw data to the print
server, and allow the print server to generate the print job using its own
configuration for lp. That way I can upgrade the printer without having to change any configurations on the laptop), host name of printer server 192.168.0.2, queue lp, Test Remote LPD Queue worked.

- verified this worked by printing an ASCII file using:
lpr ./Documents/filename
printed a webpage from Mozilla