- How to play Minecraft on Archlinux
- Requirements
- Installation
- $ minecraft
- Sponsored Server
- Popular Posts:
- 5 Responses to “How to play Minecraft on Archlinux”
- Arch Linux User Repository
- Search Criteria
- Package Details: minecraft-launcher 928-1
- Package Actions
- Dependencies (29)
- Required by (3)
- Sources (3)
- Pinned Comments
- petr commented on 2021-10-08 09:04
- Latest Comments
- petr commented on 2021-10-08 09:04
- kode54 commented on 2021-10-08 05:10
- huantian commented on 2021-10-08 03:56
- kode54 commented on 2021-10-07 05:13
- Alchemistic commented on 2021-10-05 13:22
- goetzc commented on 2021-10-03 21:33
- Alec153 commented on 2021-09-28 16:15
- IslandC0der commented on 2021-09-25 14:46
- alfrednewman commented on 2021-09-18 23:01
- torvald commented on 2021-09-14 15:51
- Minecraft
- Contents
- Client
- Installation
- Firewall configuration for Client/LAN worlds
- Bedrock Edition Server
- Installation
- Starting the server
- Server Configuration
- Java Edition Server
- Installation
- Setup
- Introduction
- Starting the server
- Accepting EULA
- Firewall Configuration for Server Worlds
- Server management script
- Tweaking
- Alternative servers
- Spigot (respectively Craftbukkit)
- Cuberite
- PaperMC
- Forge
- Fabric
- Additional notes
- Minecraft mod launchers
- Other programs and editors
- Troubleshooting
- Server on ARM devices
- Client or server does not start
- Broken fonts with MinecraftForge
- MultiMC unable to build
- Cannot change pulseaudio sink
How to play Minecraft on Archlinux
Article by AlexioBash published on his website about ArchLinux in italian.
In this guide we will see two possible ways to install it on ArchLinux, how to get an account and what are the requirements.
Requirements
Get an Account
The game, not free, costs only € 19.95, although you may find it even at less with some special promotion. An expense that is worth doing! To create an account, simply register at the official website: www.minecraft.net
Dependencies
Minecraft, as already said, is a game based on java. To install Java, I suggest to read THIS article directly from the WiKi of ArchLinux.
The package that we recommend is OpenJDK6 to install it open a terminal and run the command:
$ sudo pacman -S openjdk6 openal
Installation
Installing from AUR
The Minecraft package is available directly from AUR and you can install it using the command:
$ yaourt -Sy minecraft
Once the installation is complete you can launch the game from the terminal with the command:
$ minecraft
or through the entry “ Minecraft ” in the “ Applications/Games ” menu.
Manual Installation
The manual installation provides many benefits, one of the most important is the ability to choose how much ram assign to the game, which we will see later. To install this fantastic game you have to first download the .jar file.
It can be downloaded directly from HERE or by running the command:
Once the download is complete install the packages openal and OpenJDK6 with the command:
$ sudo pacman -S openal openjdk6
let’s make the downloaded file executable with the command:
$ chmod +x minecraft.jar
To start the game, run the command:
$ java -jar minecraft.jar
If we want to, as mentioned earlier, allocate more memory RAM to the game, the command will be:
$ java -jar -Xms1024M -Xmx2048M minecraft.jar
where:
Xms = memory allocated in the start of the Java process.
Xmx = maximum memory the Java process can use.
For more info visit the official wiki.
Sponsored Server
Dark-Linux sponsor the NERDCRAFT server on nerdnest.it.
This server is sponsored by Dark-Linux having as OS: ArchLinux.
* To be enabled on the server you’ll have to register in the Forum of NerdNest and obtain the access from the relevant section, posting that you have been invited by Dark-Linux.
Popular Posts:
5 Responses to “How to play Minecraft on Archlinux”
First of all, pacman -Sy is unsupported. please change it to either pacman -Syu or pacman -S. If you do -Sy, then next time you install something you need to -Su.
Second, you don’t need openjdk6 to play minecraft, you can use openjdk 7 which is more recent and keeps people from having to uninstall their stuff to follow your guide.
https://wiki.archlinux.org/index.php/Minecraft#openJDK7
please fix this as it will break installs…
Thanks for the feedback.
I’m changing the post right now.
You don’t need to make .jar files executable. Although they are programs in a sense (for the java virtual machine), from the perspective of the operating system they are normal files that are read by a program called java.
As a rule of thumb: if it’s never the first word on the command line, it doesn’t need to be executable.
Also note that .jar files don’t start with a line like “#!/usr/bin/java” or “#!/bin/env java” or something like that, which the OS needs to know how to run an executable that isn’t a real binary (that is, a script or a “binary” for a VM).
Источник
Arch Linux User Repository
Search Criteria
Package Details: minecraft-launcher 928-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/minecraft-launcher.git (read-only, click to copy) |
---|---|
Package Base: | minecraft-launcher |
Description: | Official Minecraft Launcher |
Upstream URL: | https://mojang.com/ |
Keywords: | game minecraft |
Licenses: | All Rights Reserved |
Conflicts: | minecraft-launcher-beta |
Provides: | minecraft-launcher-beta |
Submitter: | shoghicp |
Maintainer: | petr (masonmojang) |
Last Packager: | petr |
Votes: | 966 |
Popularity: | 20.38 |
First Submitted: | 2017-01-18 14:17 |
Last Updated: | 2021-08-13 14:49 |
Dependencies (29)
- alsa-lib (alsa-lib-x205ta, alsa-lib-git, alsa-lib-minimal-git)
- at-spi2-atk (at-spi2-atk-git)
- at-spi2-core (at-spi2-core-git, at-spi2-core-minimal-git)
- atk (atk-git)
- dbus (dbus-elogind, dbus-git, dbus-x11, dbus-nosystemd-minimal-git, dbus-nosystemd, dbus-selinux)
- expat (expat-git)
- gcc-libs (fastgcc, gcc-libs-multilib-git, gcc-libs-git)
- gdk-pixbuf2 (gdk-pixbuf2-git)
- glib2 (glib2-clear, glib2-quiet, glib2-selinux, glib2-nodocs-git, glib2-git, glib2-patched-thumbnailer)
- glibc (glibc-git, glibc-force-mmap, lib32-glibc-force-mmap, glibc-minimal-git, glibc-linux4, glibc-dso)
- gtk3 (gtk3-adwaita-3-32-git, gtk3-git, gtk3-ubuntu, gtk3-no_deadkeys_underline, gtk3-classic, gtk3-patched-filechooser-icon-view, gtk3-typeahead)
- java-runtime (jdk5, jre7-openjdk-infinality, java-8-openjdk-shenandoah, jre8-openjdk-infinality, java-gcj-compat, jdk9, jre9, jdk-devel, jre10, jdk6, jdk12-openj9-bin, zulu-12-bin, jre6, jre12, jdk8-openjdk-dcevm, server-jre, jdk13-openj9-bin, jdk9-openj9-bin, jdk10, jdk11-openjdk-dcevm, jre8-openjdk-jetbrains, jdk10-openj9-bin, jdk14-openj9-bin, jdk7, jre7, jre14, jdk8-jetbrains, zulu-14-bin, zulu-13-bin, jdk-bcl, jre-bcl, amazon-corretto-15, jdk11-openjdk-dcevm-conflicts-fixed, zulu-embedded-jdk8, sapmachine-jdk-bin, jdk15-adoptopenjdk, jdk11-msopenjdk-bin, liberica-jre-8-full-bin, jdk8-arm, jre11-jetbrains-imfix, zulu-11-bin, zulu-8-bin, zulu-15-bin, amazon-corretto-16, jdk11-graalvm-bin, jdk8-graalvm-bin, jdk16-graalvm-bin, jdk-openj9-bin, jdk11-adoptopenjdk, liberica-jdk-8-full-bin, liberica-jdk-11-bin, liberica-jdk-11-full-bin, liberica-jdk-11-lite-bin, liberica-jre-11-bin, liberica-jre-11-full-bin, zulu-embedded-jdk11, jre8-adoptopenjdk, jre-openj9, jre8, jdk8, jre11, jre8-openjdk-shenandoah, zulu-16-bin, jdk-arm, jdk7-j9-bin, jdk7r1-j9-bin, jdk11-openj9-bin, jdk11-graalvm-ee-bin, jdk17-graalvm-bin, jdk8-openj9-bin, jdk8-j9-bin, jdk11-j9-bin, java-openjdk-bin, amazon-corretto-17, jre, zulu-17-bin, jdk-jetbrains, liberica-jdk-full-bin, amazon-corretto-8, amazon-corretto-11, zulu-embedded-jdk, jdk-adoptopenjdk, jdk16-adoptopenjdk, java-openjdk-loom-ea-bin, jre-jetbrains, zulu-jre-fx-bin, java-openjdk-ea-bin, jre-openjdk, jre11-openjdk, jre7-openjdk, jre8-openjdk)
- libcups (libcups-noudev, libcups-nosystemd-minimal-git, libcups-git)
- libdrm (libdrm-grate-git, libdrm-minimal-git, libdrm-git)
- libx11 (libx11-git)
- libxcb (libxcb-git)
- libxcomposite
- libxdamage
- libxext (libxext-git)
- libxfixes
- libxrandr (libxrandr-git)
- mesa (mesa-noglvnd, mesa-minimal+-git, mesa-git, mesa-minimal-git, mesa-d3d12)
- nspr (nspr-hg)
- nss (nss-hg)
- pango (pango-ubuntu, pango-minimal-git, pango-git)
- util-linux-libs (util-linux-libs-nosystemd-minimal-git, util-linux-libs-selinux, util-linux-libs-aes)
- xorg-xrandr (xorg-xrandr-git)
- zlib (zlib-static, zlib-git, zlib-asm, minizip-asm, zlib-ng-git, zlib-ng)
- flite (flite-fpic, flite1-patched) (optional) – narrator support
Required by (3)
Sources (3)
Pinned Comments
petr commented on 2021-10-08 09:04
The package version is the version of the launcher bootstrap — the part that actually downloads and updates the launcher.
That means the version number of the actual launcher (2.x.xxx) is different from the version here (9xx+) on a fundamental level, and should not be compared.
The package is outdated only when the bootstrap version you get here is different from the bootstrap version you would get from minecraft.net when using the raw tarball.
Latest Comments
petr commented on 2021-10-08 09:04
The package version is the version of the launcher bootstrap — the part that actually downloads and updates the launcher.
That means the version number of the actual launcher (2.x.xxx) is different from the version here (9xx+) on a fundamental level, and should not be compared.
The package is outdated only when the bootstrap version you get here is different from the bootstrap version you would get from minecraft.net when using the raw tarball.
kode54 commented on 2021-10-08 05:10
Undoubtedly confusion between the application version, which Mojang lists, and you need to install the package to see locally, and the package file revision number, which you need Mojang’s package repository manifest to see, as they only link to un-numbered packages for the initial download.
It will stay marked as out of date until a maintainer shows up to unflag it. It might help if someone pins either this, or a more concise explanation of the above, so that future users do not get confused by the two different version numbers.
huantian commented on 2021-10-08 03:56
Why is this package marked as outdated when it isn’t?
kode54 commented on 2021-10-07 05:13
@Alchemistic: Why is that necessary? Anyone who has followed the Arch install guide should have their locale properly configured anyway.
Alchemistic commented on 2021-10-05 13:22
If the launcher isn’t opening, check the locale (type locale in terminal). If the output has these two lines: locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory .
Open the terminal and run this: export LC_ALL=»en_US.UTF-8″
goetzc commented on 2021-10-03 21:33
Alec153 commented on 2021-09-28 16:15
gnome-keyring should be added as a dependency as it is required for Microsoft accounts to save a security token.
IslandC0der commented on 2021-09-25 14:46
alfrednewman commented on 2021-09-18 23:01
I have to keep logging into the Microsoft account with the Minecraft launcher. Any way to fix this so it keeps me logged in?
torvald commented on 2021-09-14 15:51
@clebermatheus this package is no longer outdated
Copyright © 2004-2021 aurweb Development Team.
AUR packages are user produced content. Any use of the provided files is at your own risk.
Источник
Minecraft
Minecraft is a game about breaking and placing blocks. At first, people built structures to protect against nocturnal monsters, but as the game grew players worked together to create wonderful, imaginative things.
Contents
Client
Installation
The minecraft client can be installed via the minecraft-launcher AUR package. It provides the official game launcher, a script to launch it and a .desktop file. The package is officially recommended by Mojang on their website.
Firewall configuration for Client/LAN worlds
Most shared Minecraft worlds are hosted using dedicated Minecraft server. If this is how you want to host, see Server section below.
A simpler way is to allow others to join your current Minecraft game. When playing, your Minecraft client also allows others to join the game in progress. Your client automatically broadcasts the info about your game on port 4445. It will also listen for TCP connections on which other players join. This TCP listening port is picked at random every time you start Minecraft. This works well if you do not have a firewall. But if your firewall blocks incoming TCP connections, then it is very tricky to allow this random port in.
In conclusion, to allow your client to host a local LAN game, your firewall need to allow:
- UDP port 4445 to broadcast your game
- random incoming TCP port
See [1] for more information.
Bedrock Edition Server
This version allows the hosting of Bedrock Edition Minecraft, which is currently supported on Windows 10 and Mobile, Amazon FireOS and FireTV, Android and iOS, Xbox One, Playstation 4, Nintendo Switch and Samsung Gear VR devices.
Installation
The Bedrock Minecraft server can be installed via the minecraft-bedrock-server AUR package. It provides a systemd unit file. This package creates a separate minecraft-bedrock account.
Starting the server
To start the server you may either use systemd or run it directly from the command line. Using systemd you may start and enable the included minecraft-bedrock-server.service . Alternatively run the following as the minecraft-bedrock user inside the /opt/minecraft-bedrock-server directory:
Server Configuration
The configuration file server.properties contains the server settings and additional documentation. Most importantly, server-port determines the UDP port at which the server will listen for incoming connections. The default port is 19132 for IPv4, and 19133 for IPv6. UDP ports 43351 for IPv4 and 51885 for IPv6 are required for authentication.
Java Edition Server
Installation
The Java Edition Minecraft server can be installed via the minecraft-server AUR package. It provides additional systemd unit files and includes a small control script.
Also see #Alternative servers for an overview of alternative programs allowing to host Minecraft.
Setup
Introduction
In the installation process the minecraft user and group is introduced. Establishing a Minecraft-specific user is recommended for security reasons. By running Minecraft under an unprivileged user account, anyone who successfully exploits your Minecraft server will only get access to that user account, and not yours. However you may safely add your user to the minecraft group and add group write permission to the directory /srv/minecraft (default) to modify Minecraft server settings. Make sure that all files in the /srv/minecraft directory are either owned by the minecraft user, or that the user has by other means read and write permissions. The server will error out if it is unable to access certain files and might even have insufficient rights to write an according error message to the log.
The package provides a systemd service and timer to take automatic backups. By default the backups are located in the backup folder under the server root directory. Though to keep the disk footprint small only the 10 most recent backups are preserved (configurable via KEEP_BACKUPS ). The related systemd files are minecraftd-backup.timer and minecraftd-backup.service . They may easily be adapted to your liking, e.g. to follow a custom backup interval.
Starting the server
To start the server you may either use systemd or run it directly from the command line. Either way the server is encapsulated in a tmux session which is owned by the minecraft user. Using systemd you may start and enable the included minecraftd.service . Alternatively run
Accepting EULA
In order to run the minecraft server you must accept the EULA. This only needs to happen once after installation. The EULA file resides under /srv/minecraft/eula.txt after being created by the package. You will need to edit this file to state that you have agreed to the contract in order to run the server. All you need to do is change:
to the value true. Here is an example of accepted EULA in /srv/minecraft/eula.txt :
Firewall Configuration for Server Worlds
There are three settings in the server.properties which determine ports that your server will use.
server-port determines the TCP port at which the server will listen for incoming connections. Default port is 25565 .
query.port determines the UDP port at which the server will share game info/advertising information. Default port is 25565 . Note that since server and query ports are TCP and UDP, they can share the same port. To enable query, you also have to specify enable-query=true .
rcon.port determines the TCP port if you choose to allow remote access to admin console. Default port is 25575 . To enable rcon, you also have to specify enable-rcon=true and rcon.password=. .
You will need to allow incoming connections at least on the server-port . It is advisable to allow query and its query.port . On the other hand, enabling remote console access is a security risk, and you should be careful of allowing it.
Above information is for the official Minecraft server. If you are using alternate server, please see its documentation for details about its configuration.
See [2] and [3] for more information.
Server management script
To easily control the server you may use the provided minecraftd script. It is capable of doing basic commands like start , stop , restart or attaching to the session with console . Moreover it may be used to display status information with status , backup the server world directory with backup , restore world data from backups with restore or run single commands in the server console with command do-something .
Tweaking
To tweak the default settings (e.g. the maximum RAM, number of threads etc.) edit the file /etc/conf.d/minecraft .
For example, more advanced users may wish to enable IDLE_SERVER by setting it to true . This will enable the management script to suspend the server if no player was online for at least IDLE_IF_TIME (defaults to 20 minutes). When the server is suspended an idle_server will listen on the Minecraft port using ncat(1) (also called netcat or simply nc for short; see Network tools#Netcat) and will immediately start the server at the first incoming connection. Though this obviously delays joining for the first time after suspension, it significantly decreases the CPU and memory usage leading to more reasonable resource and power consumption levels.
Alternative servers
Spigot (respectively Craftbukkit)
Spigot is the most widely-used modded Minecraft server in the world. It can be installed as spigot AUR via the AUR. The spigot PKGBUILD builds on top of the files from the minecraft-server AUR package. This means that the spigot server provides its own systemd unit files, spigot script and corresponding script configuration file. The binary is called spigot and is capable of fulfilling the same commands as minecraftd . The configuration file resides under /etc/conf.d/spigot .
Be sure to read #Setup and replace minecraftd with spigot wherever you encounter it.
It is somewhat affiliated with Bukkit and has grown in popularity since Bukkit’s demise.
Cuberite
Cuberite is a highly efficient and extensively moddable Minecraft server, written in C++ and Lua. It achieves much better performances than the vanilla Minecraft server, but is not fully compatible with the latest Minecraft client (some game aspects might be missing or not working).
Cuberite minecraft server can be installed as a cuberite AUR package, which provides a simple web interface by default at port 8080 with which most server operations can easily be done through the browser. The cuberite PKGBUILD builds on top of the files from the minecraft-server AUR package. This means that the cuberite server provides its own systemd unit files, cuberite script and corresponding script configuration file. The binary is called cuberite and is capable of fulfilling the same commands as minecraftd . The configuration file resides under /etc/conf.d/cuberite .
Be sure to read #Setup and replace minecraftd with cuberite wherever you encounter it.
PaperMC
PaperMC is a Minecraft server, compatible with Spigot plugins which aims to offer better performance. It can be installed via papermc AUR .
Be sure to read #Setup and replace minecraftd with papermc wherever you encounter it.
Forge
Forge is a widely used Minecraft modding API. The following server packages are available:
Be sure to read #Setup and replace minecraftd with forged ( forge-x.x.xd for legacy versions) wherever you encounter it.
Fabric
Fabric is a lightweight, experimental modding toolchain for Minecraft. The server package can be installed via fabric-server AUR .
Be sure to read #Setup and replace minecraftd with fabricd wherever you encounter it.
Additional notes
- There are several server wrappers available providing everything from automatic backup to managing dozens of servers in parallel, refer to Server Wrappers for more information. However the management script provided by the AUR packages should suffice most needs.
- You might want to set up a systemd timer with e.g. mapper to generate periodic maps of your world.
- Be sure to take periodic backups e.g. using the provided management script (see #Introduction) or plain rsync.
Minecraft mod launchers
You can launch Minecraft from different so called launchers that often include an array of mod packs to enhance one’s gameplay and add mods.
- Feed The Beast — Originated as a custom challenge map in Minecraft that made heavy use of multiple tech mods and evolved into a mod package launcher.
https://www.feed-the-beast.com/ || ftbaAUR
- MultiMC — Sandbox environment manager for separable pack association.
https://multimc.org/ || multimc-binAUR
- Technic Launcher — Modpack installer with a focus on mod discovery via popularity rankings.
https://www.technicpack.net/ || minecraft-technic-launcherAUR
Other programs and editors
There are several programs and editors which can make your Minecraft experience a little easier to navigate. The most common of these programs are map generators. Using one of these programs will allow you to load up a Minecraft world file and render it as a 2D image, providing you with a top-down map of the world.
- AMIDST (Advanced Minecraft Interface and Data/Structure Tracking) ( amidstAUR ) is a program that aids in the process of finding structures, biomes, and players in Minecraft worlds. It can draw the biomes of a world out and show where points of interest are likely to be by either giving it a seed, telling it to make a random seed, or having it read the seed from an existing world (in which case it can also show where players in that world are). The project has been forked in the past, of which the most notable one is «Amidst Exporter» ( amidstexporterAUR ) which includes a patch for calculating Ocean Monument locations in 1.8+ worlds.
- Mapcrafter ( mapcrafter-gitAUR ) is a high performance Minecraft map renderer written in C++ which renders worlds to maps with an 3D-isometric perspective. You can view these maps in any webbrowser hence they are easily deployed on one’s server. Mapcrafter has a simple configuration file format to specify worlds to render, different rendermodes such as day/night/cave and can also render worlds from different rotations.
- Minutor ( minutor-gitAUR ) is a minimalistic map generator for Minecraft. You are provided with a simple GTK based interface for viewing your world. Several rendering modes are available, as well as custom coloring modes and the ability to slice through z-levels.
Troubleshooting
Server on ARM devices
Minecraft server should run without any issues on ARM devices with latest Java, such as jre-openjdk-headless . However, if you encounter any issues, try using jdk-arm AUR instead. Also consider #Cuberite server as an alternative.
Client or server does not start
It might be the problem with Java version. Java version 8 is guaranteed to work well in all cases.
Both Minecraft server and the actual game work perfectly fine with the latest version of Java, such as jre-openjdk , but the Minecraft game launcher (and possibly all other mods) might only work with the Java version 8.
Broken fonts with MinecraftForge
Force Unicode fonts from the language menu.
Since you cannot read any of the menu options: in the main menu, choose the bottom-left most button is Options, second-from-the-bottom on the left side is the Language Button. From there, the Force Unicode Font button is on the bottom, on the left side.
MultiMC unable to build
If you are trying to install multimc5 AUR and get an error similar to:
The error could be caused by Java missing, which can be fixed by installing jdk8-openjdk . If the error is not fixed by that or Java was properly installed in the first place, the wrong version could still be the default environment:
You can set the default java version using archlinux-java set .
Cannot change pulseaudio sink
If you are unable to switch audio output device (indicated by DONT_MOVE flag in the output of pacmd list-sink-inputs ) then the following openalsoft config may help
Источник