Problem Running Server in Linux Uses Home Folder

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Flexico

Well-Known Member
Dec 15, 2012
328
39
53
I used the Forge launcher to install MC server 1.10.2 to a folder on my HD. However, when I run either the vanilla server or the Forge one, it looks to my /home/flexico/ folder for the files like /mods/ folder and eula.txt, instead of the folder the .jar files are in.
 

Henry Link

Forum Addict
Dec 23, 2012
2,601
553
153
USA - East Coast
How are you launching it? Double clicking the .jar or .sh files? Best to run a shell/terminal then change directory (cd command) to the location of the .jar and .sh files then use ./ServerStart.sh to run the server. You shouldn't run the .jar files directly because you can't specify java arguments.
 

Flexico

Well-Known Member
Dec 15, 2012
328
39
53
Ah, thanks! That did the trick.

Oh wait, "-nogui" isn't supported anymore? Is there a way to get rid of that thing so I can just use the terminal?
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
Ah, thanks! That did the trick.

Oh wait, "-nogui" isn't supported anymore? Is there a way to get rid of that thing so I can just use the terminal?
even if the gui is on you should be able to use the terminal but as we all know that gui sucks to disable it you simply remove the - sign. Thus you get something like
Code:
java -Xms1G -Xmx1G -jar minecraft_server.jar nogui
Note: the above comes from the minecraft wiki and thus may not work.... (also, I know that 1GB of RAM is too low for a server, I just copied that line from the same page)
 
  • Like
Reactions: jikuja

Flexico

Well-Known Member
Dec 15, 2012
328
39
53
Ah, that works! Thanks. Hah, the last server I ran was on Windows 7 and Java 7. XD Now it's Linux Mint and Java 8.
 

GreenZombie

New Member
Jul 29, 2019
2,402
-1
0
Good grief. When launching a minecraft server, modded or vanilla, *Always* enable the concurrent garbage collector unless you like a periodic glitch (i.e. block lag) every few seconds (Accompanied by a console message "Server is behind by xxx ticks)

Code:
java -XX:+UseConcMarkSweepGC -Xmx2G -jar minecraft_server.jar nogui