Software - Support > Installing Software

[Closed - reverted to 32bit LL+Wine] Is 64bit Wine OK and what version is in LL

(1/2) > >>

Alan_uk:
I'm about to install Wine from the LL 1.0.8 64 bit disco to run an old Windows 95 32bit application (that I've been running under Windows 98 and then XP OK)

Reading WineHQ FAQ at http://wiki.winehq.org/FAQ#head-0bae04b4126dffb8a08bf020982badacb6f367ff


--- Quote ---7.2. How do I create a 32 bit wineprefix on a 64 bit system?

At present there are some significant bugs that prevent many 32 bit applications from working in a 64 bit wineprefix. To work around this, you can create a new 32 bit wineprefix using the WINEARCH environment variable. In a terminal, type:
--- End quote ---

So does LL 1.0.8 come with the 32bit or the 64bit Wine and is this 7.2 of the FAQ still relevant? Which Wine is recommended for my situation?

(I have 2 other Windows programs I need to install: one 32bit written for XP and the other a 16 bit for Windows 3.11 WfG that has continued to work under 98 and XP.)

Alan_uk:
Replying to my own post having made some progress after staring a screen for 24 hours ;)  This might help others.

I'm presuming that Linux Lite 64bit comes 64bit Wine. However, after installation (along with WineTricks) one can install a 32bit prefix.

1. Installing Wine from the Menu / Wine

A. This failed "p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: "
Seems this is due to me having an AMD processor.  Solution is a http://askubuntu.com/questions/127848/wine-cant-find-gnome-keyring-pkcs11-so


--- Code: ---mkdir temp
cd mktemp                       ## 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
## Finally move the file you need to the desired location:
sudo mv usr/lib/i386-linux-gnu/pkcs11 /usr/lib/i386-linux-gnu/

--- End code ---
Actually I moved the folder via File Manager as Administrator

B. When doing step 2 below (Defining the 32bit Wine Prefix) I got another similar error:
"WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-UgwQYN/pkcs11: No such file or directory"
I again copied the pkcs11 folder to the /tmp/keyring-UgwQYN/ folder (name may vary) but then got:
"WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-UgwQYN/pkcs11: Connection refused"

Many solution given at https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/932177
I chose:

--- Code: ---1. Open the Session settings:
   Settings -> Preferences -> Settings Manager -> Session and Startup
2. Enable GNOME compatibility mode:
   Go to Advanced, check "Launch GNOME services on startup"
3. Disable unwanted GNOME-only autostart files:
   Execute the following one-liner on the shell:
for gnome_autostart in $(awk '/^OnlyShowIn=/ && /GNOME;/ && !/XFCE;/ { print
FILENAME }' /etc/xdg/autostart/*); do sed '$aHidden=true' ${gnome_autostart}
>${HOME}/.config/autostart/${gnome_autostart##*/}; done

--- End code ---
I only did 1 & 2, rebooted and it worked. Suggest solution B is tried before A.

Notes
A. Wine is not and must not be installed as root (sudo)
B. My Wine (I'll called it the BaseWine) was installed in  /home/alan/.wine

2. Defining the 32bit Wine Prefix

--- Code: ---WINEARCH=win32 WINEPREFIX=/wine-c/wine/wine32 winecfg

--- End code ---
Notes
A. wine-c is a partition and I created the wine folder as root and then gave myself as user RW permission:

--- Code: ---sudo chown -R alan: /wine-c/wine
--- End code ---
I read it was not preferable to give a user permissions at partition level.
B. folder wine32 must not exist. If you wish to rebuild (and lose your applications) you must delete it.

3. Installing an application. As a test I installed IrfanView (from a Terminal) but it installed into the 64bit BaseWine.
The issue is that the WINEPREFIX Environment variable must be stated prior to every execution or every opening of Terminal.

4. Making the WINEPREFIX permanent
I made it permanent by creating a script file in /etc/profile.d as Admin. e.g.  wine.sh

--- Code: ---export  WINEPREFIX=/wine-c/wine/wine32

--- End code ---
Rebooted and ran printenv and it confirms the WINEPREFIX Environment variable as set by the script

5. Installed as a test MSPaint via WineTricks
For some reason the application was installed in a new WinePrefix at:
            /home/alan/.local/share/wineprefixes/mspaint/drive_c/windows
rather than in my /wine-c/wine/wine32
Maybe because MSPaint seems to be single executable file or because I used WineTricks.

6. Installed IrfanView again from a terminal

--- Code: ---cd "/home/alan/Desktop/My Install/Installed files/IrfanView"   # i.e. CD to where the exe file is located
wine iview430_setup.exe

--- End code ---
Had about 100 errors of the form:
"err:menubuilder:convert_to_native_icon error 0x80070005 creating output file L"Z:\\home\\alan\\.local\\share\\icons\\hicolor\\16x16\\apps\\A35F_hh.0.png" "
This time it's installed in my Win32 Prefix /wine-c/wine/wine32/drive_c/Program Files and opens OK.



TO DOs / PROBLEMS
1. Menu / Wine items still refer to the BaseWine install in /home/alan/.wine . Needs to be changed
2. Menu / Other InfanView items do not work (hangover from the 1st install) and the 2nd install has not update the items. Also I would expect these menu items to have their own group in the hierarchy.
3. BMP images are not associated with InfanView - maybe linked to all those error messages.
4. To install a more complex application, namely Quicken 98.

Jerry:
Hi Alan, thank you for sharing your information. I can't help but think it seems a lot of work for using Wine, perhaps life would be much easier on Linux Lite 32bit given that the benefits from using a 64bit OS are negligible. At least you are learning about linux as you go :)

Alan_uk:
Hi Valtam

Going 32bit crossed my mind. I've 8GB ram on the basis I might need to run Virtual Box if Wine proved not viable with my key Windows apps.

As I understand it, to use 32bit Linux and make use of > 4GB, I need a PAE enabled hardware and OS. According to http://en.wikipedia.org/wiki/Physical_Address_Extension#Linux "Ubuntu (and derivatives like Linux Mint), have stopped distributing non-PAE kernels - thus making PAE hardware mandatory." That implies my hardware Asus A88XM-Plus + AMD 5300 support PAE.

Do you see any problems using 32bit LL with VB and using all 8GB? - presumably both LL and VB get to use a max of 4GB each.

Alan

Jerry:
Open a terminal and do:


--- Code: ---cat /proc/cpuinfo
--- End code ---

if you find the word pae you have pae support on your cpu. Our 32bit version will see all of your 8gb ram.

Navigation

[0] Message Index

[#] Next page

Go to full version