[X4U] printing from 125 miles away?

Gretchen Hayman gretchen at sedl.org
Tue Dec 14 15:56:28 PST 2004


On Dec 13, 2004, at 20:05, Mark Phillips wrote:
> How could the iBook have located and communicated with the HP printer?

If your son has an account (or access to another user's account) on any 
of the other machines that are currently on your network and you allow 
ssh traffic through your network firewall and to that machine, then it 
can be accomplished quite simply.

1. ssh to a machine on your network where you have an account
2. check what printers are available using the lpstat command ('man 
lpstat' for more info)
3. use the lpr command to print to one of those printers ('man lpr' for 
more info)

Quick, painless, no GUI required.  ^_^

It looks like this process leaves some droppings in the cups error log 
on my 10.3.6 install, so you may want to check that log for the day 
this print phenomenon happened.  I just tested it and it doesn't tell 
me the name of the file, but it does show me the username that sent the 
job to the printer.  The cups error log can be found at 
/private/var/log/cups/error_log or more easily viewed though Console 
under the /var/log section.

Anyway, this is how I would go about printing remotely.  Whether or not 
this is what actually happened, I don't know.  Happy hunting!

Gretchen



More information about the X4U mailing list