Reference: How To: Run Team Fortress 2 (TF2), Portal, Half-Life 2, HL2 EP 1&2 In Ubuntu Using Wine | fsckin w/ linux
Introduction
The Orange Box is a collection of 5 great games designed by Valve Corporation. It consists of the following games:
1)Half-Life 2
2)Half-Life 2: Episode 1
3)Half-Life2: Episode 2
4)Team Fortress 2
5)Portal
Half-Life 2 is a science fiction first person shooting game. The Half-Life series is extremely popular among gamers and requires no introduction. HL:EP1 and HL:EP2 are small episodes that carry-on the Half-Life storyline further. Team Fortress 2 (TF2) is a class-based online mutiplayer shooting game. TF2 is amazingingly fun to play online with other human players. Portal is a first person puzzle game that has gained worldwide critical acclaim due to its innovative gameplay and mind-bending puzzles.
All these games are bundled into a single Orange Box for an amazing price of just Rs. 999. That’s right, five complete games for only Rs. 999. No doubt, it’s selling like hot cakes in india. The only problem is that it’s available only on Windows, but people have been able to play it on Linux thanks to “Wineâ€.
Prerequisites
Here's the stuff you need:
1) Original Orange Box DVDs.
2) Working Linux installation with graphics drivers installed.
3) Latest version of "Wine" software installed.
Caution
Make sure your 3D desktop manager is turned off i.e. compiz, beryl etc. shouldn’t be running.
If you have Orange Box games installed on windows, you'll need only around 100MB of space for running the games on linux. So, it's best to have an existing Steam account and games installed on Windows.
You can check whether your 3D graphics are working by using the following command:
The output of the above command should be like this:
If the output differs it means you don't have proper graphics drivers installed. If you have Nvidia or ATi card, you can use "Envy" software to install proper graphics drivers. Envy automatically detects the graphics card, downloads and installs the drivers. Heres' the link for Envy:
Envy
If you have an on-board Intel card, download and install "Mesa OpenGL". Try this link too:
Welcome to the Linux Graphics Driver from Intel site | Graphics
Wine Configuration
Wine allows you to run windows applications on Linux. Since we are trying to run a Windows based game on Linux, we'll use wine to do the job. If you are using Ubuntu, install wine using the following command:
Install the Gecko browser for wine:
Click install when prompted, once you are able to view the website, close the browser.
Now, we need to install the Tahoma font. Google “tahoma filetype:ttfâ€, download the Tahoma.ttf file and copy it to your wine installation folder using the following command:
Once you have everything setup and your 3D environment is working, do the following:
1) Insert the first Orange Box DVD in your DVD drive.
2) Open the DVD, right-click on "Setup.exe" and select "Open with Wine".
3) You will get a setup window prompting you to install "Steam". Simply follow the installation process as you do in windows. Don't change the installation path. Once Steam is installed, you will be asked to either create a Steam account or login using your existing account. If you have an existing account, login using the same otherwise create a new account.
4) After this you will be logged on into Steam. Now, you will get a window asking you about the games you want to install from the Orange Box. Now, if you don't have these games installed on windows, simply install them by simple click and run procedure. Once the games are installed, you are ready to play the same.
5) If you have a existing Steam account and games installed on your windows partition. just cancel the game installation process and exit from Steam.
6) Now, in this case we don't have to install the games on Linux again, we can use the game content from windows and save valuable space in Linux. You just need to have the windows partition mounted in Linux
7) Steam games files are located in "SteamApps" folder in the Steam folder. Since, we haven't installed any games yet, our SteamApps folder doesn't have the game files. Now, the trick here is to use the game files from the "SteamApps" folder of windows. This can be achieved by simply copying all the files inside SteamApps folder from windows to Linux, but since we want to save some harddisk space (this was my main concern), we won't be copying the files. We’ll just create a link (shortcut) from Linux to windows “SteamApps†folder. Follow the command mentioned below to achieve the same:
a) Open a terminal, and go to the Steam folder using the following command:
b) Rename the existing "SteamApps" folder in Linux:
c) Create a soft link from linux "SteamApps" folder to the windows "SteamApps" folder. Now, suppose your windows partition (C:\ on windows) is mounted in /media/C_Drive and Steam is installed in /media/C_Drive/Steam (C:\Steam on windows), use the following command:
Basically we are just creating a a shortcut from Linux to windows "SteamApps" folder.
8) Once you are through, start Steam again and Voila! it'll show all your Steam games installed on windows. You don't even have to update the games as it picks up the updated files from windows. Even if you update the game in windows, it'll always pick up the latest version.
I was able to run Team Fortress 2 using the above commands. I ran the game at default settings on Ubuntu 7.04. It ran satisfactorily and the frame rates were good enough for smooth gameplay. I'll try with the latest version of wine, nvidia drivers and higher graphics settings soon.
Please follow the guide and post the feedback here. Here are some screenshots from my system. I'll post more screenshots in the evening.
Introduction
The Orange Box is a collection of 5 great games designed by Valve Corporation. It consists of the following games:
1)Half-Life 2
2)Half-Life 2: Episode 1
3)Half-Life2: Episode 2
4)Team Fortress 2
5)Portal
Half-Life 2 is a science fiction first person shooting game. The Half-Life series is extremely popular among gamers and requires no introduction. HL:EP1 and HL:EP2 are small episodes that carry-on the Half-Life storyline further. Team Fortress 2 (TF2) is a class-based online mutiplayer shooting game. TF2 is amazingingly fun to play online with other human players. Portal is a first person puzzle game that has gained worldwide critical acclaim due to its innovative gameplay and mind-bending puzzles.
All these games are bundled into a single Orange Box for an amazing price of just Rs. 999. That’s right, five complete games for only Rs. 999. No doubt, it’s selling like hot cakes in india. The only problem is that it’s available only on Windows, but people have been able to play it on Linux thanks to “Wineâ€.
Prerequisites
Here's the stuff you need:
1) Original Orange Box DVDs.
2) Working Linux installation with graphics drivers installed.
3) Latest version of "Wine" software installed.
Caution
Make sure your 3D desktop manager is turned off i.e. compiz, beryl etc. shouldn’t be running.
If you have Orange Box games installed on windows, you'll need only around 100MB of space for running the games on linux. So, it's best to have an existing Steam account and games installed on Windows.
You can check whether your 3D graphics are working by using the following command:
Code:
glxinfo | grep direct
Code:
Direct Rendering: Yes
Envy
If you have an on-board Intel card, download and install "Mesa OpenGL". Try this link too:
Welcome to the Linux Graphics Driver from Intel site | Graphics
Wine Configuration
Wine allows you to run windows applications on Linux. Since we are trying to run a Windows based game on Linux, we'll use wine to do the job. If you are using Ubuntu, install wine using the following command:
Code:
sudo apt-get install wine
Code:
wine iexplore [url]http://appdb.winehq.com[/url]
Now, we need to install the Tahoma font. Google “tahoma filetype:ttfâ€, download the Tahoma.ttf file and copy it to your wine installation folder using the following command:
Code:
cp Tahoma.ttf ~/.wine/drive_c/windows/fonts
1) Insert the first Orange Box DVD in your DVD drive.
2) Open the DVD, right-click on "Setup.exe" and select "Open with Wine".
3) You will get a setup window prompting you to install "Steam". Simply follow the installation process as you do in windows. Don't change the installation path. Once Steam is installed, you will be asked to either create a Steam account or login using your existing account. If you have an existing account, login using the same otherwise create a new account.
4) After this you will be logged on into Steam. Now, you will get a window asking you about the games you want to install from the Orange Box. Now, if you don't have these games installed on windows, simply install them by simple click and run procedure. Once the games are installed, you are ready to play the same.
5) If you have a existing Steam account and games installed on your windows partition. just cancel the game installation process and exit from Steam.
6) Now, in this case we don't have to install the games on Linux again, we can use the game content from windows and save valuable space in Linux. You just need to have the windows partition mounted in Linux
7) Steam games files are located in "SteamApps" folder in the Steam folder. Since, we haven't installed any games yet, our SteamApps folder doesn't have the game files. Now, the trick here is to use the game files from the "SteamApps" folder of windows. This can be achieved by simply copying all the files inside SteamApps folder from windows to Linux, but since we want to save some harddisk space (this was my main concern), we won't be copying the files. We’ll just create a link (shortcut) from Linux to windows “SteamApps†folder. Follow the command mentioned below to achieve the same:
a) Open a terminal, and go to the Steam folder using the following command:
Code:
cd ~/.wine/drive_c/â€Program Filesâ€/Steam
Code:
mv SteamApps SteamApps_Org
Code:
ln -s /media/C_Drive/Steam/SteamApps ./SteamApps
8) Once you are through, start Steam again and Voila! it'll show all your Steam games installed on windows. You don't even have to update the games as it picks up the updated files from windows. Even if you update the game in windows, it'll always pick up the latest version.
I was able to run Team Fortress 2 using the above commands. I ran the game at default settings on Ubuntu 7.04. It ran satisfactorily and the frame rates were good enough for smooth gameplay. I'll try with the latest version of wine, nvidia drivers and higher graphics settings soon.
Please follow the guide and post the feedback here. Here are some screenshots from my system. I'll post more screenshots in the evening.