Home Forum XScopes PC Interface XScope Ubuntu (and probably mint) HowTo
 Gabotronics Forum :: XScopes PC Interface
Welcome Guest   
 Subject :XScope Ubuntu (and probably mint) HowTo.. 2016-08-06 13:38:17 
JulianStirling
Joined: 2015-12-04 00:31:02
Posts: 2
Location

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!

IP Logged
 Subject :Re:XScope Ubuntu (and probably mint) HowTo.. 2016-09-20 05:53:02 
jaaxxlinux@gmail.com
Joined: 2016-09-18 09:23:42
Posts: 3
Location

This mostly works, just want to add a couple of notes here.

First: "make build' should be "mkdir build"

Second you will also need to install libusb-1.0-0-dev and libudev-dev

Thanks!

IP Logged
 Subject :Re:XScope Ubuntu (and probably mint) HowTo.. 2017-01-22 13:04:48 
plzink
Joined: 2016-12-10 13:18:29
Posts: 1
Location

wow i just cannot find the bannana boat - ie

suse leap need root to acess  devices ( NOT CONNECTED )     what devices and or symlinks are you setting this up with

debien   root cannot open display  and non root ( user ) not connected

 

respectfully submitted

plzink

ps  thanks

pps   ok update  --- groupadd  udev and plugdev     reload rules

probily just group plugdev would work

static binary is good started from konsole   on suse leap     ./start_app.sh

 

IP Logged
Page # 


Powered by ccBoard