How to Install CUPS on Ubuntu Server Latest
CUPS is a printing system that is used for Unix-based operating systems. In this tutorial, we will show you how to install CUPS on an Ubuntu Server latest using the terminal.
Prerequisites
Before you begin, ensure that you have the following:
- An Ubuntu Server latest install with root privileges
- A stable internet connection
Step 1: Update Packages and Repositories
Before we begin, we have to update the system's repositories and packages.
sudo apt update
sudo apt upgrade
Step 2: Install CUPS
To install CUPS, use the following command in the terminal:
sudo apt install cups
You will also need to install the cups-filters package for CUPS to work properly. Install it using:
sudo apt install cups-filters
Step 3: Start and Enable CUPS service
Once CUPS is installed, you need to start and enable the CUPS service. You can do so with the following commands:
sudo systemctl start cups
sudo systemctl enable cups
Step 4: Configure Firewall
For security purposes, we must add a firewall rule which will allow us to use the CUPS service. You can add the following commands to configure the firewall appropriately:
sudo ufw allow 631/tcp
sudo ufw allow 5353/udp
Step 5: Access CUPS Web Interface
To access the CUPS web interface, open your web browser and enter the following URL:
https://localhost:631
You can now manage and configure printers from the web interface.
Conclusion
CUPS is an excellent printing system that can help you manage printers on your network easily. By following the above steps, you can install and configure CUPS on Ubuntu Server latest with ease.