You are not logged in.

#1 2021-01-27 06:32

kavisdhs
Member
Registered: 2021-01-27
Posts: 9

Can't connect HP LaserJet 1000 Series - Port 631 closed :(

hi there,

I have recently installed 32 bit q4os on ancient Dell Inspiron 8200 1.8 ghz 512 ram and it works smile

Now I am trying to conect a printer HP Laserjet 1000 series to it through cups but it won't work sad

ismyportopen.com says that port 631 is closed on my ip address.

Cups list my printer and I have Port 631 line in my cupsd.conf file but I can't see client.conf file in my /etc/cups directory sad

Could anyone here please kindly tell me what should be the content of client.conf file and how should be its permissions set?

Or what should I do to make my printer working?

Thanx in advance.

Offline

#2 2021-01-27 13:28

bin
Member
From: U.K.
Registered: 2016-01-28
Posts: 1,300

Re: Can't connect HP LaserJet 1000 Series - Port 631 closed :(

How is the printer connected - physical port or network?

If you open Konqueror and go to http://yourusername@localhost:631/admin you should be asked for a password and be using your username for login.

When you do that what happens? Do you get in to CUPS Administration or is there an error.

If it doesn't want to connect try the following in Konsole one after the other
sudo systemctl enable cups.service
sudo systemctl start cups.service

If it says it's already running then try
sudo systemctl restart cups.service

and try to connect via Cups Admin

You should not need to be editing any conf files, and you do not want port 631 visible to ismyportopen.com as that would mean you would be making it visible to the whole world - bad idea.

From what i can see the LJ1000 needs some sort of addon or firmware but is supposed to be OK with the Foomatic driver which should show in the CUPS driver list.

Offline

#3 2021-01-27 16:07

kavisdhs
Member
Registered: 2021-01-27
Posts: 9

Re: Can't connect HP LaserJet 1000 Series - Port 631 closed :(

> How is the printer connected - physical port or network?

physical via usb port
usb type 1 (very old)

> If you open Konqueror and go to http://yourusername@localhost:631/admin you should be asked for a password and be using your username for login.
> When you do that what happens? Do you get in to CUPS Administration or is there an error.

No, there is no error:

I get in and I can see my printer there.

I would paste a screenshot here if I would know how to do it...

> try the following in Konsole one after the other
> sudo systemctl enable cups.service
> sudo systemctl start cups.service
> sudo systemctl restart cups.service

I tried all this even before I wrote in this forum for help. I found all this on google even before writing here for help. I tried all this also today before replying to you but all in vain sad

I am not able to print test page or self test page from within cups administration sad

Print job hangs and keeps hanging till eternity sad Nothing happens sad

I can send you error_log but is a long txt file sad Too long to paste it here sad

The reason why I believe that the problem is in port 631 is the message that I get on the screen when I try to change server settings on cups administration page:

please stand by while server restarts...

An error occurred while loading http://kavi@localhost:631/admin/?OP=redirect:

Could not connect to host localhost (port 631).

Any idea why?

Offline

#4 2021-01-27 16:43

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,256
Website

Re: Can't connect HP LaserJet 1000 Series - Port 631 closed :(

@kavisdhs
Your account has been promoted to be able to post hyperlinks and attach files. Click "Post reply" > Attachment > Choose file

Offline

#5 2021-01-27 17:13

crosscourt
Member
Registered: 2017-05-07
Posts: 1,805
Website

Re: Can't connect HP LaserJet 1000 Series - Port 631 closed :(

Use to use that printer as well with Q4OS quite awhile ago and it installed fine using the HPLIP package available in Synaptic. There is also a HPLIP-GUI package for HP Tools.


Q4OS Aquarius 5.1 KDE   Lenovo Thinkcentre M900 Tiny i5-6500T, 16gb ddr4 ram, 512gb m.2 ssd

Offline

#6 2021-01-27 18:52

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,256
Website

