Hi all,
How do I run a dedicated server on a COS box of the following games and how do I set it up so they run after a reboot ... ?!?
I would like to migrate them from my extra Windows game server to my COS box, because it runs 24/7 anyway.
I downloaded the above and put it in a Flexshare.
I am not so familiar with the command line.
This did not help, because for unknown reasons I was unable to download the containers on my virtualbox test version of COS:
Create and run executable scripts
Please advice,
John
How do I run a dedicated server on a COS box of the following games and how do I set it up so they run after a reboot ... ?!?
Warsow 2.1.2
Xonotic 0.8.5
Urban Terror 4.3.4
Unreal Tournament 2004 demo 3334
I would like to migrate them from my extra Windows game server to my COS box, because it runs 24/7 anyway.
I downloaded the above and put it in a Flexshare.
I am not so familiar with the command line.
This did not help, because for unknown reasons I was unable to download the containers on my virtualbox test version of COS:
Create and run executable scripts
Please advice,
John
Share this post:
Responses (21)
-
Accepted Answer
After this post, I investigated some more into getting Xonotic 0.8.5 running, but I need some help figuring it out.
# yum install conda
...
# yum install git
...
This did not work:
gdc-client-install-centos6-conda.sh
# ./gdc-client-install-centos6-conda.sh
...
Adding gdc-client v1.6.1 to easy-install.pth file
Installing gdc-client script to /usr/bin
Installed /usr/lib/python2.7/site-packages/gdc_client-v1.6.1-py2.7.egg
Processing dependencies for gdc-client==v1.6.1
Finished processing dependencies for gdc-client==v1.6.1
Neither was I able to finish this:
gdc-client CentOS 7
# cd /usr
# python3 -m venv virtual-env
...
# source virtual-env/bin/activate
...
# conda create -n gdc_python3 python=3.6.8 libxml2 libxslt libffi gcc six requests progressbar2 intervaltree termcolor jsonschema pyyaml lxml
...
# conda activate gdc_python3
...
# conda install -c psi4 gcc-5
...
# git clone https://github.com/NCI-GDC/gdc-client
...
# cd gdc-client
# /usr/virtual-env/bin/python -m pip install --upgrade pip
Cache entry deserialization failed, entry ignored
Collecting pip
Using cached https://files.pythonhosted.org/packages/a4/6d/6463d49a933f547439d6b5b98b46af8742cc03ae83543e4d7688c2420f8b/pip-21.3.1-py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 9.0.3
Uninstalling pip-9.0.3:
Successfully uninstalled pip-9.0.3
Successfully installed pip-21.3.1
You are using pip version 21.3.1, however version 22.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
# /usr/virtual-env/bin/python -m pip install -r requirements.txt
...
# /usr/virtual-env/bin/python -m pip install --ignore-installed PyYAML
Installing collected packages: PyYAML
Successfully installed PyYAML-6.0
# /usr/virtual-env/bin/python setup.py install
...
Processing dependencies for gdc-client==1.6.1
Finished processing dependencies for gdc-client==1.6.1
# /usr/virtual-env/bin/python -m pip install -r dev-requirements.txt
...
Attempting uninstall: jsonschema
Found existing installation: jsonschema 2.6.0
Uninstalling jsonschema-2.6.0:
Successfully uninstalled jsonschema-2.6.0
Attempting uninstall: cryptography
Found existing installation: cryptography 2.8
Uninstalling cryptography-2.8:
Successfully uninstalled cryptography-2.8
Running setup.py install for atomicwrites ... done
...
# cd /usr/virtual-env/bin
Here I get into trouble, because I am unable to obtain a token by login and I can only download the gdc-client for Ubuntu, but I need it for CentOS.
Download the latest manifest.
# ./gdc-client download -m gdc_manifest.2022-11-20.txt -t gdc-user-token.~~~~~_chmod.txt --log-file LOG_FILE.txt
...
Please advice.References:
- https://portal.gdc.cancer.gov/legacy-archive/search/f
- https://biohpc.tistory.com/499
- https://gist.github.com/sbamin/7f33b26198a00ad6846d124b8ba8d2b4
- https://myitsm.nih.gov/kb_view_customer.do?sysparm_article=KB0018332
- https://gdc.cancer.gov/access-data/gdc-data-transfer-tool
- https://docs.gdc.cancer.gov/Data_Transfer_Tool/Users_Guide/Preparing_for_Data_Download_and_Upload/
- https://rampages.us/vcucctrbioinformatics/wp-content/uploads/sites/24649/2017/07/GDCDataPortalNavigation_7-20-17.pdf
-
Accepted Answer
Hi all,
All 4 game servers are up and running ...
2 of them I still have to start manually, because I can't make a service out of them, so I start them like this:
screen -m -d -S UrT-Server sh ~/urbanterror43/start.sh
screen -m -d -S UT2K4-Server sh /usr/local/games/ut2004demo/System/runserver.sh
Please advice, so I can mark this thread as resolved.
EDIT:
I figured it out ...
Only absolute paths are accepted in a service.
/usr/local/games/ut2004demo/System/runserver.sh:
#!/bin/bash
cd /usr/local/games/ut2004demo/System
ucc-bin server ONS-Torlan?game=Onslaught.ONSOnslaughtGame ini=ut2004.ini -nohomedir
/root/urbanterror43/start.sh
#!/bin/bash
~/urbanterror43/Quake3-UrT-Ded.x86_64 +set fs_game q3ut4 +set fs_basepath ~/urbanterror43/ +set fs_homepath ~/urbanterror43/ +set dedicated 2 +set net_port 27960 +set com_hunkmegs 128 +exec server.cfg -
Accepted Answer
Hi all,
I searched some more forums and I think I may have found a solution for all 4 games, but I need some specific ClearOS knowledge to be able to mark this case as resolved.
Xonotic was a settings problem that started because I set it up in the same way I setup my standalone Windows game server.
When running it from a gateway the following setting should be applied, otherwise it crashes after the first map:
net_address 0.0.0.0
-==========-
Urban Terror works now to. Not sure what the cause was, but after following these instructions I was able to connect to it and it is listed now:
Linux Server Install
The problem that remains is how to make a service of it, so I can start it at boot time.
The contents of urt.service:
[Unit]
Description=UrT
After=network.target
[Service]
Type=simple
ExecStart=~/urbanterror43/start.sh
[Install]
WantedBy=multi-user.target
When I enable & start it the following happens:
# systemctl enable urt.service
Created symlink from /etc/systemd/system/default.target.wants/urt.service to /usr/lib/systemd/system/urt.service.
# systemctl start urt.service
Failed to start urt.service: Unit is not loaded properly: Invalid argument.
See system logs and 'systemctl status urt.service' for details.
All I could find was this post, but that did not help:
CentOS / RHEL 7 : How to create custom script to run automatically during boot
I only know how to start it like this:
sh ~/urbanterror43/start.sh
-==========-
Unreal Tournament 2004 demo needs an older version of "libstdc++.so.5".
I downloaded it from here:
[SOLVED] UT2004 on -current: libstdc++.so.5 is missing
Please advice. -
Accepted Answer
Warsow 2.1 is the only dedicated server I have up and running now.
Snap only installs software on a read-only part of the disk, so AFAIK it's not suitable for running a game server.
I downloaded Xonotic 0.8.2 and unpacked it here (0.8.5 does not run on a COS box):
/usr/games/xonotic-0.8.2
Copy "server_linux.sh" to the root of the Xonotic folder.
Edit "server.cfg" & copy it to the data folder of Xonotic.
cp /usr/games/xonotic-0.8.2/data/server.cfg ~/.xonotic/data
Make "server_linux.sh" executable and run it with:
/usr/games/xonotic-0.8.2/server_linux.sh start
It starts successfully, but after the first map ends, the program crashes.
Segmentation fault
I was able to connect to it from a client successfully.
I cant find the log files and I don't know how to continue troubleshooting.
-==========-
I downloaded UrT-4.3.4 and unzipped it to the following:
/usr/games/urt-4.3.4/
Make "Quake3-UrT-Ded.x86_64" executable and edit server.cfg
# /usr/games/urt-4.3.4/Quake3-UrT-Ded.x86_64 start
ioQ3 1.35 urt 4.3.4 linux-x86_64 Jun 7 2018
----- FS_Startup -----
Current search path:
/root/.q3a/q3ut4
/root/.q3a/q3ut4/download
/usr/games/urt-4.3.4/q3ut4/zUrT43_qvm.pk3 (4 files)
/usr/games/urt-4.3.4/q3ut4/zUrT43_021.pk3 (85 files)
...
/usr/games/urt-4.3.4/q3ut4/download/boxen.pk3 (143 files)
/usr/games/urt-4.3.4/q3ut4/download
----------------------
20081 files in pk3 files
execing default.cfg
execing q3config.cfg
execing autoexec.cfg
execing s.cfg
execing bot.cfg
Hunk_Clear: reset the hunk ok
--- Common Initialization Complete ---
Opening IP socket: localhost:27960
Hostname: ########.clearos.lan
IP: 192.168.#.#
Started tty console (use +set ttycon 0 to disable)
Version 4.3.3 has the same problem:
# /usr/games/urt-4.3.3/Quake3-UrT-Ded.x86_64 start
ioQ3 1.35 urt 4.3.3 linux-x86_64 Feb 28 2018
----- FS_Startup -----
Current search path:
/root/.q3a/q3ut4
/root/.q3a/q3ut4/download
/usr/games/urt-4.3.3/q3ut4/zUrT43_qvm.pk3 (4 files)
/usr/games/urt-4.3.3/q3ut4/zUrT43_021.pk3 (85 files)
...
/usr/games/urt-4.3.3/q3ut4/ut4_jumpents.pk3 (8 files)
/usr/games/urt-4.3.3/q3ut4
/usr/games/urt-4.3.3/q3ut4/download
----------------------
10578 files in pk3 files
execing default.cfg
execing q3config.cfg
couldn't exec autoexec.cfg
Hunk_Clear: reset the hunk ok
--- Common Initialization Complete ---
Opening IP socket: localhost:27960
Hostname: ########.clearos.lan
IP: 192.168.#.#
Started tty console (use +set ttycon 0 to disable)
Put this in "start.sh" to make it start again when it crashed:
#!/bin/bash
while true
do
/usr/games/urt-4.3.4/Quake3-UrT-Ded.x86_64 +set fs_game q3ut4 +set fs_basepath /usr/games/urt-4.3.4 +set fs_homepath /usr/games/urt-4.3.4 +set dedicated 2 +set net_port 27960 +set com_hunkmegs 128 +exec s.cfg
echo "server crashed on `date`" > last_crash.txt
done
The problem that remains is how to get it listed and how to connect with it from a client.
On Windows I start a dedicated server after booting the game on the desktop, because I had the same problem there.
-==========-
Unreal Tournament 2004 demo installs successfully.
I located the files here:
/usr/local/games/ut2004demo
I created "runserver.sh":
ucc-bin server CTF-BridgeOfFate?game=XGame.xCTFGame ini=ut2004.ini -nohomedir
When I run it I get the following error message:
# ./runserver.sh
./runserver.sh: line 1: ucc-bin: command not found
After I copied "ucc-bin" to "/usr/bin/" I received the following error:
# ./runserver.sh
ucc-bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
I was unable to uninstall:
# /usr/local/games/ut2004demo/uninstall start
Product: Unreal Tournament 2004 Demo
Installed in /usr/local/games/ut2004demo
Unable to find component start
Please advice.References:
-
Accepted Answer
# snap install xonotic
2022-10-26T00:32:16+02:00 INFO Waiting for automatic snapd restart...
error: cannot perform the following tasks:
- Run configure hook of "xonotic" snap if present (run hook "configure": cannot create cgroup hierarchy /sys/fs/cgroup/freezer/snap.xonotic: Read-only file system)
# snap --version
snap 2.55.3-1.el7
snapd 2.55.3-1.el7
series 16
clearos 7
kernel 3.10.0-1160.71.1.el7.x86_64
# echo $PATH
/usr/clearos/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/var/lib/snapd/snap/bin:/root/bin
# cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.10.0-1160.71.1.el7.x86_64 root=/dev/mapper/clearos-root ro rd.lvm.lv=clearos/swap crashkernel=auto rd.lvm.lv=clearos/root rd.dm.uuid=sil_ddagdfbiafci rhgb quiet LANG=en_US.UTF-8
# /usr/games/xonotic-0.8.2/xonotic-linux64-dedicated start
Game is Xonotic using base gamedir data
gamename for server filtering: Xonotic
Xonotic Linux 22:03:50 Mar 31 2017 - release
Current nice level is below the soft limit - cannot use niceness
Skeletal animation uses SSE code path
couldn't exec quake.rc
couldn't exec default.cfg
couldn't exec config.cfg
couldn't exec autoexec.cfg
SpawnServer: no map file named maps/start.bsp -
Accepted Answer
How do I reverse this process ... ?!?
ln -s /var/lib/snapd/snap /snap
It seems that something broke and I don't know how to fix it.
I am unable to reinstall Xonotic.
Ps.
Xonotic 0.8.5 is the latest version but the previous installer uses 0.8.2
Edit:
The following removes the link:
# unlink /snap
# systemctl disable --now snapd.socket
# yum remove snapd
This version of glibc is installed:
Package glibc-2.17-326.el7_9.x86_64
When attempting to start version 0.8.5 I get the following errors:
# ./xonotic-linux64-dedicated
./xonotic-linux64-dedicated: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by ./xonotic-linux64-dedicated)
./xonotic-linux64-dedicated: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by ./xonotic-linux64-dedicated)
./xonotic-linux64-dedicated: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by ./xonotic-linux64-dedicated)
./xonotic-linux64-dedicated: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by ./xonotic-linux64-dedicated)
./xonotic-linux64-dedicated: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by ./xonotic-linux64-dedicated)
./xonotic-linux64-dedicated: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by ./xonotic-linux64-dedicated)
# snap install xonotic
2022-10-26T00:32:16+02:00 INFO Waiting for automatic snapd restart...
error: cannot perform the following tasks:
- Run configure hook of "xonotic" snap if present (run hook "configure": cannot create cgroup hierarchy /sys/fs/cgroup/freezer/snap.xonotic: Read-only file system) -
Accepted Answer
Thanks ... that helped a lot.
I didn't have the time yet to search for a solution for Xonotic, but thanks for that to.
I was eventually able to get listed with Warsow but I screwed up the install of Xonotic, by not logging out before the install ...
When I looked at my CPU usage, I saw that Warsow leveled-out at almost 70% so I think I will have to upgrade my hardware.
First I will have to decide what OS I will be able to run on it, if not COS.
For now my separate Windows game server will have to do.
Edit:
How do I reinstall Xonotic ... ?!?
snap remove xonotic
Edit II:
My COS box just needed a reboot ... now the CPU usage is minimal.
Edit III:
How do I edit the config file:
# mv server.cfg server.cfg.bak
mv: cannot move ‘server.cfg’ to ‘server.cfg.bak’: Read-only file system
Only the Xonotic subdirectories are busy ...
# umount -a
umount: /var/lib/snapd/snap/xonotic/64: target is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount: /: target is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount: /sys/fs/cgroup/systemd: target is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount: /sys/fs/cgroup: target is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount: /run: target is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount: /dev/shm: target is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount: /dev: target is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
[root@clearos server]# mount -a
mount: /dev/sda1 is already mounted or /boot busy -
Accepted Answer
John wrote:
Next project is Xonotic.
Please advice.
Google is your friend:
See https://snapcraft.io/install/xonotic/centos
After install start the package with:
/var/lib/snapd/snap/xonotic/64/Xonotic/xonotic-linux-dedicated.sh
If this is working then make a start service -
Accepted Answer
Try this
Make a new file warsow.server in /usr/lib/systemd/system
Place this in warsow.server
[Unit]
Description=Warsow
After = network.target
[Service]
Type=simple
ExecStart=/usr/bin/warsow-server
[Install]
WantedBy=multi-user.target
systemctl enable warsow.service
systemctl startwarsow.service
-
Accepted Answer
Thanks ... that did it.
Now I have a Warsow dedicated server up and running on my COS box.
It may take some time before it is listed, but at least it's running now.
Now I would like to know how to start it at boot.
Next project is Xonotic.
Please advice.
Edit:
I have disabled the port forwarding rules for Warsow (to my old game server) and enabled the open ports.
I also edited "/usr/share/warsow/basewsw/dedicated_autoexec.cfg" and changed the ip address to the COS box internal IP (192.168.#.#), but it is never listed.
Killing and restarting "warsow-server" did not solve the issue either.
When I close the PuTTY window, I started it in, the process is killed as well. -
Accepted Answer
John wrote:
The only VM that I understand is VirtualBox, but that disk is full, so I cannot install anything on it.
The only thing I could find about starting a Warsow server is this link, but I cannot find "wsw_server" on my COS.
Did you install : yum install warsow-server ??
and then run : /usr/bin/warsow-server
This will start the server.
You only need to do the configuration -
Accepted Answer
The only VM that I understand is VirtualBox, but that disk is full, so I cannot install anything on it.
The only thing I could find about starting a Warsow server is this link, but I cannot find "wsw_server" on my COS. -
Accepted Answer
Try :
yum install warsow-server
/usr/bin/warsow-server
* Initializing Game module syntax
------- Server Initialization -------
SpawnServer: wca1
G_LoadGameScript: Couldn't find 'progs/maps/wca1.mp'.
-------------------------------------
Initalizing 'ca' gametype
loading configs/server/gametypes/ca.cfg
ca.cfg executed
* Initializing script 'progs/gametypes/ca.gt'
* Loaded script section 'progs/shared/constants.as'
* Loaded script section 'progs/shared/utils.as'
* Loaded script section 'progs/shared/files.as'
* Loaded script section 'progs/gametypes/generic/quickmenu.as'
* Loaded script section 'progs/gametypes/generic/matchstates.as'
* Loaded script section 'progs/gametypes/generic/bots.as'
* Loaded script section 'progs/gametypes/generic/awards.as'
* Loaded script section 'progs/gametypes/ca.as'
* Loaded script section 'progs/gametypes/legacy/quake1.as'
Gametype 'Clan Arena' initialized
: AI Navigation Initialized.
-------------------------------------
-
Accepted Answer
John wrote:
I was hoping to save on my energy bill by using 1 server that does it all, instead of a separate game server.
The idea of switching to another distro makes me feel sick, because I am a real Linux noob and I have invested so much in COS already.
Before the lights go out I would like to know and understand how I can run these 2 game servers on COS.
Please advice.
It looks that is should be possible.
Now to find out to get it working. I'll give a try on a VM these days.
Did you also tried on the forum of the specific games ?
Maybe there are people who did installed it succesfully -
Accepted Answer
I was hoping to save on my energy bill by using 1 server that does it all, instead of a separate game server.
The idea of switching to another distro makes me feel sick, because I am a real Linux noob and I have invested so much in COS already.
Before the lights go out I would like to know and understand how I can run these 2 game servers on COS.
Please advice. -
Accepted Answer
ClearOS is a poor platform for a Game Server. ClearOS is using out-of-date software, insecure and very old rpm versions of software. If you must use linux investigate using a distribution which is being updated in all aspects, that has much better support and provides a better platform for your requirements.
As an alternative, since you seem to have these games running under windows OK, install windows in a VM running on a linux host and install the windows game software you are already familiar with and employing. -
Accepted Answer
Here some feedback:
# yum install warsow.service
Loaded plugins: clearcenter-marketplace, fastestmirror
ClearCenter Marketplace: fetching repositories...
Loading mirror speeds from cached hostfile
* clearos: mirror2-amsterdam.clearos.com
* clearos-centos: download1.clearsdn.com
* clearos-centos-sclo-rh: download1.clearsdn.com
* clearos-centos-updates: download1.clearsdn.com
* clearos-contribs: mirror2-amsterdam.clearos.com
* clearos-contribs-paid: mirror2-amsterdam.clearos.com
* clearos-epel: download1.clearsdn.com
* clearos-fast-updates: download1.clearsdn.com
* clearos-infra: mirror2-amsterdam.clearos.com
* clearos-paid: mirror2-amsterdam.clearos.com
* clearos-updates: mirror2-amsterdam.clearos.com
* private-clearcenter-plex: download1.clearsdn.com:80
No package warsow.service available.
Error: Nothing to do
# locate warsow.service
#
# systemctl start /usr/bin/warsow
Failed to start usr-bin-warsow.mount: Unit not found.
# /usr/bin/warsow start
gbm: failed to open any driver (search paths /usr/lib64/dri)
gbm: Last dlopen error: /usr/lib64/dri/i965_dri.so: cannot open shared object file: No such file or directory
failed to load driver: i965
gbm: failed to open any driver (search paths /usr/lib64/dri)
gbm: Last dlopen error: /usr/lib64/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory
failed to load driver: kms_swrast
gbm: failed to open any driver (search paths /usr/lib64/dri)
gbm: Last dlopen error: /usr/lib64/dri/swrast_dri.so: cannot open shared object file: No such file or directory
failed to load swrast driver
On Windows there is a separate executable for starting a dedicated server, but I cannot find that on my COS for Linux with "locate warsow".
Please assist. -
Accepted Answer
-
Accepted Answer
I successfully installed Warsow with the following command:
yum install warsow
But I don't know where it was installed (to edit "dedicated_autoexec.cfg") and how to start a dedicated server from boot.
Please advice.
[Edit]
I found "dedicated_autoexec.cfg" in /usr/share/warsow/basewsw
I also discovered to run a program you need to make it executable and run it by "./(program)".
But I still don't know how to run a dedicated server, because I don't know where the program is located.
After running "warsow" in /usr/bin, the screensaver of my COS box stopped working.
I discovered several files that could be executable for Xonotic, but when I run them I either get an error message or nothing happens.
Either way I cannot find "xonotic" in the Process Viewer. -
Accepted Answer
Thanks for replying.
I didn't understand the most of your post & link, but it looks like at least 2 out of 4 are possible ...
The question that remains is how ... ?!? ... because I don't know how to ...
run a game on my COS box
I would also like instructions on how to run it when rebooting.
install and run the Warsow RPM
start Xonotic afer I unpacked it on a Flexshare
Please advice -
Accepted Answer
Not sure what you try to achive, but copying the games on Flexshare will not make it a game server.
You need to run it on your COS and the connect it from your PC
I saw for example Warsow there is an RPM available which makes the installation very easy
https://rhel.pkgs.org/7/epel-x86_64/warsow-data-2.1.2-1.el7.noarch.rpm.html
Fox Xonotic it looks like you just need to unpack the game and start it.
Looks like it is not a server package
This should be possible on a flexshare
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »