650 Part V . Running Servers To enable Web-based CUPS administration, the cupsd daemon listens on port 631 for all network interfaces to your computer based on this entry: Listen *:631. By turning on BrowseRelay (it s off by default), you can allow CUPS browse information to be passed among two or more networks. The source-address and destination-address can be individual IP addresses or can represent network numbers: BrowseRelay source-address destination-address This is a good way to enable users on several connected LANs to discover and use printers on other nearby LANs. You can allow or deny access to different features of the CUPS server. An access definition for a CUPS printer (created from the Printer Configuration window) might appear as follows: Order Deny,Allow Deny From All Allow From 127.0.0.1 AuthType None Here, printing to the ns1-hp1 printer is allowed only for users on the local host (127. 0.0.1). No password is needed (AuthType None). To allow access to the administration tool, the CUPS must be configured to prompt for a password (AuthType Basic). Starting the CUPS Server For Linux systems that use SystemV-style startup scripts (such as Fedora, RHEL, and SUSE), starting and shutting down the CUPS print service is pretty easy. Use the chkconfig command to turn on CUPS so it starts at each reboot. Run the cups startup script to have the CUPS service start immediately. Type the following as root user: # chkconfig cupsd on # /etc/init.d/cups start If the CUPS service was already running, you should use restart instead of start. Using the restart option is also a good way to reread any configuration options you may have changed in the cupsd.conf file. Other Linux systems vary in how they start up the CUPS service. For example, in Slackware, you can turn on CUPS printing permanently by simply making the rc.cups script executable and then turn it on immediately by executing it (typing the following as root user): # chmod 755 /etc/rc.d/rc.cups # /etc/rc.d/rc.cups start
From our experience, we can recommend PHP Web Hosting services, if you need affordable webhost to host and run your web application.
This entry was posted
on Sunday, September 16th, 2007 at 6:53 am and is filed under Linux.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.