| 1 | = How to install the latest version on Linux = |
| 2 | |
| 3 | '''Warning''': The game is currently under heavy development, and many features are currently missing. This release is an '''alpha version''', not a completed playable game - please check our '''[http://www.wildfiregames.com/0ad/ site]''' and '''[http://www.wildfiregames.com/forum/index.php?showforum=135 forums]''' for future updates! |
| 4 | |
| 5 | The Linux packages are new and not well-tested, so please report any problems. |
| 6 | |
| 7 | |
| 8 | [[TOC(inline,noheading)]] |
| 9 | |
| 10 | == Ubuntu 10.04 == |
| 11 | |
| 12 | Install from our [https://launchpad.net/~wfg/+archive/0ad PPA]: |
| 13 | {{{ |
| 14 | sudo add-apt-repository ppa:wfg/0ad |
| 15 | sudo apt-get update |
| 16 | sudo apt-get install 0ad |
| 17 | }}} |
| 18 | (If you get errors about unmet dependencies, check that you have the Universe repository enabled in `/etc/apt/sources.list`.) |
| 19 | |
| 20 | Run the game from the command-line as |
| 21 | {{{ |
| 22 | 0ad |
| 23 | }}} |
| 24 | or from the application menu item "Games" / "0 A.D." |
| 25 | |
| 26 | Alternatively, you can install `0ad` from [http://www.playdeb.net/software/0%20A.D. PlayDeb.net] (see their [http://www.playdeb.net/updates/ubuntu/all/#how_to_install setup instructions]). |
| 27 | |
| 28 | '''Unstable version''': You can try a more up-to-date but less-well-tested version from our [https://launchpad.net/~wfg/+archive/0ad.dev development snapshot PPA], which should be updated each week. Follow the instructions above but use the `ppa:wfg/0ad.dev` repository name. |
| 29 | |
| 30 | == Debian 5.0 == |
| 31 | |
| 32 | {{{ |
| 33 | sudo sh -e'echo "deb http://download.opensuse.org/repositories/games/Debian_5.0/ /" >/etc/apt/sources.list.d/obs-games.list' |
| 34 | sudo apt-get update |
| 35 | sudo apt-get install 0ad |
| 36 | }}} |
| 37 | It should prompt "Install these packages without verification?" - these packages are not checked or trusted by Debian. You should not install them in security-critical environments. If you understand and accept the danger of installing unknown software, answer "y". |
| 38 | |
| 39 | Run the game from the command-line as |
| 40 | {{{ |
| 41 | 0ad |
| 42 | }}} |
| 43 | or from the application menu item "0 A.D." |
| 44 | |
| 45 | == OpenSUSE == |
| 46 | |
| 47 | * Launch YaST. |
| 48 | * Select "Software" and "Software Repositories". |
| 49 | * Select "Add" and "Specify URL..." |
| 50 | * Enter one of the following URLs, with name "obs-games": |
| 51 | * `http://download.opensuse.org/repositories/games/openSUSE_11.3/` |
| 52 | * `http://download.opensuse.org/repositories/games/openSUSE_11.2/` |
| 53 | * `http://download.opensuse.org/repositories/games/openSUSE_11.1/` |
| 54 | * It should prompt "Import Untrusted GnuPG Key" - these packages are not checked or trusted by OpenSUSE. You should not install them in security-critical environments. If you understand and accept the danger of installing unknown software, accept the import. |
| 55 | * Run "Install/Remove Software" |
| 56 | * Select "0ad" to install. |
| 57 | |
| 58 | Run the game from the command-line as |
| 59 | {{{ |
| 60 | 0ad |
| 61 | }}} |
| 62 | or from the application menu item "0 A.D." |
| 63 | |
| 64 | == Fedora, Mandriva == |
| 65 | |
| 66 | First run: |
| 67 | {{{ |
| 68 | su - |
| 69 | }}} |
| 70 | Then run one of the following commands: |
| 71 | * `curl http://download.opensuse.org/repositories/games/Fedora_13/games.repo >/etc/yum.repos.d/obs-games.repo` |
| 72 | * `curl http://download.opensuse.org/repositories/games/Fedora_12/games.repo >/etc/yum.repos.d/obs-games.repo` |
| 73 | * `curl http://download.opensuse.org/repositories/games/Mandriva_2010.1/games.repo >/etc/yum.repos.d/obs-games.repo` |
| 74 | * `curl http://download.opensuse.org/repositories/games/Mandriva_2010/games.repo >/etc/yum.repos.d/obs-games.repo` |
| 75 | * `curl http://download.opensuse.org/repositories/games/Mandriva_2009.1/games.repo >/etc/yum.repos.d/obs-games.repo` |
| 76 | Install the package: |
| 77 | {{{ |
| 78 | yum install 0ad |
| 79 | }}} |
| 80 | It should prompt "Importing GPG key 0xC862B42C ... Is this ok?" - these packages are not checked or trusted by Fedora/Mandriva. You should not install them in security-critical environments. If you understand and accept the danger of installing unknown software, answer "y". |
| 81 | |
| 82 | Exit from the `su` shell: |
| 83 | {{{ |
| 84 | exit |
| 85 | }}} |
| 86 | Run the game from the command-line as |
| 87 | {{{ |
| 88 | 0ad |
| 89 | }}} |
| 90 | or from the application menu item "0 A.D." |
| 91 | |
| 92 | '''Unstable version''': Fedora: You can try a more up-to-date but less-well-tested version from a [http://forums.fedoraforum.org/showthread.php?t=250474 Fedora People repository]. |
| 93 | |
| 94 | == Gentoo == |
| 95 | |
| 96 | See [http://bugs.gentoo.org/show_bug.cgi?id=278541 bug containing ebuilds] (both latest release and latest SVN). |
| 97 | |
| 98 | == Arch == |
| 99 | |
| 100 | See [http://aur.archlinux.org/packages.php?ID=36132 releases] and [http://aur.archlinux.org/packages.php?ID=28560 latest SVN] packages. |
| 101 | |
| 102 | == Compiling on Linux == |
| 103 | |
| 104 | You need two files: |
| 105 | * [http://releases.wildfiregames.com/0ad-r07970-alpha-unix-build.tar.xz 0ad-unix-build.tar.xz] (3 MB) ''or'' [http://releases.wildfiregames.com/0ad-r07970-alpha-unix-build.tar.gz 0ad-unix-build.tar.gz] (5 MB) |
| 106 | * [http://releases.wildfiregames.com/0ad-r07970-alpha-unix-data.tar.xz 0ad-unix-data.tar.xz] (99 MB) ''or'' [http://releases.wildfiregames.com/0ad-r07970-alpha-unix-data.tar.gz 0ad-unix-data.tar.gz] (118 MB) |
| 107 | The `.xz` files are smaller but may require you to install [http://tukaani.org/xz/ XZ Utils]. |
| 108 | |
| 109 | Extract both files to the same location: |
| 110 | {{{ |
| 111 | # Extract .xz version into the current directory: |
| 112 | tar xvJf 0ad-r07970-alpha-unix-build.tar.xz |
| 113 | tar xvJf 0ad-r07970-alpha-unix-data.tar.xz |
| 114 | |
| 115 | # Or, if your tar is older than 1.22: |
| 116 | xz -cd 0ad-r07970-alpha-unix-build.tar.xz | tar xv |
| 117 | xz -cd 0ad-r07970-alpha-unix-data.tar.xz | tar xv |
| 118 | |
| 119 | # Or, if you downloaded the .gz version: |
| 120 | tar xvzf 0ad-r07970-alpha-unix-build.tar.gz |
| 121 | tar xvzf 0ad-r07970-alpha-unix-data.tar.gz |
| 122 | }}} |
| 123 | |
| 124 | Then follow the '''[BuildInstructions#Unix build instructions]''' using the files from this release instead of downloading from SVN. |