LinuxGSMで楽々cscz hlds server
今更???hlds???
[opc@instance-20210826-2023 ~]$ sudo yum install git [opc@instance-20210826-2023 ~]$ sudo yum install tmux nmap glibc libstdc++-devel.aarch64 [opc@instance-20210826-2023 ~]$ sudo useradd -d /home/cscz cscz
[opc@instance-20210826-2023 ~]$ sudo su - cscz [cscz@instance-20210826-2023 ~]$ git clone https://github.com/GameServerManagers/LinuxGSM.git [cscz@instance-20210826-2023 ~]$ cd LinuxGSM/ [cscz@instance-20210826-2023 LinuxGSM]$ ls CODE_OF_CONDUCT.md CONTRIBUTING.md lgsm LICENSE linuxgsm.sh README.md tests [cscz@instance-20210826-2023 LinuxGSM]$ ./linuxgsm.sh csczserver Installed Counter-Strike: Condition Zero server as csczserver ./csczserver install [cscz@instance-20210826-2023 LinuxGSM]$ ./csczserver Usage: ./csczserver [option] LinuxGSM - Counter-Strike: Condition Zero - Version v21.2.5 https://linuxgsm.com/csczserver Commands start st | Start the server. stop sp | Stop the server. restart r | Restart the server. monitor m | Check server status and restart if crashed. test-alert ta | Send a test alert. details dt | Display server information. postdetails pd | Post details to termbin.com (removing passwords). skeleton sk | Create a skeleton directory. update-lgsm ul | Check and apply any LinuxGSM updates. update u | Check and apply any server updates. force-update fu | Apply server updates bypassing check. validate v | Validate server files with SteamCMD. check-update cu | Check if a gameserver update is available backup b | Create backup archives of the server. console c | Access server console. debug d | Start server directly in your terminal. send sd | Send command to game server console. install i | Install the server. auto-install ai | Install the server without prompts. developer dev | Enable developer Mode. donate do | Donation options.
[cscz@instance-20210826-2023 LinuxGSM]$ mkdir log [cscz@instance-20210826-2023 LinuxGSM]$ mkdir log/script [cscz@instance-20210826-2023 LinuxGSM]$ chmod +x ./lgsm/functions/*.sh [cscz@instance-20210826-2023 LinuxGSM]$ ./csczserver install
で、ここまでいけばふつうは動くのだが、動かないのである
なぜか? arm向けhlds server binaryがないためである。
rehlds-armという怪しい製品が見つかったがライセンス的に怪しそうなのでスルーしてubuntuインスタンスをたてる
$ sudo add-apt-repository multiverse $ sudo dpkg --add-architecture i386 $ sudo apt update $ sudo apt install lib32gcc1 steamcmd libsdl2-2.0-0:i386
ubuntu@instance-20210918-2200:~$ sudo apt install tmux nmap libglib2.0-dev libstdc++-10-dev git
ubuntu@instance-20210918-2200:~$ sudo apt install unzip binutils jq netcat lib32gcc1 lib32stdc++6 libsdl2-dev ubuntu@instance-20210918-2200:~$ sudo mkdir /home/cscz
ubuntu@instance-20210918-2200:~$ sudo chown cscz:cscz /home/cscz
ubuntu@instance-20210918-2200:~$ sudo su - cscz
$ git clone https://github.com/GameServerManagers/LinuxGSM.git
$ cd LinuxGSM/ $ ./linuxgsm.sh csczserver Installed Counter-Strike: Condition Zero server as csczserver$ mkdir log $ mkdir log/script $ chmod +x ./lgsm/functions/*.sh $ ./csczserver install $ ./csczserver start
これで動くのであとはLinuxGSMのマニュアルを参考に設定を変える
コメント