#Super penguin power Sunday

1 messages · Page 1 of 1 (latest)

dry crest
#

old hobbies still being hobbies :)

stray kiln
#

Haha

#

Im in the terminal

#

Do i go into root mode?

dry crest
#

you need to install java jre to run minecraft server

#

which you neeed depends on the mincraft server version

#

java 18 or 21 likely will be whats available

stray kiln
#

Java 21 cause i think im gonna run 1.21

dry crest
#

good thing with debian is the package installer is apt

#

very easy to google search for command reference examples

stray kiln
#

I dont rember the command but was something like sudo apt

#

In root mode

dry crest
#

type java --version in your terminal

#

or apt search java

#

try to confirm java not installed and which package it may be installed by

stray kiln
#

Command not found i think i need be in root

stray kiln
#

Bottom one worked

#

A lot has pop up

#

In green text it looks like software

dry crest
#

step 2

stray kiln
dry crest
#

sudo apt update

#

sudo apt install default-jdk

#

sudo apt install screen

#

auto apt upgrade

stray kiln
stray kiln
#

And now it installed

dry crest
stray kiln
#

Its jdk 17 tho

dry crest
#

youve completed the java install already

#

thats what stable debian has is java 17

#

you can use screen to hold a virtual terminal open to run minecraft server when your not connected

stray kiln
dry crest
#

nope

#

not required to use minecraft server on your lan

stray kiln
#

Yeah ik

#

I want to use it also for worldwide use

stray kiln
dry crest
#

befire you run the minecraft server

#

type screen -S minecraft

#

you can disconnect from the viurtual console with ctrl+alt+d and the server stays running

#

reconnect with screen -x minecraft

#

dont runb it as root user

stray kiln
#

So gotta exit out of root?

dry crest
#

yes

#

or open another terminal tab

stray kiln
#

Do i gota unzip the mc jar file?

dry crest
#

no

#

ocne you run the jar file the first time minecraft downloads all the other server files

#

so make a directory for the mc server at /home/username/mcserver

#

run and setup there

stray kiln
dry crest
#

to reconnect to the virtual console

stray kiln
#

And what does screen command do

#

Is it like runs in background?

dry crest
#

start a virtual terminal

#

yes

stray kiln
#

Ah ok

dry crest
stray kiln
#

Its says too many arguments

dry crest
#

too many arguments?

#

what are you referring to

stray kiln
#

Cd command

dry crest
#

cd to your directory you want to use for the minecraft server files

#

cd Desktop may not be desirable or may not exist

#

i gotta go for a bit. be back later

stray kiln
#

Ah ok

stray kiln
#

there is a problem

#

java server file is probably set to 1.21

#

im gonna stop a bit my back is hurting of this unsaul sitting postion

#

maybe il try again on monday

#

I may could get on tonight

stray kiln
#

Java is too old cause it 17 and server is 1.21.4

dry crest
#

there may be options or methods to install openjdk-21 from another debian package repository i'm unaware of rpesently

#

usually stable linux distros dont rush to have users consume the latest software versions for reliability reasons

#

unless those distros are considered development or eperimental

#

if you searched for how to install openjdk-21 on debian 12

#

you'll find something

dry crest
#
There is a screen on:
        1287360.prebuild        (Detached)
1 Socket in /tmp/screen/S-root.```