Just posting this as it maybe useful for other people. There are some other topics related to running Garmin MapSource under ubuntu. I've got Garmin MapSource (version 6137) working under Lucid with a working GPS link to a Garmin 60CSx handheld.
Actually, since I have this running, I have completely erased Vista and Win7 from my hard disk as MapSource was the one and only application which sort of kept me sticking to Windows.
Here's a brief instruction. First install wine:
> sudo apt-get install wine
> wine --version
wine-1.1.42
Then run winecfg (as normal user); this will create a .wine directory:
> winecfg
(just click OK when the dialog shows)
Now you can install MapSource. The executable is named MapSource_6137.exe. Copy it into your home dir.
Now do the following (otherwise MapSource_6137.exe will not work):
> cd ~/.wine/drive_c
> mkdir Garmin
> touch Garmin/MapSource.exe
Now run the executable using wine:
> chmod +x ~/MapSource_6137.exe
> wine ~/MapSource_6137.exe
Follow on screen instruction, accept the license and it will install. At the end of the install you can launch MapSource => DON't do this! Uncheck the checkmark and just exit the installation.
Now you should be able to run MapSource:
> cd ~/.wine/drive_c/Garmin/
> wine ./MapSource.exe
It will give you the following error message:
"MapSource could not find any install MapSource map products"
This is because you don't have any maps yet.
Personally, I already had a lot of maps that were originally installed under Windows on a Windows D: drive (separate partition). The procedure below described how you can use these maps directly under the Ubuntu/wine MapSource without doing any additional map installation.
First, mount the partition containing the maps. In my case:
> sudo mkdir /WinD
> sudo mount -t ntfs /dev/sdb1 /WinD
Make it appear as if this is also the "d:" drive for wine:
> cd ~/.wine/dosdevices
> ln -s /WinD "d:"
This will give you a "d:" drive under wine which is linked to my original D: disk which existed under Windows.
My maps were located in /WinD/Garmin. Here you will find the map directories which were created in the original Windows installation.
I will just give one example of a map => CNEUR9, this is the City Select Europe version 9 (routable) maps.
> ls /WinD/Garmin/CNEUR9
=> this will pop up a lot of .img files
Run "regedit.exe" under wine:
> cd ~/.wine/drive_c/windows
> wine ./regedit.exe
Now go to HKEY_LOCAL_MACHINE > Software > Garmin > MapSource
You will see that this is empty. Now you should create the proper keys to access your maps. This depends a little bit from map to map. For the CNEUR9, the keys are (adapted to my configuration on the old D: drive which is now mapped throug /WinD under Ubuntu).
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Garmin\MapSource\Famil ies\City Navigator Europe v9]
"ID"=hex:c6,00
"IDX"="D:\\Garmin\\CNEUR9\\CNEuro_v9.mdx"
"MDR"="D:\\Garmin\\CNEUR9\\CNEuro_v9_mdr.img"
[HKEY_LOCAL_MACHINE\Software\Garmin\MapSource\Famil ies\City Navigator Europe v9\1]
"Bmap"="D:\\Garmin\\CNEUR9\\CNEuro_v9.img"
"Loc"="D:\\Garmin\\CNEUR9\\"
"Notice"="D:\\Garmin\\CNEUR9\\eula_ENU.txt"
"Tdb"="D:\\Garmin\\CNEUR9\\CNEuro_v9.tdb"
You can copy these keys from the old Windows MapSource installation (via registry export keys). And then you can import the .reg file exported from Windows in the wine registry. Make sure though that the top line of the .reg file reads: REGEDIT4 (manually edit it after having exported it from Windows).
Now run MapSource.
> wine ~/.wine/drive_c/Garmin/MapSource.exe
Now it should start by showing the maps. However ... the maps will be "locked".
Now comes the tricky bit. The unlock wizard which is part of the mapsource installation does not work under wine-1.1.42 ... bummer.
This can be fixed by running an older version of wine (wine_1.1.188). You can download the .deb file from http://wine.budgetdedicated.com/archive/index.html
Download wine_1.1.18 appropriate for your architecture.
Now do the following:
> sudo apt-get purge wine wine1.2
(this will remove your existing wine; install the wine_1.1.18)
> sudo dpkg -i ~/Desktop/wine_1.1.18~winehq0~ubuntu~9.04-0ubuntu1_amd64.deb
(select appropriate file which you downloaded)
After installation of this package, run the unlock wizard.
> wine ~/.wine/drive_c/Garmin/UnlockWizard.exe
Now unlock your maps. My unlock codes were already stored in a file, you can restore them from the file (follow instructions from unlock wizard).
After having unlocked your maps, remove the wine_1.1.18 version:
> sudo apt-get purge wine
And the reinstall the latest wine version (1.1.42)
> sudo apt-get install wine
This will say:
"Unpacking wine1.2 (from .../wine1.2_1.1.42-0ubuntu4_amd64.deb)"
> wine --version
wine-1.1.42
Now you can run MapSource with your unlocked maps:
> wine ~/.wine/drive_c/Garmin/MapSource.exe
--- accessing the GPS ---
I have a Garmin GPSmap 60CSx GPS. You can use it directly under MapSource as follows:
> sudo modprobe garmin_gps
> lsmod | grep garmin
And you should see something like:
garmin_gps 12482 0
usbserial 24955 1 garmin_gps
usbcore 111843 6 garmin_gps,usbserial,btusb,usbhid,ehci_hcd,uhci_hc d
Turn on the GPS and connect it to the USB port. Then do:
> ls /dev/tty*
You should see a device called "ttyUSB0".
Now we have to make this device visisble as "com1" port under wine:
> cd ~/.wine/dosdevices
> ln -s /dev/ttyUSB0 "com1"
Restart your MapSource using:
> wine ~/.wine/drive_c/Garmin/MapSource.exe
In the "Transfer" menu, select "Receive from device". You should now see your device and can transfer tracks, waypoints from your GPS into MapSource.
Good luck! After I got this working, I erased Windows from my PC
Bookmarks