From 84717a750c278ee3f6b60576922c34c615c08f7c Mon Sep 17 00:00:00 2001 From: Richard J Hancock Date: Wed, 18 Sep 2024 13:47:00 -0500 Subject: [PATCH] Updated for JDK 17 --- docker.md | 11 ++++++----- install.md | 14 +++++++------- update.md | 16 +++++++++++++--- 3 files changed, 26 insertions(+), 15 deletions(-) diff --git a/docker.md b/docker.md index f8a2ffd..c94239c 100644 --- a/docker.md +++ b/docker.md @@ -3,6 +3,8 @@ layout: page --- # Installation +**Note: The Dockerized versions of MegaMek have Sentry reporting ENABLED by default.** + These are basic instructions for getting a dedicated server up and running using a hosting provider. Does NOT require adjusting your own router or firewall settings. These are at a basic to intermediate level. **Familiarity @@ -35,7 +37,7 @@ referral will credit me (TapEnvy.us, LLC) $25 USD AFTER you've spent $25. > `What is the project?` (or however it's phrased). If unfamiliar with initial server setup, please check out -[Initial Server Setup with Ubuntu 22.04](https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-22-04) +[Initial Server Setup with Ubuntu 24.04](https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-24-04) for setting up the initial user that we'll be using for MegaMek. After you've done the initial server setup, follow along using the created @@ -48,8 +50,7 @@ user. ## Server Requirements (recommended for most) -* Ubuntu 22.04 LTS -* OpenJDK 11 LTS +* Ubuntu 24.04 LTS * 1 vCPU * 1GB RAM * 25G HDD @@ -58,8 +59,8 @@ user. Make sure you have a non-privileged user created with sudo privileges and you can login as said user. You do NOT want to run MegaMek as the `root` user for -security reasons. If not user how to do this, follow this tutorial for Ubuntu 20.04 - -[Initial Server Setup with Ubuntu 22.04](https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-22-04). +security reasons. If not user how to do this, follow this tutorial - +[Initial Server Setup with Ubuntu 24.04](https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-24-04). ### System Updates and Docker diff --git a/install.md b/install.md index 83eec33..af1b6e8 100644 --- a/install.md +++ b/install.md @@ -37,7 +37,7 @@ referral will credit me (TapEnvy.us, LLC) $25 USD AFTER you've spent $25. > `What is the project?` (or however it's phrased). If unfamiliar with initial server setup, please check out -[Initial Server Setup with Ubuntu 22.04](https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-22-04) +[Initial Server Setup with Ubuntu 24.04](https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-24-04) for setting up the initial user that we'll be using for MegaMek. After you've done the initial server setup, follow along using the created @@ -50,8 +50,8 @@ user. ## Server Requirements (recommended for most) -* Ubuntu 22.04 LTS -* OpenJDK 11 LTS +* Ubuntu 24.04 LTS +* OpenJDK 17 LTS * 1 vCPU * 1GB RAM * 25G HDD @@ -60,8 +60,8 @@ user. Make sure you have a non-privileged user created with sudo privileges and you can login as said user. You do NOT want to run MegaMek as the `root` user for -security reasons. If not user how to do this, follow this tutorial for Ubuntu 20.04 - -[Initial Server Setup with Ubuntu 22.04](https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-22-04). +security reasons. If not user how to do this, follow this tutorial - +[Initial Server Setup with Ubuntu 24.04](https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-24-04). ### System Updates and Java @@ -85,7 +85,7 @@ For OpenJDK, it's another quick command: ```bash # step 2 -sudo apt install openjdk-11-jdk-headless +sudo apt install openjdk-17-jdk-headless ``` This will install OpenJDK 11 for headless systems. This basically means for @@ -135,7 +135,7 @@ For MekHQ 0.49.19.1: ```bash # step 5 -tar -zxvf mekhq-0.49.19.1.tar.gz +tar -zxf mekhq-0.49.19.1.tar.gz ``` To better understand what's going on, we are telling the `tar` command to diff --git a/update.md b/update.md index ff963a9..1116e00 100644 --- a/update.md +++ b/update.md @@ -20,6 +20,16 @@ to chain 3 commands together. sudo apt update && sudo apt full-upgrade -y ``` +### Upgrading Java + +If you aren't already using OpenJDK 17 on your server, you'll need to run the +following set of commands to get the correct version installed. + +```bash +sudo apt uninstall openjdk-11-jdk-headless +sudo apt install openjdk-17-jdk-headless +``` + ## Getting MegaMek Same as with the installation, we need to get a copy of the latest version onto @@ -44,11 +54,11 @@ ls -lha > > This will return a listing of files and folders in the current directory. -For MekHQ 0.49.17: +For MekHQ 0.49.19.1: ```bash # step 3 -tar -zxvf mekhq-0.49.17.tar.gz +tar -zxf mekhq-0.49.19.1.tar.gz ``` To better understand what's going on, we are telling the `tar` command to @@ -77,7 +87,7 @@ installation) then link the new version up with ```bash # step 5 rm stable -ln -s mekhq-0.49.17 stable +ln -s mekhq-0.49.19.1 stable ``` ## Start the new version