A
Admincraftā€¢2y ago
Spedbob

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
Admincraft Meta
Admincraft Metaā€¢2y ago
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
Discount Milk
Discount Milkā€¢2y ago
Just run the forge installer again
Spedbob
SpedbobOPā€¢2y ago
will it not create duped files
Discount Milk
Discount Milkā€¢2y ago
It'll overwrite any with the same names.
Spedbob
SpedbobOPā€¢2y ago
oh im sorry i havent done it in a while do u remember the command line for it
Discount Milk
Discount Milkā€¢2y ago
Can run the forge installer locally and just copy in the run.sh file it makes
Spedbob
SpedbobOPā€¢2y ago
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
Spedbob
SpedbobOPā€¢2y ago
No description
Spedbob
SpedbobOPā€¢2y ago
gg
QarthO
QarthOā€¢2y ago
so am i missing something... can u not just use https://flags.sh/ but replace server.jar with ur forge.jar name
flags.sh
flags.sh
A simple script generator to start your Minecraft servers with optimal flags.
Spedbob
SpedbobOPā€¢2y ago
idk o i was gonna reply the same msg to u to ping u but ur back so nvm'
QarthO
QarthOā€¢2y ago
ur trying to start a server right?
Spedbob
SpedbobOPā€¢2y ago
yeah
Spedbob
SpedbobOPā€¢2y ago
No description
Spedbob
SpedbobOPā€¢2y ago
heres what i have i created my own start.sh but it doesnt work
Spedbob
SpedbobOPā€¢2y ago
No description
Spedbob
SpedbobOPā€¢2y ago
No description
QarthO
QarthOā€¢2y ago
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
Discount Milk
Discount Milkā€¢2y ago
Wrong Java version
QarthO
QarthOā€¢2y ago
i think we have cmd for it !java !version !javaversion idk leche prob knows it
Spedbob
SpedbobOPā€¢2y ago
i remember the command existing but i dont remember it
Discount Milk
Discount Milkā€¢2y ago
!Javaver
Carl-bot
Carl-botā€¢2y ago
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
Spedbob
SpedbobOPā€¢2y ago
No description
QarthO
QarthOā€¢2y ago
psure u want java 11 for 1.12 ah yeah hes got it ur on java 17
Spedbob
SpedbobOPā€¢2y ago
i have 2 other ones iirc
QarthO
QarthOā€¢2y ago
yeah so instead of doing "java" put the location of ur java 11
Spedbob
SpedbobOPā€¢2y ago
what lol
Discount Milk
Discount Milkā€¢2y ago
Java 8 is best for 1.12
QarthO
QarthOā€¢2y ago
in ur start.sh u have the word java replae it with wherever ur java8/11 is
Spedbob
SpedbobOPā€¢2y ago
like the directory?
Lunaiskey
Lunaiskeyā€¢2y ago
yes find the path to it, make sure to put it in quotes
Spedbob
SpedbobOPā€¢2y ago
No description
Lunaiskey
Lunaiskeyā€¢2y ago
yeah exactly like that
QarthO
QarthOā€¢2y ago
yeah just like that
Spedbob
SpedbobOPā€¢2y ago
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
QarthO
QarthOā€¢2y ago
yeah, paths are paths regardless of os
Spedbob
SpedbobOPā€¢2y ago
should i add the nogui part
QarthO
QarthOā€¢2y ago
sure
Spedbob
SpedbobOPā€¢2y ago
idk what ti does
QarthO
QarthOā€¢2y ago
minecraft servers have a built in gui but no one uses it nogui disables it
Spedbob
SpedbobOPā€¢2y ago
so is it --nogui or nogui
QarthO
QarthOā€¢2y ago
and people just use the built in console
Lunaiskey
Lunaiskeyā€¢2y ago
nogui
Spedbob
SpedbobOPā€¢2y ago
ok
Lunaiskey
Lunaiskeyā€¢2y ago
ofcourse if your on linux change the path to the linux one
Spedbob
SpedbobOPā€¢2y ago
No description
Spedbob
SpedbobOPā€¢2y ago
lol
QarthO
QarthOā€¢2y ago
yeah ur linux path prob different
Spedbob
SpedbobOPā€¢2y ago
its a vm
Lunaiskey
Lunaiskeyā€¢2y ago
well yeah since its not windows
Spedbob
SpedbobOPā€¢2y ago
No description
Spedbob
SpedbobOPā€¢2y ago
i tried that earlier but maybe i got it wrong
Lunaiskey
Lunaiskeyā€¢2y ago
well java will resolve to somewhere
QarthO
QarthOā€¢2y ago
its like usr/lib/jvm or somewhere u might have to install java 8 on ur vm
Spedbob
SpedbobOPā€¢2y ago
i should have it
QarthO
QarthOā€¢2y ago
if u havent already
Spedbob
SpedbobOPā€¢2y ago
uh
QarthO
QarthOā€¢2y ago
well go look
Spedbob
SpedbobOPā€¢2y ago
i diont remember the command so i gotta google it lol
Lunaiskey
Lunaiskeyā€¢2y ago
im thinking ls
QarthO
QarthOā€¢2y ago
cd to usr/lib and ls
Lunaiskey
Lunaiskeyā€¢2y ago
but your better off just googling the commands to go through the directories actually ls might just list the current ones
Spedbob
SpedbobOPā€¢2y ago
No description
Lunaiskey
Lunaiskeyā€¢2y ago
welp time to cd into usr
Spedbob
SpedbobOPā€¢2y ago
it mightve been sudo or something
Lunaiskey
Lunaiskeyā€¢2y ago
normally its at /usr/lib/java/ yhou might have to sudo it
Spedbob
SpedbobOPā€¢2y ago
yeah i dont see java in my lib which is why im tryna sudp
Spedbob
SpedbobOPā€¢2y ago
its s
No description
Spedbob
SpedbobOPā€¢2y ago
i figured it out so i want java 8 right
QarthO
QarthOā€¢2y ago
called it yes "usr/lib/jvm/java-8... " (rest of ur start.sh)
Spedbob
SpedbobOPā€¢2y ago
No description
Spedbob
SpedbobOPā€¢2y ago
so i delete the cd part
QarthO
QarthOā€¢2y ago
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
QarthO
QarthOā€¢2y ago
flags.sh
flags.sh
A simple script generator to start your Minecraft servers with optimal flags.
Spedbob
SpedbobOPā€¢2y ago
what do those do
QarthO
QarthOā€¢2y ago
and prob give ur forge server more than 2gb
Spedbob
SpedbobOPā€¢2y ago
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
QarthO
QarthOā€¢2y ago
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
Spedbob
SpedbobOPā€¢2y ago
my vm has 24
QarthO
QarthOā€¢2y ago
yeah 16 is fine
Spedbob
SpedbobOPā€¢2y ago
i meant server as in mc server
QarthO
QarthOā€¢2y ago
dont really ever go over 16 tbh
Spedbob
SpedbobOPā€¢2y ago
ye i cant copy paste šŸ˜¦
QarthO
QarthOā€¢2y ago
can even argue 16 too much
Spedbob
SpedbobOPā€¢2y ago
prob but y not
QarthO
QarthOā€¢2y ago
too much can actually decrease performance as i said... java not meant for gaming
Spedbob
SpedbobOPā€¢2y ago
im gonna forego the flags thing because im too lazy and i think itll be fine
QarthO
QarthOā€¢2y ago
well they take 10 seconds to copy paste and they work wonders
Spedbob
SpedbobOPā€¢2y ago
cant copy paste
QarthO
QarthOā€¢2y ago
huh?
Spedbob
SpedbobOPā€¢2y ago
id have to either manually write it, get a script to write it, or paste it and move it back over
QarthO
QarthOā€¢2y ago
ur in a terminal...
Spedbob
SpedbobOPā€¢2y ago
?
QarthO
QarthOā€¢2y ago
ur vms in a terminal u an copy paste no?
Spedbob
SpedbobOPā€¢2y ago
i cant unless theres some way i dont know ctrl v no worky
QarthO
QarthOā€¢2y ago
are u on windows cli
Spedbob
SpedbobOPā€¢2y ago
idk what that is
QarthO
QarthOā€¢2y ago
like command prompt on ur windows pc
Spedbob
SpedbobOPā€¢2y ago
yeah
QarthO
QarthOā€¢2y ago
right click paste lmao
Spedbob
SpedbobOPā€¢2y ago
OH MY GOD bro
QarthO
QarthOā€¢2y ago
šŸ¤Æ
Spedbob
SpedbobOPā€¢2y ago
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
QarthO
QarthOā€¢2y ago
"PUT UR JAVA PATH HERE" -Xms16000M -Xmx16000M --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar forge-1.12.2-14.23.5.2860.jar nogui
"PUT UR JAVA PATH HERE" -Xms16000M -Xmx16000M --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar forge-1.12.2-14.23.5.2860.jar nogui
Spedbob
SpedbobOPā€¢2y ago
No description
QarthO
QarthOā€¢2y ago
sure does it work
Spedbob
SpedbobOPā€¢2y ago
no
Spedbob
SpedbobOPā€¢2y ago
No description
Spedbob
SpedbobOPā€¢2y ago
does there need to be another slash in from of usr only thing i can think of
QarthO
QarthOā€¢2y ago
sure u can try
Spedbob
SpedbobOPā€¢2y ago
No description
Spedbob
SpedbobOPā€¢2y ago
may just forego the flags is it really that big of a boost its a small private skyblock server not like a comercial thing
QarthO
QarthOā€¢2y ago
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
Spedbob
SpedbobOPā€¢2y ago
its running šŸ˜©
QarthO
QarthOā€¢2y ago
enjoy friend
Spedbob
SpedbobOPā€¢2y ago
gg i forgot how to back out of this to accept eula
Spedbob
SpedbobOPā€¢2y ago
No description
Spedbob
SpedbobOPā€¢2y ago
every time i learn something i forget right after
QarthO
QarthOā€¢2y ago
well the server prob ended so just go to the server directory open the eula.txt and change it from false to true
Spedbob
SpedbobOPā€¢2y ago
yeah
QarthO
QarthOā€¢2y ago
then run the .sh again and ur good
Spedbob
SpedbobOPā€¢2y ago
i was wondering if there was a diff way to get there than close reopen
QarthO
QarthOā€¢2y ago
uh not really no
Spedbob
SpedbobOPā€¢2y ago
alright my hero any other suggestions for servers in the future like tips and tricks lmao
QarthO
QarthOā€¢2y ago
download the spark mod (or plugin if ur gunna use some bukkit fork)
Spedbob
SpedbobOPā€¢2y ago
ah i did that for my last server
Lunaiskey
Lunaiskeyā€¢2y ago
if you looking at spark remember that waituntilnexttick should usually be the highest percentage
Spedbob
SpedbobOPā€¢2y ago
gotta manually scp it over again šŸ˜¦
QarthO
QarthOā€¢2y ago
yeah its not gonna change anything on ur server.... but it can help u fix a problem
Spedbob
SpedbobOPā€¢2y ago
laggogles aswell
QarthO
QarthOā€¢2y ago
idk wat that is
Spedbob
SpedbobOPā€¢2y ago
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

Did you find this page helpful?