Install Zandronum on Ubuntu: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
= Installation with | = Installation with packages = | ||
This guide will help Ubuntu users to install Zandronum on their systems. Additionally, this will also include the Doomseeker game server browser. With Doomseeker installed, this will allow the user to quickly connect to an abundance of Zandronum servers. | This guide will help Ubuntu users to install Zandronum on their systems. Additionally, this will also include the Doomseeker game server browser. With Doomseeker installed, this will allow the user to quickly connect to an abundance of Zandronum servers. | ||
* Open the <abbr title="CTRL + ALT + T">terminal</abbr>. | * Open the <abbr title="CTRL + ALT + T">terminal</abbr>. | ||
Line 19: | Line 19: | ||
== Uninstallation == | == Uninstallation == | ||
Run the following to remove Zandronum from the system: | Run the following to remove Zandronum from the system: | ||
sudo apt-get --purge remove zandronum | sudo apt-get --purge remove zandronum | ||
sudo apt-get --purge remove doomseeker-zandronum | sudo apt-get --purge remove doomseeker-zandronum | ||
sudo apt-get autoremove | sudo apt-get autoremove | ||
= Manual | = Manual installation = | ||
1. Download the Linux base, and the version for your specific architecture. | 1. Download the Linux base, and the version for your specific architecture. | ||
2. Extract both of those zip files to the same folder, it can be any folder. For me, it's /home/<username>/. | 2. Extract both of those zip files to the same folder, it can be any folder. For me, it's /home/<username>/. | ||
''If you put it in a place that requires root privileges, you will need to get root access before you add wads to the directory or change anything.'' | ''If you put it in a place that requires root privileges, you will need to get root access before you add wads to the directory or change anything.'' | ||
You can also put your IWADs anywhere, just be sure to remember where they are. I recommend /home/<username>/zandronum/iwads/ | You can also put your IWADs anywhere, just be sure to remember where they are. I recommend /home/<username>/zandronum/iwads/ | ||
You could even separate your PWADs; Doomseeker is very flexible, and you'll be running Zandronum with shell commands, so it doesn't matter. You could even categorize your wads by game mode if you wanted. | You could even separate your PWADs; Doomseeker is very flexible, and you'll be running Zandronum with shell commands, so it doesn't matter. You could even categorize your wads by game mode if you wanted. | ||
3. Run Zandronum (to test it) | 3. Run Zandronum (to test it) | ||
Line 37: | Line 36: | ||
Command (if in the zandronum directory): ./zandronum | Command (if in the zandronum directory): ./zandronum | ||
= Manual | = Manual installation (alternative) = | ||
'''Open a terminal and copy and paste the whole code box for each step.''' | '''Open a terminal and copy and paste the whole code box for each step.''' | ||
In your user home directory, create zandronum_local/zandronum directories: | |||
mkdir -pv | mkdir -pv ~/zandronum_local/zandronum | ||
Download the latest version of Zandronum 32-bit or 64-bit and extract files to ~/zandronum_local/zandronum directory: | |||
cd | cd ~/zandronum_local && | ||
v=$(wget -q -O - http://zandronum.com/download | | v="$(wget -q -O - http://zandronum.com/download | | ||
sed -n 's/.*The latest version is <nowiki><strong>\(.*\)<\/strong></nowiki>.*/\1/p') && | sed -n 's/.*The latest version is <nowiki><strong>\(.*\)<\/strong></nowiki>.*/\1/p')" && | ||
if [ "$(uname -m)" = | if [ "$(uname -m)" = x86_64 ]; then | ||
z="zandronum"$v"-linux-x86_64.tar.bz2" | z="zandronum"$v"-linux-x86_64.tar.bz2" | ||
else | else | ||
z="zandronum"$v"-linux-x86.tar.bz2" | z="zandronum"$v"-linux-x86.tar.bz2" | ||
fi && | fi && | ||
wget -nc <nowiki>http://zandronum.com/downloads/"$z"</nowiki> && | wget -nc <nowiki>http://zandronum.com/downloads/"$z"</nowiki> && | ||
tar -xjvf "$z" -C zandronum | tar -xjvf "$z" -C zandronum | ||
Download FMOD 4.24.16 32-bit or 64-bit and extract libfmodex64-4.24.16.so or libfmodex-4.24.16.so to ~/zandronum_local/zandronum directory: | |||
a=<nowiki>''</nowiki> && [ "$(uname -m)" = x86_64 ] && a=64 | |||
a='' && [ "$(uname -m)" = x86_64 ] && a=64 | cd ~/zandronum_local && | ||
wget -nc <nowiki>http://zandronum.com/essentials/fmod/fmodapi42416linux"$a".tar.gz</nowiki> && | wget -nc <nowiki>http://zandronum.com/essentials/fmod/fmodapi42416linux"$a".tar.gz</nowiki> && | ||
tar -xvzf fmodapi42416linux"$a".tar.gz -C zandronum --strip-components=3 \ | tar -xvzf fmodapi42416linux"$a".tar.gz -C zandronum --strip-components=3 \ | ||
--show-transformed-names fmodapi42416linux"$a"/api/lib/libfmodex"$a"-4.24.16.so | --show-transformed-names fmodapi42416linux"$a"/api/lib/libfmodex"$a"-4.24.16.so | ||
'''Continue to [[#Local | '''Continue to [[#Local installation|Local]] or [[#System-wide installation|System-wide]] installation''' | ||
== Local | == Local installation == | ||
In your user home directory, create zandronum script: | |||
printf %s "\ | |||
#!/bin/sh | |||
export LD_LIBRARY_PATH=~/zandronum_local/zandronum | |||
exec ~/zandronum_local/zandronum/zandronum \"\$@\" | |||
" > ~/zandronum && | |||
chmod 755 zandronum | chmod 755 ~/zandronum | ||
In your user home directory, create zandronum-server script: | |||
printf %s "\ | |||
#!/bin/sh | |||
exec ~/zandronum_local/zandronum/zandronum-server \"\$@\" | |||
" > ~/zandronum-server && | |||
chmod 755 zandronum-server | chmod 755 ~/zandronum-server | ||
Now from a terminal you should be able to run '''~/zandronum''' or '''~/zandronum-server''' only from your user account. | |||
== System- | == System-wide installation == | ||
Create /usr/games/zandronum directory: | |||
sudo mkdir -pv /usr/games/zandronum | sudo mkdir -pv /usr/games/zandronum | ||
Copy all files from ~/zandronum_local/zandronum directory to /usr/games/zandronum/: | |||
cd | cd ~/zandronum_local/zandronum && | ||
sudo cp -v * /usr/games/zandronum/ | |||
sudo cp -v | |||
Create zandronum script: | |||
printf %s "\ | |||
#!/bin/sh | |||
export LD_LIBRARY_PATH=/usr/games/zandronum | |||
exec /usr/games/zandronum/zandronum \"\$@\" | |||
" > zandronum.sh && | |||
chmod 755 zandronum && | chmod 755 zandronum.sh && | ||
sudo mv -v zandronum /usr/bin | sudo mv -v zandronum.sh /usr/bin/zandronum | ||
Create zandronum-server script: | |||
printf %s "\ | |||
#!/bin/sh | |||
exec /usr/games/zandronum/zandronum-server \"\$@\" | |||
" > zandronum-server.sh && | |||
chmod 755 zandronum-server && | chmod 755 zandronum-server.sh && | ||
sudo mv -v zandronum-server /usr/bin | sudo mv -v zandronum-server.sh /usr/bin/zandronum-server | ||
Now from a terminal you should be able to run '''zandronum''' or '''zandronum-server''' from any user account. | |||
=== Remove | === Remove system-wide installation === | ||
Remove /usr/games/zandronum directory and all its files: | |||
sudo rm -rfv /usr/games/zandronum | sudo rm -rfv /usr/games/zandronum | ||
Remove zandronum script: | |||
sudo rm -fv /usr/bin/zandronum | sudo rm -fv /usr/bin/zandronum | ||
Remove zandronum-server script: | |||
sudo rm -fv /usr/bin/zandronum-server | sudo rm -fv /usr/bin/zandronum-server | ||
Line 134: | Line 131: | ||
'''"zandronum: error while loading shared libraries: libfmodex32-4.24.16.so: cannot open shared object file: No such file or directory"''' | '''"zandronum: error while loading shared libraries: libfmodex32-4.24.16.so: cannot open shared object file: No such file or directory"''' | ||
or | or | ||
'''"zandronum: error while loading shared libraries: libfmodex64-4.24.16.so: cannot open shared object file: No such file or directory":''' | '''"zandronum: error while loading shared libraries: libfmodex64-4.24.16.so: cannot open shared object file: No such file or directory":''' | ||
Line 185: | Line 182: | ||
'''If you set FMOD as the default midi device for Zandronum and music or sound is not audible, do the following:''' | '''If you set FMOD as the default midi device for Zandronum and music or sound is not audible, do the following:''' | ||
1- Download gm.dls (this file is used by FMOD ex in Windows, located at "Windows/System32/drivers/") | |||
: | http://www.solidfiles.com/d/765e42ac1c/ | ||
2- Put the gm.dls file in your .zandronum folder or to any location. | |||
: 4- Save changes and verify if music or sound is audible. | 3- In your .zandronum folder, edit zandronum.ini and go to "snd_midipatchset=" and set the path where your gm.dls file is located, for example: | ||
snd_midipatchset=/home/<your username>/.zandronum/gm.dls | |||
4- Save changes and verify if music or sound is audible. | |||
Line 202: | Line 198: | ||
Open a terminal and do the following: | Open a terminal and do the following: | ||
sudo apt-get install python-software-properties | sudo apt-get install python-software-properties | ||
= Related Articles = | = Related Articles = | ||
Line 301: | Line 204: | ||
*[[Playing Online]] | *[[Playing Online]] | ||
*[[Using_Timidity]] (for music) | *[[Using_Timidity]] (for music) | ||
*[[Compiling Zandronum on Linux#How to increase Zandronum/GZDoom OpenGL FPS|How to increase Zandronum/GZDoom OpenGL FPS]] | |||
Setting Ubuntu/Ubuntu Server to a Static ip for hosting: | Setting Ubuntu/Ubuntu Server to a Static ip for hosting: | ||
http://www.howtogeek.com/howto/ubuntu/change-ubuntu-server-from-dhcp-to-a-static-ip-address/ | http://www.howtogeek.com/howto/ubuntu/change-ubuntu-server-from-dhcp-to-a-static-ip-address/ | ||
[[Category:Install]] | [[Category:Install]] |