cups short setup
goals:
- install and configure cups
- shortcut to print mail really fast
- and for really short use the
AUR
package
package installation
## install cups
> pacman -S cups
## install print to pdf
> cups-pdf
By default, pdf files are stored in
/var/spool/cups-pdf/username/
The location can be changed in/etc/cups/cups-pdf.conf
check if socket
& service
is enabled and startet
## check if service and socket is enabled
> systemctl is-enabled cups.socket
> systemctl is-enabled cups.service
## enable socket and service
> systemctl enable cups.socket
> systemctl enable cups.service
## start socket and service
> systemctl start cups.socket
> systemctl start cups.service
install driver (if needed)
## list available driver
> lpinfo -m
## in my case the splix driver for my old samsung printer
> pacman -S splix
## or use the AUR for this
> yay -S samsung-unified-driver
add printer
## list available printer
> lpinfo -v
## add printer like
> lpadmin -p <printer_name> -E -v <uri> -m <model>
## with default driver
> lpadmin -p Samsung_ML-191x_252x_Series -E -v "usb://Samsung/ML-191x%20252x%20Series?serial=Z2L9BABZ800548A." -m "drv:///splix-samsung.drv/ml1915.ppd"
## with samsung-unified-driver
> lpadmin -p Samsung_ML-191x_252x_Series -E -v "usb://Samsung/ML-191x%20252x%20Series?serial=Z2L9BABZ800548A." -m "lsb/usr/suld/Samsung_ML-2010_Series.ppd.gz"
## print testpage
> lpr /usr/share/cups/data/testprint
some settings
## set default printer
> lpoptions -d Samsung_ML-191x_252x_Series
## check status
> lpstat -s
> lpstat -p Samsung_ML-191x_252x_Series
## list queue
> lpq
> lpq -a
## clear queue
> lprm
> lprm -
remove and disable printer
## remove printer
> cupsreject Samsung_ML-191x_252x_Series
## disable printer
> cupsdisable Samsung_ML-191x_252x_Series
## erase printer
> lpadmin -x Samsung_ML-191x_252x_Series
04-01-2021