Wine - Ubuntu: Questions and Answers (2014)

Ubuntu: Questions and Answers (2014)

Wine

Skip to questions, Wiki by user ændrük

Wine is a software compatibility layer that allows Windows programs to be run on Linux, BSD, Solaris and Mac OS X.

"Wine lets you run Windows software on other operating systems. With Wine, you can install and run these applications just like you would in Windows." (Source)


Questions

Q: Is there a way to stream Netflix?

Tags: wine (Next Q)

Is there a way to stream Netflix content to my Ubuntu?


Answer table of contents

· 2012 - Netflx Desktop: http://askubuntu.com/a/219068/47291 , http://askubuntu.com/a/222466/47291

· 2013 - Pipelight: http://askubuntu.com/a/219068/47291 , http://askubuntu.com/a/352075/47291

· 2014 - Native HTML5 on 14.04, 14.10: http://askubuntu.com/a/509947/47291

· Virtural Machine: http://askubuntu.com/a/144005/47291

Other Ideas explored:

· Moonlight: http://askubuntu.com/a/144005/47291

· Emulation: http://askubuntu.com/a/43228/47291

· PlayOn: http://askubuntu.com/a/1498/47291

Tags: wine (Next Q)

User: gator


Answer by alfc

As of December 7th, 2012 the following works on 12.04 and 12.10 (at least).

Note: For new instructions --as of October 2013-- on how to install (Windows-)silverlight (ultimately useful to watch Netflix) in Firefox see at the end.

Open a terminal (Ctrl-Alt-T), an type:

sudo apt-add-repository ppa:ehoover/compholio

sudo apt-get update

sudo apt-get install netflix-desktop

· Are PPA's safe to add to my system and what are some "red flags" to watch out for?

This will install around 254MB of packages, mainly it will install wine-compholio (a custom version of wine that is able to run Silverlight) and dependencies. If wine is not installed already you may need to agree to use Microsoft fonts (in the text mode window use arrow keys or tab to reach the red "ok" button in text mode when it appears). The download/installation takes around 15 minutes.

Then run the newly installed "netflix-desktop" application from the menu (or from the command line).

menunetflix

If something went wrong in the installation (third party links are involved), don't panic: netflix-desktop will detect that something is missing and try to reinstall it, if that also fails, start over.

When you run it for the first time it will initialize wine and probably ask about installing Mono and Gecko wine packages (I accepted and installed them just in case).

The netflix-desktop application opens up, login to your Netflix account.

The window will open in fullscreen, which is very elegant, but if you want to have control over the window press F11 right away to exit fullscreen mode. (It may also ask to install a Firefox extension --specially designed-- that makes fullscreen mode more friendly.)

Use Netflix as you would normally do.

mainwin

It worked flawlessly in my Ubuntu 12.04 and 12.10 (I have a Core i7).

(As you may have realized at this poin, the netflix-desktop is really Firefox 17 running on wine without menubars. Press F10 to gain control over the Firefox menu and navigation.)

windowmenutoolbar

Credits and references: This information was originally taken from http://www.webupd8.org/2012/11/how-to-use-netflix-in-ubuntu-through.html. Although this is a result of a campaign initiated by www.iheartubuntu.com in http://www.iheartubuntu.com/2012/02/netflix-on-linux-contest.html, resulting in this achievement http://www.iheartubuntu.com/2012/11/ppa-for-netflix-desktop-app.html (by Erich Hoover) which also contains a link for donations to support the development. There is also https://launchpad.net/netflix-desktop

Bonus: By running this you have a fully functional Firefox 17 (Windows version) with working Silverlight that can be used to navigate other sites, by pressing F10 -> View -> Toolbars -> Navigation menu on the main window you can access any site and be able to use Silverlight.


Alternative Method: Install Windows-Silverlight in Linux-Firefox

