From: Christian Heller Date: Mon, 11 Nov 2019 21:05:08 +0000 (+0100) Subject: Add default printer setup. X-Git-Url: https://plomlompom.com/repos/?a=commitdiff_plain;h=849df5bbee5b08e579033e5d4aa13c1acabd0163;p=config Add default printer setup. --- diff --git a/buster/apt-mark/user b/buster/apt-mark/user index 273c551..ece05a4 100644 --- a/buster/apt-mark/user +++ b/buster/apt-mark/user @@ -65,8 +65,13 @@ isync notmuch elpa-notmuch pinentry-gtk2 +# to mount Android phone +go-mtpfs # to use HP Deskjet F380 scanner from GIMP sane-utils libsane-hpaio xsane +# to use HP Deskjet F380 printer +cups +hplip # diff --git a/buster/etc_files/user/etc/cups/printers.conf b/buster/etc_files/user/etc/cups/printers.conf new file mode 100644 index 0000000..3475600 --- /dev/null +++ b/buster/etc_files/user/etc/cups/printers.conf @@ -0,0 +1,20 @@ +# Printer configuration file for CUPS v2.2.10 +# Written by cupsd +# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING + +UUID urn:uuid:e856a26d-66f8-327a-4dca-0d8a09f87a25 +Info HP Deskjet F300 series +Location +MakeModel HP Deskjet f300 Series, hpcups 3.18.12 +DeviceURI hp:/usb/Deskjet_F300_series?serial=CN63VB21TM04KH +State Idle +Type 36892 +Accepting Yes +Shared No +JobSheets none none +QuotaPeriod 0 +PageLimit 0 +KLimit 0 +OpPolicy default +ErrorPolicy retry-job + diff --git a/buster/setup_scripts/setup_desktop.sh b/buster/setup_scripts/setup_desktop.sh index e5aa707..d730373 100755 --- a/buster/setup_scripts/setup_desktop.sh +++ b/buster/setup_scripts/setup_desktop.sh @@ -19,6 +19,9 @@ cd "${setup_scripts_dir}" ./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" user "${system_name}" ./install_for_target.sh user "${system_name}" +# Set up printer. +lpadmin -p 'HP_Deskjet_F300_series' -m 'drv:///hpcups.drv/hp-deskjet_f300_series.ppd' + # Install Firefox directly from Mozilla. firefox_release="68.1.0esr" firefox_filename="firefox-${firefox_release}.tar.bz2"