Miata Turbo Forum - Boost cars, acquire cats.

Miata Turbo Forum - Boost cars, acquire cats. (https://www.miataturbo.net/)
-   MEGAsquirt (https://www.miataturbo.net/megasquirt-18/)
-   -   Ubuntu: install tunerstudio & megalog viewer noob guide (https://www.miataturbo.net/megasquirt-18/ubuntu-install-tunerstudio-megalog-viewer-noob-guide-60645/)

jared8783 09-25-2011 10:14 AM

Ubuntu: install tunerstudio & megalog viewer noob guide
 
4 Attachment(s)
This is a complete noob guide for those who are unfamiliar with ubuntu. Those who are will prob not need this guide. Fortunately I had a friend who was familiar with ubuntu to show me a few things.

For those of you who are unaware Ubuntu is a form of linux. It is a highly stable and highly secure operating system. It is completely free and open source (you are allowed to backwards engineer and modify it).


Fortunately both tunerstudio and megalog viewer both have ubuntu versions available so there is no need to run wine (a program that allows you to run widnows applications on linux).
Here are links for both of them
http://www.ideasandsolutions.biz/Meg...ewer/download/
https://www.efianalytics.com/TunerStudio/download/

On both of them be sure to choose the Non-Windows download.
Now with these there is no install wizard as there is on windows. In fact there really isnt even an install process. You simply unpack and run the proper .sh file and you are going.
For tunerstudio you run the TunerStudio.sh file and NOT the TunerStudio32.sh file
In megalog viewer you run the MegaLogViewer.sh file.
When you open these files you will have four different options. Click on run.
For megalog viewer you will need to have java runtime. Directions on that are here.
https://help.ubuntu.com/community/Java

If you are anything like me you are not going to want to navigate through your folders everytime you want to open up these programs.
You will probably want a desktop shortcut or like me an application menu selection.

Now the FIRST thing you will need to do before making a shortcut is to display (not run) the .sh file and make sure the file directory path is correct. I believe that if you have left tunerstudio exactly where you unpacked it then it should be correct. Or if you moved it like me then you will need to edit it. Eithor way you should check to be sure.

After you click display on the .sh file you should get a window something like this
https://www.miataturbo.net/attachmen...ine=1316960080

Now that applications folder isnt default on ubuntu. I added that folder in the home folder.
I recomend doing something similar so that as you install these type of programs on your ubuntu laptop that there is some sort of organization going on.

Then you will need to do the same with the MegaLogViewer.sh file. Except when I unpacked that it didnt even have that directory my pointer is pointing at in the pic. So I copied and pasted the one from the tunerstudio.sh file and edited it accordingly.

Now that you have the programs operational it is time to make your shortcuts. And you MUST correct the directories before you make the shortcuts other wise you will need to go into the shortcuts and edit their directories to match. Even if you run directly off the .sh file and you relocate the folder you will have to correct the directory before even that will work.

The desktop shortcut is the easiest one to do. Simply right click on the proper .sh file and then click 'make link'. Then a link (shortcut) will appear in that same folder. Just click and drag that to your desktop and you are done.

If you are like me you are going to want an applications menu selection instead. Just right click on the applications menu and click edit menus. On the left hand side you can select what category you want it in or you can just click new item on the right hand side and have it directly on the applications menu. I chose to make a new category titled "car tuning" and put them both in there. To make a new category click on applications in the upper left and click new menu on the right hand side.

Once you have decided how you want the menu to be organized then you click on "new item" on the right hand side (be sure to have the proper category selected). Then title what you want it to be called and for the command click browse and locate the proper .sh file. Once you have got that click on ok and you are done. When you are done your menu editor should look something like this.
https://www.miataturbo.net/attachmen...ine=1316960080

Here is one last screenshot showing both the programs running.
I am running Ubuntu 10.04 LTS Lucid Lynx
I had no problems with the db9 port and tunerstudio recognizing my diypnp.
I dont know anything about using the usb adapter with ubuntu. I would check the ubuntu forums for that or just do a google search.
http://i965.photobucket.com/albums/a...Screenshot.png

Happy Tuning!

jeff_man 09-25-2011 11:32 AM

why not just run a real os? :giggle:

No being dick mode: I thought about getting a 10" lcd and a solid state pc to make my own dash. Ubuntu mite be my chose as i don't want blue screen on the track.

jared8783 09-25-2011 11:57 AM


Originally Posted by jared8783 (Post 775559)
For those of you who are unaware Ubuntu is a form of linux. It is a highly stable and highly secure operating system. It is completely free and open source (you are allowed to backwards engineer and modify it).

lol i just ditched my "real os" for ubuntu
still have the key
can switch back anytime
but likely wont
i got 7 on my desktop but now that i dont have xp on this anymore i may dual boot with xp on the desktop

my laptop is used primarily for internet browsing and car tuning
and linux just doesnt slow down over time with excessive internet usage like windows pc's do making ubuntu a great choice for me

and a great choice for you as well
like you said the whole blue screen thing
linux is far more stable

Al Hounos 09-25-2011 11:53 PM

i tune on Ubuntu too. it actually recognized my serial connection in tunerstudio without any configuring. windows xp took a bit of hassle.

revlimiter 09-25-2011 11:58 PM

This is pushing me toward a Megasquirt in a huge way. I had no idea there was a linux version. One thing holding me back from the Hydra (or anything beyond the Link I'm using now) has been having to build a windows laptop to tune.

I've been windows free since 8.04 and I've never looked back.

gearhead_318 09-26-2011 12:10 AM

Thanks for posting this. I dual boot Ubuntu and Win7, I hate having to use Win7 (wine doesn't work too well for me).

NiklasFalk 09-27-2011 02:51 AM


Originally Posted by Gearhead_318 (Post 775804)
Thanks for posting this. I dual boot Ubuntu and Win7, I hate having to use Win7 (wine doesn't work too well for me).

I use a XP in VirtualBox for the occasions I need to use a Windows (connect to MTX-L, VVTuner and other things). No need to dual boot.

But it can be puzzling at first to figure out what port the USB-Serial dongle is using after you passed the USB to VirtualBox and then back.
Maybe the smoothest would be dual dongles. Then I could use VVTuner and TunerStudio at the same time (even though one is on Ubuntu and the other on Windows).

jared8783 10-01-2011 10:16 AM

ok so now i got an mtx-l from innovate. and i just CANNOT get it to work with ubuntu
there is no ubuntu support for it
i tried using wine
and no go
first it would not recognize my serial prot
so then i edited wines registry so that it would
then the program just wouldnt open up all the way

i had the mtx-l hooked up to the pc and window would open and flash real fast saying "connected, downloading..." or something like that it was hard to read it flashed so quick

and the mtx-l would even display "prg" incdicating that it was connected
but then nothing
that little window would just freeze and nothing would happed
i would have to kill the processes to end it

i have already resized my partitions in my laptop and as soon as i am done posting this i am unfortunately going to be dual booting xp

if anyone knows how to get the mtx-l working with ubuntu i would love to know how cuz i would love to remove xp from this machine once again

Techsalvager 10-01-2011 07:15 PM

Tried using megatunix instead?

jared8783 10-02-2011 12:31 AM


Originally Posted by Techsalvager (Post 778466)
Tried using megatunix instead?

no i havent
and i dont need that
because for tunerstudio and megalogviewer both had full ubuntu support

but thanks for the tip though i never heard of that before
i would like to get the wideband o2 mtx-l programmer working with ubuntu

i got the dual boot (ubuntu & xp pro) running just fine so i got what i need
though i would still like to run the o2 stuff in ubuntu
i dont have to get into that very much though so its no biggie

jared8783 11-06-2011 06:04 PM

1 Attachment(s)
Well I just wanted to report that the programs work on Linux Mint as well.
Though I could not get the desktop links to work, and I haven't hardly tried to create menu entries for them yet.

Attachment 186603

gearhead_318 12-22-2011 12:05 AM

Does ubuntu have support for MS3X (or vice versa)? If not I'll have to see if I can take my dads old XP, tear out the HD, use it as an external HD then boot from it to run whatever tuning program I end up using.

shuiend 12-22-2011 12:23 AM


Originally Posted by Gearhead_318 (Post 809470)
Does ubuntu have support for MS3X (or vice versa)? If not I'll have to see if I can take my dads old XP, tear out the HD, use it as an external HD then boot from it to run whatever tuning program I end up using.

Yes the built in USB on the MS3x works fine in Ubuntu. I run Ubuntu on my work Dell laptop and it works perfectly.

Tw34k 12-22-2011 12:29 AM

Very cool to know I can use linux for tuning, I've tried tuning with some software (not for MS) throught an emulator and no bueno. Anyone wanting a fast lightweight ubuntu should try Lubuntu, I'm a big fan for my less powerful machines.

gearhead_318 12-24-2011 01:17 AM

6 Attachment(s)
I'm running Ubunut 10.04 LTS and I followed your instructions, however when I attempt to "run" either program nothing happens. I can choose to "display", but if I try "run in terminal" a terminal flashes open and closes its self Any ideas?

https://www.miataturbo.net/attachmen...1&d=1324707312

TunerStudio:
https://www.miataturbo.net/attachmen...1&d=1324707361

https://www.miataturbo.net/attachmen...1&d=1324707417

shuiend 12-24-2011 01:56 AM


Originally Posted by Gearhead_318 (Post 810238)
I'm running Ubunut 10.04 LTS and I followed your instructions, however when I attempt to "run" either program nothing happens. I can choose to "display", but if I try "run in terminal" a terminal flashes open and closes its self Any ideas?

Can you open a terminal and run the following comings?
$cd Desktop
$./TunerStudio.ch

gearhead_318 12-24-2011 02:01 AM


Originally Posted by shuiend (Post 810244)
Can you open a terminal and run the following comings?
$cd Desktop
$./TunerStudio.ch

Heres what I get:

charlie@charlies-laptop:~$ $cd Desktop
Desktop: command not found
charlie@charlies-laptop:~$ $./TunerStudio.ch

shuiend 12-24-2011 02:03 AM


Originally Posted by Gearhead_318 (Post 810248)
Heres what I get:

charlie@charlies-laptop:~$ $cd Desktop
Desktop: command not found
charlie@charlies-laptop:~$ $./TunerStudio.ch

You are doing it with out the dollar sign right?

gearhead_318 12-24-2011 02:12 AM

I did it with and w/ out the $.


charlie@charlies-laptop:~$ cd Desktop
charlie@charlies-laptop:~/Desktop$

charlie@charlies-laptop:~/Desktop$ ./TunerStudio.ch
bash: ./TunerStudio.ch: No such file or directory
charlie@charlies-laptop:~/Desktop$
Hope I'm doing this right.

shuiend 12-24-2011 02:20 AM


Originally Posted by Gearhead_318 (Post 810251)
I did it with and w/ out the $.





Hope I'm doing this right.

$./TunerStudio.sh

Sorry misspelled it

gearhead_318 12-24-2011 02:25 AM

Tried it w/ and w/o the $


charlie@charlies-laptop:~$ ./TunerStudio.sh
bash: ./TunerStudio.sh: No such file or directory
charlie@charlies-laptop:~$ $./TunerStudio.sh
bash: $./TunerStudio.sh: No such file or directory
charlie@charlies-laptop:~$

shuiend 12-24-2011 02:32 AM


Originally Posted by Gearhead_318 (Post 810256)
Tried it w/ and w/o the $

For reference the $ just means I mean doing it at the command line, you don't put that before the commands.

$cd Desktop
$./TunerStudio.sh

gearhead_318 12-24-2011 02:36 AM

Results:


charlie@charlies-laptop:~$ cd Desktop
charlie@charlies-laptop:~/Desktop$
charlie@charlies-laptop:~/Desktop$ ./TunerStudio.sh
./TunerStudio.sh: line 1: #!/bin/sh: No such file or directory
./TunerStudio.sh: line 7: cd: /home/charlie/apps/TunerStudio/: No such file or directory
./TunerStudio.sh: line 9: java: command not found
charlie@charlies-laptop:~/Desktop$

jared8783 12-25-2011 09:25 AM

have you tired unpacking the .tar.gz file somewhere
not modifiying the script
and not moving anything from where you unpacked it
and not trying to make any shortcuts
and then trying to run the tunerstudio.sh file?
just to make sure the program ran right i would try that

also look at your script compared to mine
see in the directory mine says TunerStudioMS
and yours says TunerStudio

also i couldn't quite tell in your screenshot if you had a space between cd and ~
if not there should be
i think it looks like you got the space but i just cant tell for sure

might be simpler to just open it with the text editor vs the office program


Originally Posted by jared8783 (Post 775559)



Originally Posted by Gearhead_318 (Post 810238)


shuiend 12-27-2011 11:15 AM


Originally Posted by Gearhead_318 (Post 810259)
Results:

First is looks like you do not have Java installed. So you need to get that installed to run TS. Here is a link to how to do that.

After that if the screen shots I saw were correct and that was yout tunerstudio.sh then it is messed up. I am going to give you a few commands below to help you out.

$cd Desktop/
$wget http://www.efianalytics.com/TunerStu...S_v1.19.tar.gz
$cd TunerStudioMS/
$./Tunerstudio.sh

Let me know how all those went. Basically what they are all doing is going ton your desktop, then downloading the latest beta of TS, which you need for the most recent ms3 firmwares. Then you are extracting all the files out of the tar.gz, which is kind of like linux zip file. Then you are changing directories into the folder you extracted and running the program from there.

gearhead_318 12-27-2011 01:44 PM

Ok thanks. I'll see if I can get it going when I get home from work.

shuiend 12-27-2011 02:03 PM

I actually do not expect it to run with the $./TunerStudio.sh. I was getting problems with his shell script. Once you have tried it all though I can then give you some other instructions on what I did to get the latest beta running, although I have not actually tested mine on my car yet.

gearhead_318 12-29-2011 12:32 AM


Originally Posted by shuiend (Post 811222)
$cd Desktop/
$wget http://www.efianalytics.com/TunerStu...S_v1.19.tar.gz
$cd TunerStudioMS/
$./Tunerstudio.sh

cd Desktop/:

charlie@charlies-laptop:~/Desktop$ cd Desktop/
bash: cd: Desktop/: No such file or directory
charlie@charlies-laptop:~/Desktop$
Second Command:

charlie@charlies-laptop:~/Desktop$ wget http://www.efianalytics.com/TunerStu...S_v1.19.tar.gz
--2011-12-29 00:22:54-- http://www.efianalytics.com/TunerStu...S_v1.19.tar.gz
Resolving www.efianalytics.com...
wget http://www.efianalytics.com/TunerStu...S_v1.19.tar.gz
bash: http://www.efianalytics.com/TunerStu..._v1.19.tar.gz: No such file or directory
charlie@charlies-laptop:~/Desktop$
173.201.34.233
Connecting to www.efianalytics.com|173.201.34.233|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7074528 (6.7M) [application/x-gzip]
Saving to: `TunerStudioMS_v1.19.tar.gz'

100%[======================================>] 7,074,528 530K/s in 13s

2011-12-29 00:23:13 (533 KB/s) - `TunerStudioMS_v1.19.tar.gz' saved [7074528/7074528]

charlie@charlies-laptop:~/Desktop$ bash: http://www.efianalytics.com/TunerStu..._v1.19.tar.gz: No such file or directory
No command 'bash:' found, did you mean:
Command 'bash' from package 'bash' (main)
bash:: command not found
charlie@charlies-laptop:~/Desktop$ charlie@charlies-laptop:~/Desktop$
bash: charlie@charlies-laptop:~/Desktop$: No such file or directory
charlie@charlies-laptop:~/Desktop$
charlie@charlies-laptop:~/Desktop$ wget http://www.efianalytics.com/TunerStu...S_v1.19.tar.gz
--2011-12-29 00:23:13-- http://www.efianalytics.com/TunerStu...S_v1.19.tar.gz
Resolving www.efianalytics.com... 173.201.34.233
Connecting to www.efianalytics.com|173.201.34.233|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7074528 (6.7M) [application/x-gzip]
Saving to: `TunerStudioMS_v1.19.tar.gz.1'

100%[======================================>] 7,074,528 608K/s in 15s

2011-12-29 00:23:29 (469 KB/s) - `TunerStudioMS_v1.19.tar.gz.1' saved [7074528/7074528]

charlie@charlies-laptop:~/Desktop$ bash: http://www.efianalytics.com/TunerStu..._v1.19.tar.gz: No such file or directory
No command 'bash:' found, did you mean:
Command 'bash' from package 'bash' (main)
bash:: command not found
charlie@charlies-laptop:~/Desktop$ charlie@charlies-laptop:~/Desktop$
bash: charlie@charlies-laptop:~/Desktop$: No such file or directory
charlie@charlies-laptop:~/Desktop$

shuiend 12-29-2011 10:13 AM

I messed up instructions again. I forgot to add in one that actually extracts the tar.gz. I am going to go over a few basic linux commands to help you out.

cd is change directory. It is how you move around from one directory to another. When I tell you to do $cd Desktop I am basically saying that you need to move from your home folder to desktop. When you rand the command and got the error it was because your command prompt was already in the Desktop directory. You can use the command "pwd" to show what is your current directory. Another quick trick is the "tab" button. Say you want to change directories to your Desktop. If you type "$cd De" and then hit the tab key it should autofill out the rest of the name. Another quick trick is if you do "$cd .." it will take you back one directory. For example if you are in /home/charlie/Desktop and you run $cd .. you will be moved to /home/charlie.

Now for some more actual help. From what you posted it looks like you downloaded the Tunerstudio.tar.gz to your desktop. So first you should minimize everything and right click on the icon for it. Then go to extract here. This will create the TunerStudio folder on your desktop that will have all the files. After it is extracted you need to open up a command line and then change directories to your desktop and then the Tuner Studio folder. You can use the tab button to find the exact names. Once you are in the TS directory you need to run the $./TunerStudio.sh

Also did the page I linked to for getting java installed work?

gearhead_318 12-29-2011 01:33 PM

I extracted TunerStudioMS, now they are both on my desktop. I tried getting Java going but I'm not sure if it's working or not. It says its for Ubuntu 10.10 and I'm on 10.04 LTS, which may have something to do with the problems I've been having (not just w/ TS), so I'm going to upgrade to 10.10 and see if that helps.

shuiend 12-29-2011 01:38 PM

The instructions for java should be the same for 10.04 and 10.10. Ubuntu is now some where in the 11.xx version. I am personally on 11.04.

If you open a command line and type "$java -version" what does it come back with. It should say something like "java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.4) (6b22-1.10.4-0ubuntu1~11.04.1)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)". That will let you know if you have java installed or not. If you don't and those instructions did not work I will give you instructions on how to manually install it.

gearhead_318 12-29-2011 02:19 PM

Java:

charlie@charlies-laptop:~$ java -version
The program 'java' can be found in the following packages:
* gcj-4.4-jre-headless
* openjdk-6-jre-headless
* cacao
* gij-4.3
* jamvm
Try: sudo apt-get install <selected package>
charlie@charlies-laptop:~$

shuiend 12-29-2011 02:25 PM

Ok now you need to go Here and download the correct version of the JRE. You want the tar.gz one. I am not sure if you are running 32bit or 64 bit ubuntu so you have to figure that out. Then you need to install it. You need to extract it from the tar.gz and then follow either the readme file in it or install directions.

gearhead_318 12-29-2011 02:28 PM

64 bit, I'll download it as soon as 10.10 is done (>30min).

Thanks again for all the help!

gearhead_318 12-29-2011 11:17 PM

Trying to get Java going. Gonna follow this:
.

gearhead_318 12-30-2011 12:19 AM

2 Attachment(s)
SUCCESS! I AM GOD BOW BEFORE ME*

https://www.miataturbo.net/attachmen...1&d=1325222291

*This coffee bean flavored success is probably both premature and will no undoubtedly prove to be short lived.

jared8783 12-30-2011 06:13 AM

ok so you got java going.

how about tunerstudio?
got that going yet?

gearhead_318 12-30-2011 01:27 PM

I'm working on it, it took me a good while to get Java going but I assume the problems that I was having with getting TS going where related to not having Java lolz.

jared8783 12-30-2011 01:39 PM

well if that is the case then getting the program to run is simply a matter of unpacking the .tar.gz and running the tunerstudio.sh file

but what i am mostly wondering about
in relation to the creation of the shortcuts is
the discrepancies in your script vs mine that i pointed out in post #24

jared8783 12-30-2011 01:42 PM

of course you using apps instead of applications as i did is just fine so long as that is what the folder you placed it in is labeled

im just wondering bout the tunerstudio vs tunerstudioms

shuiend 12-30-2011 01:51 PM

If you go into the folder that you extracted everything to which should be called "TunerStudioMS" and you run the command "$java -jar TunerStudioMS.jar" it should run Tuner Studio. The TunerStudio.sh script just sets up some specific directories and paths.

gearhead_318 12-30-2011 02:05 PM

Gotcha. I thought I messed up TS the 1st time I unpacked it, tuns out since I didn't have Java it was probably fine.


All times are GMT -4. The time now is 06:51 AM.


© 2024 MH Sub I, LLC dba Internet Brands