The officially official Devuan Forum!

You are not logged in.

#1 2026-04-07 13:26:55

Altoid
Member
Registered: 2017-05-07
Posts: 2,017  

[SOLVED] Devuan and M2020W printer wireless

Hello:

I run a Samsung/HP M2020W laser printer.
It has a small footprint, was on sale at 50% discount and suited me fine for my occasional printing.

It works fine with CUPS (for now) and it connects to my box via USB.
Never used (or will use) its wireless networking capability.

That said, I have lately discovered that the printer's wireless is brought up every time I turn it on.

So I went looking to see if I could find a way to set up the wireless parameters without having to install a Samsung/HP driver package which, needless to say, I do not trust: it may well brick my printer or keep me from refilling my carts.

I then found this page which had the instructions to do exactly what I wanted.

I managed to get the files, extracted the ones I needed and ran the application but I am not getting the expected results.

~/Downloads/hp_m2020w_utils/cdroot/Linux/wirelesssetup/bin64$ LD_LIBRARY_PATH=./:$LD_LIBRARY_PATH ./wirelesssetup /dev/usb/lp1
./wirelesssetup: error while loading shared libraries: libnetsnmp.so.10: cannot open shared object file: No such file or directory

My Devuan Daedalus has updated versions of libnetsnmp.so.10 and all the needed files are where the instructions say they should be:

~/Downloads/hp_m2020w_utils/cdroot/Linux/wirelesssetup/bin64$ ls -1
libnetsnmp.so.10.0.2
libqt-mt.so.3.0.5
libstdc++.so.5.0.7
wirelesssetup
~/Downloads/hp_m2020w_utils/cdroot/Linux/wirelesssetup/bin64$ 

This makes me think that there may be something amiss (?) with the LD_LIBRARY_PATH=./:$LD_LIBRARY_PATH string before the executable is called.
ie: much in Linux in the past couple of years and the post was last updated two years ago.

Any ideas?

Best,

A.

Last edited by Altoid (2026-04-07 13:50:17)

Offline

#2 2026-04-07 16:04:55

kapqa
Member
Registered: 2019-01-02
Posts: 649  

Re: [SOLVED] Devuan and M2020W printer wireless

if you don't gtrust the company, i'#d suggest you stay at large from their products?
makes sense?

Best.

R.

Offline

#3 2026-04-07 16:41:41

Altoid
Member
Registered: 2017-05-07
Posts: 2,017  

Re: [SOLVED] Devuan and M2020W printer wireless

Hello:

kapqa wrote:

... you don't trust the company ...

HP?
Samsung?
Neither of them.
Long ago I trusted HP.
It was another life, another HP and I was only 23.

kapqua wrote:

... suggest you stay at large from their products?

That I have done so for the longest time.

But a few years ago, needing a relatively decent B&W printer in very short order and without much money to spare, I went for a new M2020W with quite a hefty discount on the regular over the counter price due to it being the last one in a shop about to close.
ie: I needed a printer that same day and the shop needed the cash which, when all was said and done, was (iirc) less than US$40.

I did not expect it to last past the job I was undertaking but here it is.
But as I did not trust HP, I never used it wirelessly, connected it to the web or updated any code.
Just plain USB.

Makes sense?

Best,

A.

Offline

#4 2026-04-07 17:43:35

kapqa
Member
Registered: 2019-01-02
Posts: 649  

Re: [SOLVED] Devuan and M2020W printer wireless

sorry, if i am not reading the wole,

but if you need a good b&w,

zou could look for a "geljet" theiy are sometimes on offer on ebay (sadly hardly to be found otherwise ooutside japan), or like a m3170/3180, but they a re a bit "bulky" and have WiFi, although if you connect via ethernet, it is supposedly disabled.
+side is the low maintenance costs, ecofriendly printing at reasonable quality, and very low cost per page.

Offline

#5 2026-04-07 22:33:38

Altoid
Member
Registered: 2017-05-07
Posts: 2,017  

Re: [SOLVED] Devuan and M2020W printer wireless

Hello:

kapqa wrote:

... but if you need a good b&w ...

I'm sorry, I have not explained myself correctly.
My bad ...

I do not need another B&W printer.
Like I mentioned, this one works perfectly well.
I just want to access the printer's wireless settings via USB without having to install a full blown HP application.

ie: just need to solve the problem I posted about.

./wirelesssetup: error while loading shared libraries: libnetsnmp.so.10: cannot open shared object file:
No such file or directory.

