Notices

Overclockers Forums > Software > Alternative Operating Systems
Alternative Operating Systems Linux, Mac, Unix Operating Systems and Applications
Forum Jump

How-to: Linux Gaming Explained

Post Reply New Thread Subscribe Search this Thread
 
 
Thread Tools
Old 05-06-09, 09:33 PM Thread Starter   #1
Caedis
Linux Gaming Guru

 
Caedis's Avatar 

Join Date: Jun 2007
Location: Texas, USA

 
Cool How-to: Linux Gaming Explained


One popular myth I hear often usually revolves around a sliver of old truth. Linux cant play games. This sliver of truth was derived from the days not too long ago when playing commercially available mainstream games wasnt an option to Linux users. Granted there were some exceptions to this rule, like EVE Online, and Doom 3. But this myth has kept many unwitting gamers stuck on windows for all the wrong reasons. Allow me to lift the veil on modern Linux gaming.


Click to enlarge

Linux, and more specifically Ubuntu Linux, has come a long way in a short period of time. Many game developers and freelance Open Source coders are making major strides in gaming tech for us Linux gamers, opening the door on a hidden market that seemed impossible to get into. Much of this success can be attributed to the many developers and supporters of the Wine Project a compatibility environment for Linux that allows Windows programs to run seamlessly in Linux. Wine is actually an acronym that, ironically enough, stands for Wine Is Not an Emulator. This is true of it when you launch a program in Wine. It actually runs the program like any other Linux program and as you can see in the many screen shots on the Wine AppDB, the programs are indistinguishable from their Windows installed counterparts. The applications to Linux gaming are limitless with this technology.


Click to enlarge



So how do I get wine Working?


Go to your "Synaptic Package Manager" under System > Administration > Synaptic Package Manager

Then head over to the repositories section:


Add one of the following apt lines to your repositories list based on which version of Ubuntu you have installed:

For Ubuntu Jaunty (9.04):
Code:
deb http://wine.budgetdedicated.com/apt jaunty main #WineHQ - Ubuntu 9.04 "Jaunty Jackalope"
For Ubuntu Intrepid (8.10):
Code:
deb http://wine.budgetdedicated.com/apt intrepid main #WineHQ - Ubuntu 8.10 "Intrepid Ibex"

For Ubuntu Hardy (8.04):

Code:
deb http://wine.budgetdedicated.com/apt hardy main #WineHQ - Ubuntu 8.04 "Hardy Heron"


Next Download Scott Riche's GPG key here by right clicking and hitting save as... (He is the maintainer of the Ubuntu Wine Repositories)
You'll need to pay careful attention to where the .gpg file is saved as you'll need to navigate to it.

Next you need to actually import the .gpg key file you just downloaded. You've most likely saved the .gpg to your home directory so just navigate to it by clicking "File System" then clicking home > your user name > then the .gpg file.


You'll notice the red highlighted area in the picture above, that line is added if you correctly imported the key (minus the red highlighting I added)

At this point you can hit close on everything, even Synaptic itself.

Open a Terminal ( Accessories > Terminal )

Update your sources list
Code:
sudo apt-get update
Then install Wine!
Code:
sudo apt-get install wine
The beauty of this is that Wine will self update and wont require you to do any fancy compiling every time it's updated. You'll be updated to the latest build any time it's pushed out.

Now, the fancy part that you may need to do in order to make some games run.

Still in the terminal type the following to get Winetricks

Code:
wget http://www.kegel.com/wine/winetricks
This next part I must caution anyone using is restricted only to people who own copies of any version of Windows, as it relies on software that is copyrighted by Microsoft. So if you legally own ANY version of Windows your fine.

Code:
sudo apt-get install cabextract
And once that's installed
Code:
sh winetricks vcrun6 allfonts allcodecs dotnet11 dotnet20 directx9 comctl32 comctl32.ocx fontfix mfc40 mfc42 msls31 ole2 pdh urlmon wininet native_mdac
You'll have to set through a long line of windows EULA'S where you sell your soul to Microsoft forever and agree that you have a License of Windows basically. Accept them and just click next and Finish. don't mess with any of the settings as the defaults work fine for all of them. Even the install paths.

After that, for most game you can just install them like you normally do in Windows, using the CD's and standard installers.

If you need to check if a program works, or you are having issues with a game in particular head over to the Wine AppDB and do a search for the game. Most have how-to's. If anyone still cant figure out how to get a game going feel free to reply here or PM me.

