qr code with vb.net 14: Con guring Linux Network Services in Software

Painting ANSI/AIM Code 128 in Software 14: Con guring Linux Network Services

14: Con guring Linux Network Services
Code 128C Maker In None
Using Barcode generator for Software Control to generate, create Code 128 Code Set A image in Software applications.
Scan Code 128 Code Set B In None
Using Barcode decoder for Software Control to read, scan read, scan image in Software applications.
FIGURE 14-42
Drawing Code 128 Code Set B In Visual C#.NET
Using Barcode drawer for .NET Control to generate, create Code 128 Code Set C image in VS .NET applications.
Paint Code 128 Code Set B In Visual Studio .NET
Using Barcode encoder for ASP.NET Control to generate, create Code 128C image in ASP.NET applications.
Adding a new CUPS printer
Create Code 128A In Visual Studio .NET
Using Barcode creation for .NET Control to generate, create Code128 image in .NET applications.
Drawing Code 128 Code Set C In VB.NET
Using Barcode printer for VS .NET Control to generate, create Code 128 Code Set A image in .NET framework applications.
10 In the Model/Driver screen, select the printer manufacturer, then select Continue 11 In the Model field, select your printer model; then select Continue At this point, a page is displayed indicating your printer has been added To see the current status of your printer, select the link for the printer A screen similar to that shown in Figure 14-43 is displayed
Code128 Creation In None
Using Barcode creator for Software Control to generate, create Code 128 image in Software applications.
UPC-A Drawer In None
Using Barcode creator for Software Control to generate, create UPC Code image in Software applications.
FIGURE 14-43
Drawing EAN / UCC - 14 In None
Using Barcode creator for Software Control to generate, create UCC.EAN - 128 image in Software applications.
Encode Code 3/9 In None
Using Barcode generator for Software Control to generate, create USS Code 39 image in Software applications.
Viewing the printer status
Making Bar Code In None
Using Barcode creator for Software Control to generate, create bar code image in Software applications.
EAN13 Encoder In None
Using Barcode printer for Software Control to generate, create EAN13 image in Software applications.
Con gure Printing on Linux
USPS Confirm Service Barcode Encoder In None
Using Barcode maker for Software Control to generate, create Planet image in Software applications.
Scan Barcode In Java
Using Barcode Control SDK for Java Control to generate, create, read, scan barcode image in Java applications.
From the Printer Status page, you can manage your CUPS printer You can send a test page, stop the printer, kill a print job, modify the printer configuration, or delete the printer altogether At this point, you can send print jobs to the printer If you re using a graphical X Windows application, you can simply select File | Print, then select the printer and click OK You can also send print jobs from the command line to the printer This is done using the lp command, which will send a specified file to the printer The syntax for using lp is lp d printer_name filename For example, if I wanted to print the myfiles file in the current directory to the HPLJ5 printer I just created, I would enter lp d HPLJ5 /myfiles at the shell prompt, as shown in Figure 14-44 As you can see in Figure 14-44, the job is created and assigned an ID, in this case HPLJ5-2 The lp utility includes a variety of options besides d that you can use to create print jobs, including the following:
Drawing Code-39 In VS .NET
Using Barcode generation for Reporting Service Control to generate, create ANSI/AIM Code 39 image in Reporting Service applications.
ECC200 Encoder In VS .NET
Using Barcode creation for ASP.NET Control to generate, create Data Matrix image in ASP.NET applications.
n x m q
Painting Code-128 In .NET
Using Barcode generator for Visual Studio .NET Control to generate, create Code 128B image in VS .NET applications.
USS-128 Generator In .NET Framework
Using Barcode encoder for Visual Studio .NET Control to generate, create GS1 128 image in .NET applications.
Prints x number of copies
Data Matrix Drawer In None
Using Barcode creator for Online Control to generate, create DataMatrix image in Online applications.
Universal Product Code Version A Creator In Objective-C
Using Barcode drawer for iPad Control to generate, create Universal Product Code version A image in iPad applications.
E-mails a confirmation message to my local user account when the job is finished printing Sets the priority of the print job Prints the file landscape instead of portrait Prints the file double-sided on a printer that supports duplexing
o landscape o sides=2
You can also configure other Linux systems to print to the CUPS printer Simply configure a new printer, but specify that it listen for CUPS announcements The CUPS printer you configured should be displayed within 30 seconds After selecting it, all print jobs sent to that printer will be redirected over the network connection to your CUPS printer In addition, if you ve installed Samba on your system, then your CUPS printers are automatically shared You can connect to them from Windows workstations and submit print jobs Now that s cool! Let s next discuss how to use command-line tools to manage your CUPS printers
FIGURE 14-44
Sending a print job from the shell prompt
14: Con guring Linux Network Services
FIGURE 14-45
Using lpstat to view printer information
Using Command-Line Tools to Manage CUPS
In addition to the CUPS Web-based administration utility, you can also use a variety of command-line tools to configure CUPS To view CUPS printer information, you can use the lpstat utility One of the most useful options you can use with lpstat is t This will cause lpstat to display all information about all CUPS printers on the system This is shown in Figure 14-45 This shows the default CUPS printer (HPLJ5), how it s connected (/dev/lp0), the print job currently being processed (HPLJ5-1), and a list of pending print jobs To cancel a pending print job, you can use the cancel command The syntax is cancel job_ID For example, in Figure 14-46, the HPLJ5-2 print job has been removed from the print queue If you have more than one CUPS printer connected, you can use the lpoptions d printer command to specify the default printer For example, to set the HPLJ5 printer as the default, I would enter lpoptions d HPLJ5 This sets the default printer for all users on the system Individual users can override this setting, however, by creating
FIGURE 14-46
Canceling a print job
Con gure Printing on Linux
FIGURE 14-47
Disabling a print queue
a file named lpoptions in his or her home directory and adding the following directive:
default printer_name
If you want to view your printer s configuration settings, you can enter lpoptions l at the shell prompt In addition to the lpoptions command, you can also use the accept printer_name and reject printer_name commands to enable or disable a printer s print queue For example, I could enter reject HPLJ5 at the shell prompt to disable the printer s print queue This is shown in Figure 14-47 The printer itself will continue processing queued print jobs, but cupsd will not allow any new jobs to enter the queue To enable the queue again, I would enter accept HPLJ5 at the shell prompt To disable the printer itself, not the queue, I could enter disable HPLJ5 at the shell prompt This is shown in Figure 14-48 The print queue will continue to accept jobs, but none of them will be printed until I enter /usr/bin/enable HPLJ5 at the shell prompt Notice that I had to use
FIGURE 14-48
Copyright © OnBarcode.com . All rights reserved.