### Enter the Terminal
### Go to Applications -> Accessories -> Terminal
## Compile Wine from Source
# Use aptitude to install wine dependencies used to compile the Ubuntu Binaries
sudo apt-get build-dep wine1.2
# Change to Documents Directory to avoid permissions issues
cd Documents
# Create wine Directory
sudo mkdir wine
# Download Latest Wine source with wget
wget
http://puzzle.dl.sourceforge.net/pro...1.3.14.tar.bz2
# Extract source code with tar options xfvj
wine-1.3.14.tar.bz2 tar xfvj
# Enter the new Directory
cd wine-1.3.14
# Download a patch file needed to install API's not normally used in a wine build
# This API is used to allow the LoL installer to run
wget
http://bugs.winehq.org/attachment.cgi?id=25672 -O ./ole-force-inproc-instead-of-local.patch
# Install the patch file
patch -p1 < ole-force-inproc-instead-of-local.patch
# Run Configuration to determine if you have all necessary dependencies
./configure
# On my install OpenCL dev files and gstreamer files were missing. You shouldn't need OpenCL as it's
# not open source yet but you can install the gstreamer stuff.
sudo aptitude install libgstreamer-plugins-base0.10-dev
sudo aptitude install libgstreamer0.10-dev
# Re-Run configuration after you have everything you need
./configure
## If configure checks out go ahead and build the program
# Figure out how many processor cores your computer has
grep -c ^processor /proc/cpuinfo
# Set the compiler to use the correct number of cores
# IE CONCURRENCY_LEVEL= However many cores you have
# I'm compiling on a dual core so...
export CONCURRENCY_LEVEL=2
# And finally compile the install file:
make depend && make
# Once this is finished, you can go ahead and install the newly created binary
sudo make install
## Install some other needed stuff
## Now that you have wine installed a few other things will be needed
## Mainly Internet Explorer, Visual C++, DirectX9 (things you would have to install on a windows
## computer for the game to work) and Adobe Air.
# Install winetricks
# This is basically just a package/script that makes installing all the windows stuff really easy
sudo aptitude install winetricks
# You will be asked to agree to the license agreement for some microsoft fonts
# Go ahead and agree
# Then use winetricks to install the above mentioned programs
# Accept the license agreements, and go with all the default settings when asked
winetricks d3dx9 vcrun2005 ie6 adobeair
### Download and Install League of Legends
1. Head to leagueoflegends.com, Download the installer someplace and double click on the icon
it should automatically run via Wine.
2. After it's finished downloading all the files, accept the license agreements and choose full install
3. When the installation completes uncheck the box to start the game and hit finish (we don't want the
game to run yet)
4. Now open the wine configuration program. Applications -> Wine -> Configure Wine
5. Under the applications tab, change the Windows version to Windows 2000
6. Now go to the libraries tab, add a new override for the mmdevapi library.
7. Select the new override, hit edit, and then set the load order to disable.
8. Hit ok and the game should be ready to run.
# The first time league of legends is run, it will update itself. Once it finishes downloading and
installing the updates you have to click on the invisible (don't know how to fix that one) ok button
on the bottom right corner of the update window. It will bring up one final license agreement and
the game should be fully playable.