LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-15-2020, 04:59 AM   #16
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,092

Rep: Reputation: 2483Reputation: 2483Reputation: 2483Reputation: 2483Reputation: 2483Reputation: 2483Reputation: 2483Reputation: 2483Reputation: 2483Reputation: 2483Reputation: 2483

It applies to wifi only. He should have no problem with cups on usb. He may have to download a ppd and it will always complain for the lack of a proprietary driver, but it works ok.
 
Old 01-15-2020, 10:03 AM   #17
dwhb
Member
 
Registered: Jul 2012
Location: Down Under
Distribution: Mint 19 Tara
Posts: 138

Original Poster
Rep: Reputation: Disabled
Quote:
were you prompted for root user and password?
The answer is Yes.

After adding the printer, its 'Idle, Accepting Jobs and Shared'. However, it does not print. It kept saying that plugin is required. The State of the printer showed 'stopped' "filter failed". The list of ppd's for selection does not include foomatic.On the NUC which does not have hplip installed, the driver for printing is Foomatic/foo2zjs-z2. I have therefore removed hplip entirely and hope that when I upgrade to Mint 19.3, the ppd will be automatically bundled.

Re michaelk's post
Quote:
On the NUC box configure the firewall to allow both TCP and UDP traffic on port 631 i.e cups if enabled
I have unblocked UDP ports 427 & 5353 according to the error message. But I am not sure whether my rules are correct (please see screenshot) https://www.linuxquestions.org/quest...1&d=1579090301

I would like to ask the following questions:
(1) Printer was defined in the NUC box as a shared ipp printer, does it need to be defined as 'shared' on the old machine in CUP?

(2) When adding the printer on the old machine, the URI will be its own url (ie 192.168.1.103)? and should the "shared" button be checked?

Answer to business_kid and michaelk's posts:
All the machines are on wifi. But the printer was previously plugged into the USB of the old (Xfce) machine so the laptop and fit-PC4 could print wirelessly. I notice that the printer has to be plugged into one box for other machines to be able to print. My Windoze laptop has no problem printing (a program was installed but can't remember what it was at least 5 years ago and the laptop was seldom used for printing at home). The fit-PC4 has no problems printing wirelessly on Mint 18. However, that machine is now used for watching movies on a proper TV.

Thanks very much to all.
 
Old 01-15-2020, 10:15 AM   #18
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,353

Rep: Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148
1. No.
2. The url is the IP address of the NUC i.e 192.168.0.108.
No.

I assume the old machine was running samba and that the program installed on Windows was the HP driver/utilities for the printer.
 
Old 01-15-2020, 11:57 AM   #19
dwhb
Member
 
Registered: Jul 2012
Location: Down Under
Distribution: Mint 19 Tara
Posts: 138

Original Poster
Rep: Reputation: Disabled
The pin drops!
the old machine which I am trying to set as a client to send print jobs does not have a wireless card. That is why it can't print wirelessly to the printer plugged to the NUC box?

<scratching my head>
 
Old 01-15-2020, 02:14 PM   #20
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,353

Rep: Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148
Then what device is assigned 192.168.0.103?
 
Old 01-15-2020, 04:29 PM   #21
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,321

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Can you open a terminal on this box, and run the command /sbin/lspci and copy and paste the results here?

Then we can see just what devices you have.
 
Old 01-15-2020, 10:34 PM   #22
dwhb
Member
 
Registered: Jul 2012
Location: Down Under
Distribution: Mint 19 Tara
Posts: 138

Original Poster
Rep: Reputation: Disabled
sorry, reply to michaelk's post (see below) is duplicated but cannot be deleted.

Last edited by dwhb; 01-15-2020 at 11:27 PM. Reason: duplicated but cannot delete own post
 
Old 01-15-2020, 11:14 PM   #23
dwhb
Member
 
Registered: Jul 2012
Location: Down Under
Distribution: Mint 19 Tara
Posts: 138

Original Poster
Rep: Reputation: Disabled
QUOTE=camorri;6078763]Can you open a terminal on this box, and run the command /sbin/lspci and copy and paste the results here?

Then we can see just what devices you have.[/QUOTE]
Code:
~$ /sbin/lspci
bash: /sbin/lspci: No such file or directory
Running $ inxi -Fx
Code:
System:    Host: Upstairs2018 Kernel: 4.15.0-20-generic x86_64
           bits: 64 gcc: 7.3.0
           Desktop: Xfce 4.12.3 (Gtk 2.24.31) Distro: Linux Mint 19 Tara
