Chapter 26 . Running a Print Server 707 In Gentoo Linux, you use the add option of the rc-update command to have the CUPS service start at each reboot and run the cupsd runlevel script to start it immediately. For example, type the following as root user: # rc-update add cupsd default # /etc/init.d/cupsd start Most Linux systems have similar ways of starting the CUPS service. You may need to poke around to see how CUPS starts on the distribution you are using. Configuring CUPS Printer Options Manually If your Linux distribution doesn t have a graphical means of configuring CUPS, you can edit configuration files directly. For example, when a new printer is created from the Printer Configuration window, it is defined in the /etc/cups/printers.conf file. Here is what a printer entry looks like: Info Created by system-config-printer 0.6.x DeviceURI parallel:/dev/lp0 Location HP LaserJet 2100M in hall closet State Idle Accepting Yes JobSheets none none QuotaPeriod 0 PageLimit 0 KLimit 0 This is an example of a local printer that serves as the default printer for the local system. The most interesting information relates to DeviceURI, which shows that the printer is connected to parallel port /dev/lp0. The state is Idle (ready to accept printer jobs), and the Accepting value is Yes (the printer is accepting print jobs by default). The DeviceURI has several ways to identify the device name of a printer, reflecting where the printer is connected. Here are some examples listed in the printers .conf file: DeviceURI parallel:/dev/plp DeviceURI serial:/dev/ttyd1?baud=38400+size=8+parity=none+flow=soft DeviceURI scsi:/dev/scsi/sc1d6l0 DeviceURI socket://hostname:port DeviceURI tftp://hostname/path DeviceURI ftp://hostname/path DeviceURI http://hostname[:port]/path DeviceURI ipp://hostname/path DeviceURI smb://hostname/printer
From our experience, we are can tell you that you can find a reliable and cheap webhost service at Java Web Hosting services.
This entry was posted
on Friday, October 5th, 2007 at 3:09 pm and is filed under PHP5.
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.