home · contact · privacy
Add default printer setup.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 11 Nov 2019 21:05:08 +0000 (22:05 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 11 Nov 2019 21:05:08 +0000 (22:05 +0100)
buster/apt-mark/user
buster/etc_files/user/etc/cups/printers.conf [new file with mode: 0644]
buster/setup_scripts/setup_desktop.sh

index 273c55152d3dd17f82cc506e9d3208a194f6cade..ece05a44650b257f29cbb4024945adf3ea737be5 100644 (file)
@@ -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 (file)
index 0000000..3475600
--- /dev/null
@@ -0,0 +1,20 @@
+# Printer configuration file for CUPS v2.2.10
+# Written by cupsd
+# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
+<Printer HP_Deskjet_F300_series>
+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
+</Printer>
index e5aa7078fece68e11d8eb9c59214dbe03d32ff3a..d7303731c2d97eb6c5c7e41fb76db6aef2aa7af6 100755 (executable)
@@ -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"