Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Need help!] GNU Screen arguments (flags) and java arguments (flags) #423

Open
Agent-null opened this issue Jul 26, 2021 · 0 comments
Open

Comments

@Agent-null
Copy link

Agent-null commented Jul 26, 2021

I am trying to add flags to "screen" and to "java" to enable utf encoding in console output. I am using Debian 8.

https://msmhq.com/docs/commands/global.html - This page shows that there is msm.conf in /etc/msm.conf.
I have modified line # 165 in msm.conf to include "-Dfile.encoding=UTF8" which is a valid java flag:
DEFAULT_INVOCATION="java -Dfile.encoding=UTF8 -Xms{RAM}M -Xmx{RAM}M -jar {JAR} nogui"

I have also found an "msm" file in /usr/local/bin/msm
I have modified line #3254 to this:
register_server_setting INVOCATION "java -Dfile.encoding=UTF8 -Xms{RAM}M -Xmx{RAM}M -jar {JAR} nogui"
(added -Dfile.encoding=UTF8 which is a valid java flag)
And line #1430 to this:
as_user "${SERVER_USERNAME[$1]}" "cd "${SERVER_PATH[$1]}" && screen -U -dmS "${SERVER_SCREEN_NAME[$1]}" ${SERVER_INVOCATION[$1]}"
(added -U option, which is a valid GNU Screen flag)

And still when starting the server nothing seems to have changed at all.
I have tried a manual server boot via screen, adding the -U flag and adding the java flag (but not adding -dmS "screen" flag) and i got the expected results - I could see UTF-8 characters in console.

Please tell me what i am doing wrong and if possible, how I can make the flags work or get the utf-8 output.

EDIT
After reinstalling everything and adding the same flags - it seems to now work fine.

@Agent-null Agent-null changed the title GNU Screen arguments (flags) and java arguments (flags) [Need help!] GNU Screen arguments (flags) and java arguments (flags) Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant