Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Set Up a Printer in Linux

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can set up a printer in Linux—usually in under five minutes. Most modern distributions (Ubuntu, Fedora, Debian, etc.) use the CUPS printing system, which auto-detects USB and network printers. If yours isn't detected, you can add it manually using the system settings or the CUPS web interface. The exact menu names vary slightly by distribution and desktop environment, but the process is essentially the same.

What You'll Need

  • A printer (USB or network-connected) that is powered on.
  • If it's a network printer, make sure it's on the same Wi-Fi or Ethernet network as your computer.
  • Your Linux user account must have sudo (administrator) privileges to install drivers.
  • For some older printers, you may need to download a driver from the manufacturer's website—but try the automatic method first.

Step-by-Step

  1. Connect the printer. Plug in the USB cable, or ensure the printer is on the same network. Turn the printer on and wait for it to finish its startup cycle.
  2. Open the system settings. Click the system menu (usually top-right corner) and select the gear icon for Settings. Look for a section called "Printers" or "Printing." The label can differ slightly by version and desktop environment (e.g., GNOME, KDE, Xfce).
  3. Click "Add Printer" or the plus (+) button. The system will search for available printers. This can take a few seconds.
  4. Select your printer from the list. It will appear with its model name or a network identifier. If you see it, click it and then click "Add" or "Next."
  5. Install the driver if prompted. Linux usually finds a driver automatically. If it asks for a driver, choose "Recommended" or the one that matches your printer model. If no driver is found, you may need to download one from the manufacturer's website (see Troubleshooting).
  6. Set default options. After adding, you can set paper size, default quality, and whether it's the default printer. Click "Print Test Page" to verify it works.
  7. If your printer isn't listed, click "Add Printer" again and look for a "Find Network Printer" or "Enter URI" option. For a network printer, you can enter its IP address (e.g., ipp://192.168.1.50/ipp/print) if you know it. For USB, try unplugging and replugging the cable.

Common Mistakes

  • Skipping the power-on wait. Many printers take 30–60 seconds to initialize. If you try to add it too soon, it won't appear.
  • Using the wrong connection. If the printer is on Wi-Fi, make sure your computer is on the same network. A common mistake is having the printer on a guest network or a different subnet.
  • Assuming all printers work out-of-the-box. Some older or niche models need proprietary drivers. Check the manufacturer's support page if automatic detection fails.
  • Ignoring the driver prompt. If you click "Cancel" when asked for a driver, the printer may be added but won't print correctly.
  • Forgetting to set the default printer. If you have multiple printers, your documents may go to the wrong one.

Tips

  • Use the CUPS web interface as a backup: open a browser and go to http://localhost:631. It provides a detailed, step-by-step printer management page that works on any Linux distribution.
  • If you have a network printer, try to find its IP address from the printer's control panel (usually under Network Settings). This makes manual entry easier.
  • For HP printers, the hplip package is often pre-installed. If not, install it via your package manager for better compatibility.
  • After adding a printer, always print a test page to confirm the driver is correct.
  • If you're using a USB printer and it's not detected, try a different USB port—some ports may be disabled or not providing enough power.

Troubleshooting

Printer not detected at all: First, restart both the printer and your computer. Check that the USB cable is firmly connected. For network printers, verify the printer's IP address is reachable by opening a terminal and running ping <printer-ip>. If you get no response, the printer is not on the network properly.

Printer detected but won't print: Check the printer's status in the Printers settings—it may be paused or offline. Right-click the printer and select "Resume" or "Use Printer." Also check that the paper tray is loaded and the ink/toner is not empty.

Driver not found: Go to the manufacturer's website and look for Linux drivers. Download the .deb or .rpm file, or a .run installer. For HP, use hplip from your package manager. For Brother, they provide a script you can run. Follow the manufacturer's instructions carefully.

Print jobs stuck in queue: Open the Printers settings, select your printer, and click "Cancel All Jobs." If that doesn't work, restart the CUPS service by running sudo systemctl restart cups in a terminal.

Print quality is poor or garbled: This usually indicates a wrong driver. Remove the printer, then re-add it, making sure to select the exact model. If you're using a generic driver, try the manufacturer's driver instead.

If nothing works: Try the CUPS web interface at http://localhost:631. Click "Administration" and then "Add Printer." You may need to enter your username and password. This often bypasses GUI issues.

Frequently Asked Questions

Do I need to install drivers manually?

Usually not. Most modern printers are supported by the open-source Gutenprint or manufacturer-provided drivers that are installed automatically. Only older or very new models may require manual installation.

How do I find my printer's IP address?

Print a network configuration page from the printer's control panel (look for a "Network" or "Settings" menu). The IP address is usually listed there. You can also check your router's admin page under connected devices.

Can I use a Windows-only printer on Linux?

Many Windows-only printers have no official Linux driver. However, you can often use the "driverless" mode via IPP Everywhere (for network printers) or try a generic PostScript or PCL driver. If that fails, you might need to use a print server like a Raspberry Pi with CUPS.

Why does my printer show as "Processing" forever?

This usually means the print job is stuck. Cancel all jobs, restart the printer, and try again. If it persists, check the printer's error display or lights—it might be out of paper or ink.

Can I share a printer from my Linux PC to other computers?

Yes. In the Printers settings, enable "Sharing" for the printer. Then other computers on the network can add it using the IP address of your Linux PC. You may need to configure firewall rules to allow port 631.

What is CUPS?

CUPS (Common Unix Printing System) is the standard printing system on Linux and macOS. It handles printer detection, drivers, and job management. Most Linux tools interact with CUPS behind the scenes.