Machine:   Device: desktop Mobo: Gigabyte model: G41M-ES2L v: x.x serial: N/A
           BIOS: Award v: F4 date: 07/22/2009
CPU:       Dual core Intel Core2 Duo E7500 (-MCP-) 
           arch: Penryn rev.10 cache: 3072 KB
           flags: (lm nx sse sse2 sse3 sse4_1 ssse3 vmx) bmips: 11733
           clock speeds: max: 2933 MHz 1: 1996 MHz 2: 1754 MHz
Graphics:  Card: NVIDIA G98 [GeForce 8400 GS Rev. 2] bus-ID: 01:00.0
           Display Server: x11 (X.Org 1.19.6 )
           drivers: nvidia (unloaded: modesetting,fbdev,vesa,nouveau)
           Resolution: 1920x1080@60.00hz
           OpenGL: renderer: GeForce 8400 GS/PCIe/SSE2
           version: 3.3.0 NVIDIA 340.107 Direct Render: Yes
Audio:     Card-1 Intel NM10/ICH7 Family High Def. Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Card-2 Ensoniq ES1371/ES1373 / Creative Labs CT2518
           driver: snd_ens1371 port: d000 bus-ID: 04:01.0
           Sound: Advanced Linux Sound Architecture v: k4.15.0-20-generic
Network:   Card: Realtek RTL8111/8168/8411 PCIE Gigabit Ethernet Controller
           driver: r8169 v: 2.3LK-NAPI port: c000 bus-ID: 03:00.0
           IF: enp3s0 state: up speed: 1000 Mbps duplex: full
           mac: 6c:f0:49:40:15:f9
Drives:    HDD Total Size: 808.9GB (11.8% used)
           ID-1: /dev/sda model: WDC_WD8088AADS size: 808.9GB
Partition: ID-1: / size: 92G used: 11G (12%) fs: ext4 dev: /dev/sda1
           ID-2: /home size: 644G used: 74G (12%) fs: ext4 dev: /dev/sda6
           ID-3: swap-1 size: 6.00GB used: 0.00GB (0%)
           fs: swap dev: /dev/dm-0
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 40.0C mobo: N/A gpu: 0.0:61C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 162 Uptime: 23 min Memory: 934.3/3944.0MB
           Init: systemd runlevel: 5 Gcc sys: 7.4.0
           Client: Shell (bash 4.4.201) inxi: 2.3.56
The old machine (Upstairs2018) is at least 10 yrs old and does not have a wireless card.
When Australia rolled out NBN, everyone must switch over. Telstra installed a socket inside my house and my ISP provided a NBN compliant router. The old machine has to plug its ethernet cable into an adapter plugged into a powerpoint to be connected to the internet. Other machines with wireless capabilities are all connected automatically. The machines (NUC, fit-PC4, laptop) are not on a network as I understand it from the Windows days where files can be shared among different machines.

Am I wrong to assume that because the old machine is connected to the router via an adapter, it can access the printer wirelessly as well? Please excuse my ignorance in this respect for asking such apparently stupid questions.

I hope the above makes sense.

Thanks!

Last edited by dwhb; 01-15-2020 at 11:17 PM.
 
Old 01-15-2020, 11:19 PM   #24
dwhb
Member
 
Registered: Jul 2012
Location: Down Under
Distribution: Mint 19 Tara
Posts: 138

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Then what device is assigned 192.168.0.103?
printer on old machine is 192.168.1.103
192.168.1.108 is the printer on NUC
 
Old 01-15-2020, 11:46 PM   #25
dwhb
Member
 
Registered: Jul 2012
Location: Down Under
Distribution: Mint 19 Tara
Posts: 138

Original Poster
Rep: Reputation: Disabled
When I send a printjob from old machine, its 'Held' and does not print although I have selected 'Release'. It says print job completed but nothing came out of the printer.

Please see attached screenshot https://www.linuxquestions.org/quest...1&d=1579149734

The printer was added and is showing as 'Idle' in CUPS. This problem is totally out of my depth!!
Attached Thumbnails
Click image for larger version

