OpenHantek / OpenHantek6022

OpenHantek6022 is a DSO software for Hantek USB digital signal oscilloscopes 6022BE / BL. Development OS is Debian Linux, but the program also works on FreeBSD, MacOS, RaspberryPi and Windows. No support for non-Linux related issues unless a volunteer steps in!
GNU General Public License v3.0
853 stars 150 forks source link

udev rules not installed in correct directory #143

Closed VictorLamoine closed 3 years ago

VictorLamoine commented 3 years ago

Describe the bug The udev rules are not installed in a directory parsed by udev.

To Reproduce

Install the project...
-- Install configuration: "RelWithDebInfo"
-- Up-to-date: /usr/local/lib/udev/rules.d/60-hantek.rules
-- Up-to-date: /usr/local/share/doc/openhantek/CHANGELOG
-- Up-to-date: /usr/local/share/doc/openhantek/LICENSE
-- Up-to-date: /usr/local/share/doc/openhantek/README
-- Up-to-date: /usr/local/share/doc/openhantek/HANTEK6022_AC_Modification.pdf
-- Up-to-date: /usr/local/share/doc/openhantek/OpenHantek6022_User_Manual.pdf
-- Up-to-date: /usr/local/share/doc/openhantek/OpenHantek6022_zadig_Win10.pdf
-- Up-to-date: /usr/local/share/applications/OpenHantek.desktop
-- Up-to-date: /usr/local/share/icons/hicolor/48x48/apps/OpenHantek.png
-- Up-to-date: /usr/local/share/icons/hicolor/scalable/apps/OpenHantek.svg
-- Up-to-date: /usr/local/bin/OpenHantek

Un-plug / plug the Hantek 6022, start the application and the applications errors about wrong permissions to access the device.

Quick fix, create a symlink:

sudo ln -s /usr/local/lib/udev/rules.d/60-hantek.rules /etc/udev/rules.d/

Computer environment:

Ho-Ro commented 3 years ago

Do NOT install this way! Instead follow the proposal:

make -j4
rm -f packages/*
fakeroot make -j4 package
sudo apt install packages/openhantek_*_amd64.deb

Beside the possibility to remove cleanly this has also the benefit that dependency packages are installed automatically (they are marked also as automatically installed). If you want to remove OpenHantek6022 and the dependencies are no longer needed you can remove them also (apt autoremove).

VictorLamoine commented 3 years ago

Got it thanks

You can cleanly uninstall with CMake:

sudo xargs rm < "install_manifest.txt"