Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 6866  / 3 Years ago, mon, september 27, 2021, 3:36:15

I am trying to run a minecraft server from a "run.sh" script. So far I have this:



#!/bin/sh
java -Xms512M -Xmx2048M -jar minecraft_server.jar nogui


I'm running the script from the same directory as the minecraft_server.jar, and it does nothing. I want it to open a terminal window that is running the java program. I am new to Linux so I'm sure I'm doing something stupid, any help would be appreciated.


More From » bash

 Answers
6

If the problem is that running the script doesn't show a terminal window, the solution depends on the window manager you're using. Gnome as well as KDE allow to edit properties of desktop shortcuts on a right-click and setting a option like "run in terminal" there.



Another way is to edit the desktop configuration file manually: you can find them in the Desktop subdirectory of your home dir. Just add a line with Terminal=true to the desktop configuration file that should run the server.


[#41233] Tuesday, September 28, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
chilgirlguid

Total Points: 123
Total Questions: 114
Total Answers: 121

Location: Macau
Member since Mon, Nov 16, 2020
4 Years ago
;