Crafty ControllerでMinecraft Serverを構築する
使用Linux
Ubuntu 22.04
この記事は、Ubuntuをインストール&起動&初期設定が終わり
メインアカウントにSUDO権利が付与してある状態で始めて下さい
SUDO権利などは各自で検索して調べて下さい
SUDOコマンドが使えるユーザーでログイン
専用ユーザーの作成
$ sudo useradd crafty
$ sudo passwd crafty
アップデート&Gitのインストール
$ sudo apt update && sudo apt upgrade && sudo apt install git
作業ディレクトリの作成
$ mkdir crafty
リポジトリのクローン
$ git clone https://gitlab.com/crafty-controller/crafty-installer-4.0.git
インストールスクリプト実行
$ cd crafty-installer-4.0
$ sudo ./install_crafty.sh
インストールスクリプトを実行すると、基本的な依存パッケージが導入されます。
01 OS検出
![](https://assets.st-note.com/img/1723197844341-IssKCsefkY.png?width=1200)
02 インストールディレクトリの作成
![](https://assets.st-note.com/img/1723197885137-cMteKF1pmo.png?width=1200)
03 アクセス権の承認
![](https://assets.st-note.com/img/1723197926612-TTe8scQk1f.png?width=1200)
04 導入ブランチの選択
![](https://assets.st-note.com/img/1723197962759-0AlsauTEbr.png?width=1200)
05 サービスの作成
systemdユニットファイルを作成し、Ubuntuを起動時に自動実行するか否か
![](https://assets.st-note.com/img/1723198072382-jZvye1rOlj.png?width=1200)
5で Y を選択した場合、ここで自動起動を有効化しておきます。
$ sudo systemctl enable crafty.service
$ sudo systemctl start crafty.service
以上でインストールは終わりです。
ログイン
https://サーバーのIP:8443
にアクセスすると、ログイン画面が出てきます。
ID と PASS はサーバーのコンソールで
$ sudo cat /var/opt/minecraft/crafty/crafty-4/app/config/default-creds.txt
で確認出来ます。
以上でCrafty Controllerのインストールが完了です。
サーバーの作成や起動と停止などの操作は出来ますが MOD の導入は
サーバーコンソールからコマンドでやらないと出来ません
次回は、MODの導入の作成を考えてますので記事が出来次第投稿します。