You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to setup a minecraft server using SetupMinecraft.sh with an SSD mounted to the raspberry pi it doesn't install into the SSD folder even when changing the directory from the script.
I wanted to set the server folder as /mnt/ssd/minecraft, so I changed the script to:
DirName=$(readlink -e /mnt/ssd) if [ -z "$DirName" ]; then DirName=~ fi
This seemed to work because the folder minecraft was created there and some other folders related to the OpenJDK installation as well. But then an error is thrown after trying to install OpenJDK: Required OpenJDK version 18 could not be installed.
When checking java --version, these are the results: openjdk 20 2023-03-21 OpenJDK Runtime Environment (build 20+36-snap) OpenJDK Server VM (build 20+36-snap, mixed mode, sharing) from ubuntu using the command line
What should I do?
Best regards,
Pedro
The text was updated successfully, but these errors were encountered:
The system OpenJDK is never used. It only uses the one it downloads. This is a path error.
Get rid of the readlink on your path. The proper way to set this up is like this:
curl https://raw.githubusercontent.com/TheRemote/RaspberryPiMinecraft/master/SetupMinecraft.sh | sed 's+DirName=$(readlink -e ~)+DirName=/your/path+g' | bash
Notice that in this command (which is what I usually recommend to people trying to do this) does not have the readlink. Simply change it to the actual path DirName=/mnt/ssd. That's all this is.
Hey there!
When trying to setup a minecraft server using SetupMinecraft.sh with an SSD mounted to the raspberry pi it doesn't install into the SSD folder even when changing the directory from the script.
I wanted to set the server folder as /mnt/ssd/minecraft, so I changed the script to:
DirName=$(readlink -e /mnt/ssd) if [ -z "$DirName" ]; then DirName=~ fi
This seemed to work because the folder minecraft was created there and some other folders related to the OpenJDK installation as well. But then an error is thrown after trying to install OpenJDK:
Required OpenJDK version 18 could not be installed.
When checking java --version, these are the results:
openjdk 20 2023-03-21 OpenJDK Runtime Environment (build 20+36-snap) OpenJDK Server VM (build 20+36-snap, mixed mode, sharing) from ubuntu using the command line
What should I do?
Best regards,
Pedro
The text was updated successfully, but these errors were encountered: