Closed gromain closed 4 years ago
No, #94 is not related. In #94 I show side by side the response of the armhf and arm64 oeserverd on the same machine. That really is "Ubuntu 18.04 works, but Ubuntu 20.04 does not". If the privileges were incorrect both would fail.
In the Cruiserforum beta 5.1.620RC1 3 possible solutions are mentioned for your problem:
The real problem here is the switch from a deb-package installed as admin to user installed packages (with the pluginmanager). Without deb-file there are no admin rights to change the system privileges, meaning a user without rights cannot enable the USB dongle.
This will be corrected in the next Beta. The OCPN core .deb will install 98-sglock-ocpn.rules. Note name change. udev allows overlap of rules file contents without complaint. Last one installed controls the permissions. So oesenc and oeRNC will both be enabled for dongle access.
And ready now from Beta PPA, as Version 5.1.704.2 Please report test results.
Just a simple test:
# apt-get --purge remove opencpn opencpn-data
# rm /etc/udev/rules.d/98*
# apt-get install opencpn
=> result, no udev rule for the SGlock USB key (5.1.704.2-0~focal1, x86_64, Debian Sid). Detail is I'm trying to install a Ubuntu package on Debian here, therefore it might be my mistake. That or the 5.1.704.2-0 version has a minor difference (PPA/bdbcat). For me this won't be a problem, since this is my system to play around.
=> result, new udev rule for the SGlock USB key (5.1.704.2-1~bionic1, arm64, Ubuntu 18.04) It works alright for the arm64 on ubuntu (PPA/bdbcat). On the arm64 I did not remove the rule before upgrading => 98-sglock-ocpn.rules next to 98-sglock.rules
It works but I'm afraid you'll have to check a few more platforms to be sure.
Debian package building has lots of pitfalls... Take a look at latest build from Beta PPA: 5.1.704.3-0-focal1 for amd64. This one adds udev file correctly.
This one indeed works on Debian.
Close?
My bug report was more about the fact that the rules was not installed in the CMakeLists.txt . I've modified the way the AUR package is built, so all is fine now. Thanks for closing.
Hello,
The latest version in master does not install the udev rules for SG Lock. After compilation and installation, the USB dongle is not detected by OpenCPN.
Just installing the rule solves the problem. Maybe #94 is related to this issue.
The related log:
This problem also exists in the latest release available from Github.