I've never used it but there are a few OBD-II tools out there that will work on Linux. Scantool.net used to publish their source code too, but they used Allegro libraries and a horrible serial library and I could never be bothered to finish my conversion of their code to something more palatable and portable.