Crafty
Installation on Debian 11
Terminal Tutorial
Note:- The tutorial was recorded on macOS, which has built-in SSH login in the terminal. If you're using Windows, log in using this guide.
- Save the login details provided in the tutorial.
The video allows you to copy text from the Terminal.
Traditional Tutorial
- Expand to follow the traditional tutorial.
Installation on Debian 11
-
Enter the following command to update packages and install GIT:
apt update && apt upgrade && apt install git
- Clone the Crafty panel from Git and run the installer:
git clone https://gitlab.com/crafty-controller/crafty-installer-4.0.git &&
cd crafty-installer-4.0 &&
./install_crafty.sh
-
When prompted by the installer, confirm the installation of required packages by entering
yand pressing Enter. -
Confirm the installation location of the panel and adjust permissions.
-
Select the master installation by entering
masterand pressing Enter. -
Confirm creating the Crafty service for management.
You should now see detailed information about your installation.
- Log in as the
craftyuser using the commandsu crafty. - Navigate to the Crafty panel directory:
cd /var/opt/minecraft/crafty. - Start the panel using:
./run_crafty.sh. - Open your browser and type:
https://your_server_ip:8443to check if the panel loads. If it does, stop the panel in PuTTY using CTRL + C. - Check the default credentials for the panel with the command:
cat crafty-4/app/config/default-creds.txt. Save these credentials. - Switch back to the root user using:
su root. - Use these two commands to add the panel to autostart and launch it:
systemctl enable crafty.service
systemctl start crafty.service
- Go back to your browser, log in with the credentials, and follow the setup wizard.
Congratulations! The panel is installed!
Changing the Admin Password
-
Click Settings in the top-right corner.
-
On the user list, next to the admin user, select "New Password" and set a new password.
Creating a Server
-
From the left-side panel, select "Servers" and then "Create Server".
-
Choose Minecraft as the server type, select the engine and version, and provide a name.
-
Assign the minimum and maximum RAM and set the server port (25565 by default).
-
Click Build Server and wait for the installation process to complete.
-
Select your server from the list and click Start.
-
Accept the EULA and wait for your server to start.
Note: Minecraft servers version >=1.20.5 require Java 21. It is not installed by default, so the server cannot start. At the end of this guide, you’ll find commands to install Java 21.
Uploading Files
The panel includes a file management section, but sometimes it’s better to upload files using a dedicated program.
-
Log in to SSH as root and change the
craftyuser password:crafty passwd crafty -
Open an SFTP program (e.g., FileZilla, WinSCP) and use the following connection details:
- HostName: Server IP
- User: crafty
- Password: The password you set earlier
- Port: 22
- Navigate to the directory
/var/opt/minecraft/crafty/crafty-4/servers. This is where server files are stored.
If you have multiple servers, check the server's location in the panel.
Server > Config > Server Working Directory
Note: These files can only be modified by the crafty user. Using root or another user may cause significant issues.
Installing Java 21 on Debian 11
- Log in to SSH (as root).
- Download Java 21 with the following command:
wget https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.deb
- Install Java 21:
dpkg -i jdk-21_linux-x64_bin.deb
- Check if Java was installed successfully:
java --version
- Check alternative Java versions installed:
update-alternatives --list java