Install Zandronum on Ubuntu: Difference between revisions

no edit summary
(Created page 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 brows...")
 
No edit summary
Line 1: Line 1:
= Installation with Packages =
= 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.  


Line 39: Line 38:


= Manual Installation (alternative) =
= 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.'''


: Make zandronum_local/zandronum directories:
: In your user home directory, make zandronum_local/zandronum directories:
  mkdir -pv $HOME/zandronum_local/zandronum
  mkdir -pv "$HOME"/zandronum_local/zandronum


: Download the latest version of Zandronum 32-bit or 64-bit and extract zandronum, zandronum.pk3, skulltag_actors.pk3, liboutput_sdl.so and zandronum-server to zandronum directory:
: Download the latest version of Zandronum 32-bit or 64-bit and extract zandronum, zandronum.pk3, skulltag_actors.pk3, liboutput_sdl.so and zandronum-server to ~/zandronum_local/zandronum directory:
  cd $HOME/zandronum_local && \
  cd "$HOME"/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)" = "x86_64" ]; then
  if [ "$(uname -m)" = "x86_64" ]; then
     a="zandronum"$v"-linux-x86_64.tar.bz2"  
     z="zandronum"$v"-linux-x86_64.tar.bz2"  
  else
  else
     a="zandronum"$v"-linux-x86.tar.bz2"
     z="zandronum"$v"-linux-x86.tar.bz2"
  fi && \
  fi && \
  wget -nc <nowiki>http://zandronum.com/downloads/"$a"</nowiki> && \
  wget -nc <nowiki>http://zandronum.com/downloads/"$z"</nowiki> && \
  tar -xjvf "$a" -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 directory:
: 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:
  cd $HOME/zandronum_local && \
  cd "$HOME"/zandronum_local && \
  if [ "$(uname -m)" = "x86_64" ]; then  
  if [ "$(uname -m)" = "x86_64" ]; then  
     FMODFOLDER="fmodapi42416linux64"
     a="64"
    FMODFILE="libfmodex64-4.24.16"
  else
  else
     FMODFOLDER="fmodapi42416linux"
     a=""
    FMODFILE="libfmodex-4.24.16"
  fi && \
  fi && \
  wget -nc <nowiki>http://zandronum.com/essentials/fmod/$FMODFOLDER.tar.gz</nowiki> && \
  wget -nc <nowiki>http://zandronum.com/essentials/fmod/fmodapi42416linux"$a".tar.gz</nowiki> && \
  tar -xvzf $FMODFOLDER.tar.gz -C zandronum --strip-components=3 \
  tar -xvzf fmodapi42416linux"$a".tar.gz -C zandronum --strip-components=3 \
  --show-transformed-names $FMODFOLDER/api/lib/$FMODFILE.so
  --show-transformed-names fmodapi42416linux"$a"/api/lib/libfmodex"$a"-4.24.16.so


'''Continue to [[#Local Installation|Local]] or [[#System-Wide Installation|System-Wide]] Installation'''
'''Continue to [[#Local Installation|Local]] or [[#System-Wide Installation|System-Wide]] Installation'''


== Local Installation ==
== Local Installation ==
 
: In your user home directory, make zandronum script and add executable permission to it:
: Make zandronum script, add executable permission and copy it to /home/<your username>:
  cd "$HOME" && \
  cd $HOME && \
  echo '#!/bin/sh' > zandronum && \
  echo '#!/bin/sh' > zandronum && \
  echo >> zandronum && \
  echo >> zandronum && \
  echo 'export LD_LIBRARY_PATH="$HOME/zandronum_local/zandronum"' >> zandronum && \
  echo 'export LD_LIBRARY_PATH=""$HOME"/zandronum_local/zandronum"' >> zandronum && \
  echo 'exec $HOME/zandronum_local/zandronum/zandronum "$@"' >> zandronum && \
  echo 'exec "$HOME"/zandronum_local/zandronum/zandronum "$@"' >> zandronum && \
  chmod 755 zandronum
  chmod 755 zandronum


: Make zandronum-server script, add executable permission and copy it to /home/<your username>:
: In your user home directory, make zandronum-server script and add executable permission to it:
  cd $HOME && \
  cd "$HOME" && \
  echo '#!/bin/sh' > zandronum-server && \
  echo '#!/bin/sh' > zandronum-server && \
  echo >> zandronum-server && \
  echo >> zandronum-server && \
  echo 'exec $HOME/zandronum_local/zandronum/zandronum-server "$@"' >> zandronum-server && \
  echo 'exec "$HOME"/zandronum_local/zandronum/zandronum-server "$@"' >> zandronum-server && \
  chmod 755 zandronum-server
  chmod 755 zandronum-server


Line 93: Line 87:


== System-Wide Installation ==
== System-Wide Installation ==
: Make /usr/games/zandronum directory:
: Make /usr/games/zandronum directory:
  sudo mkdir -pv /usr/games/zandronum
  sudo mkdir -pv /usr/games/zandronum


: Copy zandronum, zandronum.pk3, skulltag_actors.pk3, liboutput_sdl.so, zandronum-server and libfmodex64-4.24.16.so or libfmodex-4.24.16.so to /usr/games/zandronum:
: Copy zandronum, zandronum.pk3, skulltag_actors.pk3, liboutput_sdl.so, zandronum-server and libfmodex64-4.24.16.so or libfmodex-4.24.16.so to /usr/games/zandronum:
  cd $HOME/zandronum_local/zandronum && \
  cd "$HOME"/zandronum_local/zandronum && \
  if [ "$(uname -m)" = "x86_64" ]; then
  if [ "$(uname -m)" = "x86_64" ]; then
     FMODFILE="libfmodex64-4.24.16"
     a="64"
  else
  else
     FMODFILE="libfmodex-4.24.16"
     a=""
  fi && \
  fi && \
  sudo cp -v zandronum zandronum.pk3 skulltag_actors.pk3 \
  sudo cp -v zandronum zandronum.pk3 skulltag_actors.pk3 \
  liboutput_sdl.so zandronum-server $FMODFILE.so /usr/games/zandronum
  liboutput_sdl.so zandronum-server libfmodex"$a"-4.24.16.so /usr/games/zandronum


: Make zandronum script, add executable permission and copy it to /usr/bin:
: Make zandronum script, add executable permission and move it to /usr/bin:
  cd /tmp && \
  cd /tmp && \
  echo '#!/bin/sh' > zandronum && \
  echo '#!/bin/sh' > zandronum && \
Line 114: Line 107:
  echo 'exec /usr/games/zandronum/zandronum "$@"' >> zandronum && \
  echo 'exec /usr/games/zandronum/zandronum "$@"' >> zandronum && \
  chmod 755 zandronum && \
  chmod 755 zandronum && \
  sudo cp -v zandronum /usr/bin && \
  sudo mv -v zandronum /usr/bin
rm -fv zandronum


: Make zandronum-server script, add executable permission and copy it to /usr/bin:
: Make zandronum-server script, add executable permission and move it to /usr/bin:
  cd /tmp && \
  cd /tmp && \
  echo '#!/bin/sh' > zandronum-server && \
  echo '#!/bin/sh' > zandronum-server && \
Line 123: Line 115:
  echo 'exec /usr/games/zandronum/zandronum-server "$@"' >> zandronum-server && \
  echo 'exec /usr/games/zandronum/zandronum-server "$@"' >> zandronum-server && \
  chmod 755 zandronum-server && \
  chmod 755 zandronum-server && \
  sudo cp -v zandronum-server /usr/bin && \
  sudo mv -v zandronum-server /usr/bin
rm -fv zandronum-server


: Now from a terminal you should be able to execute '''zandronum''' or '''zandronum-server''' from any user account.
: Now from a terminal you should be able to execute '''zandronum''' or '''zandronum-server''' from any user account.


=== Remove System-Wide Installation ===
=== Remove System-Wide Installation ===
: Remove /usr/games/zandronum directory and all its files:
: Remove /usr/games/zandronum directory and all its files:
  cd /usr/games && \
  cd /usr/games && \
Line 143: Line 133:


= Troubleshooting =
= Troubleshooting =
'''If you received the error :  "zandronum: error while loading shared libraries: libsnes_spc.so: cannot open shared object file: No such file or directory" :'''
'''If you received the error :  "zandronum: error while loading shared libraries: libsnes_spc.so: cannot open shared object file: No such file or directory" :'''


Line 272: Line 261:
Open a terminal, go to your user home directory and verify if the .drirc file already exist:
Open a terminal, go to your user home directory and verify if the .drirc file already exist:
<pre>
<pre>
cd $HOME
cd "$HOME"
ls -la
ls -la
</pre>
</pre>
Line 307: Line 296:
Remove .drirc:
Remove .drirc:
<pre>
<pre>
cd $HOME
cd "$HOME"
rm -fv .drirc
rm -fv .drirc
</pre>
</pre>
Line 325: Line 314:
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]]
20

edits