Monthly Archive for October, 2025

Running old versions of Java Minecraft

One source for the Java 8 (1.8) runtime is the Oracle Archives page.  Another helpful one is the standard Java download page for the desktop Java Runtime Environment, JRE.

I downloaded the Linux x86 (32-bit) version even though the host is a 64bit Linux.  The reason for that is that at some point in the point in the past Minecraft and various mods and the Forge loader required a 32 bit Java virtual machine (JVM).  It was so problematic to install both 64bit and 32bit via the package managers and manually configure them, that I developed a practice of installing 32-bit Linux so that the Java in the repository would also be 32bit and then everything would be fin.   It was much easier to run 32-bit Java and 32-bit Wine on a 32-bit operating system than reconfigure everything and try to switch between them depending on what was running.

I extracted the zip file from Oracle and then ran the Minecraft server instance with the following command.

home/username/Downloads/Java8_i586/jre1.8.0_461/bin/java -jar /home/username/Minecraft_x86/instances/b1.7.3/b1.7.3.251019/b1.7.3.jar nogui

Running the program that way worked very well.

.ssh config for Windows and Linux

The ~/.ssh/config file works for OpenSSH on Windows and for SSH on Linux.

To prevent disconnects, add the keepalive messages for all hosts. For specific hosts that use a specific key type, such as RSA on CentOS 6, add the specific algorithm via the HostkeyAlgorithms + functionality. To add a private key for SSH key logins, add the IdentityFile line. it is possible to allow the ssh-rsa algorithms on both outgoing and incoming connections for all hosts. The PubkeyAcceptedAlgorithms functionality is which key can be used to log into the host the config file sits on. the ForwardX11 setting sits on Linux hosts and not on Windows..

example ~/.ssh/config

IdentityFile ~/.ssh/Minecraft-Micro.pem

Host *
    ServerAliveInterval 40

Host 192.168.0.0
    HostkeyAlgorithms +ssh-rsa
 
ForwardX11 yes
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa

Switch a data volume on Linux

How to move /var/www/html/mydata/ to a new disk:

1. fdisk /dev/nvme4n1
     1.i. create a new DOS partition and write it to disk
2. mkfs -t ext4 /dev/nvme4n1p1
3. lsblk -f (and copy the UUID for use in FSTAB)
    3.i. a0e2e1e7-4034-4876-a005-ae5fcca39751
4. mount /dev/nvme4n1p1 /mnt
5. shopt -s dotglob
6. rsync -aulvXpogtr /var/www/html/mydata/* /mnt
7. edit /etc/fstab and replace the UUID for the data storage drive
8. mount -av to test
9. reboot

[_] Expand 7 to show fstab options