Cups what is device uri




















In technical literature the printer would be described as host-based. See whether the plugin is needed and use HP's home page search facility to see a printer's details and find out what any firmware is required for. Plugin software can be installed as root without the hplip package and its dependencies being on the system.

The names of these packages and their contents have been known to change, so it may very well be best to search for them using a printer model. Adapting the guide for a wireless connection should not be difficult. The commands as root getweb less getweb p give a list of what is available and download the firmware file for an HP LaserJet P Hannah is a graphical firmware downloader that uses getweb.

Re-plug the connection to the printer to upload the firmware to it. Avoiding Non-free Printer Drivers and Firmware A non-free filter generally gets used at the last stage of the filtering process after cups-filters has done its job. The process ends with something that is sometimes termed host-based and which is often proprietary rather than letting the printer itself take care of the final conversion. It makes sense to the printer manufacturer to do this probably on legal, technical or economic grounds but it disrupts the free software ecosystem within which CUPS and cups-filters operate.

These file types are also referred to as PWG and Apple raster data formats respectively. This is dealt with in more detail on the driverless printing page. With a modern printer the use of non-free software or non-free plugins is completely avoidable.

They have been adapted to cope with other standard printer languages such as HP's Printer Command Language PCL and special often proprietary languages. Driver packages include PPDs in their contents. If there is more than one, go for the PPD that is marked Recommended. If none are recommended, use common sense or seek help from the openprinting database.

Some Generic PPDs are listed with lpinfo -m and one could be a solution when every driver package is installed and your printer model is not in the list. You can also resort to the printer manufacturer's website or a CD that came with the printer. It will then be displayed in the outputs of lpinfo -m , the web interface and system-config-printer.

Creating a Print Queue with lpadmin This is the basic method to set up a queue. There are four essentials to provide when setting up a working, accepting print queue with lpadmin. The queue name -p : The printing system treats the name in a case-insensitive manner; LaserJet is the same queue as laserjet Chose any valid name that makes sense to you. The device-uri -v : The destination for a print job; usually a printer but may be a queue on a CUPS server.

The printer model -m : Determines how the print job is handled by the filtering system to produce data that can be successfully printed by the printer. Options are to specify a PPD or have a PPD generated from the printer response to being queried see everywhere and driverless or raw. Whether the queue is enabled -E : Must be specified explicitly. Setting up a queue with lpadmin or the web interface requires either root privileges or for the user to be a member of the lpadmin group.

If you installed CUPS using the printserver task in the Debian installer, the first user is put in the lpadmin group. Administrative tasks are able to be completed by giving the username root and root's password or providing the username and password of an lpadmin group member. The above display is a transcript taken from the image forming the basis of a previous account of the CUPS web interface.

Under Local Printers are the discovered printers that are directly connected to the computer being used. Printer in this context refers to a real machine or a virtual printer such as cups-pdf. Note that the psc has been discovered by the usb and hp backends.

Discovered Network Printers are networked printers on the same subnet as the computer. Or they could be print queues these entries display an in a name that the dnssd backend has found on the same subnet. Other Network Printers gives you the opportunity to provide the device uri and PPD for a printer or queue that falls into neither of the previous two categories. The information to be provided is asked for on the second and third pages. Having made a selection from Local Printers: or Discovered Network Printers: you should find a queue name based on the printer make and model has been filled in for you on the next page.

Change it by all means if you wish. Once it is done it cannot be modified later because a new name would imply setting up a different, new queue. Share printers connected to this system on the Administration page is the basic facility to allow or not allow DNS-SD broadcasting of any queue.

Ticking Share This Printer on the second page designates your queue as one to add to this facility. Moving on to the third page you should find that the Everywhere Model or a PPD has been selected for you, unless The printer or queue doesn't fit the everywhere model. The printer or queue provides no make and model information to CUPS. There is no PPD for the printer or queue on the system.

Other Network Printers is being used. The previous driver and PPD comments apply here too. The final page has the default printer-specific options from the PPD and a few non-specific printer options. These defaults should suit the needs of many users. Only the printing aspect is dealt with here. USB scanning is the subject of another wiki page and network scanning is linked from it. Be aware that the hplip package can be dispensed with for printing on a modern HP printer because it is most probably well suited to driverless printing.

