Page 2 of 2

Re: Microsoft surface laptop 7 an arm processor problems installing SAB [Snapdragon X Elite / Plus]

Posted: June 24th, 2024, 11:18 pm
by japie1213
Good morning Sander,

I downloaded from github the windows installer file but my antivitus program Windows Defender delete the program after downloading and tells me this it is a severe trojen called Trojan:Script/Wacatac.B!ml
I could shut down my virusprogram but i find that to risky,
again thank you very much for your help. regards

Re: Microsoft surface laptop 7 an arm processor problems installing SAB [Snapdragon X Elite / Plus]

Posted: June 25th, 2024, 12:20 am
by sander
Ah, I see.

Someone else confirmed the logging says my patch is working: https://github.com/sabnzbd/sabnzbd/issu ... 2187483881

And my patch just got accepted in SABnzbd, so it will be in the next version of SABnzbd. You could wait for that.

Thanks for reporting and providing info.

Re: Microsoft surface laptop 7 an arm processor problems installing SAB [Snapdragon X Elite / Plus]

Posted: June 25th, 2024, 3:04 am
by japie1213
Thanks for your help.
with kind regards
Jan

Re: Microsoft surface laptop 7 an arm processor problems installing SAB [Snapdragon X Elite / Plus]

Posted: June 27th, 2024, 3:20 am
by talynone
Thanks for this. I have the Lenovo Slim 7x Snapdragon.

Since the heavy processing happens with par2 and uncompressing files here's a few ways to further improve performance on ARM by using ARM native builds of some support apps SABNzbd uses.

-------

Replace Par2.exe with ARM native build.

By default on Windows SABnzbd uses multipar instead of par2 command line. So first, turn off multipar by:

Under Settings->Special, uncheck "enable_multipar" and press the "Save Changes" button at the bottom.

Then download the ARM64 native par2 from:

github dot com /animetosho/par2cmdline-turbo/releases (can't post links)

Latest is "par2cmdline-turbo-v1.1.1-win-arm64.7z" as of this post. Uncompress the par2.exe in this file to the \SABnzbd\win\par2\x64 folder, replacing the existing par2.exe

------

Replace 7zip with ARM native build. Download the "64-bit Windows arm64" from here the official website:

Install 7zip and from the install folder copy the file "7z.exe" to the "\SABnzbd\win\7zip" folder. Delete/backup the old 7za.exe and rename the copied 7z.exe to 7za.exe.

----------

Unrar, I couldn't find a Windows ARM native build of unrar, but if some developer wants to take it on I found the source code for it here:

github dot com /pmachapman/unrar (can't post links)

Re: Microsoft surface laptop 7 an arm processor problems installing SAB [Snapdragon X Elite / Plus]

Posted: June 27th, 2024, 3:32 am
by sander
Good points. Can you please file them (as separate items: par2 resp 7zip) on https://github.com/sabnzbd/sabnzbd/issues ?

For reference: direct link to 7zip for ARM64: https://www.7-zip.org/download.html (ie https://www.7-zip.org/a/7z2407-arm64.exe ) . EDIT: does that contain the 7z CLI-only, non-GUI version ( win\7zip\7za.exe )


Or, even bettter, if you can & want: a pull request on https://github.com/sabnzbd/sabnzbd/pulls ... but you need progamming & git knowledge for that. We would logic in SABnzbd to find out it's on Windows on ARM (and then use the native ARM par2 and 7zip), so maybe a bridge too far for you?

Re: Microsoft surface laptop 7 an arm processor problems installing SAB [Snapdragon X Elite / Plus]

Posted: June 27th, 2024, 10:50 am
by talynone
Doing a pull request is bit bridge too far for me.

But I did create two feature requests:

Issue 2896 and 2897

And yes, 7z.exe from 7zip is the command line version, just have to rename it to 7za.exe and put it in the right SABNzbd folder.

Re: Microsoft surface laptop 7 an arm processor problems installing SAB [Snapdragon X Elite / Plus]

Posted: June 27th, 2024, 12:11 pm
by talynone
Just did a bit more research 7z.exe may also require the 7z.dll copied over to function properly, but it seemed to work without me needing to copy that support file.

More info:

sourceforge dot net /p/sevenzip/discussion/45797/thread/93b0c65f6b/

Re: Microsoft surface laptop 7 an arm processor problems installing SAB [Snapdragon X Elite / Plus]

Posted: June 27th, 2024, 12:18 pm
by sander
Thanks
talynone wrote: June 27th, 2024, 12:11 pm Just did a bit more research 7z.exe may also require the 7z.dll copied over to function properly, but it seemed to work without me needing to copy that support file.

More info:

sourceforge dot net /p/sevenzip/discussion/45797/thread/93b0c65f6b/
Better to put it in the github issue; more developers there.

Re: Microsoft surface laptop 7 an arm processor problems installing SAB [Snapdragon X Elite / Plus]

Posted: June 27th, 2024, 12:23 pm
by talynone
Will do, I also found the 7za ARM64 version from

7-zip dot org /a/7z2407-extra.7z (when extracted ARM64 .exe is located in \arm64 folder)

Though looking at the issue replies the devs aren't interested in including the ARM64 binaries.