Printing and scanning

scanimage (SANE) is a “a library and a command-line tool to use scanners”.

sudo scanimage -L to see the list of scanners, then to scan (for me also with sudo for some reason): sudo scanimage --device "xerox_mfp:libusb:002:004" --format=png > name.png