Monday, August 27, 2012

How to install Picasa 3.9 on Debian Squeeze 64bit

Picasa on Debian Squeeze 64bit
I recently found that Picasa for Linux** no longer exists in the Google/Linux repository, so I had a Google around and  found a few guides on how to install it with Wine. There were a few different guides, but I got errors as my machine is 64bit and didn't have all the necessary Wine/Windows libs etc..

**Just to be clear, Picasa was always a Windows package, but the Google/Linux download came prepackaged with Wine.


Wine and Winetricks
First you need to install Wine, and then download Winetricks

Wine
sudo apt-get update && sudo apt-get update
sudo apt-get install wine
Winetricks
wget http://winetricks.org/winetricks
sudo mv winetricks /usr/local/bin/
sudo chmod +x /usr/local/bin/winetricks
**NOTE on Debian Wheezy (Testing)
Artur posted in the comments that you may need to install libwine-cms as mscms.dll is needed.
sudo apt-get install libwine-cms
Download Picasa 3.9 for Windows
cd && wget http://dl.google.com/picasa/picasa39-setup.exe
Download Internet Explorer 7 64bit as There is no 64bit IE6
http://www.oldversion.com/windows/download/internet-explorer-7-0-x64

Without it, you won't be able to login to your Google account.

**Note To Install ie7
You may have to symlink "wineserver" to /usr/local/bin, as suggested by Simon in the comments.
sudo ln -s /usr/lib/wine/wineserver /usr/local/bin/wineserver
Place it in your Winetricks IE7 cache directory:
 mkdir -p /home/YOU/.cache/winetricks/ie7
cp /home/YOU/Downloads/IE7-WindowsServer2003-x64-enu.exe /home/YOU/.cache/winetricks/ie7
Download Cabextract
It is needed to extract Windows Cab files.
sudo apt-get install cabextract
Run the Winetricks script:
winetricks ie7
64bit Dependency
Before running Picasa setup with Wine you need an extra lib:
sudo apt-get install lib32nss-mdns
Finally Run the Picasa setup
wine picasa39-setup.exe


That's it, now you're good to go with Picasa!


18 comments:

  1. Just a quick heads up:
    Picasa for Linux has always been the Windows Version, but pre-packaged with Wine. So technically nothing changed ;)

    ReplyDelete
  2. I know Vinzenz Vietzke, but it was in the Google/Linux repo and package with Wine for Linux. So it was aimed solely at Linux, and therefore was the Picasa for Linux version.

    But nthanks for the comment.

    ReplyDelete
  3. If you find anything to make the map work, let me know! ;-)

    ReplyDelete
  4. In addtion to your instructions I needed to:
    sudo ln -s /usr/lib/wine/wineserver /usr/local/bin/wineserver
    Many thanks for your helpful article.

    ReplyDelete
  5. I had to:
    sudo ln -s /usr/lib/wine/wineserver /usr/local/bin/wineserver
    and then i could install ie6. Thank you so much for this article.

    ReplyDelete
  6. Hi Simon, thanks for the feedback, i'll add your tip to the post if that's ok with you :)

    ReplyDelete
  7. on Debian testing picasa3 failet do start because of mscms.dll (it was not installed).
    to resolve just type:
    sudo apt-get install libwine-cms

    ReplyDelete
  8. Hi Artur, thanks for the heads up. I'll add it to the guide :)
    Rich

    ReplyDelete
  9. Hi Rich, Thanks for the tutorial! This works for 32 bit as well BUT here is what worked for me after several attempts. On my Optiplex System, I had to install everything except download Picasa because after numerous attempts with this sequence, Picasa would start during the install and if closed would simply disappear – including the picasa39-setup.exe module! No Startup icons were created anywhere either. By downloading the module last again as above, and as a last step executing the wine picasa39-setup.exe script in terminal, Picasa loaded successfully and added icons in the Application Menu under “Other”. This sequence worked perfectly for me and might work for others as well. Just for grins, check out the Picasa “Help” Menu and “About Picasa” to find this label: “Picasa Version 3.9.0 (Build 136.0900, 0) for Lnux” !!!! :-)

    ReplyDelete
  10. Thank you very much for the post! Picasa is my favorite photo manipulation tool because it allows the users to browse the pictures quickly as well as has several handful functions.

    Thank you!

    ReplyDelete
    Replies
    1. Glad it helped pt, thanks for the feedback :)

      Delete
  11. root@JK:/home/jk# winetricks ie7
    Executing w_do_call ie7
    Executing load_ie7
    Executing wine iexplore -unregserver
    No protocol specified
    No protocol specified
    p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory
    Using native,builtin override for following DLLs: iexplore.exe itircl itss jscript mshtml msimtf shdoclc shdocvw shlwapi urlmon xmllite
    Executing winetricks_early_wine regedit C:\windows\Temp\_ie7\override-dll.reg
    Using builtin override for following DLLs: updspapi
    Executing winetricks_early_wine regedit C:\windows\Temp\_ie7\override-dll.reg
    Executing mkdir -p /root/.cache/winetricks/ie7
    Executing cp -f /root/.cache/winetricks/ie7/winetest.cat /root/.wine/dosdevices/c:/windows/system32/catroot/{f750e6c3-38ee-11d1-85e5-00c04fc295ee}/oem0.cat
    Executing mkdir -p /root/.cache/winetricks/ie7
    mv: cannot stat `/root/.wine/dosdevices/z:': No such file or directory
    ------------------------------------------------------
    Working around wine bug 21947
    ------------------------------------------------------
    No protocol specified
    No protocol specified
    Application tried to create a window, but no driver could be loaded.
    Make sure that your X server is running and that $DISPLAY is set correctly.
    ^Cfixme:console:CONSOLE_DefaultHandler Terminating process 2d on event 0

    ReplyDelete
  12. Replies
    1. Thanks for the feedback, glad it helped :)

      Delete

If you liked a post, please leave a comment.