Setup the server version 1.6.4. on Android
Install Termux from the Play Store.
Install AnLinux from F-Droid.
Open AnLinux, swipe from the left to open the navigation drawer, and then click "Dashboard."
Tap the "CHOOSE" button and choose Ubuntu.
Tap the "COPY" button and then tap the "LAUNCH" button. Termux should now open.
Let Termux set itself up if needed. Hold down anywhere in the terminal window for a second, and then choose "PASTE." Hit enter to let it run.
Once it's done, it's time to start Ubuntu. Enter the following commands:
chmod +x start-ubuntu.sh
./start-ubuntu.sh
If it worked, you should see a prompt that looks something like root@localhost:~#.
Now you'll need to install some dependencies. Run the following commands:
apt update
add-apt-repository ppa:openjdk-r/ppa
apt update
apt install openjdk-8-jre
Now you're ready to install Minecraft.
Create a directory mc and go into it
mkdir mc
cd mc
The server and client is available at https://mcversions.net/download/1.6.4
Download the server:
wget https://launcher.mojang.com/v1/objects/050f93c1f3fe9e2052398f7bd6aca10c63d64a87/server.jar
This will download the 1.6.4 Minecraft server JAR.
Or get it from the repo
wget https://gitea.virtonline.eu/2HoursProject/minecraft-1.6.4/src/branch/main/server/server.jar
After downloading the JAR, accept the EULA:
echo eula=true > eula.txt
Finally, run:
java -Xmx1024M -Xms1024M -jar server.jar nogui
The server will create some files. We need to modify server.properties.
Stop the server
stop
Set the server to "offline mode"
Running your server in offline mode allows players to connect without authenticating with the Minecraft session servers. Authenticating with the Minecraft session servers ensures that a player is connecting with a registered and paid Minecraft account. Running your server in offline mode can be useful when there are the Minecraft session servers have problems and prevent players from connecting. However, it introduces security risks, as it allows anyone to use any username to join your server. For example, one would be able to login as any white listed player, or as an op and run all administrator commands.
If you need online mode to be enabled/disabled on your server, change the following setting in server.properties as explained above to true or false as needed:
sed -i 's/online-mode=true/online-mode=false/g' server.properties
See all available server properties at https://help.akliz.net/docs/edit-serverproperties
Start the server again
java -Xmx1024M -Xms1024M -jar server.jar nogui
This will run the Minecraft server with 1GB (1024MB) of RAM. If you want to give it more or less RAM to work with, change the "1024M" number in the -Xmx argument.
Save worlds
save-all
Run the client on Linux
Unpack the archive
tar xvzf client.tgz
Adjust the launch script to your path
sed -i "s#/MY_PATH#${PWD}/minecraft#g" minecraft.sh
Run the script
./minecraft.sh