Install Printer Driver on Steam Deck (CUPS)

This script allows you to print from the steam deck to any local printer on your network. After installing, please open your browser with: http://localhost:631/admin there you can “Add Printer”, after that you can now easily print from your steam deck.

Thanks LittleJawa for the script! Edit: I fixed the Parameters (there were to much spaces) and added some files that need to be removed if you need to reinstall cups because of steam deck update.

sudo steamos-readonly disable

# Delete old files if persistent because you had cups prev. installed before
sudo rm /etc/cups/cups-files.conf.default
sudo rm /etc/cups/cupsd.conf.default
sudo rm /etc/cups/snmp.conf.default
sudo rm /etc/xdg/autostart/print-applet.desktop
sudo rm /etc/cupshelpers/preferreddrivers.xml

# initialize and populate pacman PGP keys
sudo pacman-key --init
sudo pacman-key --populate archlinux

# CUPS + KDE printer manager GUI
PACKAGES="cups print-manager system-config-printer"

# Auto-discovery via DNS

# WARNING: requires to update the /etc/nsswitch.conf file
# use the following:
# sed -i s/mymachines resolve/mymachines mdns_minimal
#[NOTFOUND=return] resolve/ /etc/nsswitch.conf

# Optionals (helpful)
# foomatic pre-built ppd drivers
PACKAGES="$PACKAGES foomatic-db-engine foomatic-db-ppds foomatic-db-nonfree-ppds"

# ghostscript for non-pdf printers
PACKAGES="$PACKAGES ghostscript"

# cups-filters for driverless printers
PACKAGES="$PACKAGES cups-filters"

sudo pacman -Sy $PACKAGES

sudo systemctl enable --now avahi-daemon
sudo systemctl enable --now cups

# re-lock the filesystem
sudo steamos-readonly enable
Source: Steam Forum



7 responses

  1. Julian Avatar

    This is absolutely big. Thank you a lot for it! I’m a firm believer that Valve should add printer services in future updates, but until then, I’ll use this 🙂

  2. Jeuris C Rodriguez Avatar
    Jeuris C Rodriguez

    Everything installed correctly, I just dont know what to do when it prompts for username and password. Is there a way to disable this ? Thank you in advance

    1. Which prompt? Have you set a password for the user “deck”? If not you can do this by opening a shell and type “passwd”. Or which user/password prompt are you refering to?

  3. Deejay Avatar

    When I select Add Printer local host:631 asks for username/Password.

    1. Nathan Avatar

      You will probably want to use “deck” as the username, and whatever you set for your sudo password

  4. I needed also to remove after the latest update
    and added
    sudo rm /etc/cupshelpers/preferreddrivers.xml
    to the script

    1. Thanks I will add it to the script!

Leave a Reply

Your email address will not be published. Required fields are marked *