There is some old advice for getting linux working but it is very out of date.
First of all the official linux download is entirely useless. It is a compiled binary which is of no use to anyone. Secondly the official github source cannot compile with the latest version of QT. Instead we need to install from the user ewisuri, who fixed this. Open a terminal and navigate to somewhere you want to dump the source. Assuming you have GIT (if not, install it), run:
git clone https://github.com/ewisuri/xscopes-qt.git Xscopes
move into this driectory with
cd Xscopes
make a new directory for the build and move into it
make build cd build
ok we will also need some extra packages you may not have, you will need (you may need more, which I overlooked and already had)
sudo apt-get install build-essential cmake qtbase5-dev libqt5serialport5-dev pkg-config
Now run cmake on the main directory
cmake ..
hopefully this didn't fail. Now we can run make
make
This should have made a nice executable you can run called xscope, to test it run
./xscope
Probably this will open but the traces wont be moving and the terminal will complain that the device wasn't found. Even if it is plugged in. This is because the permissions are not set properly. You can check this by running xscope as root:
sudo ./xscope
This should work but is an awful solution. Instead we should play with udev rules. A previous post mentioned how to do this, but the rule given has an incorrect file name, and it uses NAME which is no longer valid due to systemd. So let's do it a slightly new way. Make a new udev rule with
sudo touch /etc/udev/rules.d/64-xscopes.rules
note it is .rules, not .rule!! Let's now edit it:
sudo nano /etc/udev/rules.d/64-xscopes.rules
in nano enter
ACTION=="add", SUBSYSTEM=="usb", ATTR{manufacturer}=="Gabotronics", GROUP=="plugdev", MODE="066", SYMLINK+="XScope%n"
Press Ctrl+X to exit. Press Y to save, and enter to keep the file name. This code is simply telling the computer that when a USB device from Gabotronics is plugged in, it should be in the group plugdev, and that users in that group (you) have permission to use it. It also symlinks it to a nice place in /dev to make it easy for you to find, if you so wish. Now we need to make sure the new rules are loaded:
sudo udevadm control --reload-rules
Unplug the device and plug it back in. Now when you run
./xscope
everything should work! |