How to run ScanTool on Linux

ScanTool is an OBD data reader. Here's how you can run it on linux:

#!/bin/bash
#!/bin/bash
 
wget http://archive.ubuntu.com/ubuntu/pool/universe/s/scantool/scantool_1.21+dfsg.orig.tar.bz2
tar xjf scantool_1.21+dfsg.orig.tar.bz2
cd scantool-1.21
wget http://archive.ubuntu.com/ubuntu/pool/universe/s/scantool/scantool_1.21+dfsg.orig-dzcomm.tar.bz2
tar xjf scantool_1.21+dfsg.orig-dzcomm.tar.bz2
mv dzcomm-0.9.9i/ dzcomm
wget http://patch-tracker.debian.org/patch/series/dl/scantool/1.21+dfsg-3/dzcomm-usb-serial.patch
wget http://patch-tracker.debian.org/patch/series/dl/scantool/1.21+dfsg-3/scantool-linux-build.patch
wget http://patch-tracker.debian.org/patch/series/dl/scantool/1.21+dfsg-3/logging-newlines.patch
wget http://patch-tracker.debian.org/patch/series/dl/scantool/1.21+dfsg-3/drop-listports.patch
wget http://patch-tracker.debian.org/patch/series/dl/scantool/1.21+dfsg-3/allow-elm327-clones.patch
wget http://patch-tracker.debian.org/patch/series/dl/scantool/1.21+dfsg-3/drop-report-request.patch
wget http://patch-tracker.debian.org/patch/series/dl/scantool/1.21+dfsg-3/build-flags.patch
sed s_/usr/share/scantool/__ -i scantool-linux-build.patch
patch -p1 -i dzcomm-usb-serial.patch
patch -p1 -i scantool-linux-build.patch
patch -p1 -i logging-newlines.patch
patch -p1 -i drop-listports.patch
patch -p1 -i allow-elm327-clones.patch
patch -p1 -i drop-report-request.patch
patch -p1 -i build-flags.patch
cd dzcomm && sh ./fixunix.sh && ./configure && make depend && make lib; cd ..
make CFLAGS="-Idzcomm/include -DDZCOMM_DJGPP=1" LDFLAGS="-Ldzcomm/lib/unix"
cd ..
cp scantool-1.21/scantool .
cp scantool-1.21/scantool.dat .
cp scantool-1.21/codes.dat .
rm -rf scantool-1.21
rm scantool_1.21+dfsg.orig.tar.bz2

Courtesy goes to PePe.

One thought on “How to run ScanTool on Linux”

  1. Спасиба Михаил!!
    I tried it out and works fine on Kubuntu13.10
    Main problem was to get the ELM327 working on Linux. It will be recognized by the kernel but as long as the user is not a member of the dialout group it will not work. So with id -Gn you have to check if you are member of that group.
    Привет и до свидания,
    Dick Saarloos

Leave a Reply to Dick Saarloos Cancel reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.

This site uses Akismet to reduce spam. Learn how your comment data is processed.