Only libsane-hpaio might be needed for scanning: apt install --no-install-recommends libsane-hpaio. Printer discovery and setting up a print queue can be done from the command line with hp-setup. For USB and printers on the network: hp-setup -i -busb hp-setup -i -bnet You will be led through the rest of the procedure. The SLP service agent runs on port of a printer; do you have such a service?

The command hp-setup -i -bnet uses only SLP for discovery. If you want to setup a queue for an mdns advertised printer it is suggested to do hp-probe -mmdns This provides a device URI. Some HP printers require a non-free plugin to operate at their full potential; hp-plugin is a useful utility to use to obtain it. Printer discovery would be done through any of lpadmin , the CUPS web interface or system-config-printer.

Bear in mind that, depending on the age of the printer and the connection type , automatic scanner discovery on an HP MFD may become unavailable if this is done. Creating a Print Queue with system-config-printer The idea of system-config-printer is to provide functionality similar to lpadmin and the CUPS web interface but with greater desktop integration rather than interacting with a commandline or browser interface.

However, anyone familiar with the CUPS web interface should feel at home with using it. Please see this other page for a view on how system-config-printer behaves on a default bullseye installation.. The initial screen seen when system-config-printer is run displays icons and names for local print queues; that is, queues that have been set up by a user or by cups-browsed.

The Add button is for printer discovery and creating a new queue for a printer. Hopefully, the device-uri and CUPS web interface sections will be found useful for interpreting and acting on the discovered printers display. What should I use?

From Oracle :. Also, from the driver's manual page :. The driver installation will start. Follow the installation screen directions. So I'm assuming you are not using USB because if you are this would be as simple as pressing ' N o' , so in order to use your printer on the network you have to. Follow this tutorial. The output of gmelodie's lpinfo command is now:. This finally got mine working when the URI wouldn't show from the above methods. Ubuntu Community Ask!

Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Asked 2 years, 2 months ago. Active 5 months ago. Viewed 28k times. What is "the device URI" and how do I find it? The device-uri attribute specifies a unique identifier for the device. The actual format of the device-uri string depends on the value of the device-class attribute:.

It is up to the client application to add the appropriate host and other information when adding a new printer. The URI returned by Get-Printer-Attributes and CUPS-Get-Printers has any username and password information stripped; the information is still stored and used by the server internally to perform any needed authentication. The default value is false. The brightness attribute specifies the overall brightness of the printed output in percent. A brightness of is normal, while is twice as bright and 50 is half as bright.

The default value is The columns attribute specifies the number of columns to generate when printing text files. The default value is 1. The cpi attribute specifies the number of characters per inch when printing text files.

Only the values 10, 12, and 17 are currently supported. The gamma attribute specifies the luminance correction for the output. A value of specifies no correction, while values of and will generate lighter and darker output, respectively. The hue attribute specifies a color hue rotation when printing image files. The default value is 0. The job-hold-until attribute specifies a hold time. If the specified time is less than the current time, the job is held until the next day.

The job-sheets attribute specifies one or two banner files that are printed before and after a job. The reserved value of "none" disables banner printing. The default value is stored in the job-sheets-default attribute.

If only one value is supplied, the banner file is printed before the job. If two values are supplied, the first value is used as the starting banner file and the second as the ending banner file.

The job-originating-host-name attribute specifies the host from which the job was queued. The value will be the hostname or IP address of the client depending on whether hostname resolution is enabled. The localhost address The lpi attribute specifies the number of lines per inch when printing text files. Only the values 6 and 8 are currently supported.

The default value is 6. The mirror attribute specifies whether pages are mirrored on their X axis, which is useful for printing transfer images on special media. The natural-scaling attribute specifies the scaling of image files with respect to the natural image size.

A value of specifies that the image file should exactly the natural size, while 50 is half the natural size and is twice the natural size. The ppi option can be used to override the natural resolution of the image, which controls the natural size. The number-up-layout attribute specifies the order each input page is placed on each output page. The following keywords are presently defined:.

The page-border attribute specifies whether a border is draw around each page. The page-bottom attribute specifies the bottom margin in points 72 points equals 1 inch.

The default value is the device physical margin. The page-label attribute provides a text value to place in the header and footer on each page.



0コメント

  • 1000 / 1000