A basic setup of the web server nginx on kali linux
Note:
You can install nginx the same way in any debian
based distro (Ubuntu, Mint etc)
my site: https://mihkostas.github.io
...
https://www.youtube.com/watch?v=YGtUbtptvbo
run_mcserver.sh script:
#!/bin/bash
java -Xmx1024M -Xms1024M -jar server.jar --nogui --port 1245
Note: This is for a 2GB ram machine, is generally good to allocate half the ram of your system (if you have 8GB then set Xmx and Xms to 4096M )
Download server 1.12.2 jar file:
https://mcversions.net/download/1.12.2
my site:
https://mihkostas.github.io/
...
https://www.youtube.com/watch?v=rynrI9uKpCc