Best,

A.

Offline

#6 2026-04-07 23:12:14

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,636  

Re: [SOLVED] Devuan and M2020W printer wireless

My quick package search suggests version 10 is too old to be found, but there is the package libsnmp40 that contains a similarily named dynamic library. So perhaps it works by installing version 40 and implementing a lie by setting a link... thusly:

# apt-get install libsnmp40
# ln -s libnetsnmp.so.40  /usr/lib/x86_64-linux-gnu/libnetsnmp.so.10

hth
Ralph.

Offline

#7 2026-04-07 23:49:57

Altoid
Member
Registered: 2017-05-07
Posts: 2,017  

Re: [SOLVED] Devuan and M2020W printer wireless

Hello:

ralph.ronnquist wrote:

... quick package search suggests version 10 is too old to be found ...

Yes, but I did get the files.

This, as it usually happens, was a tipical pebkac.
The instructions were clear albeit not for me.

To wit:

libnetsnmp.so.10 copy from PSU_1.01/cdroot/Linux/psu/share/lib64/libnetsnmp.so.10.0.2
libqt-mt.so.3 copy from PSU_1.01/cdroot/Linux/psu/share/lib64/libqt-mt.so.3.0.5
libstdc++.so.5 extract from PSU_1.01/cdroot/Linux/psu/share/libstdc++-5-x86_64.tar.gz | /usr/lib64/libstdc++.so.5.0.7

Eventually, you should end up with this folder structure:

PSU_1.01/cdroot/Linux/wirelesssetup/bin64
├── libnetsnmp.so.10     
├── libqt-mt.so.3
├── libstdc++.so.5
└── wirelesssetup

But the 'folder structure' I ended up with was different:

~/Downloads/hp_m2020w_utils/cdroot/Linux/wirelesssetup/bin64$ ls -1
libnetsnmp.so.10.0.2
libqt-mt.so.3.0.5
libstdc++.so.5.0.7
wirelesssetup
~/Downloads/hp_m2020w_utils/cdroot/Linux/wirelesssetup/bin64$ 

I assumed that as the post was over three years old, the files in my forder structure were fine as the major versions were the same.

It did not occurr to me that I was to 'copy as' as in 'rename' to instead of doing a 'textual' copy.
Granted, the instructions could have been more explicit.

Once I had the files renamed, the application came up but unfortunately it does not have a wireless on/off switch for the printer.

The only thing it is good for is filling out the printer's wireless settings, something I cannot do unless I set up wireless in my box and actually establish a connection with the printer, so no USB connection for that.

I wonder how much it would have cost HP to add small SPST micro switch somewhere under the printer's chassis?
Maybe US$0.20?

The OP's title "change M2020 printer WiFi configuration using USB" ended up being rather misleading.
Or not: maybe 'configuration' does not include turning wireless on/off.  8^°

Thank you very much for your input.

Best,

A.

Last edited by Altoid (2026-04-07 23:59:09)

Offline

#8 Today 09:04:51

Duke Nukem
Member
Registered: 2018-11-07
Posts: 79  

Re: [SOLVED] Devuan and M2020W printer wireless

I wonder how much it would have cost HP to add small SPST micro switch somewhere under the printer's chassis?

I would trust HP either, nor most IT companies these days being obsessed with data collection, but especially not HP. I suspect HP don't want you to be able to turn off WiFi because that would be closing a possible channel for their control and for collecting data from you, even if they are not doing that at present. Nor would they be the first company to cripple or brick a device remotely with the claim that it is for "safety" reasons because some idiot electrocuted themselves by sticking a screwdriver into it.

Anyway, where would the printer get its WiFi signal from?  If it from a router somewhere, does the router not have a password, and if so surely the printer would not know it? In which case why does it matter if the printer turns on its WiFi - unless you have neighbours with open WiFi networks?

Last edited by Duke Nukem (Today 09:06:44)

Offline

#9 Today 11:24:07

Altoid
Member
Registered: 2017-05-07
Posts: 2,017  

Re: [SOLVED] Devuan and M2020W printer wireless

Hello:

Duke Nukem wrote:

... why does it matter if the printer turns on its WiFi ...

It matters because it is broadcasting and I do not want it to.

I do not have wifi enabled in my fibre router or in any of my boxes, netbook, RPi or cellphones.

Best,

A.

Last edited by Altoid (Today 11:24:44)

Offline

Board footer