If you don't use Ubuntu Linux you can see specific Wine instructions here.

I have the following games running on Ultra High settings at ~60+FPS
  • Fallout 3
  • Spore
  • Left 4 Dead
  • Counter Strike: Source
  • Half-Life 2
  • Garry's Mod
  • The Elder Scrolls: Oblivion
  • The Elder Scrolls: Morrowind
  • World of Warcraft
  • Guild Wars
  • City of Heroes
  • Starcraft

TIP: Pulse audio wrapper
I learned about this recently from a freind.

If you are having the common issue that you can't listen to music or watch videos with sound while a WINE game is running append "padsp" before wine calls to wrap the wine program in a pulse audio wrapper. This let's it play nice with other Linux apps. I have no clue why this isn't implemented by default in Wine, but it works, and it works GREAT.

This is how I launch steam so all my steam apps are in the wrapper:
Code:
padsp wine /home/caedis/games/Steam/Steam.exe
All benchmarks pertain to my Sig Rig. This is the first set of benchmarks I'll be posting. Once I have my dual terrabyte array I'll install windows on my old (Current) 300GB hard drive and run benchmarks of a few popular Windows games that have benchmarking software built in. (Like Source games and a few others)

For directions on how to install and use this benchmark, click here





A word on GPU Manufacturers
While great strides have been made on the GPU drivers side most Linux Gamers agree that at this time ATi is lackluster in comparison to Nvidia's support. I personally know a few friends that attempted to install Ubuntu using the same methods I described above and were experiencing crashes and artifacts sporadically while playing games that my Lower powered Nvidia GPU had no issues with. ATi has made their drivers open source but that doesn't help when no one is there to develop them. Whereas one can easily download the Nvidia drivers directly from their site and quickly install them without problems. So at this time if you have the option, avoid ATi for Linux gaming as you'll be getting less than positive results.

Links:



Original excerpts from this thread located on my blog at Caedis.net

Last edited by Caedis; 06-11-09 at 01:36 PM. Reason: Pulse audio wrapper tip
Caedis is offline   QUOTE Thanks
Thanks!
Antillian (04-11-13), txus.palacios (08-04-12)
Old 05-06-09, 10:26 PM   #2
Stratus_ss
Overclockix Snake Charming Senior
Alt OS Content Editor

 
Stratus_ss's Avatar 

Join Date: Jan 2006
Location: Ontario Canada

 
I intent to try this and see how it works out. I haven't done wine tricks or whatnot just regular old wine. maybe tomorow i will crack open some windows games and see whats up

__________________
HEAT
Those wishing to contribute to the AltOS section front page please PM me.

Leviathan41: "Playing with a controller because the mouse and keyboard is too easy is like racing with a bicycle because a car is too fast."

Chris Fisher "Windows is like Administration with training wheels"
Stratus_ss is offline Author Profile Folding Profile Heatware Profile   QUOTE Thanks
Old 05-06-09, 10:26 PM Thread Starter   #3
Caedis
Linux Gaming Guru

 
Caedis's Avatar 

Join Date: Jun 2007
Location: Texas, USA

 
Yeah, winetricks is the best kept secret in Linux gaming and it is the single most important part. Most games require DirectX, so it makes sense that you'd have to have DX installed in order to play them. Also the fonts are key in making some picky games work properly (Like EVE and the Source Engine)

Also make sure you have Wine 1.1.20 the development version. I have seen pointed improvements in Wine on this version.

Last edited by Caedis; 05-06-09 at 10:27 PM. Reason: Typo
Caedis is offline   QUOTE Thanks
Old 05-06-09, 10:42 PM   #4
DUSNOETOS
Member

 
DUSNOETOS's Avatar 

Join Date: Nov 2007
Location: Twin Cities MN

 
Maybe this is a tad premature but I may smell Sticky...

I will be giving this a try later this week or first of next. I think Halo and FarCry will be my test subject's.

What about DirectX... where is that installed....or is OpenGL being utilized??

__________________
Gigabyte MA785GM-US2H; Athlon II X4 640 3525MHz (235x15)
Sunbeam Core Contact 120; 4GB (2x2GB) OCZ PC2-6400 816MHz; X-Fi Xtreme Gamer
XFX Radeon HD 5750 1GB GDDR5 W/ Accelero L2 Pro 700MHz/1100MHz
BFG 650 watt PSU Home made case. Windows 7 Home Premium 64/Ubuntu

