Fixing Tech Issues, One Device at a Time
Guide

How To Add A Printer In Cups From The Command Line: A Beginner’s Guide

My name is Alex Wilson, and I am the founder and lead editor of CyberTechnoSys.com. As a lifelong tech enthusiast, I have a deep passion for the ever-evolving world of wearable technology.

What To Know

  • Click on the “Add Printer” button to add your printer to the CUPS printer list.
  • To add a USB printer to CUPS, you will first need to install the printer on your computer.
  • Once you are in the CUPS web interface, you will need to click on the “Add Printer” button.

CUPS is a print server for Unix-like operating systems which allows remote printers to be shared with others. If you are familiar with Linux, then you’ve probably heard of CUPS already. If not, then here is a crash course. CUPS works with printing by first creating a virtual port, then sending print jobs to that port. This port is then able to be shared. CUPS uses port 631, but you can create a different port if you like. You can manage CUPS via the web interface, but it’s easier from the command line.

How To Add Printer In Cups From Command Line

Command line interface (CLI) or Web interface for adding printer in CUPS.

Command line interface (CLI)

The command line interface is accessed by typing the command:

cupsctl WebInterface=yes

The command above enables web interface.

After executing the command above, you can access web interface on address:

http://localhost:631

Note:

* The address “http://localhost:631” is only an example address. The address must be replaced with the actual address of your CUPS server.

* If you are accessing your CUPS server from another machine, the address must be replaced with the actual address of your CUPS server.

Web interface

To add printer in CUPS via web interface, follow these steps:

1. Open web browser and type address of your CUPS server in the address bar.

2. In the left pane, click on “Administration”.

3. In the right pane, click on “Add Printer”.

4. In the “Add Printer” window, select “Network Printer“.

5. In the “Network Printer” window, enter the following information:

* Printer’s hostname or IP address

* Printer’s make and model

* Printer’s location

* Printer’s description

* Printer’s name

6. Click “Continue”.

7. In the “Printer Options” window, select “No Options”.

8. Click “Continue”.

9. In the “Printer Configuration” window, click “Add Printer”.

10. In the “Printer Configuration” window, click on “Apply”.

11. In the “Printer Configuration” window, click on “Close”.

Your printer should now be added in CUPS.

How Do I Add My Printer To Cups?

  • 1. Open a web browser and navigate to the CUPS web-based administration page.
  • 2. Click on the “Add Printer” button and follow the instructions to add your printer.
  • 3. Enter your printer’s IP address, port, and queue name.
  • 4. Click on the “Add Printer” button to add your printer to the CUPS printer list.
  • 5. Test your printer by printing a test page.

How Do I Add A Network Printer To Cups?

In Ubuntu 20.04, you can add a network printer using the system-config-printer tool. Open a terminal and type:

sudo system-config-printer

The printer configuration tool should open.

Note: You will need to enter the password for your user account.

To add a network printer, click on the “Add” button.

The printer configuration tool will then ask you for information about the printer. This includes the printer’s make and model, its IP address, and the location of the printer’s driver.

To find the IP address of the printer, you can try searching the network for printers. This can be done by typing:

smbclient -L // -N

Where is the IP address of the printer.

Note: You will need to run this command as root, so type:

sudo smbclient -L // -N

If there is more than one printer on the network, you can use the command:

To find the IP address of the printer you want to connect to.

Once you have entered all of the information about the printer, click on the “Add” button. The printer should now be added to your system.

Note: You will need to restart the printer spooler for the changes to take effect.

How Do I Add A Usb Printer To Cups?

To add a USB printer to CUPS, you will first need to install the printer on your computer. Once the printer is installed, you will need to open the CUPS web interface. You can do this by typing “localhost:631” into your web browser‘s address bar.

Once you are in the CUPS web interface, you will need to click on the “Add Printer” button. This will bring up a dialog box where you will need to select your printer from the list. Once you have selected your printer, you will need to click on the “Add Printer” button.

After the printer has been added, you will need to click on the “Printers” tab. This will show you a list of all the printers that are connected to your computer. Your USB printer should be listed there.

To print a document, you will need to select the document that you want to print and click on the “Print” button. This will bring up a dialog box where you will need to select the printer that you want to print to. Once you have selected the printer, you will need to click on the “Print” button.

That’s it! You have now successfully added a CUPS printer to your USB printer.

How Do I Add A Printer To Cups Without Drivers?

To install a printer on CUPS without drivers, follow these steps:

1. Open a terminal window and type “sudo apt-get install libcups2” to install the necessary library.

2. Restart CUPS by typing “sudo service cups restart“.

3. Open a web browser and navigate to the CUPS web interface.

4. Click “Add Printer” and follow the prompts to select your printer.

5. Select “Generic PostScript Printer” as the model and click “Continue”.

6. On the next page, select your printer’s manufacturer and model from the list and click “Continue”.

7. Select the appropriate options for your printer and click “Continue”.

8. Finally, click “Add Printer” to complete the installation.

Note: Not all printers will work with this method, and you may need to experiment with different options to get your printer to work.

How Do I Add A Printer To Cups With A Driver?

To add a printer to CUPS with a driver, you will need to follow these steps:

1. Connect your printer to your computer using a USB cable.

2. Open a terminal window and type “sudo apt-get install CUPS” to install the CUPS printing system.

3. Once the installation is complete, type “sudo systemctl start cups” to start the CUPS service.

Takeaways

In conclusion, adding a printer to CUPS using the command line is a simple process that involves running the `lpadmin` command and providing information about the printer we want to add.

Was this page helpful?

Alex Wilson

My name is Alex Wilson, and I am the founder and lead editor of CyberTechnoSys.com. As a lifelong tech enthusiast, I have a deep passion for the ever-evolving world of wearable technology.

Popular Posts:

Back to top button