Re: Can't connect HP LaserJet 1000 Series - Port 631 closed :(

We would recommend to install HP Drivers from the Q4OS Software center.

Offline

#7 2021-01-27 20:05

kavisdhs
Member
Registered: 2021-01-27
Posts: 9

Re: Can't connect HP LaserJet 1000 Series - Port 631 closed :(

q4osteam wrote:

We would recommend to install HP Drivers from the Q4OS Software center.

It will be very usefull if I could paste in the print screen by using ctrl+PrtScr and ctrl+v which I can't do now or I don't know how to do it smile

Offline

#8 2021-01-27 20:20

kavisdhs
Member
Registered: 2021-01-27
Posts: 9

Re: Can't connect HP LaserJet 1000 Series - Port 631 closed :(

q4osteam wrote:

We would recommend to install HP Drivers from the Q4OS Software center.

followed your instruction
installied HP drivers from q4os software center
restarted the machine
tryied to print something from KWrite
got following error message:

An error occurred while retrieving the printer list:

Connection to CUPS server failed. Check that the CUPS server is correctly installed and running. Error: 176.76.249.88: read failed (15).

Could this possibly be because I have manualy created client.conf in etc/cups directory with content ServerName 176.76.249.88:631 ?

Offline

#9 2021-01-27 20:24

kavisdhs
Member
Registered: 2021-01-27
Posts: 9

Re: Can't connect HP LaserJet 1000 Series - Port 631 closed :(

crosscourt wrote:

Use to use that printer as well with Q4OS quite awhile ago and it installed fine using the HPLIP package available in Synaptic. There is also a HPLIP-GUI package for HP Tools.

hplip is already included within the q4os distribution but nevertheless I have retained the last version of it yesterday and installed it but unfottunatelly didn't solved my problem sad

I think the problem is hidden in port 631 sad

Offline

#10 2021-01-28 07:02

kavisdhs
Member
Registered: 2021-01-27
Posts: 9

Re: Can't connect HP LaserJet 1000 Series - Port 631 closed :(

kavisdhs wrote:
q4osteam wrote:

We would recommend to install HP Drivers from the Q4OS Software center.

followed your instruction
installied HP drivers from q4os software center
restarted the machine

1.
After disconecting and reconecting the printer I get the message on the screen: Driver Plug-in Installation is required: HP Device requires propietary plug-in which is missing. Click next to continue plug-in installation

2.
After clicking next a couple of times I get message:

Unable to receive key from keyserver
withouth this it is not possible to authenticate and validate the plug-in prior to installation. Do you still want to install the plug-in?

3.
if I click yes I get the message: Please enter root/superuser password to continue

Here I am not able to change the user to anything else as me (kavi) sad
Therefore I enter my own password which is not root.

4.
Although I get alert message on the screen Plug-in installation successful I get ERROR message from HP Device Manager - Plug-in Installer <2>

Failed to install Plug-in

Either you have choosen to skip the Plug-in installation (which I have not done)
or entered incorect password sad

If I disconet and reconect the printer I get back to step 1. sad

Any idea what I could do?

Thanx in advance.

Offline

#11 2021-01-28 07:04

bin
Member
From: U.K.
Registered: 2016-01-28
Posts: 1,300

Re: Can't connect HP LaserJet 1000 Series - Port 631 closed :(

kavisdhs wrote:
q4osteam wrote:

We would recommend to install HP Drivers from the Q4OS Software center.

followed your instruction
installied HP drivers from q4os software center
restarted the machine
tryied to print something from KWrite
got following error message:

An error occurred while retrieving the printer list:

Connection to CUPS server failed. Check that the CUPS server is correctly installed and running. Error: 176.76.249.88: read failed (15).

Could this possibly be because I have manualy created client.conf in etc/cups directory with content ServerName 176.76.249.88:631 ?

Yes

Offline

#12 2021-01-28 08:15

