Set up CUPS Print Server in Ubuntu 22.04

Print servers are software that stands between a computer and a printer, accepting printing tasks from the computer and routing them to the proper printer. The CUPS (Common UNIX Printing System) is a free and open-source modular server used on Unix and Linux-based operating systems, including Ubuntu 22.04.

This blog will demonstrate how to install, add a CUPS printer, and uninstall CUPS Print Server in Ubuntu 22.04. Let’s get started!

How to install CUPS Printer Server in Ubuntu 22.04

To install CUPS Printer Server in Ubuntu 22.04, follow the below-given steps.

Step 1: Update and Upgrade Ubuntu packages

Open up the terminal using the “CTRL+ALT+T” keys, then update and upgrade Ubuntu 22.04 system packages:

$ sudo apt update && sudo apt upgrade

Let’s go to the second step.

Step 2: Install CUPS Printer Server

To install the CUPS Printer Server in Ubuntu 22.04, use the below-mentioned command:

$ sudo apt install cups

Step 3: Start and enable CUPS on Ubuntu 22.04

To start the service of CUPS, utilize the provided command:

$ sudo systemctl start cups

Let’s enable the service of CUPS:

$ sudo systemctl enable cups

Step 4: Check CUPS status

To check the status of CUPS whether it is active or not use the given command on terminal:

$ sudo systemctl status cups

As you can see, CUPS is currently active and running on our system:

Now, let’s check out the method of setting up CUPS in Ubuntu 22.04.

How to set up CUPS Printer Server in Ubuntu 22.04

To set up a CUPS printing server, it is required to make minor changes in the configuration file. To do so, open the “cupsd.conf” file in nano editor:

$ sudo nano /etc/cups/cupsd.conf

Find and replace the “Listen localhost:631” line with “Port 631” and “Browsing No” with “Browsing On”:

Find out “Restrict access to the server” block and place a new line “Allow @LOCAL” as follows:

Look for the “Restrict access to the admin pages” block and place the following lines inside of it:

  • AuthType Default
  • Require valid-user
  • Allow @LOCAL

After making the changes, press “CTRL+O” to save them in the opened “cupsd.conf” file. Then press “CTRL+X” to close the nano editor and switch to the terminal:

Lastly, restart the CUPS services using the below-given command:

$ sudo systemctl restart cups

At this point, CUPS is all ready to use in Ubuntu 22.04.

How to add CUPS Printer in Ubuntu 22.04

To add a CUPS Printer in Ubuntu 22.04, go through the below-given instructions.

In the first step, search for “Settings” in the “Activities” menu and open it from the results:

Search for the “Printers” option from the menu bar and open it. Then click on the “Add a Printer…” button:

Select “Cups-BRF-Printer” and click on the “Add” button:

As you can see, “CUPS-BRF-Printer” is added in the “Printers” panel and ready to use:

Now open up the file you want to print, press “CTRL+P” and a print panel will appear on the screen. Then select “CUPS-BRF-Printer”from the given options and click the “Print” button to print the file:

Setting up CUPS on Ubuntu 22.04 is done. Let’s move towards its uninstallation procedure.

How to uninstall CUPS Printer Server in Ubuntu 22.04

To remove CUPS Printer Server in Ubuntu 22.04, run the below-given command:

$ sudo apt remove cups -y

We have effectively described the procedure to install, setup, use, and uninstall CUPS on Ubuntu 22.04.


To set up CUPS Printer Server on Ubuntu 22.04, first, it is required to install it by executing the “$ sudo apt install cups” command on Ubuntu’s terminal. Then, in the nano editor, open the “cupsd.conf” configuration file and make the necessary modifications as demonstrated in setting up the procedure. The following guide thoroughly elaborated on how to install, set up, use, and uninstall CUPS on Ubuntu 22.04.