Editing
Tutorials/OpenBSD startup script
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{ScriptWarning}} == Installation == * Install the Java developer kit and the minecraft installer script <pre> $ doas pkg_add jdk minecraft </pre> Run <code>minecraft</code> and follow what it tells you to do via terminal, then run <code>minecraft</code> again to start Minecraft. The setup script will only run the first run after installation. Do not change the executable location in your launcher profile as Minecraft will not launch, OpenBSD needs Minecraft to run from a set location to correctly work. == Running a server == Download the server java executable (.jar) from [https://www.minecraft.net/en-us/download/server the Minecraft website], place it in a directory within your home directory (or wherever accessible), then cd to that directory and run: <pre> $ java -Xmx1024M -Xms1024M -jar minecraft_server.jar --nogui </pre> to start the server. You may want to write a shell file with: <pre> $ nano minecraft_server.sh </pre> then enter: <pre> java -Xmx1024M -Xms1024M -jar minecraft_server.jar --nogui </pre> Press CTRL-X then Y to save. To make this runnable through a file explorer, use: <pre> $ chmod +x minecraft_server.sh </pre> Otherwise use: <pre> $ sh minecraft_server.sh </pre> {{tutorials}} [[Category:Server]] [[zh:教程/OpenBSD启动脚本]]
Summary:
Please note that all contributions to Kiiw may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Kiiw:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:ScriptWarning
(
edit
)
Template:Tutorials
(
edit
)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information