Bedroom:HP dc5000 Pentium 4HT 3GHz 1GB DDR 333 Nvidia FX5200 128MB 300MHz/425MHz XP home
HTPC: Asus A8N5X Athlon 4200+X2 2420MHz 2GB 4200 Gskill; 2600PRO; Sapphire Theatrix 550 Pro; Vista home premim 64
ʎɐqǝ uo pɹɐoqʎǝʞ ɐ ʎnq ı ǝɯıʇ ʇsɐן ǝɥʇ sı sıɥʇ
DUSNOETOS is offline Heatware Profile   QUOTE Thanks
Old 05-06-09, 10:50 PM Thread Starter   #5
Caedis
Linux Gaming Guru

 
Caedis's Avatar 

Join Date: Jun 2007
Location: Texas, USA

 
Quote:
Originally Posted by DUSNOETOS View Post
Maybe this is a tad premature but I may smell Sticky...

I will be giving this a try later this week or first of next. I think Halo and FarCry will be my test subject's.

What about DirectX... where is that installed....or is OpenGL being utilized??
If you look closely at the wine tricks line it installs DX9.

Also, check with the AppDB on any program you may want to install as it could save you a tone of headaches.

I know for a fact that Halo 1 is Platinum and Halo 2 is Bricked by Microsoft.

Also, I am working with Farcry at this time to get it to work. In all honesty I got sidetracked when I got Fallout 3 working. So FarCry took a backseat for a while.

If you have issues with FarCry let me know. I'll see if I can get it working.
Caedis is offline   QUOTE Thanks
Old 05-06-09, 11:11 PM Thread Starter   #6
Caedis
Linux Gaming Guru

 
Caedis's Avatar 

Join Date: Jun 2007
Location: Texas, USA

 
Quote:
Originally Posted by DUSNOETOS View Post
What about DirectX... where is that installed....or is OpenGL being utilized??
Sorry forgot to answer the second half of that question. Yes, and no.

OpenGL is preferred when a application has the option to run in that mode out of the box. (Like World of Warcraft)

BUT, if a game is strictly DX only then wine essentially just translates the function calls to what ends up being openGL. Sounds crazy, i know. But it's clear to see that though this sounds like an emulator, it really isn't. This isn't virtual box or VMware either. it really just translates the calls to hardware into Linux friendly calls in real time. If a program has messy code and requires random DLL's found only in strange parts of the OS designed to validate that your running windows, obviously the program wont work right, or at all. But if the program is tightly coded then it's relatively trivial to play it in Wine.
Caedis is offline   QUOTE Thanks
Old 05-07-09, 01:55 AM   #7
UnseenMenace
UnseenModerator

 
UnseenMenace's Avatar 

Join Date: Apr 2001

10 Year Badge
 
Fantastic thread there are also some great free games which work on Linux such as the following FPS

http://openarena.ws/
http://www.alientrap.org/nexuiz/
http://tremulous.net/
http://icculus.org/alienarena/rpa/
http://sauerbraten.org/
http://www.warsow.net/

__________________
one M15x is never enough
UnseenMenace is offline   QUOTE Thanks
Old 05-07-09, 02:05 AM Thread Starter   #8
Caedis
Linux Gaming Guru

 
Caedis's Avatar 

Join Date: Jun 2007
Location: Texas, USA

 
Oh, most defiantly. But I think there's a sticky listing those and other native binaries for Linux. I wanted to communicate to people that linux is just as capable of playing Windows games as any other Vista install. Of course its more involved but, IMHO, the system wide benefits of using Linux outweigh the temporary discomfort of getting a game working. I get so tired of the masses stating so confidently that "Linux is just not a viable gaming platform"


- - - - - - - - - - - - - - - - - - - - -
Posted from my Blackberry

Last edited by Caedis; 05-07-09 at 02:25 AM.
Caedis is offline   QUOTE Thanks
Old 05-07-09, 05:25 PM   #9
Stratus_ss
Overclockix Snake Charming Senior
Alt OS Content Editor

 
Stratus_ss's Avatar 

Join Date: Jan 2006
Location: Ontario Canada

 
As a side note, some setup.exe's need to be run in a virtual desktop
From the wine configuration menu, add an application, point to the setup file, click on the graphics tab,
Emulate virtual desktop, then choose your resolution.

For example, fear would not take my full cd key until i did this
Attached Images
 

