How to Install Minecraft on Ubuntu or Any Other Linux Distribution

How to Install Minecraft on Ubuntu or Any Other Linux Distribution

To install Minecraft on Ubuntu or any other Linux distribution, follow these steps:

Step 1: Install Java

Minecraft requires Java to run. If you don’t have Java installed on your system, install it using the following command:

sudo apt install openjdk-11-jre

Step 2: Download Minecraft

You can download Minecraft from the official website at https://www.minecraft.net/en-us/download/. Select the Linux version of the game and download the .tar.gz file.

Step 3: Extract Minecraft

Extract the downloaded .tar.gz file to a directory of your choice using the following command:

tar -zxvf minecraft.tar.gz

Step 4: Run Minecraft

To run Minecraft, go to the directory where you extracted the game and run the following command:

java -jar minecraft.jar

If you encounter any issues running Minecraft, you may need to allocate more memory to Java. You can do this by running the following command:

java -Xmx2G -jar minecraft.jar

This will allocate 2GB of memory to Java. You can adjust the amount of memory by changing the value after -Xmx to the desired amount.

And that’s it! You should now be able to play Minecraft on your Linux system.

Al Mahbub Khan
Written by Al Mahbub Khan Full-Stack Developer & Adobe Certified Magento Developer