You are not logged in.
So I've configured my Deskjet_3000_J310 and can see it plus its jobs on http://localhost:631. But when trying to print from wps office the document sits in the jobs list as if something is withholding it. https://goo.gl/photos/tAb5QxV2Ma1AJ5Xr8
Last edited by cj360 (2015-10-07 11:15:53)
Offline
Hi, did you try printing a test page? I don't know how to do it with the drivers/apps you are using, but that's something you should try. If the test page works, also try printing from an application other than WPS Office.
Offline
In the cups dropdown > maintenance can you resume the job.
Or else try something:
Command-line configuration
CUPS can be fully controlled from command-line with nice tools, i.e. the lp* and the cups* command families.
On Arch Linux, most commands support auto-completion with common shells. Also note that command-line switches cannot be grouped.
List the devices
# lpinfo -v
List the drivers
# lpinfo -m
Add a new printer
# lpadmin -p printer -E -v device -P ppd
The printer is up to you. The device can be retrieved from the 'lpinfo -v' command. Example:
# lpadmin -p HP_DESKJET_940C -E -v "usb://HP/DESKJET%20940C?serial=CN16E6C364BH" -P /usr/share/ppd/HP/hp-deskjet_940c.ppd.gz
In the following, the printer references the name you have used here to set up the printer.
Set the default printer
$ lpoptions -d printer
Check the status
$ lpstat -s
$ lpstat -p printer
Deactivate a printer
# cupsdisable printer
Activate a printer
# cupsenable printer
Remove a printer
First set it to reject all incoming entries:
# cupsreject printer
Then disable it.
# cupsdisable printer
Finally remove it.
# lpadmin -x printer
Print a file
$ lpr file
$ lpr -# 17 file # print the file 17 times
$ echo "Hello, world!" | lpr -p # print the result of a command. The -p switch adds a header.
Check the printing queue
$ lpq
$ lpq -a # on all printers
Clear the printing queue
# lprm # remove last entry only
# lprm - # remove all entries
Alternative CUPS interfaces
GNOME
You can configure and manage printers by installing system-config-printer. This program does pull in some gnome dependencies.
If your user does not have sufficient priviliges to administer the cups scheduler, system-config-printer will request the root password when it starts. You can avoid this by performing the following instructions.
1. Create a group for administering the cups scheduler:
# groupadd lpadmin
2. Add yourself to the newly created group:
# usermod -aG lpadmin username
3. Tell cups to respect the newly created group:
/etc/cups/cups-files.conf
...
SystemGroup sys root lpadmin
...
4. Restart cups org.cups.cupsd.service using systemd.
5. Log out and log in again or restart your computer.
Offline
I'm not sure why but it seems my setup for the printer was changed/damaged somehow, as I noticed lpq -a was giving me an error instead of telling me the queue. So I re-installed hplip and now the test page and my document print fine.
Offline