{"id":664,"date":"2020-03-27T09:28:07","date_gmt":"2020-03-27T08:28:07","guid":{"rendered":"http:\/\/pic18.fr\/?p=664"},"modified":"2020-03-27T09:28:07","modified_gmt":"2020-03-27T08:28:07","slug":"serveur-minecraft-raspberry","status":"publish","type":"post","link":"https:\/\/pic18.fr\/index.php\/2020\/03\/27\/serveur-minecraft-raspberry\/","title":{"rendered":"Serveur Minecraft Raspberry"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<ul><li>Cr\u00e9er un R\u00e9pertoire d\u00e9di\u00e9 au serveur minecraft et y aller<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo mkdir \/home\/minecraft\ncd \/home\/minecraft<\/code><\/pre>\n\n\n\n<ul><li>T\u00e9lecharger le fichier \u00ab\u00a0BuildTools.jar\u00a0\u00bb :<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo wget https:\/\/hub.spigotmc.org\/jenkins\/job\/BuildTools\/lastSuccessfulBuild\/artifact\/target\/BuildTools.jar<\/code><\/pre>\n\n\n\n<ul><li>Lancer \u00ab\u00a0BuildTools.jar\u00a0\u00bb en pr\u00e9cisant la version concern\u00e9e, attention \u00e7a va prendre pas mal de temps :<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo java -Xmx1024M -jar BuildTools.jar --rev 1.15.2<\/code><\/pre>\n\n\n\n<ul><li>Cr\u00e9er un script \u00ab\u00a0run-minecraft.sh\u00a0\u00bb qui se lancera \u00e0 chaque d\u00e9marrage de la raspberry:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano run-minecraft.sh<\/code><\/pre>\n\n\n\n<p>contenu du script :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\ncd \/home\/minecraft\nsudo java -Xms512M -Xmx1008M -jar .\/spigot-1.15.2.jar nogui<\/code><\/pre>\n\n\n\n<p><strong>Param\u00e8tres :<\/strong><br><strong>-Xms : <\/strong>RAM minimum que Minecraft utilisera<br><strong>-Xmx : <\/strong>RAM maximum que Minecraft utilisera<br><strong>nogui : <\/strong>serveur lanc\u00e9 sans interface graphique<\/p>\n\n\n\n<p>penser \u00e0 corriger la version du fichier si n\u00e9cessaire.<\/p>\n\n\n\n<ul><li>Passer le script en ex\u00e9cutable (il appara\u00eetra en vert lors d&rsquo;une commande \u00ab\u00a0ls\u00a0\u00bb). Il pourra alors \u00eatre ex\u00e9cut\u00e9.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chmod +x \/home\/minecraft\/run-minecraft.sh<\/code><\/pre>\n\n\n\n<ul><li>On va faire en sorte que le script soit lanc\u00e9 \u00e0 chaque d\u00e9marrage. Editer le fichier \u00ab\u00a0rc.local\u00a0\u00bb et rajouter la ligne de lancement de notre script\u00a0\u00bb:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/sh -e\n#\n# rc.local\n#\n# This script is executed at the end of each multiuser runlevel.\n# Make sure that the script will \"exit 0\" on success or any other\n# value on error.\n#\n# In order to enable or disable this script just change the execution\n# bits.\n#\n# By default this script does nothing.\n\n# Print the IP address\n_IP=$(hostname -I) || true\nif &#91; \"$_IP\" ]; then\n  printf \"My IP address is %s\\n\" \"$_IP\"\nfi\n\/home\/minecraft\/run-minecraft.sh\n\nexit 0<\/code><\/pre>\n\n\n\n<ul><li>Avant de lancer le serveur, il faut modifier le fichier \u00ab\u00a0eula.txt\u00a0\u00bb, en changeant la ligne \u00ab\u00a0eula=false\u00a0\u00a0\u00bb en \u00ab\u00a0eula=true\u00a0\u00bb.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>#By changing the setting below to TRUE you are indicating your agreement to our EULA (https:\/\/account.mojang.com\/documents\/minecraft_eula).\n#Thu Mar 26 15:49:22 UTC 2020\neula=true<\/code><\/pre>\n\n\n\n<ul><li>Voil\u00e0, rebooter la raspberry, et laisser un peu de temps de le serveur puisse cr\u00e9er toutes les cartes:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo reboot<\/code><\/pre>\n\n\n\n<p>source : <a href=\"https:\/\/raspberry-pi.fr\/installer-serveur-minecraft-raspberry-pi\/\">https:\/\/raspberry-pi.fr\/installer-serveur-minecraft-raspberry-pi\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cr\u00e9er un R\u00e9pertoire d\u00e9di\u00e9 au serveur minecraft et y aller T\u00e9lecharger le fichier \u00ab\u00a0BuildTools.jar\u00a0\u00bb : Lancer \u00ab\u00a0BuildTools.jar\u00a0\u00bb en pr\u00e9cisant la version concern\u00e9e, attention \u00e7a va prendre pas mal de temps : Cr\u00e9er un script \u00ab\u00a0run-minecraft.sh\u00a0\u00bb qui se lancera \u00e0 chaque d\u00e9marrage de la raspberry: contenu du script : Param\u00e8tres :-Xms : RAM minimum que Minecraft [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,43,3],"tags":[44,35,45],"_links":{"self":[{"href":"https:\/\/pic18.fr\/index.php\/wp-json\/wp\/v2\/posts\/664"}],"collection":[{"href":"https:\/\/pic18.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pic18.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pic18.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pic18.fr\/index.php\/wp-json\/wp\/v2\/comments?post=664"}],"version-history":[{"count":1,"href":"https:\/\/pic18.fr\/index.php\/wp-json\/wp\/v2\/posts\/664\/revisions"}],"predecessor-version":[{"id":665,"href":"https:\/\/pic18.fr\/index.php\/wp-json\/wp\/v2\/posts\/664\/revisions\/665"}],"wp:attachment":[{"href":"https:\/\/pic18.fr\/index.php\/wp-json\/wp\/v2\/media?parent=664"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pic18.fr\/index.php\/wp-json\/wp\/v2\/categories?post=664"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pic18.fr\/index.php\/wp-json\/wp\/v2\/tags?post=664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}