Saturday, July 5, 2014

How to install the top free ubuntu games?

1) Add the repos

$ sudo add-apt-repository ppa:speed-dreams/ppa  
$ wget -q -O - http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -  
$ sudo sh -c 'echo "deb http://archive.getdeb.net/ubuntu trusty-getdeb games" >> /etc/apt/sources.list.d/getdeb.list'  
$ sudo apt-get update

2) Get the top games

 $ sudo apt-get install hedgewars 0ad openarena speed-dreams armagetronad beneath-a-steel-sky boswars epiphany extremetuxracer extremetuxracer-extras flightgear freeciv-client-sdl freedroidrpg fretsonfire frozen-bubble gcompris gcompris-data gcompris-sound-en glob2 tomatoes neverball nexuiz nexuiz-music openarena-server pingus rrootage scorched3d smc smc-music supertux supertuxkart torcs vegastrike vegastrike-music warzone2100 xmoto   

3) Find more games

list from playdeb:

http://www.playdeb.net/updates/Ubuntu/14.04

top games:

http://www.playdeb.net/updates/Ubuntu/14.04#download_stats


4) Copy the shortcuts to desktop

$ ListOfGames=$(dpkg-query -Wf='${status}\t${section}\t${package}\t${provides}\n' | grep "installed" | sed -e 's/.*installed\s*//g' | grep "^games" | sed -e 's/^games\s*//g' | sed -e 's/,/ /g')  
$ for i in $ListOfGames;do cp -v /usr/share/app-install/desktop/${i}* ~/Desktop/.;done  
$ chmod +x ~/Desktop/*.desktop  

3) Manually add other shortcuts for:

- darkplaces
- speed-dreams-2
- vegastrike

Example for vegastrike, create a vegastrike.desktop and edit the file to contain the following:
 [Desktop Entry]  
 Version=1.0  
 Type=Application  
 Terminal=false  
 Exec=vegastrike  
 Name=vegastrike  
 Comment=vegastrike  
 Icon=vegastrike