Skip to content

Commit

Permalink
Updated for JDK 17
Browse files Browse the repository at this point in the history
  • Loading branch information
rjhancock committed Sep 18, 2024
1 parent 051a4c0 commit 84717a7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 15 deletions.
11 changes: 6 additions & 5 deletions docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

Expand Down
14 changes: 7 additions & 7 deletions install.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
16 changes: 13 additions & 3 deletions update.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 84717a7

Please sign in to comment.