712 Part V . Running (Make my own web site) Servers Now you

712 Part V . Running Servers Now you can configure other computers to use your printer, as described in the Setting Up Printers section of this chapter. If you try to print from another computer and it doesn t work, here are a few troubleshooting tips: . Open your firewall. If you have a restrictive firewall, it may not permit printing. You must enable access to port 513 (UDP and TCP) to allow access to printing on your computer. See Chapter 17 for information on configuring your firewall. . Enable LPD-style printing. Certain applications may require an older LPD-style printing service to print on your shared printer. To enable LPD-style printing on your CUPS server, you must turn on the cups-lpd service. Most Linux distributions that include CUPS should also include cups-lpd. In Fedora and other Red Hat systems, type chkconfig cups-lpd on as root user. Then restart the xinetd daemon (service xinetd restart). . Check names and addresses. Make sure that you entered your computer s name and print queue properly when you configured it on the other computer. Try using the IP address instead of the host name. (If that works, it indicates a DNS name resolution problem.) Running a tool such as ethereal enables you to see where the transaction fails. Access changes to your shared printer are made in the /etc/cups/cupsd.conf file. Configuring a Shared Samba Printer Your Linux printers can be configured as shared SMB printers. To share your printer as though it were a Samba (SMB) printer, simply configure basic Samba server settings as described in Chapter 27. All your printers should be shared on your local network by default. The next section shows what the resulting settings look like and how you might want to change them. Understanding smb.conf for Printing When you configure Samba, the /etc/samba/smb.conf file is constructed to enable all of your configured printers to be shared. Here are a few lines from the smb.conf file that relate to printer sharing: printcap name = /etc/printcap load printers = yes printing = cups encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd unix password sync = Yes [printers] comment = All Printers path = /var/spool/samba browseable = yes writeable = no printable = yes
Looking for affordable and reliable webhost to host and run your business application? Then look no more and go to servlet web hosting services.

Leave a Reply