
In this example the user is called "minecraft". Use the following command: adduser -disabled-login minecraft. Now add a user who will run the Minecraft Server on your Linux server.Use the following command for the installation: apt install screen -y You'll need this to let the Minecraft server run in the background later, so you can close the PuTTY window without causing the Minecraft server to stop. Accept the license terms by selecting the " OK" button using the Tab key, confirming the selection with Enter, selecting the " Yes" button using the arrow keys, and then pressing Enter again.Install Java with the following command: apt install oracle-java17-installer -y.Now update your package lists again with the command apt update.Add the repository by executing the command add-apt-repository ppa:linuxuprising/java.Install the package for managing repositories using the following command: apt install software-properties-common -y.Add the repository by executing the command echo "deb focal main" | tee /etc/apt//java.list.Use the command apt-key adv -keyserver hkp://:80 -recv-keys 73C3DB2A to add the key needed for the Java repository.Add the repository needed to install Java:.Next, install the packages needed for future installations in this tutorial by executing the following command: apt install gnupg curl dirmngr nano unzip -y.Now install any available updates of the packages already installed on your server using the command apt upgrade -y.Update your package lists with the command apt update.To do this, open PuTTY and enter the domain or IP address of your server in the text box named "Host Name (or IP address)".




