Ubuntu 22.04 Tutorials

How to Configure Ubuntu 22.04 as a Windows Print Server

Learn how to configure Ubuntu 22.04 as a Windows print server in this comprehensive guide. Streamline printing operations for maximum efficiency.


In today’s digital world, efficient print management is essential for businesses of all sizes. Ubuntu, a popular Linux-based operating system, offers a reliable and cost-effective solution for setting up a print server. In this article, we will guide you through the process of configuring Ubuntu 22.04 as a Windows print server. Whether you’re a small business owner or an IT professional, this step-by-step guide will help you streamline your printing operations and maximize productivity.

Understanding Ubuntu 22.04 as a Windows Print Server

Before diving into the configuration process, let’s briefly explore what it means to use Ubuntu 22.04 as a Windows print server. Ubuntu is a free and open-source operating system based on the Linux kernel. It provides a secure, stable, and customizable platform for various applications, including print management.

By setting up Ubuntu 22.04 as a Windows print server, you can centralize printing resources and enable seamless printing for Windows-based devices in your network. This allows users to send print jobs from their Windows computers to shared printers connected to the Ubuntu print server.

System Requirements for Ubuntu 22.04 Print Server

Before proceeding with the configuration, ensure that your system meets the following requirements:

  • Ubuntu 22.04 LTS installed on a dedicated server or virtual machine
  • Sufficient disk space for print spooling and driver storage
  • Network connectivity to the Windows devices and printers
  • Administrative privileges to configure the necessary settings

Installation and Setup

1. Updating Ubuntu 22.04

To begin, it’s essential to have an up-to-date Ubuntu system. Open the terminal and execute the following commands:

sudo apt update
sudo apt upgrade

These commands will update your system with the latest packages and security patches.

2. Installing CUPS (Common UNIX Printing System)

CUPS is the printing system used by Ubuntu to manage print services. Install CUPS by entering the following command:

sudo apt install cups

3. Configuring CUPS

Once CUPS is installed, you need to make a few configuration changes to enable Windows print server functionality. Open the CUPS configuration file using the command:

sudo nano /etc/cups/cupsd.conf

Locate the line that starts with “Listen” and ensure it is set to the IP address or hostname of your Ubuntu server. Uncomment the line if necessary.

Next, find the line that starts with “BrowseAllow” and add the subnet of your network to allow browsing of printers. For example:

BrowseAllow @LOCAL

Save the changes and exit the file.

4. Adding Printers

To add printers to your Ubuntu print server, you can either use the CUPS web interface or the command line. Here, we will demonstrate the web interface method.

Open a web browser on a computer connected to the same network and enter the following address:


Click on the “Administration” tab and then “Add Printer.” Follow the on-screen instructions to add and configure the desired printers. Make sure to select the appropriate driver for each printer.

5. Configuring Printer Sharing

For Windows devices to access the printers on your Ubuntu print server, printer sharing must be enabled. Open the CUPS web interface as explained in the previous step.

Click on the “Printers

” tab and select the printer you want to share. Under the “Administration” dropdown, choose “Set Allowed Users.” Add the Windows user accounts or groups that need access to the printer.

6. Installing Samba

Samba is a software suite that enables Linux systems to share files and printers with Windows devices. Install Samba by executing the following command:

sudo apt install samba

7. Configuring Samba

After installing Samba, edit the configuration file by entering the command:

sudo nano /etc/samba/smb.conf

At the end of the file, add the following lines to define the shared printer:

   comment = All Printers
   browseable = yes
   path = /var/spool/samba
   printable = yes
   guest ok = yes
   read only = yes
   create mask = 0700

Save the changes and exit the file.

8. Restarting Services

To apply the configuration changes, restart the CUPS and Samba services using the following commands:

sudo service cups restart
sudo service smbd restart

FAQs (Frequently Asked Questions)

Q1: Can I use Ubuntu 22.04 as a print server for other operating systems?

Yes, Ubuntu 22.04 can act as a print server for various operating systems, including Windows, macOS, and other Linux distributions.

Q2: What if I encounter issues with printer drivers in Ubuntu?

Ubuntu has a vast database of printer drivers, but in case your printer model is not supported, you may need to search for a compatible driver manually or contact the printer manufacturer for assistance.

Q3: Is it possible to set up print quotas and access restrictions in Ubuntu 22.04?

Yes, using the CUPS web interface, you can configure print quotas, restrict access to specific users or groups, and implement other advanced print management features.

Q4: Can I connect wireless printers to the Ubuntu print server?

Yes, Ubuntu supports wireless printers. As long as the wireless printer is connected to the same network as the Ubuntu server, you can add and configure it like any other printer.

Q5: Is it necessary to have a dedicated server for Ubuntu print server?

While a dedicated server is recommended for optimal performance, you can also set up Ubuntu as a print server on a virtual machine or use an existing server with sufficient resources.

Q6: Can I manage the Ubuntu print server remotely?

Yes, you can remotely manage the Ubuntu print server using the CUPS web interface from any computer within the same network.


Configuring Ubuntu 22.04 as a Windows print server provides an efficient and cost-effective solution for managing printing resources in a networked environment. By following the step-by-step instructions in this article, you can streamline your printing operations and enhance productivity. Ubuntu’s reliability and flexibility make it an excellent choice for businesses of all sizes.

Implementing a print server not only simplifies print management but also improves security and reduces the load on individual workstations. Take advantage of Ubuntu’s robust features and enjoy seamless printing across your Windows devices.

I hope this article was helpful!  You can find more here: Ubuntu Tutorial Articles

author avatar
Patrick Domingues

Leave a Comment

Stay Informed

Receive instant notifications when new content is released.