Name:	printjob-held.jpg
Views:	23
Size:	102.3 KB
ID:	32309  
 
Old 01-16-2020, 12:44 AM   #26
dwhb
Member
 
Registered: Jul 2012
Location: Down Under
Distribution: Mint 19 Tara
Posts: 138

Original Poster
Rep: Reputation: Disabled
When the printer USB is plugged into the old machine, HP Device Manager discovered printer,test page and a document printed.
But Device Manager is showing otherwise
http://users.on.net/~dwhb1/HPDeviceM...discovered.png

When unplugged, although it says job completed, nothing printed because a message said it was unable to open device "hp:usb/<printername>" (note it refers only to hp:usb rather than ipp). Both versions have been defined in CUPS at the moment

Cannot open CUPS to view printer and device information via HP Device Manager because of "device communication error (5012)".

192.168.1.103 can't talk to 192.168.1.108??

When I send a job to hp:usb defined printer (CUPS is showing 2 versions, one ipp and the other usb) it says 'job completed' but nothing printed.

So I have to accept that the old machine can only print when the printer is plugged into its USB and can only be defined as 'hp:usb' rather than 'ipp/192.168.1.103/printers/' etc?

I'm totally confused now

Last edited by dwhb; 01-16-2020 at 01:06 AM.
 
Old 01-16-2020, 05:46 AM   #27
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,092

Rep: Reputation: 2483Reputation: 2483Reputation: 2483Reputation: 2483Reputation: 2483Reputation: 2483Reputation: 2483Reputation: 2483Reputation: 2483Reputation: 2483Reputation: 2483
Quote:
192.168.1.103 can't talk to 192.168.1.108??
If you're printing on usb, you plug in a usb plug, set up in cups, and there's no ip. That pc can print. Any networking is the business of the pc with the printer attached. 192.168.1.103 should be able to talk to 192.168.1.108, but not any or every port might be open, so any protocol might fail.
 
Old 01-16-2020, 06:14 AM   #28
dwhb
Member
 
Registered: Jul 2012
Location: Down Under
Distribution: Mint 19 Tara
Posts: 138

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
If you're printing on usb, you plug in a usb plug, set up in cups, and there's no ip. That pc can print.
I understand this. That has been the setup before i plugged printer to NUC instead. Previous setup allowed my laptop and fit-PC4 to print without having to go through any of this. Although what I can't work out is that reverting back to previous arrangement, the NUC wasn't able to print.

Quote:
Any networking is the business of the pc with the printer attached.
192.168.1.103 should be able to talk to 192.168.1.108, but not any or every port might be open, so any protocol might fail.
Which ports should be open? and how can 192.168.1.103 talk to 192.168.1.108 if it does not have wireless capabilities and is not networked (as in file sharing)? I really don't understand this.
 
Old 01-16-2020, 06:49 AM   #29
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,353

Rep: Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148
With the typical home wireless router all wireless devices connect to the router. Communication from a wired to a wireless device has to go through the router. Only wired devices will communicate directly with each other. In general any computer on the same LAN whether wired or wireless can be networked together as in file sharing.

Since the printer is connected using USB opening ports 427 or 5353 will not help. Did you open port 631?
 
Old 01-16-2020, 07:12 AM   #30
dwhb
Member
 
Registered: Jul 2012
Location: Down Under
Distribution: Mint 19 Tara
Posts: 138

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Did you open port 631?
I have just done that but need to clarify whether the selections are correct.

'Preconfigured' tab
Policy: Allow
Direction: Both (In & Out)
Category: Audio or Games or Network or Office or System?
Subcategory: (list of 16) but I selected 'Printing'
Application: CUPS or HPLIP or IPP?

'Simple' tab
Port: 631

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Installing an HP laserjet p1102w printer in Linux Mint beefman Linux - Newbie 12 04-30-2022 09:30 PM
[SOLVED] Printing in Current Again :-((. HP Laserjet P1102W business_kid Slackware 1 01-17-2019 12:20 PM
Down load a driver for hp laserjet printer P1102W lmbaca Linux - Newbie 2 04-03-2013 09:42 PM
HP LaserJet P1102w jfmarg2011 Linux - Newbie 3 08-06-2011 02:52 AM
hp p1102w laserjet does not print through suse 11.2 jimonlinux Linux - Hardware 3 07-04-2010 05:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration