1

Topic: [Solved] Cups Web Interface

I tried to use a deskjet with scanner, the printer worked fine with
Trisquel 8 but with Hyperbola I have some problems:

1- the web interface doesn't work "http://localhost:631/admin" not found.
   (I add "lp", "lpadmin" and many more groups but without results, rc-server cups was started correctly)
2- the drivers "hplip" that I supposed newer than in Trisquel not have the printer model.
3- the scanner work only with avahi-daemon runs.

Anyone knows something about it

2

Re: [Solved] Cups Web Interface

The web interface seems to work for me (still on v2.0, tho. At least until I learn that iceweasel on v0.3 doesn't have bugs anymore). Broken or badly configured driver wouldn't cause the "not found" error of web interface, which should and does appear under localhost:631 regardless of whether one has any printers connected or not... Perhaps something's wrong with the resolution of localhost?

What's in your /etc/hosts? We're interested in the line with 'localhost'

Do U use any proxies in Your web browser? Not adding localhost to the list of non-proxied addresses could be causing a problem.

Could you please attach all the relevant commands You used along with their outputs?

As to scanner and ahavi - it's black magic for me smile

3

Re: [Solved] Cups Web Interface

#
# /etc/hosts: static lookup table for host names
#

#<ip-address>   <hostname.domain.org>   <hostname>
127.0.0.1       localhost.localdomain   localhost       X200
::1             localhost.localdomain   localhost       X200

# End of file

I have never install cups on 0.2 Hyperbola I just recent tried with the 0.3 version.
No proxy in my system.

4

Re: [Solved] Cups Web Interface

https://issues.hyperbola.info/index.php … sk_id=1419

5

Re: [Solved] Cups Web Interface

At least we now know where the problem lies

6

Re: [Solved] Cups Web Interface

I have updated cups and hplip with the new packages [29-09-19] but the problems persist.
I don't have access to the cups web interface, hp-setup -i doesn't recognize the printer. 

Only the scanner still works ^_^.

Does the new update works for you?

7

Re: [Solved] Cups Web Interface

The printer isn't working for me either.

[alon@T60-hyperbola ~]$ lp -d HP_OfficeJet_Pro_8710 /home/alon/Desktop/all/testpages/clean_page.pdf
lp: Unsupported document-format "application/pdf".
[alon@T60-hyperbola ~]$ lp -d HP_OfficeJet_Pro_8710 /home/alon/Desktop/all/testpages/clean_page.ps
lp: Unsupported document-format "application/postscript".

8 (edited by gnu 2019-10-01 00:36:36)

Re: [Solved] Cups Web Interface

https://issues.hyperbola.info/index.php … sk_id=1419

sudo nano /etc/cups/cups-files.conf

#ServerBin /usr/lib/cups
ServerBin /usr/libexec/cups

This works for cups web interface and for printing with libreoffice but lp command doen't work yet.

9

Re: [Solved] Cups Web Interface

I opened a bug report for lp too just for good measure.

https://issues.hyperbola.info/index.php … sk_id=1429

10

Re: [Solved] Cups Web Interface

Thanks aloniv!

lp -d "printer-hp" print.pdf
lp: No existe el fichero o el directorio

11

Re: [Solved] Cups Web Interface

gnu wrote:

https://issues.hyperbola.info/index.php … sk_id=1419

sudo nano /etc/cups/cups-files.conf

#ServerBin /usr/lib/cups
ServerBin /usr/libexec/cups

This works for cups web interface and for printing with libreoffice but lp command doen't work yet.

Did you add your user to adm group?

12

Re: [Solved] Cups Web Interface

Emulatorman wrote:
gnu wrote:

https://issues.hyperbola.info/index.php … sk_id=1419

sudo nano /etc/cups/cups-files.conf

#ServerBin /usr/lib/cups
ServerBin /usr/libexec/cups

This works for cups web interface and for printing with libreoffice but lp command doen't work yet.

Did you add your user to adm group?

Anyway, be careful about the adm group, it is only useful for users who need run sysadmin tasks.

13

Re: [Solved] Cups Web Interface

Did you add your user to adm group?

I tried but lp command still not working.

14

Re: [Solved] Cups Web Interface

gnu wrote:

Did you add your user to adm group?

I tried but lp command still not working.

ok, we are going to research the reason about that issue, thank you!

15

Re: [Solved] Cups Web Interface

This works for me:

lpr -P HP_DeskJet_****_series print.pdf

lpr instead lp

lp -P HP_DeskJet_****_series print.pdf
lp: Error - destino predeterminado no disponible.

^_^

16

Re: [Solved] Cups Web Interface

gnu wrote:

This works for me:

lpr -P HP_DeskJet_****_series print.pdf

lpr instead lp

lp -P HP_DeskJet_****_series print.pdf
lp: Error - destino predeterminado no disponible.

^_^


lp and lpr commands are working perfectly with the latest updates, see comments in FS#1419. If it persists, check your pacnew files by running pacdiff to merge or remove pacnew/pacsave files.

17

Re: [Solved] Cups Web Interface

Sorry! it works too:

lp -d HP_DeskJet_****_series print.pdf

-d not -P

^_^

18 (edited by gnu 2019-10-02 01:38:22)

Re: [Solved] Cups Web Interface

Wiki Printing HP

[~]$ sudo pacman -S hplip cups xsane
[~]$ sudo rc-update add avahi-daemon default
[~]$ sudo rc-update add cupsd default
[~]$ sudo gpasswd -a your_user lp

[~]$ iceweasel-uxp http://localhost:631

[~]$ lpstat -p -d
printer Your_Printer_Model ...
[~]$ lpoptions -d Your_Printer_Model

[~]$ lpr -P Your_Printer_Model print.pdf
[~]$ lp -d Your_Printer_Model print.pdf
[~]$ scanimage --mode Color --format=tiff > scan.tiff

19 (edited by aloniv 2019-10-02 05:03:35)

Re: [Solved] Cups Web Interface

lp works fine after rebooting printer and re-adding printer via system-config-printer as superuser.