Alternatively, it is now possible to install Silverlight inside (Linux) Firefox as if it were a native plugin. (you can see http://fds-team.de/cms/pipelight-installation.html for more info)

sudo add-apt-repository ppa:pipelight/stable

sudo apt-get update

sudo apt-get install pipelight-multi

sudo pipelight-plugin --enable silverlight

Then install the UAControl Firefox add-on (UAControl - neko.tsugumi.org) and convince movies.netflix.com that your browser is a Windows one, for example "Mozilla/5.0 (Windows NT 6.1; rv:23.0) Gecko/20131011 Firefox/23.0".

Then go to www.netflix.com.

Source: Pipelight: Use Silverlight In Your Linux Browser To Watch Netflix, Maxdome Videos And More ~ Web Upd8: Ubuntu / Linux blog


Tags: wine (Next Q)


Q: Wine can't find gnome-keyring-pkcs11.so

Tags: wine

I am trying to start a program using wine on Ubuntu LTS 12.04 64 bit

When I do this, I get the following error message...

/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

When I try to symlink the 64 bit libraries, of course, I get the following...

jackie@jackie-Latitude-E6410:~/tmp/AC$ wine TTG.exe

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: wrong ELF class: ELFCLASS64

wine: Unhandled page fault on read access to 0x00000000 at address (nil) (thread 0009),

starting debugger...

err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x7bc47aac

Is there a package that installs the 32-bit as well as the 64bit?

UPDATE:

Appears to be a bug in Ubuntu w/ 1.4

https://launchpad.net/~ubuntu-wine/+archive/ppa

I used these steps and my application worked

http://www.noobslab.com/2012/04/install-wine-152-on-ubuntu.html

Not sure exactly why but it appears to ignore the error if you use the 1.5.

Tags: wine

User: jackie


Answer by nathan-campbell

This solution works for Ubuntu 12.04 64bit

I originally had this error:

/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

Then I did a ln -s link to the 64-bit lib and got this error: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: wrong ELF class: ELFCLASS64

note: before you start remove the link to the 64bit lib if you created it.

Solution:

Here is how to fix it. Note I am using Crossover 11.3, which uses wine 1.4 so it should also work for wine users.

Further related information to getlibs can be found here.

1) Install getlibs:

UODATE 3/2013: Download getlibs from https://github.com/spaetzlecode/getlibs

wget https://raw.github.com/spaetzlecode/getlibs/master/getlibs

sudo chown root:root getlibs

sudo chmod +x getlibs

sudo mv -n getlibs /usr/local/bin

2) Install the 32bit library:

sudo /usr/local/bin/getlibs -p gnome-keyring:i386

If you got this message error:

Failed to download file http://mirrors.kernel.org/ubuntu/pool/main/g/gnome-keyring/gnome-keyring_3.4.1-4ubuntu1~precise1_i386.deb

then download the file right here:

wget https://launchpad.net/~gnome3-team/+archive/gnome3/+files/gnome-keyring_3.4.1-4ubuntu1~precise1_i386.deb

and do:

/usr/local/bin/getlibs -i "path-of-the-file"/gnome-keyring_3.4.1-4ubuntu1~precise1_i386.deb

3) Make the symbolic link:

sudo mkdir -p /usr/lib/i386-linux-gnu/pkcs11/

sudo ln -s /usr/lib32/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so

Now run your Crossover/Wine app and the error is gone.


Answer by andy.holmes

The solution to this needn't be any more complex than sudo apt-get install libp11-kit-gnome-keyring:i386.

At least this is the case in 13.04 and I see no reason why that wouldn't hold true in 12.04/12.10.


Answer by vaab

You probably guessed your needed to get the file /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so. This file is part of an i386 ubuntu package which won't install directly on your amd64 system. But you can get it easily:

cd $(mktemp -d) ## create and go to a temporary temp dir

apt-get download gnome-keyring:i386 ## download the i386 version of gnome-keyring

ar x gnome-keyring*.deb ## Uncompress the package

tar xf data.tar.gz

## Finally move the file you need to the desired location:

sudo mv usr/lib/i386-linux-gnu/pkcs11 /usr/lib/i386-linux-gnu/

This has happened to me on a 12.10 with wine-1.5.29, and i386 gnome-keyring version was labeled 3.6.1-0ubuntu1_i386, and this worked for me.

Please note that if these instruction do not fit for you, maybe should you mention your ubuntu release and gnome-keyring version. Thanks !


Tags: wine


Q: How can I install Windows software or games?


Q: Is there a way to stream Netflix?


Q: Wine can't find gnome-keyring-pkcs11.so


Q: How to install Wine