Setting up a print-server

Charles Howse chowse at charter.net
Sun Dec 4 10:37:57 PST 2005


Look at this (moe is the print-server, listening on port 515):

[charles at larry:~]$ telnet moe 515
Trying 192.168.254.4...
Connected to moe.
Escape character is '^]'.
lpd [@moe.local]: Print-services are not available to your host (larry).
Connection closed by foreign host.

So what's my exact hostname?

[charles at larry:~]$ hostname
larry.local

Then I ssh to moe, then I add:
larry
larry.local

to /etc/hosts.lpd and to /etc/hosts.equiv

Now...

[charles at larry:~]$ telnet moe 515
Trying 192.168.254.4...
Connected to moe.
Escape character is '^]'.
^]
telnet> quit
Connection closed.

Looks like print services are available now, but...

[charles at larry:~]$ lpc status all
[charles at larry:~]$ 

And printing from the Mac still gets a 'busy signal'.
Can I issue a command to print something from a telnet session?

[charles at larry:~]$ telnet moe 515
Trying 192.168.254.4...
Connected to moe.
Escape character is '^]'.
lpr /etc/printcap
moe.local: lpd: Illegal service request
Connection closed by foreign host.
[charles at larry:~]$ 





More information about the freebsd-questions mailing list