Syndicate
Site (RSS, Atom)
Contact
Weblog status
Total entries: 78
Last entry: 2022-10-16 13:52:24
Last updated: 2022-10-16 14:12:58
powered by vim, bash, cat, grep, sed, and nb 3.4.2

2018-04-03 12:31:22

tuxad Fedora 24 repository

In the small tutorial Python with Minecraft on Fedora I have explained how to set up your system in order to use Python with Minecraft.

Now it is more easier to try the examples of the book "Learn to program with minecraft" by Craig Richardson (german title: "Python programmieren lernen mit Minecraft") because now there's a YUM/RPM package repository which makes the setup more easy.

Formerly there was only a tuxad repo for RHEL/CentOS 5 but now there's also a package repository for Fedora (currently just F24). Activate it by installing its RPM package:


rpm -i http://ngtx.de/tuxad-f24.rpm

This repo contains currently the following packages:

  • spigot
  • RaspberryJuice
  • py3minepi
  • mcedit2

Important notes:

  • due to legal reasons the spigot package is NOT a binary package but it will download and compile everything needed (takes some time to install)
  • the spigot, RaspberryJuice and py3minepi packages write some information to console, separate installation per package from command line is recommended

After activating the repo you just need to install the 3 packages and copy the server directory to a location you want:

1.) Install spigot:


# dnf install spigot
[...]
  Installing  : spigot-0.20180123.rev1.12.2.1-1.noarch
[...]
===== spigot server was build and placed here: =====

-rw-r--r--  3965192 /usr/share/spigot/BuildTools.jar
-rw-r--r-- 43265185 /usr/share/spigot/spigot-1.12.2.jar
-rwxr-xr-x       60 /usr/share/spigot/start-spigot.sh

Note: There's also a spigot-0.20180123.rev1.8.8.1 package for server 1.8.8.

2.) Install RaspberryJuice:


# dnf install RaspberryJuice
[...]
  Installing  : RaspberryJuice-0.20171101-3.noarch
[...]
=== storing in spigot plugins dir ===

-rw-r--r-- /usr/share/spigot/BuildTools.jar
drwxr-xr-x /usr/share/spigot/plugins
-rw-r--r-- /usr/share/spigot/plugins/raspberryjuice-1.11.jar
-rw-r--r-- /usr/share/spigot/spigot-1.12.2.jar
-rwxr-xr-x /usr/share/spigot/start-spigot.sh

3.) Install py3minepi:


# dnf install python3-py3minepi
[...]
  Installing  : python3-py3minepi-0.20150630-4.noarch
[...]
=== test script is located here: ===
/usr/share/doc/python3-py3minepi/py3minepi-test.py
=== run it:
python3 /usr/share/doc/python3-py3minepi/py3minepi-test.py

4.) Create/copy server dir:


$ cp -af /usr/share/spigot my-ms-server

In your server directory you will find a script start-spigot.sh to easily start the spigot server. To test everything you may use something like


$ cd my-ms-server/
$ ./start-spigot.sh  # will terminate because of eula
$ echo eula=true >eula.txt
$ screen -S spigot-server-session -dm ./start-spigot.sh
$ sleep 50  # wait for spigot to come up
$ python3 /usr/share/doc/python3-py3minepi/py3minepi-test.py
$ screen -dr spigot-server-session  # to foreground

[...]
[12:28:27 INFO]: [RaspberryJuice] Starting input thread
[12:28:27 INFO]: [RaspberryJuice] Starting output thread!
[12:28:28 INFO]: Hello server!
>

Note: Use "Ctrl-a d" to put screen session to background again.


Posted by Frank W. Bergmann | Permanent link | File under: rpm, yum, repository, fedora, minecraft, python