Freenet on Pinebook pro - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111) +--- Forum: Linux on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=114) +--- Thread: Freenet on Pinebook pro (/showthread.php?tid=15555) |
Freenet on Pinebook pro - regivanx - 12-15-2021 Hello, has anyone managed to get freenet to work on the pinebook pro? It's a java program, normally it should work fine. But when launching the program I got the following error message: Code: Freenet do not start on Pinebook pro. No wrapper for linux-aarch64-32. I submitted a bug to https://freenet.mantishub.io/view.php?id=7149 but no news since. Would someone be willing to help me install freenet on the pinebook pro? RE: Freenet on Pinebook pro - Dendrocalamus64 - 12-15-2021 Short version: Edit ~/Freenet/run.sh. Change jna-4.2.2.jar and jna-platform-4.2.2.jar to jna-4.5.2.jar and jna-platform-4.5.2.jar both times that they appear, and then it seems to run. Code: $ sed -i 's/4.2.2/4.5.2/g' run.sh --- It doesn't support aarch64. There is an AUR package, https://aur.archlinux.org/packages/freenet/ According to that, java-service-wrapper is a required dependency. https://aur.archlinux.org/packages/java-service-wrapper/ Even though the PKGBUILD for java_service_wrapper includes aarch64, it doesn't actually build properly on aarch64 without modification. Code: [[ "$CARCH" = @(x86_64|aarch64) ]] && _bits=64 || _bits=32 ^ that part is obviously wrong, and causes it to detect the platform as x86 64-bit. It seems to build if I hardcode _bits=64 ; _arch=armhf, using the 64-bit armhf makefile. The wrappers are supposed to be in ~/Freenet/bin It doesn't include a wrapper for aarch64 or armhf 64-bit. java-service-wrapper installs to a system directory (/usr/share/java) so it doesn't fix that. The error messages are coming from ~/Freenet/run.sh If it can't find the wrappers, it falls back to a command line with a hardcoded classpath that includes jna and jna-platform. This code obviously doesn't get tested often because, while both of those are bundled and in the same directory, the hardcoded version number is wrong, so it can't find them. The error message 'Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/jna/Platform' is the direct result of that. wrapper.conf uses the proper version numbers; they forgot to update the fallback. RE: Freenet on Pinebook pro - regivanx - 12-18-2021 Thanks a lot. Freenet starts with the patch, but cannot load WebOfTrust. It is therefore impossible to send encrypted emails. No doubt there is more work to be done to get freenet running on ARM, as illustrated by the android freenet application, which also cannot send email. I want to pay someone to run Freenet on Pinebook pro. I submitted a bug on mantishub, but no news since. The IRC and the mailing list no longer work. Can you help me contact the Freenet team? I don't know how to reach them. Why are they not responding to the bug on mantishub? However, the repository is active. Not very good communication to report bugs or offer donations... RE: Freenet on Pinebook pro - Dendrocalamus64 - 12-19-2021 I don't know any freenet people to try emailing, but I didn't see WebOfTrust fail to load. I went to Configuration > Plugins in the web interface (http://127.0.0.1:8888/plugins/) and loaded the official Freemail and WebOfTrust plugins, then to the Community tab to create a WebOfTrust identity and the Freemail tab to create an account, and nothing failed to load so far. The official Freenet site has a Donate page, with contact email addresses at the bottom. I can't check whether the IRC channel on libera.chat works because it's blocking my VPN. The links in the default Freemail welcome email are way out of date; starting point should be the current Documentation page. There are 3,400 open issues, and many of them don't have any comments. I might guess that they haven't had the time, or they don't have the hardware. It looks extremely slow. Community > Statistics reports 3923 non-own identities, and it's downloading 51.576107 per hour. So about 76 hours for WoT to sync. I need to solve "about 10 captchas" to get to a basic level of trust, and so far it's gotten around to finding me 3. I would be careful about relying on anything for anonymity or privacy that's still in alpha and may have been largely abandoned for years. RE: Freenet on Pinebook pro - regivanx - 12-19-2021 For donations, I don't have paypal or bitcoin, and I don't want to use them. I would prefer to pay by SEPA (Europe) transfer. In addition, some free software teams offer to accept payments to develop a special feature or to fix a particular bug. It is also a way of earning a living by developing free software. This is what I would like to do. The support@freenetproject.org mailing list long dead. The last time I wrote to them to offer them money, a completely unknown guy answered me to tell me that he did not understand what I wanted to talk about, then after talk a bit he remembered that he signed up for the freenet mailing list a long time ago. I will try press@freenetproject.org, hoping that this box is not dead, too. -- To come back to web of trust, it doesn't work for me. Do you have any idea where the problem is? I enclose the output of the terminal after launching ./run.sh start Code: Could not load plugin WebOfTrust : java.lang.reflect.InaccessibleObjectException: etc. Other than Freenet, I don't know how to send really secure emails. PGP allows messages to be encrypted, but an attacker knows who is writing to whom, when, and can easily find the correspondents or block their communication, if they cannot read it. RE: Freenet on Pinebook pro - Dendrocalamus64 - 12-19-2021 We are using different Java VM versions to run it. Yours: Initializing Node using Freenet Build #1492 rbuild01492 and freenet-ext Build #29 rv29 with N/A JVM version 17.0.1 running on aarch64 Linux 5.15.7-1-MANJARO-ARM Mine: Initializing Node using Freenet Build #1492 rbuild01492 and freenet-ext Build #29 rv29 with Oracle Corporation JVM version 11.0.13 running on aarch64 Linux 5.7.19-1-MANJARO-ARM The code contains unfixed illegal reflective accesses which Java used to allow. Background reading: Reflection vs Encapsulation – Stand Off in the Java Module System JVM 17 no longer supports --illegal-access=warn or --illegal-access=permit, which was the prior default. So the code now breaks. So what you can do is, $ sudo pacman -S jre11-openjdk-headless jre11-openjdk jdk11-openjdk and then, $ sudo archlinux-java set java-11-openjdk So that you will have both OpenJDK 11 and OpenJDK 17 installed, with OpenJDK 11 selected as the active Java environment. Until the Freenet developers tighten up the formerly legal reflective accesses, that's the workaround. In addition to Bitcoin and Paypal, they also support major credit cards via their Bountysource page. I've heard of SEPA but it's not really used outside the EU. I wonder if Bountysource still pays through to them, or if they just sit on the money. RE: Freenet on Pinebook pro - regivanx - 12-19-2021 Thanks a lot! WoT works, now. RE: Freenet on Pinebook pro - regivanx - 08-11-2022 Hi! The problem is corrected at "Freenet 0.7.5 version no 1494 rbuild01494": no more file editing is needed to run Freenet and WoT. However, you still need to manually add the wrapper-linux-aarch64-32 file to run Freenet in the wrapper. Download page of the Java Service Wrapper. Select "Linux ARM (AArch64)" line, "Community" column. The file is located in the "bin" folder of the compressed file. Unzip it into Freenet's bin directory, and rename it "wrapper-linux-aarch64-32". Restart Freenet. The bug is still open on mantishub, but it is presumably being fixed. |