You are not logged in.
I have just installed my HP 5520 printer and have sucessfully set up its wireless static ip: "192.168.1.14". The printer can be seen by the router and can be acessed via my Windows machine withouth any problem. I want to use the same printer on my Arch Linux laptop with wireless static ip: "192.168.1.10".
I just noticed that my HP printer isn't supported by HPLIP while its close relative HP 5525 eAIO is supported. What are my options to install my printer? How long do you think i have to wait untill HPLIP adds my printer?
What i tried so far was to install HPLIP and ping it - pinging was sucessfull. Then I tried to obtain if my printer will return any info. I used the command which i found here:
snmpwalk -Os -c public -v 1 192.168.1.14 1.3.6.1.4.1.11.2.3.9.1.1.7.0I got the resulting info:
enterprises.11.2.3.9.1.1.7.0 = STRING: "MFG:HP;
MDL:Deskjet 5520 series;
CMD:PCL3GUI,PCL3,PJL,JPEG,PCLM,AirPrint,DW-CL,802.11,DESKJET,DYN;
CLS:PRINTER;DES:CZ282C;
CID:HPIJVIPAV2;
LEDMDIS:USB#FF#CC#00,USB#07#01#02,USB#FF#04#01;IPP-HTTP:T;
IPP-E:FF-CC-00,07-01-02,FF-04-01;
eSCL:scan=FF-CC-00,07-01-02,FF-04-01,alt=07-01-02,FF-04-01,ver=1.9,rs=\"/eSCL\";SN:CN32J189KG05SX;S:038080C484201021005a0200000452800644428006446280064
41280064;Z:0102,0500000900000b00000b00000b00000b,0600,0700000000000000000000,0b000000000000000000009908000000009908000000009908000000009908,
0c0,0e00000000000000000000,0f00000000000000000000,10000000000008000008000008000008,110,12000,150,17000000000000000000000000000000,181;"I allso unlocked ports 161, 162, 9100 on the firewall using below commands:
sudo iptables -I INPUT -p tcp --dport 161 --syn -j ACCEPT
sudo iptables -I INPUT -p tcp --dport 162 --syn -j ACCEPT
sudo iptables -I INPUT -p tcp --dport 9100 --syn -j ACCEPTNow i am out of ideas. If i open Evince to print a PDF i don't get any printers listed.
Last edited by 71GA (2013-09-23 21:09:27)
C, ARM, ARM assembly, HTML, CSS, JS, Linux
Offline
Can you print a test page?
Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository
Offline
Can you print a test page?
Yes - using Windows.
C, ARM, ARM assembly, HTML, CSS, JS, Linux
Offline
clfarron4 wrote:Can you print a test page?
Yes - using Windows.
Ok, a fail on my part when asking my original question. Can you print a test page in Linux? It should be possible to do so, though I've never set-up or used a personal printer over a personal wireless network.
Last edited by clfarron4 (2013-09-20 22:00:48)
Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository
Offline
71GA wrote:clfarron4 wrote:Can you print a test page?
Yes - using Windows.
Ok, a fail on my part when asking my original question. Can you do it in Linux?
I don't realy know how to print this test page. Is there a command to do it?
C, ARM, ARM assembly, HTML, CSS, JS, Linux
Offline
Most of the full Desktop Environments (GNOME, MATE, KDE) provide an interface for dealing with printers, so if you are using one of them, try there. If not, I'm stuck for ideas.
Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository
Offline
Most of the full Desktop Environments (GNOME, MATE, KDE) provide an interface for dealing with printers, so if you are using one of them, try there. If not, I'm stuck for ideas.
Unfortunately i am using openbox ![]()
C, ARM, ARM assembly, HTML, CSS, JS, Linux
Offline
I know nothing of that printer, so perhaps I am missing something.
Why not use the cups web interface? Just browse to localhost:631, select the administration tab, and add a printer. You will need the root password.
As to drivers, I would bet you can find something in the foomatic packages that will work.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Am I missing something? There seems to be support for:
HP Photosmart 5520 E-all-in-one <---is this yours?
HP Photosmart 5522 E-all-in-one Printer
HP Photosmart 5524 E-all-in-one Printer
HP Photosmart 5525 E-all-in-one Printer
HP Photosmart 5521 E-all-in-one Printer
Offline
Am I missing something? There seems to be support for:
HP Photosmart 5520 E-all-in-one <---is this yours?
HP Photosmart 5522 E-all-in-one Printer
HP Photosmart 5524 E-all-in-one Printer
HP Photosmart 5525 E-all-in-one Printer
HP Photosmart 5521 E-all-in-one Printer
No mine is not a "Photosmart" model it is a "Deskjet". I just found out that my printer is supported by HPLIP. I thought that i have a printer HP Deskjet Ink Advance 5520 because one of the lines returned by command:
snmpwalk -Os -c public -v 1 192.168.1.14 1.3.6.1.4.1.11.2.3.9.1.1.7.0was
MDL:Deskjet 5520 series;and it confused me. To clear the doubts i just looked at the label on the printer which is saying HP Deskjet Ink Advance 5525 which is supported.
Thanks to user @Ewaller i looked into CUPS package. I installed hplip and libcups packages and because i already know printer's ip address which is 192.168.1.14 i ran the command:
hp-setup 192.168.1.14The menu popped out and i could specify my printers name, location, description etc. But there was an option where i needed to specify a thing called printer's PPD file. There were 2 options to choose from (hp-deskjet_5520_series.ppd.gz and hp-deskjet_5520_series-hpijs.ppd.gz) and neither of them worked. What i got after choosing either of those two was an error:
error: No PPD found for model deskjet_5520 using old algorithm.
error: No appropriate print PPD file found for model deskjet_5520_seriesLast edited by 71GA (2013-09-21 10:39:12)
C, ARM, ARM assembly, HTML, CSS, JS, Linux
Offline
My apologies. I didn't see your output for model series.
I'm just going to link a thread that may be helpful. https://bbs.archlinux.org/viewtopic.php?id=133187
Although your issue right now is an invalid ppd which I have no idea how to resolve since you already manually selected.
Edit1: Have you tried with CUPS, localhost:631 to resolve your ppd issue?
Last edited by frank604 (2013-09-21 21:33:34)
Offline
I will take a look at the link provided...
Last edited by 71GA (2013-09-21 21:20:38)
C, ARM, ARM assembly, HTML, CSS, JS, Linux
Offline
I just realized that i had no cups DAEMON running. So now i installed the daemon using:
pacman -S cupsand then
sudo systemctl start cupsd
sudo systemctl enable cupsPay attention as one is cups and the other cupsd. For unknown reason i got an error Failed to issue method call: No such file or directory
after using sudo systemctl enable cups Now if i only run command systemctl i can see the daemon running:
cups.service loaded active running CUPS Printing Service
dbus.service loaded active running D-Bus System Message BusIf i now use command hp-setup 192.168.1.14 and try to setup printer
I don't get the error:
error: No PPD found for model deskjet_5520 using old algorithm.
error: No appropriate print PPD file found for model deskjet_5520_seriesinstead i get an error:
error: Printer queue setup failed. Could not connect to CUPS Server Is user added to "lp" group(s)I tried to fix the error using:
[ziga@Ziga-CQ56 ~]$ sudo usermod -aG lp ziga
[ziga@Ziga-CQ56 ~]$ groups ziga
lp optical usersAfter again using hp-setup 192.168.1.14 i get a same error:
error: Printer queue setup failed. Could not connect to CUPS Server Is user added to "lp" group(s)which is weird as i clearly as i listed myself in the group "lp"...
C, ARM, ARM assembly, HTML, CSS, JS, Linux
Offline
After rebooting the PC i command hp-setup 192.168.1.14 finaly worked and i could add the printer withouth any mistakes - even specifying PPD worked! But when i open evince i can't see my printer listed :S OMG how many problems one after another... What could possibly be wrong now?
EH after new reboot the error from #10 is baaaack. This is one big bullshit...
Last edited by 71GA (2013-09-21 22:05:56)
C, ARM, ARM assembly, HTML, CSS, JS, Linux
Offline
Stop bumping the thread: there is an edit button, learn how to use it.
What could possibly be wrong now?
The same thing that is wrong with every one of your threads: you don't read and follow the documentation.
Offline
Maybe reading the https://wiki.archlinux.org/index.php/CUPS will help.
Particularly https://wiki.archlinux.org/index.php/CUPS#HP_Printer but I recommend reading the whole cups wiki as there were some notes there that would of solved some of your questions.
Edit: Yes, milli milli seconds lol
Last edited by frank604 (2013-09-21 22:22:31)
Offline
Looks like it's time to read the ArchWiki entry for this to see if I can glean any information.
EDIT: Beaten to it by @frank604 by milliseconds ![]()
EDIT2: I don't think I've ever seen two posts saying almost the same thing posted in the same second on here before *high five*
Last edited by clfarron4 (2013-09-21 22:23:17)
Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository
Offline
I ve added "ServerName 192.168.1.14:631" in "/etc/cups/client.conf" if thats what you two mean ![]()
C, ARM, ARM assembly, HTML, CSS, JS, Linux
Offline
Stop bumping the thread: there is an edit button, learn how to use it.
71GA wrote:What could possibly be wrong now?
The same thing that is wrong with every one of your threads: you don't read and follow the documentation.
I read it but it is badly written ... too many jumping around (it is VERY CONFUSING) and too little MWE (minimal working examples). Wiki is deatialed and all ya, but is missing what i have just said.
C, ARM, ARM assembly, HTML, CSS, JS, Linux
Offline
I ve added "ServerName 192.168.1.14:631" in "/etc/cups/client.conf" if thats what you two mean
I was indirectly referring to the second link that @frank604 gave.
Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository
Offline
Note: hplip depends on foomatic-db-engine which prevents the drivers list from appearing when a printer is added to CUPS via the web user interface (following error : "Unable to get list of printer drivers"). The workaround consists of installing hplip first, retrieving the corresponding PPD file from /usr/share/ppd/HP/, then, removing hplip entirely and the unnecessary dependencies. Finally, install the printer manually using the CUPS web ui, select the PPD file you retrieved then re-install hplip. After a reboot, you should have a fully working printer.
This part is from the HP Printer segment of the CUPS wiki. The scenario is similar to what you experienced earlier. Please take a look at the wiki and see if further information can help you. If a part is confusing, state which part? Since printer installation has a large variance depending on driver support/installation, there are going to be information on the wiki that doesn't apply to you. What I normally do is read from top to bottom anyways, and highlight the areas that focus on my situation. Good luck.
Offline
Note: hplip depends on foomatic-db-engine which prevents the drivers list from appearing when a printer is added to CUPS via the web user interface (following error : "Unable to get list of printer drivers"). The workaround consists of installing hplip first, retrieving the corresponding PPD file from /usr/share/ppd/HP/, then, removing hplip entirely and the unnecessary dependencies. Finally, install the printer manually using the CUPS web ui, select the PPD file you retrieved then re-install hplip. After a reboot, you should have a fully working printer.
I can start "web" interface if i needed it and here is the proof:
But i am not adding a printer via "web" user interface. I used hp-setup 192.168.1.14 which uses QT interface. There was no web interface involved whatsoever and i intentionaly overlooked this part of Wiki. I will again try to explain what i did.
I first tried to use the command which uses a QT frontend and not not the "web":
hp-setup -uWell this command didn't find any printers which is weird because this command did:
hp-setup 192.168.1.14What i got was this QT popup window where I could choose my printer:
I then inserted some info and located the PPD file: 
I klicked OK and i got the terminal output like this:
I assume that the error colored in red is because during setup hp-setup couldnt locate PPD file by itself, but i solved that by locating it manualy. While it looked like a cucess (no "web" interface was used whatsoever) my printer wasn't listed once I opened Evince.
EDIT - FINALY SOME SUCESS BUT NOT QUITE THERE YET
What I have learned is NOT TO USE hp-setup -i, hp-setup -u or hp-setup 192.168.1.14 to setup your printer! It is somehow bugged and it won't work. You have to use the cups web utillity! First you have to install all the packages, run the cups deamon and then insert http://localhost:631/ into a browser address bar to get into the cups web utility. There you must click "add new printer" and use login details for a root user (ID=root, PW= root's password)! Then choose the printer (which must have obtained an IP earlier to become the part of the network) and add it...
Using this procedure now i could print the test page using cups web utility but when I try to print a PDF directly from PDF reader Evince i still can't see the printer. I believe that my problem now is only that applications can't see the printer which according to Arch Wiki is a problem related to file /etc/cups/client.conf
Then add your CUPS server's IP address or hostname into /etc/cups/client.conf. That is all you need. Every application should quickly find the printer(s) shared by that CUPS server.
I configured my file /etc/cups/client.conf to only have one line which is:
ServerName 192.168.1.14:9100I used this because i found this adress in cups web utillity:
Is this correct? I am asking because Evince still won't list my printer - i only see "print to file" option:
Last edited by 71GA (2013-09-22 10:47:54)
C, ARM, ARM assembly, HTML, CSS, JS, Linux
Offline
did you have hplip installed before you added printer in cups web interface?
Offline
did you have hplip installed before you added printer in cups web interface?
Yes.
C, ARM, ARM assembly, HTML, CSS, JS, Linux
Offline
Then try the guide in the arch wiki. Refer to the quote in post #21 in this thread. Does that fix things?
Offline