This guide walks you through printing from Linux (Crostini) apps on a Chromebook. It covers enabling the necessary services, adding your printer, and printing from both Linux and Chrome OS, with troubleshooting for common issues.
What You’ll Need
- A Chromebook that supports Linux (most modern models do).
- Linux enabled in Chrome OS settings (Settings > Advanced > Developers > Linux development environment).
- A printer that is either connected via USB or available on your network (Wi-Fi or Ethernet).
- Your Chromebook and printer on the same network if using a network printer.
Step-by-Step
- Enable Linux (if not already done): Open Settings, go to Advanced > Developers > Linux development environment, and click “Turn on.” Follow the prompts to set up the Linux terminal.
- Update Linux packages: Open the Terminal app (Penguin). Run
sudo apt update && sudo apt upgrade -yto ensure you have the latest packages. - Install CUPS (printing system): In the Terminal, run
sudo apt install cups -y. CUPS is the standard printing system on Linux. - Add your user to the lpadmin group: Run
sudo usermod -a -G lpadmin $USERto allow your user to manage printers without root each time. - Start CUPS service: Run
sudo service cups startto start the CUPS daemon. You may also need to enable it withsudo systemctl enable cupsif you want it to start automatically. - Install printer drivers: Most modern printers work with the open-source Gutenprint or HPLIP drivers. Run
sudo apt install printer-driver-gutenprint hplip -yto install a broad set of drivers. - Add your printer via CUPS web interface: Open a browser in Chrome OS and go to
http://localhost:631. This is the CUPS admin page. Click “Administration” and then “Add Printer.” You may need to enter your Linux username and password. - Choose your printer connection: For a USB printer, select the USB port from the list. For a network printer, choose “IPP” or “AppSocket/HP JetDirect” and enter the printer’s IP address or hostname. If you’re not sure, check your router’s DHCP list or the printer’s network settings.
- Select the driver: CUPS will try to auto-detect the driver. If it doesn’t, choose “Provide a PPD file” and browse to a driver you downloaded from the printer manufacturer, or select a generic driver from the list (e.g., “Generic PCL 6/PCL XL Printer”).
- Set the default printer: After adding, go to the “Printers” tab, click your printer, and select “Set As Default.”
- Print from a Linux app: In any Linux app (e.g., LibreOffice, GIMP), go to File > Print. The CUPS printer should appear in the list. Select it and print.
- Print from Chrome OS apps: Chrome OS can also see printers added to CUPS. In any Chrome app, press Ctrl+P and choose the printer from the list. It may appear as “CUPS-PDF” or the printer name you set.
Common Mistakes
- Forgetting to start CUPS: CUPS does not auto-start by default in some Linux containers. Always run
sudo service cups startafter a reboot. - Using the wrong IP address: For network printers, the IP address changes if DHCP assigns a new one. Use a static IP on the printer or set a DHCP reservation.
- Not installing drivers: Many printers need specific drivers. The generic drivers may work, but they often lack features like duplex printing or high-quality photo modes.
- Adding the printer in Chrome OS instead of Linux: Chrome OS has its own printing setup. You must add the printer to CUPS inside Linux for Linux apps to see it.
- Ignoring permission errors: If you get “Permission denied” when adding a printer, you’re not in the lpadmin group. Run the usermod command and log out/in.
Tips
- Use a USB cable for the most reliable connection, especially for older printers.
- If your printer supports AirPrint or IPP Everywhere, CUPS will usually auto-detect it without extra drivers.
- Test with a simple text document first to isolate issues.
- Keep your Linux container updated regularly, as printer drivers improve.
- If you print frequently, consider setting up a static IP for your printer in your router’s settings.
Troubleshooting
Printer not detected in CUPS: For USB, make sure the printer is plugged in and powered on. In Linux Terminal, run lsusb to see if the device is listed. If not, try a different USB port. For network, ping the printer’s IP from the Terminal: ping 192.168.1.50. If it fails, check the network connection.
CUPS web interface not loading: Ensure CUPS is running: sudo service cups status. If it’s not, start it. Also, make sure you’re accessing http://localhost:631 from a Chrome OS browser, not from inside the Linux container.
Print job stuck in queue: Go to the CUPS web interface, click “Jobs,” and cancel the stuck job. Then try again. If it persists, restart CUPS: sudo service cups restart.
Printer prints garbage or blank pages: This usually indicates a driver mismatch. Try a different driver, such as the manufacturer’s PPD or a generic PostScript driver.
Linux app doesn’t show the printer: Some apps (like older versions of LibreOffice) may need to be restarted after adding the printer. Also, ensure the app is running in the same Linux container where CUPS is installed.
After reboot, printer disappears: CUPS may not start automatically. Run sudo systemctl enable cups to make it start on boot. If that doesn’t work, create a startup script in Linux that runs sudo service cups start.
Frequently Asked Questions
Can I print from Linux apps without CUPS?
No, CUPS is the standard printing system on Linux. Most apps rely on it, so it’s essential.
Will my Chromebook’s built-in printing work for Linux apps?
No, Chrome OS printing uses a different system. Linux apps need their own CUPS setup.
Do I need to install drivers for every printer?
Most modern printers support IPP Everywhere or AirPrint, so they work without extra drivers. Older printers may need specific drivers.
Can I print over Wi-Fi from a Linux app?
Yes, as long as the printer is on the same network and you add it via its IP address in CUPS.
Why is my printer listed as “CUPS-PDF”?
That’s a virtual printer that saves to a PDF file. You need to add your actual printer separately.
Can I use a Bluetooth printer?
Bluetooth printing is not well supported in Linux containers. It’s better to use USB or network.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Set a Google Play Budget & Stop Accidental Purchases
- Destiny 2 Error Code Anteater: Fixes & Causes
- View Android Photos on Chromebook: Step-by-Step
- Fix Windows Could Not Prepare the Computer to Boot
- Windows 11 Security Settings: Best Config Guide
- Install Custom Recovery on Samsung Galaxy Trend