Archive for October, 2007

704 Part V . Running Servers (Jetty web server) The DeviceURI

Wednesday, October 3rd, 2007

704 Part V . Running Servers The DeviceURI line is packed with the key information. It identifies the location (an smb object), username (jjones), user s password (my9passswd), workgroup (FSTREET), server (NS1), and printer queue name (hp). The contents of the cupsd.conf file define who you will allow to use this printer. Order Deny,Allow Deny From All Allow From 127.0.0.1 AuthType None Based on this example information, only users from the local host (127.0.0.1) are allowed to use the printer, and no authentication is necessary for them to use it. If everything is set up properly, you can use the standard lpr command to print the file to the printer. Using this example, employ the following form for printing: $ cat file1.ps | lpr -P NS1-PS If you are receiving failure messages, make sure that the computer to which you are printing is accessible. For the Printer NSI-PS example, you can type smbclient -L NS1 -U jjones. Then type the password (my9passswd, in this case). If you get a positive name query response after you enter a password, you should see a list of shared printers and files from that server. Check the names, and try printing again. Adding a NetWare Printer To set up your Linux system to use a printer that is connected to (or otherwise managed by) a NetWare file and print server, you must gather the information about the server, queue, user, and password. Select to add a Novell printer (Novell created NetWare) from the Printer Configuration window (described previously), and then fill in the following information: . Server Host name of the computer to which the printer is attached (or otherwise accessible). This is the NetWare Server name for the computer. . Queue Name of the print queue on the NetWare server. . User Username required by the NetWare server system to enable access to the NetWare printer. . Password Password associated with the username. Complete the rest of the procedure as you would for a local printer (see the Adding a Local Printer in Red Hat section earlier in this chapter). Tip
Searching for affordable and proven webhost to host and run your servlet applications? Go to Linux Web Hosting services and you will find it.

Chapter 26 . Running (Crystaltech web hosting) a Print Server 703

Tuesday, October 2nd, 2007

Chapter 26 . Running a Print Server 703 3. When prompted, fill in the username and password needed to access the SMB printer. (You may also fill in the Workgroup information, if required.) Click OK to continue. Alternatively, you can identify a server that does not appear on the list of servers. Click the Specify button and enter the following information in the appropriate fields: . Workgroup The workgroup name assigned to the SMB server. Filling in the workgroup name isn t necessary in all cases. . Server NetBIOS name or IP address for the computer, which may or may not be the same as its TCP/IP name. To translate this name into the address needed to reach the SMB host, Samba checks several places where the name may be assigned to an IP address. Samba checks the following (in the order shown) until it finds a match: the local /etc/hosts file, the local /etc/lmhosts file, a WINS server on the network, and responses to broadcasts on each local network interface to resolve the name. . Share Name under which the printer is shared with the remote computer. It may be different from the name by which local users of the SMB printer know the printer. . User Username is required by the SMB server system to give you access to the SMB printer. A username is not necessary if you are authenticating the printer based on share-level rather than user-level access control. With sharelevel access, you can add a password for each shared printer or file system. . Password Password associated with the SMB username or the shared resource, depending on the kind of access control being used. When you enter a User and Password for SMB, that information is stored unencrypted in the /etc/cups/printers.conf file. Be sure that the file remains readable only by root. Complete the rest of the procedure as you would for a local printer (see the Adding a Local Printer in Red Hat section earlier in this chapter). The result is new entries in the /etc/cups/cupsd.conf and printers.conf files. This /etc/cups/printers.conf entry shows the printer entry just created: Info Created by redhat-config-Eprinter 0.6.x DeviceURI smb://jjones:my9passswd@FSTREET/NS1/hp Location HP on ns1 State Idle Accepting Yes JobSheets none none QuotaPeriod 0 PageLimit 0 KLimit 0 Caution
We recommend high quality webhost to host and run your jsp application: christian web host services.

Web hosting - 702 Part V . Running Servers Adding a

Monday, October 1st, 2007

702 Part V . Running Servers Adding a Remote CUPS Printer If you chose to add a CUPS printer from the Printer Configuration window, you must add the following information to the window that appears: . Server Host name of the computer to which the printer is attached (or otherwise accessible). This can be an IP address or TCP/IP host name for the computer (the TCP/IP name is accessible from your /etc/hosts file or through a DNS name server). . Path Printer name on the remote CUPS print server. CUPS supports printer instances, which allows each printer to have several sets of options. If the remote CUPS printer is configured this way, you are able to choose a particular path to a printer, such as hp/300dpi or hp/1200dpi. A slash character separates the print queue name from the printer instance. Complete the rest of the procedure as you would for a local printer (see the Adding a Local Printer in Red Hat section earlier in this chapter). Adding a Remote UNIX Printer If you chose to add a UNIX printer from the Printer Configuration window, you must add the following information to the window that appears: . Server Host name of the computer to which the printer is attached (or otherwise accessible). This is the IP address or TCP/IP name for the computer (the TCP/IP name is accessible from your /etc/hosts file or through a DNS name server). . Queue Printer name on the remote UNIX computer. Complete the rest of the procedure as you would for a local printer (see the Adding a Local Printer in Red Hat section earlier in this chapter). If the print job you send to test the printer is rejected, the print server computer may not have allowed you access to the printer. Ask the remote computer s administrator to add your host name to the /etc/lpd.perms file. (Type lpq -Pprinter to see the status of your print job.) Adding a Windows (SMB) Printer Enabling your computer to access an SMB printer (the Windows printing service) involves adding an entry for the printer in the Printer Configuration window. When you choose to add a Windows printer to the Printer Configuration window (described previously), you are presented with a list of computers on your network that have been detected as offering SMB services (file and/or printing service). At that point, here is how you can configure the printer: 1. Select the server (click the arrow next to its name so that it points down). 2. Select the printer from the list of available printers shown. Tip
You need excellent and relaible webhost company to host your web applications? Then pay a visit to Inexpensive Web Hosting services.