0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

QNAP NAS TS-253Dを7 days to dieゲームサーバーにしよう。

Last updated at Posted at 2021-04-04

QNAP NAS TS-253Dを7 days to dieのサーバー機に

その手順です。
作業時間はおおよそ15分です。

作業手順

ゲームサーバー側(QNAP NAS)で以下の作業を行います。

  1. QNAPのDockerでUbuntuコンテナを用意
  2. apt-getで必要なライブラリをinstall
  3. SteamCMDをインストール
  4. SteamCMDで7 daysのDedicated Serverをインストール
  5. ゲームの設定(serverconfig.xml)を適当に編集
  6. サーバーを起動

手順1

QNAPのDockerでUbuntuコンテナを用意します。
DockerはQNAPアプリのContainer Stationを使います。

InstallするContainer
Ubuntu DOCKER
The official build of Ubuntu.
Version:18.04

NATは以下を設定します。
左は仮想スイッチ側ポート、右はUbuntu側ポート

 28081 8081 tcp
 28080 8080 tcp
 26902 26902 udp
 26901 26901 udp
 26900 26900 udp
 26900 26900 TCP

手順2

apt-getでライブラリをinstallします。
Container StationのUbuntuのConsole から以下を実行します。

apt-get update
apt-get install vim
apt-get install wget
apt-get install lib32gcc1

手順3

SteamCMDをインストール
Container StationのUbuntuのConsole から以下を実行します。

cd ~
wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz
tar xvzf steamcmd_linux.tar.gz

手順4

SteamCMDでDedicated Serverをインストール
Container StationのUbuntuのConsole から以下を実行します。

./steamcmd.sh
login anonymous
force_install_dir ./7DTDSa19
app_update 294420 -beta latest_experimental
quit

手順5

ゲームの設定(serverconfig.xml)を適当に編集
認証パスワードなどを書き換えておきます。
Container StationのUbuntuのConsole から以下を実行します。

cd ~
cd ./7DTDSa19
vi serverconfig.xml

手順6

サーバーを起動
Container StationのUbuntuのConsole から以下を実行します。

cd ~
cd ./7DTDSa19
./startserver.sh -configfile=serverconfig.xml

クライアント側

7 days to dieで指定する接続先のサーバーのIPアドレスをQNAPのコントロールパネルのネットワークと仮想スイッチで確認しておきます。
クライアントPCからUbuntuコンテナのIPアドレス(10.0.3.x)へpingが通るようにします。
7 days to dieを起動します。
接続手順は以下の通りです。

ゲームに参加->IPに接続
IP:10.0.3.x
ポート:26900
passはserverconfig.xmlで指定したもの
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?