This is NOT a help request, which is why I am posting this here.
It is about setting up and using an HP scanner (in HP printer/scanner) on openSUSE LEAP-16.0 RC without YaST, where for the past ~20 years, I have always successfully used YaST to configure the scanner, without issues. In the process of doing this, I had to tune the LEAP-16.0 RC firewall a bit.
I thought to post this in a separate post, rather than push it into either my YaST alternatives thread or my “experience in installing a Printer thread without YaST” thread, both of which I started prior.
With regard to scanning …
I wanted to use the app xsane to scan , as that was how i scanned images in the past (after 1st configuring with YaST).
xsane
Of course, per Murphy’s law, xsane is NOT in the nominally LEAP-16.0 RC repositories.
However there is a version of xsane in the OBS repositories, and so I installed that version. I won’t spam the forum with how I did that, … I think most openSUSE users are very familiar with doing that.
Note this activity on my computer was done AFTER setting up my printer for network printing with my HP printer/scanner for printing. So I had previously installed hplip and previously run su -c hp-setup
Now before running xsane, I decided to see if the scanner could be detected so I ran scanimage -L :
oldcpu@desktop16rc:~> scanimage -L
device `hpaio:/net/DeskJet_2600_series?ip=192.168.31.46' is a Hewlett-Packard DeskJet_2600_series all-in-one
oldcpu@desktop16rc:~>
So that was good. The scanner can be seen.
So I typed xsane and obtained error: Failed to open device 'hapio/net/DeskJet_2600_series?ip=192.168.31.46': Error during device I/O
I suspected a firewall issue. My recollection is YaST used to open this for me automatically when I configured my HP network scanner.
Firewall
So i decided to check the firewall, only to find out firewall-config was not installed by default. So I installed it (using zypper).
Then I tried to run it. THAT took me a few tries.
The first try: sudo firewall-config failed with errors.
The second try: su -c firewall-config failed with errors.
The third try I first tired “su” by itself (changing to root). Then with root permissions (ie user root) I tried firewall-config , and that worked.
This brings up a GUI for the firewall.
![]()
I then in the GUI, under services, selected to open the firewall for ‘sane’ (which I read elsewhere is port 6566/tcp ) .
I found it interesting I previously had to do nothing to the firewall, for my HP printer to work. My assumption is printing worked (without tuning the firewall for printing) as printing may have used port 9100/tcp (JetDirect) or port 631/tcp (IPP).
But I wanted to check that assumption:
I sent this concatinated command:
oldcpu@desktop16rc:~> sudo firewall-cmd --list-all --permanent 2>/dev/null && echo "---" && sudo ss -tulpn
public (default)
target: default
ingress-priority: 0
egress-priority: 0
icmp-block-inversion: no
interfaces:
sources:
services: dhcpv6-client sane ssh
ports:
protocols:
forward: yes
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
---
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
udp UNCONN 0 0 0.0.0.0:51962 0.0.0.0:* users:(("avahi-daemon",pid=987,fd=13))
udp UNCONN 0 0 224.0.0.251:5353 0.0.0.0:* users:(("chrome",pid=2099,fd=164))
udp UNCONN 0 0 224.0.0.251:5353 0.0.0.0:* users:(("chrome",pid=2099,fd=152))
udp UNCONN 0 0 0.0.0.0:5353 0.0.0.0:* users:(("avahi-daemon",pid=987,fd=11))
udp UNCONN 0 0 127.0.0.1:323 0.0.0.0:* users:(("chronyd",pid=1230,fd=5))
udp UNCONN 0 0 [::]:5353 [::]:* users:(("avahi-daemon",pid=987,fd=12))
udp UNCONN 0 0 [::]:55617 [::]:* users:(("avahi-daemon",pid=987,fd=14))
udp UNCONN 0 0 [::1]:323 [::]:* users:(("chronyd",pid=1230,fd=6))
tcp LISTEN 0 4096 127.0.0.1:631 0.0.0.0:* users:(("cupsd",pid=1175,fd=8))
tcp LISTEN 0 4096 [::1]:631 [::]:* users:(("cupsd",pid=1175,fd=7))
oldcpu@desktop16rc:~>
That shows ports status for sane and and configured for cupsd (I assume for printing) to listen. and avahi (I assume to allow printer/scanner detection).
Creating that concatenated command was a PIA to create. But I could not find another way to get what I wanted in a single one line command.
Network scanning now works !!
I should note - scanning from my desktop PC, to the HP scanner upstairs, via a mesh router network, worked fine.
So clearly, there are functional alternatives to YaST for both scanning and the firewall turning.
Summary:
Six words: " It works !!! and I miss YaST".
VERY VERY clearly, there are ways to do everything without YaST.
But having to learn (and in cases re-learn) exactly what way to launch a command ( sudo, or su -c or simply su ) is not as convenient as YaST. Then messing around with different commands to get a succinct firewall output that told me status of both ports open for scanning and printing, was also a bit tiresome.
Fortunately it did not take long , but again I wonder, was this relatively quick setup (despite my being outdated and old/rusty) for me because I have been a GNU/Linux user for > 1/4 century?
As noted in a previous thread, with YaST I was spoiled, and now I am super fussy. I can not deny that.
But also, even more important, is that THERE ARE ALTERNATIVES TO YAST - they simply may not be so intuitively obvious (for a former YaST user).
Silver Lining
They say, “every cloud has its silver lining”.
In this case, I learned a bunch. That is good. And further printing, scanning, and further playing with the firewall worked.
It took me about 10x as long to type this post, than it did to configure and do a network scan.
Still this, for me, is a useful record.
Perhaps an even BIGGER silver lining, is I think I am liking LEAP-16.0 RC - possibly better than LEAP-15.6 (albeit I have yet to try to setup multi-media on LEAP-16.0 (I won’t try that until December, after I come back from a travel half way around the world).
So I have not yet put my finger on the reason why I like LEAP-16.0 RC , but maybe it is because of the fun/investigating/learning with no YaST, is the reason.
