From d47d3f7fdcd070a2143d5d32bdda960bc48e16d6 Mon Sep 17 00:00:00 2001 From: Redned Date: Mon, 29 Jul 2019 13:11:17 -0500 Subject: [PATCH] Add startup script info page --- Creating-a-Startup-Script.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Creating-a-Startup-Script.md diff --git a/Creating-a-Startup-Script.md b/Creating-a-Startup-Script.md new file mode 100644 index 0000000..c6fff31 --- /dev/null +++ b/Creating-a-Startup-Script.md @@ -0,0 +1,28 @@ +**In order for this to work, you MUST have Java 8 installed!** + +Once you have downloaded and placed Geyser into its own folder, you will need to create a startup script; similar to how you'd run a Bukkit server. + +### Windows +* Create a new text file, and call it `run.bat`. Open this with a text editor (preferably Notepad++), and insert the text below: +```bash +java -Xms512M -jar Geyser.jar +``` +* Double-click the **run.bat**, and Geyser should start up. Geyser will generate all the needed files. + + +### macOS +* Create a text file called **run.command**, and open it with a text editor such as TextEdit or TextMate. Type the text below into the **run.command** file: +```sh +#!/bin/bash cd "$( dirname "$0" )" java -Xms5124M -jar Geyser.jar +``` +* Open Terminal, and type in `chmod a+x` **(Do NOT press return!)**, and drag your *run.command* file into the Terminal. +* Press return on your keyboard, and Geyser will start up. Geyser will generate all the needed files. + + +### Linux +* Create a file called *run.sh*, and open it with a text editor. Type the text below into your `run.sh` file: +```sh +#!/bin/sh BINDIR=$(dirname "$(readlink -fn "$0")") cd "$BINDIR" java -jar Geyser.jar +``` +* In your default terminal application, make the file executable by running `chmod +x ~(dir)/run.sh` where `dir` is the name of the folder Geyser is in, or by changing the file permissions; +* Open your default terminal application, and type `chmod +x ~/(dir)/run.sh` to run Geyser. Geyser will generate all the needed files. \ No newline at end of file