__________________
HEAT
Those wishing to contribute to the AltOS section front page please PM me.

Leviathan41: "Playing with a controller because the mouse and keyboard is too easy is like racing with a bicycle because a car is too fast."

Chris Fisher "Windows is like Administration with training wheels"
Stratus_ss is offline Author Profile Folding Profile Heatware Profile   QUOTE Thanks
Old 05-07-09, 05:30 PM Thread Starter   #10
Caedis
Linux Gaming Guru

 
Caedis's Avatar 

Join Date: Jun 2007
Location: Texas, USA

 
This is true for some games but not all. as always check the AppDB first to see if the game has anything above a "Garbage" Rating, attempt to install and play, if that doesn't work, check the AppDB again for work arounds. If that doesn't work, well, were here.
Caedis is offline   QUOTE Thanks
Old 05-12-09, 10:02 PM   #11
Methal
Member

 
Methal's Avatar 

Join Date: Aug 2008
Location: DC

 
"Video memory is critically low. This application will now quit, it is recommended that you restart you computer"

Getting that error when loading up a scrapbooking program for my wife. I imagine that it would also show up if I tried to load a game which would require a bit more from my 9800gt.

Suggestions?

__________________
That'll do Donkey, that'll do.
I'm a Team 32 Folding Mentor. Ask me about Folding.
Methal is offline   QUOTE Thanks
Old 05-12-09, 10:10 PM Thread Starter   #12
Caedis
Linux Gaming Guru

 
Caedis's Avatar 

Join Date: Jun 2007
Location: Texas, USA

 
Quote:
Originally Posted by Methal View Post
"Video memory is critically low. This application will now quit, it is recommended that you restart you computer"

Getting that error when loading up a scrapbooking program for my wife. I imagine that it would also show up if I tried to load a game which would require a bit more from my 9800gt.

Suggestions?
Actually... no.

Each program is a case by case issue. If your having problems with one particular app it has very little chance of being the same problem with anther. The only caveat would be in the case of a poorly compiled install, or faulty Linux system driver, etc. In which case the same problem would appear most likely.

So don't let a scrapbooking app stop you (or anyone else) from trying out your favorite games in Linux.

What is the name of the scrapbooking app thats causing you problems?
Caedis is offline   QUOTE Thanks
Old 05-12-09, 11:58 PM   #13
Methal
Member

 
Methal's Avatar 

Join Date: Aug 2008
Location: DC

 
Quote:
Originally Posted by Caedis View Post
Actually... no.

Each program is a case by case issue. If your having problems with one particular app it has very little chance of being the same problem with anther. The only caveat would be in the case of a poorly compiled install, or faulty Linux system driver, etc. In which case the same problem would appear most likely.

So don't let a scrapbooking app stop you (or anyone else) from trying out your favorite games in Linux.

What is the name of the scrapbooking app thats causing you problems?
Oh trust me, not much, if anything could stop me from using Linux for everything I could possibly do with it. Windows and its crap isn't worth putting up with just to game.

The program is called "Art Explosion Scrapbook Factory Deluxe" Was a Valentines/Thanks for letting me spend 1700 bucks on my new i7 gift to my wife. Its pretty much the only reason we keep windows on this rig.

__________________
That'll do Donkey, that'll do.
I'm a Team 32 Folding Mentor. Ask me about Folding.
Methal is offline   QUOTE Thanks
Old 05-14-09, 07:37 AM Thread Starter   #14
Caedis
Linux Gaming Guru

 
Caedis's Avatar 

Join Date: Jun 2007
Location: Texas, USA

 
Update: Benchmarks added to OP
Caedis is offline   QUOTE Thanks
Old 05-15-09, 01:45 PM Thread Starter   #15
Caedis
Linux Gaming Guru

 
Caedis's Avatar 

Join Date: Jun 2007
Location: Texas, USA

 
Update: Added an enhanced winetricks script for greater application compatibility.
Caedis is offline   QUOTE Thanks
Old 05-26-09, 07:55 PM   #16
SuperMiguel
Super User

 
SuperMiguel's Avatar 

Join Date: Sep 2007
Location: Florida, US

 
wow my results suck compared with urs http://global.phoronix-test-suite.co...89-16211-21398

__________________
<(+_+)> (v)g <(+_+)>
SuperMiguel is offline   QUOTE Thanks
Old 05-26-09, 08:22 PM   #17
pharoer
Member



