[Qiita] LinuxのTeamSpeak3サーバーをアップデートする

※この記事は以前Qiitaに投稿されていた古い記事です


はじめに

僕が友人に頼まれて管理しているTeamSpeak3(TS3)サーバーがあるのですが、最近TS3がアップデートされたらしく、クライアントをアップデートすると次のようなエラーが出てしまい、サーバーもアップデートしてあげないと接続できないようになってしまったようです。

server version is too old for command

というわけで、Linuxで稼働しているTS3サーバーをアップデートする方法をメモとして残しておきます。

TS3のサーバーアプリケーションが入っているディレクトリに移動する

cd /bin/ts3

バックアップを取る

cp -p -R teamspeak3-server_linux-amd64 teamspeak3-server_linux-amd64.2018-08-15

サーバーアプリケーションをダウンロード

次のURLから最新のサーバーアプリケーションのダウンロードリンクをコピーしてサーバーにダウンロードする
https://www.teamspeak.com/en/downloads#server

wget http://dl.4players.de/ts/releases/3.3.0/teamspeak3-server_linux_amd64-3.3.0.tar.bz2

解凍

解凍すると同じディレクトリ名で出てきちゃうので一旦別ディレクトリに移してから解凍する

mkdir teamspeak3-server_linux-amd64-3.3.0
mv teamspeak3-server_linux_amd64-3.3.0.tar.bz2 teamspeak3-server_linux-amd64-3.3.0/
cd teamspeak3-server_linux-amd64-3.3.0/
tar xf teamspeak3-server_linux_amd64-3.3.0.tar.bz2

tar.bz2は用済みなので消す

rm -f teamspeak3-server_linux_amd64-3.3.0.tar.bz2

アップデート時に不要なディレクトリを消す

cd /bin/ts3/teamspeak3-server_linux-amd64
rm -rf sql

既存のファイルに上書き

\cp -p -r -f teamspeak3-server_linux-amd64-3.3.0/teamspeak3-server_linux_amd64/* teamspeak3-server_linux-amd64/

ライセンスに同意する

ダウンロードしたts3のディレクトリの中にLICENSEファイルがあるので、それを確認して問題なければ同じディレクトリに次のコマンドを打ってライセンスに同意したことを示す。

touch .ts3server_license_accepted

ちなみにライセンスに同意せずに起動するとこんなメッセージが出てくるので必ず同意しましょう。

Please set the environment variable TS3SERVER_LICENSE to "accept" in order to accept the license agreement.
Alternatively, create a file named ".ts3server_license_accepted" in the working directory or start the server with the command line parameter "license_accepted=1".
To view the license agreement set TS3SERVER_LICENSE to "view" in order to print the license to the console.
Alternatively view the file "LICENSE" in your favorite text viewer yourself.
TeamSpeak 3 server could not start

起動

su teamspeak -c "sh /bin/ts3/teamspeak3-server_linux-amd64/ts3server_startscript.sh start"

こんな感じのメッセージが出てきて、無事にサーバーに接続できればアップデート完了!

Starting the TeamSpeak 3 server
TeamSpeak 3 server started, for details please view the log file


コメント

人気の投稿

[Qiita] Google Playのクローズドベータ版テストでメールアドレスを指定して公開する

[Qiita] Androidの実機でPCのlocalhostに接続したり、Webページの要素を検証する

[Qiita] AppCompatのAlertDialogのテーマカラーを変える