mini_banner

Saturday, December 8, 2007

Installing Wine in Gutsy Gibbon

Wine is a software application which aims to allow Unix-like computer operating systems on the x86 architecture to execute programs that were originally written for Microsoft Windows.

There are two methods to installing Wine in Ubuntu 7.10 Gutsy Gibbon

1. Install Wine from Ubuntu's own repository, older but offically supported version.
In a terminal type:
sudo apt-get install wine

2. Add Wine's own repository and download the lastest bleeding edge version.
In a terminal type:
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/winehq.list

Add Wine's repository key.
Ina terminal type:
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -

Update your sources.
In a terminal type:
sudo apt-get update

Download Wine
In a terminal type:
sudo apt-get install wine

Once installed (either method) you can configure Wine by running:
winecfg

Ken pointed out, that you can change the wine color scheme to match Ubuntu.

Ina terminal type:
gedit ~/.wine/user.reg

Replace the [Control Panel\\Colors] section with

[Control Panel\\Colors] 1176981676
"ActiveBorder"="239 235 231"
"ActiveTitle"="203 133 61"
"AppWorkSpace"="198 198 191"
"Background"="93 77 52"
"ButtonAlternativeFace"="200 0 0"
"ButtonDkShadow"="85 85 82"
"ButtonFace"="239 235 231"
"ButtonHilight"="255 255 255"
"ButtonLight"="255 255 255"
"ButtonShadow"="198 198 191"
"ButtonText"="0 0 0"
"GradientActiveTitle"="239 235 231"
"GradientInactiveTitle"="239 235 231"
"GrayText"="198 198 191"
"Hilight"="246 200 129"
"HilightText"="0 0 0"
"InactiveBorder"="239 235 231"
"InactiveTitle"="239 235 231"
"InactiveTitleText"="255 255 255"
"InfoText"="0 0 0"
"InfoWindow"="255 255 166"
"Menu"="239 235 231"
"MenuBar"="239 235 231"
"MenuHilight"="246 200 129"
"MenuText"="0 0 0"
"Scrollbar"="239 235 231"
"TitleText"="255 255 255"
"Window"="255 255 255"
"WindowFrame"="0 0 0"
"WindowText"="0 0 0"

8 comments:

Unknown said...

In winecfg there is an option under the graphics tab to allow gtk to manage the windows, that way it will look nicer.

Using wine i am able to run Wacraft 3 in gutsy, but here is a detail that should improve the performace with any game: reduce the priority of the wineserver process (you can do that in administration - system monitor and selecting wineserver or using the command:
nice -n 20 wineserver ).

Finaly remember to always check http://appdb.winehq.org/ to look if the software you want to install with wine work in ubuntu.

rollerskatejamms said...

You can also set wine colors.

tom wright said...

if you use winedoors you can install a ubuntu colour theme for wine

preview:
http://i191.photobucket.com/albums/z76/tomdwright/screenshot1-1.png

Unknown said...

Look in here:

https://help.ubuntu.com/community/Wine

The link will explain how to change wine so that it matches the default ubuntu colors, and will also explain how to install msstyle themes to your wine installation.

redDEAD said...

Thanks Ken, that makes a huge difference! I'm putting it in the guide.

Nightstudies said...

One thing that bothers me about Wine is that the sub-pixel rendering in the free-type rendering has been disabled.

If you google around you will find out that this was deliberate, that the option was turned of in the compile in order to avoid being sued by Microsoft, even though Ubuntu has sub-pixel font rendering turned on for regular Gnome programs.

It's a problem for me because I use some Japanese software, and those complex Chinese characters they use are hard to read without the sub-pixel rendering.

If anyone knows how to build Wine from source so I can enable the sub-pixel rendering on my own machine, I'd be grateful.

Even more so if you can figure out how to compile and configure it to work.

Nightstudies said...

I just realized that audio is failing in Wine under Gutsy 64-bit.

In the configuration dialog, the "ALSA" driver was unchecked - checking it does not get sound working and the "Test Sound" button always returns "Audio Test Failed".

Of course sound is working outside of Wine.

Does anyone have an idea what I should do?

Nightstudies said...

Oops, never mind. After closing the Wine config dialog and opening it again, sound started working. Maybe it took time for something to start up. I had hit "apply" a bunch of times, but that wasn't enough.