convert start.bat to start.sh
i want to start an ubuntu Project Ozone 3 server but the folder only had a start.bat and i dont want to run the forge installer again, how do i convert it to a start.sh or is there some easier way to scp the file over or something.
133 Replies
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by spedbob#0
Just run the forge installer again
will it not create duped files
It'll overwrite any with the same names.
oh
im sorry i havent done it in a while do u remember the command line for it
Can run the forge installer locally and just copy in the run.sh file it makes
ok
cant remember if im doing something wrong but when i run the installer and install a server theres no run.sh, and running the forge jar doesnt generate one either
ill try making it
gg
so am i missing something... can u not just use https://flags.sh/ but replace server.jar with ur forge.jar name
idk
o
i was gonna reply the same msg to u to ping u but ur back so nvm'
ur trying to start a server right?
yeah
heres what i have
i created my own start.sh but it doesnt work
get rid of the cd line, and just make sure ur start.sh is in the same directory as ur server jar.. which looks like it is
Wrong Java version
i think we have cmd for it
!java
!version
!javaversion
idk leche prob knows it
i remember the command existing but i dont remember it
!Javaver
Recently, the Java version recommendations for Minecraft became more strict
For Minecraft <1.17, Java 11 is recommended.
Minecraft 1.17 won't start without Java 16 (or newer).
Minecraft 1.18 won't start without Java 17 (or newer).
Admincraft Canned Responses
psure u want java 11 for 1.12
ah yeah
hes got it
ur on java 17
i have 2 other ones iirc
yeah so instead of doing "java"
put the location of ur java 11
what
lol
Java 8 is best for 1.12
in ur start.sh
u have the word java
replae it with wherever ur java8/11 is
like the directory?
yes
find the path to it, make sure to put it in quotes
yeah exactly like that
yeah just like that
i didnt think that was the solution since its a windows directory and im doing it on linux
but i guess its just a pathway
yeah, paths are paths regardless of os
should i add the nogui part
sure
idk what ti does
minecraft servers have a built in gui
but no one uses it
nogui disables it
so is it --nogui or nogui
and people just use the built in console
nogui
ok
ofcourse if your on linux change the path to the linux one
lol
yeah ur linux path
prob different
its a vm
well yeah since its not windows
i tried that earlier but maybe i got it wrong
well java will resolve to somewhere
its like usr/lib/jvm or somewhere
u might have to install java 8 on ur vm
i should have it
if u havent already
uh
well go look
i diont remember the command so i gotta google it lol
im thinking ls
cd to usr/lib
and ls
but your better off just googling the commands to go through the directories
actually ls might just list the current ones
welp time to cd into usr
it mightve been sudo or something
normally its at /usr/lib/java/
yhou might have to sudo it
yeah i dont see java in my lib
which is why im tryna sudp
its s
i figured it out
so i want java 8 right
called it
yes
"usr/lib/jvm/java-8... " (rest of ur start.sh)
so i delete the cd part
yes
deleete that whole line
and replace it iwth the location of java 8
that full path
u should also put all the other flags
what do those do
and prob give ur forge server more than 2gb
yeah i give it 16
or wait
thats the server start args right, or am i supposed to not put my whole servers ram on there
java isnt made to run videogames... its just not optimized. those flags do a good job a burdening the load. basically tells how to handle garbage collection, and a lot of other shit
yes start up args
no never give the minecraft server ur vms entire ram
my vm has 24
yeah 16 is fine
i meant server as in mc server
dont really ever go over 16 tbh
ye
i cant copy paste š¦
can even argue 16 too much
prob
but y not
too much can actually decrease performance
as i said... java not meant for gaming
im gonna forego the flags thing
because im too lazy and i think itll be fine
well they take 10 seconds to copy paste
and they work wonders
cant copy paste
huh?
id have to either manually write it, get a script to write it, or paste it and move it back over
ur in a terminal...
?
ur vms in a terminal
u an copy paste no?
i cant
unless theres some way i dont know
ctrl v no worky
are u on windows cli
idk what that is
like command prompt
on ur windows pc
yeah
right click
paste
lmao
OH MY GOD
bro
š¤Æ
in the flags they do --nogui
so ima assume thats right
wait
year
yeah
this is java
not forge
so i delete the java -server.jar part too right
sure does it work
no
does there need to be another slash in from of usr
only thing i can think of
sure u can try
may just forego the flags
is it really that big of a boost
its a small private skyblock server
not like a comercial thing
remove that specific flag
yeah it is
that'll prob be the only flag that'll cause errors
i think its an experimental flag, prob not existing on java 8
its running
š©
enjoy friend
gg
i forgot how to back out of this to accept eula
every time i learn something i forget right after
well the server prob ended
so just go to the server directory
open the eula.txt
and change it from false to true
yeah
then run the .sh again
and ur good
i was wondering if there was a diff way to get there than close reopen
uh not really no
alright
my hero
any other suggestions for servers in the future
like tips and tricks lmao
download the spark mod
(or plugin if ur gunna use some bukkit fork)
ah
i did that for my last server
if you looking at spark remember that waituntilnexttick should usually be the highest percentage
gotta manually scp it over again š¦
yeah its not gonna change anything on ur server.... but it can help u fix a problem
laggogles
aswell
idk wat that is
its like spark but it lets you run a scan and see problem chunks
like it shows u tps and stuff of each block and in the sky there are colors representing the tps impact of each chunk