kavisdhs
Member
Registered: 2021-01-27
Posts: 9

Re: Can't connect HP LaserJet 1000 Series - Port 631 closed :(

bin wrote:
kavisdhs wrote:
q4osteam wrote:

We would recommend to install HP Drivers from the Q4OS Software center.

followed your instruction
installied HP drivers from q4os software center
restarted the machine
tryied to print something from KWrite
got following error message:

An error occurred while retrieving the printer list:

Connection to CUPS server failed. Check that the CUPS server is correctly installed and running. Error: 176.76.249.88: read failed (15).

Could this possibly be because I have manualy created client.conf in etc/cups directory with content ServerName 176.76.249.88:631 ?

Yes

OK, I have replaced 176.76.249.88 with 127.0.0.1 and I get no more error message from KWrite smile

But although no more error message from Kwrite still no print out sad sad

And I still get error message from cups administration when trying to change server settings  on http://kavi@localhost:631/admin sad :

An error occurred while loading http://kavi@localhost:631/admin/?OP=redirect:

Could not connect to host localhost (port 631). sad

Last edited by kavisdhs (2021-01-28 08:16)

Offline

#13 2021-01-28 09:02

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,256
Website

Re: Can't connect HP LaserJet 1000 Series - Port 631 closed :(

You need to install the HP plug-in.

kavisdhs wrote:

2.
After clicking next a couple of times I get message:

Unable to receive key from keyserver
withouth this it is not possible to authenticate and validate the plug-in prior to installation. Do you still want to install the plug-in?

You may need to repeat the step again, as the HP key-server seems to be temporarily unavailable.

Offline

#14 2021-01-28 20:06

kavisdhs
Member
Registered: 2021-01-27
Posts: 9

Re: Can't connect HP LaserJet 1000 Series - Port 631 closed :(

q4osteam wrote:

You need to install the HP plug-in.

kavisdhs wrote:

2.
After clicking next a couple of times I get message:

Unable to receive key from keyserver
withouth this it is not possible to authenticate and validate the plug-in prior to installation. Do you still want to install the plug-in?

You may need to repeat the step again, as the HP key-server seems to be temporarily unavailable.

if I get the key from the HP key-server I won't get the message: Please enter root/superuser password to continue ?

Isn't just easier to tell me what is the root password?

Offline

#15 2021-01-30 12:09

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,256
Website

Re: Can't connect HP LaserJet 1000 Series - Port 631 closed :(

The root password is disabled in Q4OS by default. If you want set it up, run the command in terminal:
$ sudo passwd

Offline

#16 2021-01-30 12:51

bin
Member
From: U.K.
Registered: 2016-01-28
Posts: 1,300

Re: Can't connect HP LaserJet 1000 Series - Port 631 closed :(

Alternatively you can add your user to the lpadmin group

sudo usermod -a -G lpadmin yourusername

Offline

#17 2021-01-30 18:32

kavisdhs
Member
Registered: 2021-01-27
Posts: 9

Re: Can't connect HP LaserJet 1000 Series - Port 631 closed :(

bin wrote:

Alternatively you can add your user to the lpadmin group

sudo usermod -a -G lpadmin yourusername

I managed to make the printer work by following the instructions on https://www.q4os.org/dqa007.html#printer.1

Although, after completing the steps given there:

$ sudo apt install hplip hplip-gui avahi-utils cups
$ sudo apt install libcupsimage2-dev libdbus-1-dev libssl-dev libusb-1.0.0-dev python-dev
$ sudo hp-setup

I had to run additional line which is not provided on https://www.q4os.org/dqa007.html#printer.1 and this is

$ hp-plugin

The only thing that I am annoyed with is that I have to unplug and re-plug the printer and run $ sudo hp-plugin whenever I want to wake up the printer from stand-by sad

Is there any way to get rid of this annoyance?

Offline

Board footer

Powered by FluxBB