This tutorial was based on running Minecraft Forge in a Debian wheezy installation, but it should work with any other Linux system. I did this for my son and his friends. I haven't tested it in years.
This is a guide to setting up a workspace for Minecraft modding using Forge for version 1.19.3. It covers downloading and installing the necessary software, including the Java Development Kit, ...