Page 1 of 1

How to install cod4x on ubuntu 18.04

Posted: 30 Apr 2020 18:55
by Gen Stranger
the easiest method I found was by the use of LinuxGSM (Linux Game Server Managers)

start off my using root access to your ubuntu and create a user
this example will use cod4server as a user

sudo adduser cod4server
add cod4server to sudo
sudo usermod -aG sudo cod4server
su - cod4server
change to cod4server directory
cd /home/cod4server
execute the command below
the https has been printed as h ttps for this post
wget -O linuxgsm.sh h ttps://linuxgsm.sh && chmod +x linuxgsm.sh && bash linuxgsm.sh cod4server
if you get the error [ FAIL ] Curl is not installed
use
sudo apt-get install curl
then run this again
wget -O linuxgsm.sh h ttps://linuxgsm.sh && chmod +x linuxgsm.sh && bash linuxgsm.sh cod4server
it will take a long time and look as if it will error a lot but just let it go it will complete

when all is finished run
./cod4server install

you should now have a cod4x server running just edit the server config and your ready to go
to learn about modes and usermaps see post viewtopic.php?f=246&t=5526
the mods and usermap section is the same for both windows and ubuntu

Re: How to install cod4x on ubuntu 18.04

Posted: 17 Oct 2021 13:34
by Gen Stranger
what to do in case the download of linuxgsm.sh fails using wget -O linuxgsm.sh h ttps://linuxgsm.sh && chmod +x linuxgsm.sh && bash linuxgsm.sh cod4server
first download this copy of linuxgsm.sh
linuxgsm.sh
in case command fails
(18.21 KiB) Downloaded 824 times
linuxgsm.sh
in case command fails
(18.21 KiB) Downloaded 824 times
place it in the cod4server directory then run
chmod +x linuxgsm.sh && bash linuxgsm.sh cod4server

then ./cod4sever install

Re: How to install cod4x on ubuntu 18.04

Posted: 17 Oct 2021 14:28
by Gen Stranger
there is an error in the server config
its
set sv_nosteamnames 1 // 1 = Use names from steam if steam is available

the proper format is

set sv_nosteamnames 0 // 0 = Use names from steam if steam is available