Join Date: Dec 2008

 
Quote:
ATi has made their drivers open source but that doesn't help when no one is there to develop them. Whereas one can easily download the Nvidia drivers directly from their site and quickly install them without problems.
Both of those phrases are utterly wrong. There have been and still are tons of various issues with nvidia drivers (especially when a new kernel or X or mesa-glx comes out) and ATI has not opensourced a single line of driver code but they have released documentation for their chips, something nvidia has not. And there are people developing ATI drivers (radeon and formerly radeonhd) based on this documentation.
pharoer is offline   QUOTE Thanks
Old 05-27-09, 12:38 AM   #18
JackNSally



Join Date: May 2005

 
Caedis, with your how-to guides, I am finally going to make the leap into linux, especially since you have made this one. Thanks a ton and I will be putting linux (probably ubuntu) on my comp soon.

__________________
Main- 2500k@4988MHz (50x99.7MHz), 2x4GB Gskill RipJaws, Asus GTX 680
MPGS-Q6600@3GHz, 4x2GB Crucial, GTX 260
Steam ID- jacknsally
Heatware
JackNSally is offline Folding Profile Heatware Profile   QUOTE Thanks
Old 05-27-09, 09:19 AM   #19
Shelnutt2
Overclockers Team Content Editor

 
Shelnutt2's Avatar 

Join Date: Jun 2005
Location: /home/

 
The only thing I'd like to point out, is that by installing the dll for directx and all you've made your install "dirty", aka you no longer are using completely open source software. The wine project is attempting to rewrite all the dll from scratch, having never seen any microsoft source code. They are moving along very nicely but they aren't there yet. I personally, even though I own a copy of window, don't use wine tricks for installing any microsoft software. (Although I recently installed .net 2 as I'm helping Harlam with his folding monitor in linux via wine, but soon we'll be switching to mono).

Great guide, but I just don't like how you make it seem like using directX is a simply no need to think about it thing. By installing it you are giving up your free as in speech software, for that small portion. Also it's wine's policy that in the appdb it should all be based on internal dll's and not how does it run with microsoft dll's installed. So ymmv when reading the appdb, when following this approach. (More apps should work that might be listed as not working)

__________________
Build!.Borg!.Recruit!.Folding.for.Team.32!
Gigabyte P35-DS3R, E6300, 2x512MB Team Group DDR2 667, EVGA 7800GT Heat

Want to run the folding@home gpu client in linux?
www.linuxfah.info

Your teacher is a dumbass. The equation is exact. ~Frodo Baggins
Damn....It's 12:00 AM and I thought my 805 would be a magic pumkin and turn into a conroe.........boy was I fooled:) ~Stilletto
This is what I get for not only being a newb, but also disregarding instructions! ~ShadowPho
I hate women... but im not gay lol. ~MrCrowley
Love can fade but knowledge stays forever (unless you develop alzheimers). ~Constantinos
Shelnutt2 is offline Folding Profile   QUOTE Thanks
Old 05-29-09, 05:30 PM   #20
Methal
Member

 
Methal's Avatar 

Join Date: Aug 2008
Location: DC

 
Getting the following error on the last step.
HTML Code:
0[21b1f0]: nsNativeModuleLoader::LoadModule("C:\windows\gecko\0.9.1\wine_gecko\js3250.dll") - Symbol NSGetModule not found
err:rundll32:WinMain Unable to load L"streamci"
err:rundll32:WinMain Unable to load L"streamci"
err:rundll32:WinMain Unable to load L"streamci"
err:rundll32:WinMain Unable to load L"streamci"
err:rundll32:WinMain Unable to load L"streamci"

__________________
That'll do Donkey, that'll do.
I'm a Team 32 Folding Mentor. Ask me about Folding.
Methal is offline   QUOTE Thanks

Post Reply New Thread Subscribe


Overclockers Forums > Software > Alternative Operating Systems
Alternative Operating Systems Linux, Mac, Unix Operating Systems and Applications
Forum Jump

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Mobile Skin
All times are GMT -5. The time now is 06:24 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
You can add these icons by updating your profile information to include your Heatware ID, Benching Profile ID or your Folding/SETI profile ID. Edit your profile!
X

Welcome to Overclockers.com

Create your username to jump into the discussion!

New members like you have made this the best community on the Internet since 1998!


(4 digit year)

Why Join Us?

  • Share experience
  • Max out your hardware
  • Best forum members anywhere
  • Customized forum experience

Already a member?