Operating System - Linux
1822430 Members
3239 Online
109642 Solutions
New Discussion юеВ

setup a linux server as print server

 
Tommy Wang
Occasional Advisor

setup a linux server as print server

Hello all,
I would like to setup a linux server for providing printing service. Now I found trouble in transfering printing requests from HP-UX to the linux server.
Is there anyone has carried out such task?

Any help is highyl appriciated.

2 REPLIES 2
Herve BRANGIER
Respected Contributor

Re: setup a linux server as print server


What is your problem, exactly ?

If you use a RedHat distribution you may have
a non standard printer deamon (lprng, see for
information at http://www.lprng.org). It seems
to be compatible with standard lpd but ....

You can see version of lpd with "lpd -V" and
see man page to configure lpd.conf. You can
also add debug informations with -D options
and -F (to use lpd in foreground mode). Put
logs in an alternate file with -L option, it's
better for debug.

HTH

Herv?


Kodjo Agbenu
Honored Contributor

Re: setup a linux server as print server

Hello Kenny,

On HP-UX :
----------

When creating the printer queue (remote), don't forget to check the box "Remote Printer on a BSD system".

Command-line option would give this :

lpshut
lpadmin -p -v/dev/null -mrmodel -orm -orp -ob3
enable local_hpux_queue_name
accept local_hpux_queue_name
lpsched


On Linux :
----------

Check that the printer daemon (lpd or lprng) is started (ps -ef | grep lp).

Check that the network service is listening (netstat -a | grep lp). For testing, you can try :
telnet localhost printer

It should reply something like "Connecting to localhost" and perhaps "connection closed".

If it answers "connection refused", check /etc/hosts.allow and /etc/hosts.deny for IP-based permissions.

Good luck

Kodjo
Learn and explain...