This page describes how to install Legends on a Linux machine and describes some of the common pitfalls encountered. The command line instructions demonstrate examples where the username was user and the hostname was machine. If you are unfamiliar with the Linux command line, follow the Detailed Instructions.
user@machine:~$ su Password: machine:/home/user# sh legends_linux-0.4.1.42.run
You will be prompted for the installation directory, just press Enter to install to the default location: /usr/games/legends. Installation will take approximately 20-60 seconds.
Once Legends has been successfully installed, run it by:
cd /usr/games/legends ./runlegends
The installer will automatically check for updates when you first install, however periodically run the ./update script to get the most up to date changes. You must be connected to the internet to run this command. You may need to make the script executable on some distributions (namely Gentoo)
chmod u+x /usr/games/legends/update sh /usr/games/legends/update
On PCLinuxOS use
chmod u+x /usr/share/games/legends/update sh /usr/share/games/legends/update
If you have difficulties running Legends, scroll down to the Troubleshooting section at the bottom of this page.
These instructions are intended for people who are unfamiliar with the Linux command line.
The Legends Linux Installer, version 0.4.1.40, can be downloaded from here. Check this page to see if there is a newer version.
Verify that the download completed successfully. Enter the following commands into a terminal. If you do not have the md5sum program then skip that command.
ls -l /home/user/legends_linux_0.4.1.40.sh md5sum /home/user/legends_linux_0.4.1.40.sh
Your terminal should now look similar to the following:
user@machine:~$ ls -l /home/user/legends_linux_0.4.1.40.sh -rw-rw-r-- 1 user users 121687045 Jul 9 20:54 /home/user/legends_linux_0.4.1.40.sh user@machine:~$ md5sum /home/user/legends_linux_0.4.1.40.sh 46c0ef14be6251edbfa895de11f0cc80 /home/user/legends_linux_0.4.1.40.sh
Check the filesize and MD5sum for correctness.
The three most common places to install Legends are:
/usr/games/legends//usr/local/games/legends//home/user/legends/
/usr/games/legends/ is the prefered directory and will be used throughout this guide. You will need to be logged in as the superuser (or root user) to install to /usr/games/legends/ or /usr/local/games/legends/. If you don't want to install as root, you must install into your home directory - /home/user/legends.
From now on it will be assumed that you are installing to /usr/games/legends/.
You must make the file executable before you can run it. Enter the following command into a terminal.
chmod u+x /home/user/legends_linux_0.4.1.40.sh
Log in as root, if you decided to install under your normal user account, skip to the section User Specific Install. Enter the following into a terminal
sh /home/user/legends_linux_0.4.1.40.sh
Your terminal will now like the following
user@machine:~$ sh /home/user/legends_linux_0.4.1.40.sh Legends installer 0.4.1.40 - starting installation... please wait Please enter the installation location [/usr/games/legends]:
The default install location is /usr/games/legends, which is what we want, so just press the Enter key to accept. The installation will take 20-60 seconds, your terminal will then look like the following:
user@machine:~$ sh /home/user/legends_linux_0.4.1.40.sh Legends installer 0.4.1.40 - starting installation... please wait Please enter the installation location [/usr/games/legends]: Preparing install directory... Install directory ready Attempting to create menu entries for legends... Menu entry created. You may start legends from the start menu. To start legends form a command line: cd /usr/games/legends ./runlegends To update legends, change directory into /usr/games/legends then run the command './update' to check for available updates. Legends installation completed.
If you installed as root, as described above, skip this section and go to Step 5. If you decided to install Legends with your normal user account, the installation will look slightly different:
user@machine:~$ ./legends_linux_0.4.1.40.sh Legends installer 0.4.1.40 - starting installation... please wait It is suggested that you run this install script as root to allow all users to play legends on this machine Procced anyway (y or n):
Type y and press the Enter key. Your terminal will now look like the following:
user@machine:~$ ./legends_linux_0.4.1.40.sh Legends installer 0.4.1.40 - starting installation... please wait It is suggested that you run this install script as root to allow all users to play legends on this machine Procced anyway (y or n): y Proceeding with user specific installation. Please enter the installation location [/home/user/legends]:
The default install location is /home/user/legends, which is what we want, so just press the Enter key to accept. The installation will take 20-60 seconds, your terminal will then look like:
user@machine:~$ ./legends_linux_0.4.1.40.sh Legends installer 0.4.1.40 - starting installation... please wait It is suggested that you run this install script as root to allow all users to play legends on this machine Procced anyway (y or n): y Proceeding with user specific installation. Please enter the installation location [/home/user/legends]: Preparing install directory... Install directory ready Attempting to create menu entries for legends... Menu entry created. You may start legends from the start menu. To start legends form a command line: cd /home/user/legends ./runlegends To update legends, change directory into /home/user/legends then run the command './update' to check for available updates. Legends installation completed.
Go to the directory where you installed Legends and execute the runlegends program:
cd /usr/games/legends ./runlegends
Check this page for a list of known problems and solutions.
Verify your installation. Enter the following commands to make sure that all the files were installed.
find /usr/games/legends
Your terminal should then look like the following
user@machine:~/$ find /usr/games/legends . ./ReadMe.txt ./ReadMe_legals.txt ./show ./show/ui ./show/ui/.keep ./show/defaults.cs ./show/scripts ./show/scripts/.keep ./show/main.cs ./show/ui.unf ./show/scripts.unf ./ReadMe_QuickStart.txt ./legends ./legends/data ./legends/data/.keep ./legends/data.unf ./legends/prefs ./legends/prefs/mapcycle.cs ./legends/prefs/adminuserlist.cs ./legends/scripts ./legends/scripts/.keep ./legends/main.cs ./legends/interiors.unf ./legends/scripts.unf ./legends/voices.unf ./legends/sounds.unf ./legends/missions.unf ./OPENAL32.DLL ./LinLegends ./main.cs ./libSDL-1.2.so.0 ./libSDL-1.3.so.0 ./common ./common/edit ./common/edit/.keep ./common/edit.unf ./common/main.cs ./common/client ./common/client/.keep ./common/server.unf ./common/server ./common/server/.keep ./common/client.unf ./common/ui.unf ./ispawn ./runlegends ./update ./lindedicated ./libvorbis.so.0 ./default.keybinds.txt ./libopenal.so ./legends.ico ./linux.txt ./libogg.so.0