{"id":1563,"date":"2023-03-15T12:48:08","date_gmt":"2023-03-15T03:48:08","guid":{"rendered":"https:\/\/mifmif.mydns.jp\/masterkudo\/?p=1563"},"modified":"2023-03-15T22:17:46","modified_gmt":"2023-03-15T13:17:46","slug":"ubuntu-mincraft-java-server-memo","status":"publish","type":"post","link":"https:\/\/mifmif.mydns.jp\/masterkudo\/?p=1563","title":{"rendered":"UBUNTU Mincraft Java Server memo"},"content":{"rendered":"<p>\u3007\u30ce\u30fc\u30c8PC\u3067\u84cb\u3092\u9589\u3058\u3066\u3082\u30b5\u30b9\u30da\u30f3\u30c9\u3092\u9632\u6b62<br \/>\n\/etc\/systemd\/logind.conf \u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u4e0b\u8a18\u306e\u884c\u3092\u5909\u66f4\u3002<br \/>\n$ sudo nano \/etc\/systemd\/logind.conf<br \/>\n&#8211; #HandleLidSwitch=suspend<br \/>\n+ HandleLidSwitch=ignore<\/p>\n<p>\u3007\u8a2d\u5b9a\u3092\u53cd\u6620<br \/>\n$ sudo systemctl restart systemd-logind<\/p>\n<p>\u3007\u30ea\u30e2\u30fc\u30c8\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u95a2\u4fc2<br \/>\n\u4e00\u756a\u9762\u5012\u306a\u3068\u3053\u308d\u3067\u3059\u3002<br \/>\nRDP\u63a5\u7d9a\u306b\u306a\u308a\u307e\u3057\u305f\uff08VNC\u306f\u30c7\u30d0\u30c3\u30af\u4e2d\u306e\u3088\u3046\u3067RealVNC\u304b\u3089\u306f\u3064\u306a\u304c\u308a\u307e\u305b\u3093\u3067\u3057\u305f\uff09<br \/>\nmRemoteNG\u304c\u4f7f\u3044\u3084\u3059\u3044\uff08\u305f\u3060\u3057\u3001IP\u30a2\u30c9\u30ec\u30b9\u30fb\u30d5\u30eb\u30ab\u30e9\u30fc\u3067\u63a5\u7d9a\u306a\u3044\u3068\u3046\u307e\u304f\u3044\u304b\u306a\u3044\uff09<br \/>\nPassword and Keys application -&gt; Right-click on Login keyring -&gt; change the password to blank.<br \/>\n\u3092\u3057\u306a\u3044\u3068\u3001RDP\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u81ea\u52d5\u7684\u306b\u5909\u66f4\u3055\u308c\u3066\u3057\u307e\u3046\u3002<br \/>\n\u6697\u8ee2\u3059\u308b\u3068\u63a5\u7d9a\u304c\u5207\u308c\u308b\u306e\u3067xscreensaver\u3092\u3064\u304b\u3046\u3002<\/p>\n<p>$ sudo apt install xscreensaver xscreensaver-data-extra xscreensaver-gl-extra<\/p>\n<p>\u30b9\u30bf\u30fc\u30c8\u30a2\u30c3\u30d7\u3078\u306e\u8ffd\u52a0<br \/>\n$xscreensaver -nosplash<\/p>\n<p>\u8a2d\u5b9a\u4e0a\u306f\u3001\u30d6\u30e9\u30f3\u30af\u30b9\u30af\u30ea\u30fc\u30f3\u3092\uff1c\u3057\u306a\u3044\uff1e\u306b\u3059\u308b\u3002<\/p>\n<p>\u3007JDK\uff08JRE\u3067\u3044\u3044\u3051\u3069\uff09\u306e\u9078\u629e\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<br \/>\n\u30b5\u30fc\u30d0\u306b\u3088\u3063\u3066\u3001JDK\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u9055\u3046\u3082\u306e\u3092\u8981\u6c42\u3055\u308c\u308b\u5834\u5408\u304c\u3042\u308b\u306e\u3067\u3001<br \/>\n$ sudo apt search openjdk-.*-jdk$<br \/>\n\u3057\u3066\u3001<br \/>\nopenjdk-8-jdk\/xenial-updates,xenial-security 8u252-b09-1~16.04 amd64<br \/>\nOpenJDK Development Kit (JDK)<br \/>\n\u306a\u3069\u3068\u51fa\u3066\u304f\u308b\u306e\u3067\u3001Install\u3059\u308b\u3001<br \/>\n\u4eca\u56de\u306f\u300117\u304c\u5fc5\u8981\u3060\u3063\u305f\u3002<br \/>\n$ sudo apt install openjdk-17-jdk<br \/>\n\u8907\u6570\u5fc5\u8981\u3067\u3042\u308c\u3070\u3001\u5225\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u3044\u308c\u3066\u304a\u304d\u3001<br \/>\n$ sudo update-alternatives &#8211;config java<br \/>\n\u3067\u5207\u308a\u66ff\u3048\u308b\u3002<\/p>\n<p>\u3007Mincraft Server<br \/>\ncraftbukkit\u306f\u91cd\u3044\u3089\u3057\u3044\u3002mohist\u306fDev\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u306a\u308a\u3001Plugin\u304c\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3002<br \/>\npaper\u3082Plugin\u30a8\u30e9\u30fc\u3092\u8d77\u3053\u3059\u306e\u3067\u3001spigot\u304c\u3044\u3044\u3089\u3057\u3044\u3002<br \/>\n\uff0aspigot\u306e\u30d3\u30eb\u30c9<br \/>\n\u9069\u5f53\u306a\u30d5\u30a9\u30eb\u30c0\uff08build.spigot156\uff09\u306a\u3069\u3092\u4f5c\u308a\u3001<br \/>\n\u4ee5\u4e0b\u306eJenkins\u304b\u3089\u3001<br \/>\n<a href=\"https:\/\/hub.spigotmc.org\/jenkins\/job\/BuildTools\/\">https:\/\/hub.spigotmc.org\/jenkins\/job\/BuildTools\/<\/a><br \/>\n\u6700\u65b0\u30d3\u30eb\u30c9\u306e\u3001BuildTools.jar\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3001\u653e\u308a\u8fbc\u3080\u3002<br \/>\n\u540c\u30d5\u30a9\u30eb\u30c0\u3092\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30ea\u3068\u3057\u3066\u3001<br \/>\n$ java -jar BuildTools.jar &#8211;rev1.9.4<br \/>\n&#8211;rev\u3067\u30f4\u30a1\u30fc\u30b8\u30e7\u30f3\u5024\u3092\u5165\u308c\u308b\u3002\uff08\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u540c\u3058\u5fc5\u8981\u304c\u3042\u308b\uff09<br \/>\nspigot-1.19.4.jar<br \/>\n\u304c\u3067\u304d\u308b\u306e\u3067\u3001<br \/>\n\u9069\u5f53\u306a\u30d5\u30a9\u30eb\u30c0\u3001\uff08~\/minecraft\/spigot1.19.4)\u306a\u3069\u3092\u4f5c\u3063\u3066\u3001\u5165\u308c\u308b\u3002<br \/>\n\u904e\u53bb\u306ePlugin mod\u306a\u3069\u306f\u5f15\u304d\u7d99\u3052\u308b\u3089\u3057\u3044\u3002\uff08\u30ef\u30fc\u30eb\u30c9\u3082\uff09<br \/>\n$ java -Xms1G -Xmx4G -jar spigot-1.19.4.jar<br \/>\n\u3059\u308c\u3070\u30b5\u30fc\u30d0\u306f\u8d77\u52d5\u3059\u308b\u3002<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3007\u30ce\u30fc\u30c8PC\u3067\u84cb\u3092\u9589\u3058\u3066\u3082\u30b5\u30b9\u30da\u30f3\u30c9\u3092\u9632\u6b62 \/etc\/systemd\/logind.conf \u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u4e0b\u8a18\u306e\u884c\u3092\u5909\u66f4\u3002 $ sudo nano \/etc\/systemd\/logind.conf &#8211; # [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1568,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,7],"tags":[],"class_list":["post-1563","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-4","category-7"],"_links":{"self":[{"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/posts\/1563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1563"}],"version-history":[{"count":5,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/posts\/1563\/revisions"}],"predecessor-version":[{"id":1569,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/posts\/1563\/revisions\/1569"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/media\/1568"}],"wp:attachment":[{"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}