On Friday 13 June 2008, Joseph wrote: <top-post galore...>
> On 06/12/08 10:26, Mark Knecht wrote: > > Now my mom is switching over to Gentoo and I've added & started > >cups on her computer. I've added a client.conf file pointing at my > >dad's machine. I'm now trying to figure out if I've configured cupsd > >correctly on my dad's machine to allow my mom's machine to see it. Check first that you allow connections on port 631 at your dad's firewall from your mom's IP/MAC address (nmap or nc your dad's address from your mom's machine), e.g.: $ nc -vv -n -z 10.10.10.4 631 (UNKNOWN) [10.10.10.4] 631 (ipp) open sent 0, rcvd 0 > > What commands can I run from the command line to see whether a > >printer is available? My parents are not terribly computer literate > >(who is in their 80's) so I need to ensure this is really working > >before I tell them to use it. $ lpstat -a will show you any printers that have been configured on your mom's machine. $ lpstat -p will show what printers are available and their current status. $ lpstat -s will show their path/destination - this is good to check if you have configured a printer's protocol:address correctly and it also shows you the default printer; e.g.: $ lpstat -s system default destination: PS121 device for Compaq-HP: ipp://192.168.0.3/printers/Compaq-HP device for DeskJet-930C: parallel:/dev/lp0 device for HP_LaserJet_4000: socket://10.81.104.202:9100 device for LaserJet4700dn: ipp://10.81.104.210/ipp/port1 device for PS121: lpd://10.10.10.4/DESKJET/port1 $ lpstat -t will show you all of the above and more. Use lp to print a text file as a test to the default printer (which you should set up using lp: $ lp test_file.txt or lpr test_file.txt # cancel -a will clear all queues of print jobs should things go wrong. Use # lpadmin -d to set the default printer on your mums machine. > > Also, if a client points itself at a cups server and finds a > >printer there, does the client need to install the printer 'locally' > >telling its own cups that the printer is out there or does the printer > >just start showing up in applications and cups running on both > >machines takes care of the printe formatting issues? Essentially, how > >much does Open Office on the client need to know about the printer on > >the server? If I got right what you're saying here, then OOo only needs to know which printer you have set up as the default printer on your mom's machine. Cups on your mom's machine will submit to your dad's server, which in turn should accept the job and send it to the physical printer. So, your dad's cups points to the physical printer. Your mom's cups points to your dad's IP address and physical printer name: ipp://<dad's_LAN_IP_address>/printers/<physical_printer_name[1]> [1] As set up in your dad's cups. When you connect to your mom's machine open a second terminal and keep an eye on the cups log file(s): # tail -F /var/log/cups/error_log HTH. -- Regards, Mick
signature.asc
Description: This is a digitally signed message part.

