2015-11-25

MyPhoneExplorer and Thunderbird under Linux

Autor Nachricht Anmeldedatum: 13.08.2008 Beiträge: 22

This guide will tell you how to install MyPhoneExplorer on Ubuntu and how to sync your phone with Thunderbird and Lightning.

sputnick has written a script that installs MyPhoneExplorer, and it also sets up a Bluetooth-connection: http://www.fjsoft.at/forum/viewtopic.php?p=28979#28979
(Later versions of the script can be found later in that thread)
If you use this script, scroll down to "Sync MyPhoneExplorer with Thunderbird and Lightning".

Install MyPhoneExplorer and connect with a USB-cable
  1. Install latest version of wine from getdeb (current version is 1.1.4)
    • If the .wine configuration-folder doesn't exist in your home-folder:
      • Open: Applications -> Wine -> Configure Wine
      • When the configuration-window appears, click OK
  2. Replace and register oleaut32.dll
    • Navigate to the system32-folder in .wine
    • Replace the file oleaut32.dll with the original one from Windows:
      • Instead of overwriting the file, rename the wine-version to oleaut32.dll.bak to keep a copy of it
      • The original file can be found in your Windows installation, or you can download it from the internet (See http://www.fjsoft.at/forum/viewtopic.php?p=19318#19318)
      • Use lowercase letters in the filename
    • Register oleaut32.dll
      • In terminal: navigate to the system32-folder in .wine, and type "wine regsvr32 oleaut32.dll"
      • Open: Applications -> Wine -> Configure Wine
      • Under the Libraries-tab, add oleaut32.dll, click Edit, and choose "Native (Windows)"
      • Click OK twice
  3. Install MSXML3 and VB6 using winetricks
    • Right-click on link: http://www.kegel.com/wine/winetricks, and "Save Link As..."
    • In terminal: navigate to the folder where you saved winetricks, and type "sh winetricks"
    • Mark "vb6run" (MyPhoneExplorer won't start without it) and "msxml3" (Google- and Thunderbird-sync won't work without it), and click OK
    • Follow the instructions, none of them should be any problem
  4. Install MyPhoneExplorer from http://www.fjsoft.at/en/downloads.php (current version: 1.7)
    • Double-click the exe-file after download, and install the program
    • Register files in MyPhoneExplorer's DLL folder
      • In terminal: navigate into the DLL-folder
      • Register the following files: ccrpDtp6.ocx ccrpUCW6.dll ShellMgr.dll SSubTmr6.dll vbalExpBar6.ocx vbalIml6.ocx vbalSGrid6.ocx
      • Type: "wine regsvr32 filename"
  5. Set up the USB-cable connection
    • Connect your phone with the USB-cable
    • Choose "Phone mode", NOT "Transfer mode" on your phone
    • Create a symbolic link to your phone, so that MyPhoneExplorer can identify it as COM1
      • In terminal: navigate to /home/your_username/.wine/dosdevices, and type "ln -is /dev/ttyACM0 com1" (other com-ports might work as well)
    • Open MyPhoneExplorer, and go to: File -> Options
    • Manually type in COM1 (or whatever number you used), and check "Stable connection" (Without stable connection, your phone cannot be identified)
    • Click OK, and connect your phone (File -> Connect, or press F1)
Thank you: FJ, NP, weinbi, s0l1dsnak3123, allotment, Winer, sputnick

Sync MyPhoneExplorer with Thunderbird and Lightning
  1. Install Thunderbird in Ubuntu (from now on: TB) (current version: 2.0.0.17)
  2. Install Thunderbird in Wine, using the Windows-version (from now on: TBWine) (current version: 2.0.0.17)
    • Open and close the address book (creates a file for later use)
  3. Install add-ons
    • Install the Linux-version of Lightning in TB (current version: 0.9)
    • Install the Windows-version of Lightning in TBWine (current version: 0.9)
    • Install MoreFunctionsForAddressBook if you want to sync contacts' birthdays (install in both TB and TBWine)
    • Install ThunderBirthDay if you want (install in both TB and TBWine)
  4. Set up TB
    • I assume this is OK
  5. Set up TBWine
    • You don't have to follow these steps, but it will save you a lot of time and frustration later
      • Open TBWine for the first time, and the "Create new account"-wizard will show up
      • Create a bogus account
      • Go to: Edit -> Account Settings
      • Make sure that TBWine never checks for new mails on the new account
      • From now on TBWine will never bother you with the wizard again
  6. Make the connection between TB and TBWine
    • Close TB and TBWine, if open
    • Go to your TBWine profile-folder: home/user/.wine/drive_c/windows/profiles/user/Application Data/Thunderbird/Profiles/xxxxxxxx.default
    • Rename abook.mab and storage.sdb to abook.mab.bak and storage.sdb.bak
    • Create new symbolic links with the original names (abook.mab and storage.sdb), that points to the files (abook.mab and storage.sdb of course!) in your TB profile-folder (home/user/mozilla-thunderbid/xxxxxxxx.default)
    • When using TB3 you have to create another symbolic link which points to the file local.sqlite which is located in the folder calendar-data.
    • The reason why I don't link the whole profile-folder, is because of the extension-subfolder. Lightning is different for Windows and Linux, and will therefore cause problems
  7. Sync Thunderbird with MyPhoneExplorer
    • Open MyPhoneExplorer, and go to File -> Options -> Sync
    • Choose which address books to sync
    • Choose which calendars to sync (See "Known issues")
    • Install the mpe-addin (Add-on for TBWine), when asked to
Known issues
  • IMPORTANT!: Because Thunderbird locks files when it's open, you can't have both TB and TBWine open at the same time without risking data-loss
  • When editing which calendars to sync, MyPhoneExplorer doesn't always remember which ones you choose. This is a known bug in the Wine Environment. I have not found any other settings that MyPhoneExplorer "forgets", and I don't know why it's like that. (Solution: Type in the calendars manually, see guide below)
  • All add-ons related to address book or calendars, must be installed in both TB and TBWine to prevent data loss (exception: mpe-addin, which should only be installed in TBWine)
  • If you have several address books, these have to be manually added in TBWine. See guide below
Manually typing in which calendars to sync
  • Open MyPhoneExplorer's profile-folder
  • Navigate into the folder that contains you phone-name
  • Edit settings.dat
    • Near the bottom, you will find "[ThunderbirdFolders]"
    • Below it you will see strings like "moz-profile-calendar://" or "moz-profile-calendar://?id=x"
    • These are the names of the calendars selected to be synced. You can find the names by right-xxx the calendars in TB, and choose "Properties" (see "Location")
    • Type in the calendars you want to sync (one on each line)
    • The string for the ThunderBirthDay-calendar will probably not work (never tried it though)
  • Save the file
  • MyPhoneExplorer will now remember these settings until the next time you try to edit these settings through MyPhoneExplorer (so don't do it). As mentioned earlier, other settings are saved correctly every time
  • MyPhoneExplorer-sync might work with Google-calendars as well, but I don't know what the Google-calendar-string looks like, since I don't use it. If you try, remember to install the Google-provider-addon both in TB and TBWine.
Manually adding address books to TBWine
  • Open prefs.js in your TB profile-folder
  • Copy the lines that starts with "user_pref("ldap_2.servers.ADDRESS_BOOK_NAME" (five lines for each address book) (ignore the address book named "default", we've already set up this one)
  • Paste the lines into the prefs.js file in your TBWine profile-folder, and save the file
  • Remember the filename on the line "user_pref("ldap_2.servers.ADDRESS_BOOK_NAME.filename"
  • Create a symbolic link with this name in your TBWine profile-folder, pointing to this file in your TB profile-folder
Last edits:
- Made the "Install MyPhoneExplorer"-guide shorter
- Added the "Sync with Thunderbird"-guide
- Added a comment for using Thunderbird 3