Меню Рубрики

Установка pocketmine на linux

Как самому установить сервер PocketMine на VDS

Эта статья для тех, кто не хочит платить денежки за аренду серверов MCPE у mcpehost или 24serv и прочих. Вы сами можете установить и запустить свой сервер, используя любой понравившийся VDS-хостинг (возможно, найдете даже бесплатный!).

Если вы приняли такое решение, то выбирайте хостинг, регистрируйтесь и вперед, в панель управления! И не пугайтесь, все достаточно просто! У вас получится!

Установка PocketMine

Пожалуйста, обратите внимание: все команды Должны вводиться в консоли SSH.

В первую очередь нам необходимо установить Dependencies (в линукс-системах — зависимости; этапы компиляции, которые должны быть удовлетворены перед переходом к другим этапам для успешной компиляции программы. Этот термин также используется в случае, когда набор программ, которые вы хотите установить, зависит от других программ, которые могут быть установлены или отсутствовать в вашей системе. В этом случае вы можете получить сообщение, сообщающее вам, что системе для продолжения установки необходимо «удовлетворить зависимости»).

Для установки введите команду:

yum install -y perl gcc g++ gcc-c++ make automake libtool autoconf m4 gcc-multilib screen bison

После завершения установки вам нужно создать папку, в которую будет установлен сервер PocketMine…

Сделав это, введите команду:

После этого, мы входим в каталог мы только что создали.

Для этого введите команду…

Теперь мы установим инструменты для установки нашего сервера PocketMine

Чтобы сделать это – введите команду:

wget https://raw.githubusercontent.com/PocketMine/php-build-scripts/master/installer.sh

chmod +x installer.sh

./installer.sh

Если консоль выдаёт сообщение:

This script is running as root, this is discouraged. It is recommended to run it as a normal user as it doesn’t need further permissions. If you want to run it as root, add the -r flag.

./installer.sh -r

Теперь у нас есть все необходимые инструменты, чтобы установить и запустить наш сервер.

Чтобы запустить сервер, введите команду:

screen ./start.sh

Примечание: чтобы предотвратить запуск нескольких серверов, использующих один и тот же порт, я предлагаю использовать экраны, такие как команда сверху, а чтобы вернуться к экрану/консоли введите:

Ещё одно замечание: Чтобы подключить ваш сервер и получить статус онлайн в мобильной версии Майкрафта, порт (по умолчанию) 19132 должен быть открыт…

Как открыть порт, читаем далее.

Открытие порта для сервера

Это очень простой путь, в сравнении с указанием порта в вашем роутере. Вы в нескольких секундах от успешного запуска вашего сервера!

По умолчанию, мы открываем порт 19132.

Чтобы сделать это – введите команду

sudo firewall-cmd —zone=public —add-port=19132/udp —permanent

sudo firewall-cmd —reload

Вот и всё! Порт 19132 открыт, и вы можете запускать свой собственный сервер! Удачи!

Кстати, рекомендую вам купить VDS сервер для вашего проекта у хостинг-провайдера Fozzy. При заказе используйте наш специальный промокод mcpe для получения 10% скидки!

источник

Pocketmine for Linux Mint! (MCPE 0.16.0.5)

Introduction: Pocketmine for Linux Mint! (MCPE 0.16.0.5)

Welcome back to another exiting tutorial! Todays subject: How to create and run a Pocketmine server on Linux Mint for MCPE 0.16.0.5! The reason I decided to use Linux Mint instead of Cent OS or Ubuntu was reasons of personal preferences. I also could not find any tutorial for a Minecraft Pocket Edition server on the Mint, so here I am. It is now 5 days after the release of MCPE 0.16.0.5! so I hope this is useful to you. Let’s get serving!

Attachments

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: The Extremely Simple Way

If you don’t wanna rip your hair out with terminal commands, simply DOWNLOAD THIS FILE. Unzip that file and paste to your desktop; it has a fresh PocketMine server that you can very simply unzip and run. However, if your a bit eager to learn more about PocketMine and Linux itself, continue on with this tutorial.

Step 2: The Slightly Harder Way

To get started, right click on your Desktop. Select ‘Create new folder’. Rename the folder ‘pocketmine’. (PIC 1-4)

Step 3: Terminal Lovers.

Ugh! Terminal! Well, fear not you lover of the terminal, I have two commands you need to run if you want to have a server. (Trust me, it’s easy!) Run the following command:

cd /home/(your username)/Desktop/pocketmine

Remember! (Your username) is whatever your username is. You will have to put your username in the in place of mine. You can find your username in the /home folder by clicking on the folder icon in the taskbar and clicking the «up» button at the top-left of the file. Run the command to find your file. e.g. cd /home/Jerry/Desktop/pocketmine.

Once in your pocketmine file through terminal, type the following:

wget -q -O — https://raw.githubusercontent.com/PocketMine/php-build-scripts/master/installer.sh | bash -s —

That will install the Pocketmine files needed to run the server into the ‘pocketmine’ folder on your Desktop. For the codes original source, visit The PocketMine Linux Page.

(P.S.) Remember that the Linux terminal is case-sensitive.

Step 4: PocketMine-MP.phar

The PocketMine-MP.phar is what makes the server compatible with the latest release of MCPE. You can download the .phar file from my MediaFire Repository: PocketMine-MP.phar 0.16.0.5

Читайте также:  Установка пульта webasto discovery 3

Download that and rename it to ‘PocketMine-MP.phar’ and leave out the quote marks.

Look at the second picture to see how to rename it. Once you’ve renamed the file, drad and drop it into your ‘pocketmine’ folder an

Step 5: Checklist

Got everything? Here is the checklist of things you need: 1. The pocketMine-MP.phar for MCPE 0.16.0.5. 2. All of the stuff that you got from running the command found in step 2. 3. Patience.

Step 6: Final Preperation

Ok, so, open your ‘pocketmine’ folder you created on the desktop in step 1. There should be a few files there, but you need to double click the «./start.sh» shown in picture 1 above and then click «Run in Terminal». Follow the instructions. There is no need to run the setup because I’ll cover that in a later step.

Step 7: Start the Server!

To start the server, type ‘./start.sh’ or if you have closed the installer window, go back to your ‘pocketmine’ file on the desktop and click ‘./start.sh’ again. That will start your shiny new server!

Start your server and you should see the ‘0.16.0.5’ numbers up top. Type ‘stop’ in the console window! (Always close your server by typing ‘stop’!) Next, delete the file in ‘pocketmine’ called ‘PocketMine-MP.phar’. Don’t worry, this .phar isn’t needed. What we need is the .phar you downloaded in step 2. Rename the downloaded file to ‘PocketMine-MP.phar’ or the server won’t work.

Now drag and drop the newly named file into your «pocketmine» folder and start the server.

Step 8: Running for 0.15.10

If you did everything right, you should see something like this shown in picture 1 above.

Now if there is an error or the server will not start, make sure that you followed the previous steps properly. If you still can’t run it, look it up. There is enough information online on the subject of PocketMine servers to fill a library. If you still are having trouble, check out the fourms found HERE concerning your issue. Or leave me a comment about the problems you’re having.

Step 9: Tinkering With the System

To edit your servers properties, go to the pocketmine folder and click the «server.properties» folder. Here, you can edit the, well, properties of your server. For instance, to make a name for your server, click the «motd» and erase the «MineCraft: Pocket Server». Write any name of your choosing so long as it is not being stolen from someone else.

Mess around with the settings and look up any additional information on the Internet you may need to know.

Step 10: Adding Plugins

To add plugins, go to the mother ship file, you guessed it, the ‘pocketmine’ folder. Double click the ‘Plugins’ folder and you will open a folder with another folder marked ‘genisys’. Do not delete this! To add plugins, go to the PocketMine plugin repo found HERE. Pick and choose what you like and as I said, use the Internet if you have questions. As I also said, if you cannot find what you need, ask me.

Step 11: Port Forwarding

OK, you have your brand new PocketMine server complete with plugins and an awesome owner ready to dictate the every move of your players! wait. We don’t have any players! To allow people from around the world to join your cool server, you need to port forward the server. Whu? Do this.

Step 1. Assuming you have already downloaded PM and have set it up the next step is to port forward.
Step 2. Open up a terminal window. Once you have opened it, type in «/sbin/ifconfig». (Do not add the » «)

Step 3. Look for the ‘inet addr:’ (Pic 1) ip which should be something like 192.168.2.1. It can vary.

Step 4. Open up your browser and type in ‘Whats my ip’ into the address bar.Copy the ip shown.

Step 5. Now in the URL bar, paste that IP you just copied. This should take you to the wifi router page. If it has a login go ahead and login if not continue to the next step.

Step 6. Look for the virtual servers tab. The name may vary depending on the wifi router.

Step 7. Once you have opened up the virtual servers page, you will see that it will ask you to enter a port, ip, and a name. For the port you will type in 19132, (Or whatever port you selected in the server.properties file) the inbound and private port. Name the server and you are set. Just save the settings.

Step 7. To connect to your own server you will always connect locally if you are using the wifi router you used to port forward.

Читайте также:  Установка апк и зип

Step 8. If you want other people to connect you will give them your static ip and the port. To find out your ip just go to google and type in ‘Whats my ip’.

Step 9. When connecting to your own server, the server should show up as a local server on your device. Just click on it and your ready to go!

Step 12: Info + Downloads

This is all the help you should need. Need a download or info not shown here? Leave a comment and I’ll add it if needed.

REMEMBER: Always close your server by typing ‘stop’ or else you will lose data!

If you wish to join my PocketMine server, the IP is: 75.143.235.234 And the port is: 19132

Step 13: Credits

A big shoutout to iamadpod, a PocketMine fourms staff member, for the awesome alternate guide shown in the last step!

Also thanks to Kem, a member from the PocketMIne fourms website for our port forwarding guide! (I adapted the guide for Linux.)

And a big thanks to the PocketMIne and the Genisys team for all of their hard work getting us this awesome software to make MCPE servers.

Step 14: Questions & Answers

Have a question you badly need answered but can’t find any good advice online? Leave a comment with the question and if «vital» for other users know-how, I’ll post the question + the answer here!

источник

Установка pocketmine на linux

» style=»max-height:300px»>

The game Minecraft has grown incredibly in recent years, both on game console platforms and on mobile devices.

One of the features that people have greatly appreciated is the ability to play as a team or against each other in a controlled environment. To do this, you must have a Minecraft PE server in which you can invite our friends to join you.

Today we are going to look at the steps necessary to have your own Minecraft PE server.

You will need a server with the latest distribution of Ubuntu 16.04. If you do not already have one, we offer excellent servers right here.

You must connect to your server by SSH. Several software can help you make the connection. Personally, I prefer the software named PuTTY.

The first step when entering a new server is to make sure it is up to date. Perform the following two commands to update your Ubuntu server (the first SSH command will search for the list of available updates and the second command will install the new modules).

Note: It is possible and quite normal that when you start a command with “sudo”, the system asks for the server administrator password. Usually the Ubuntu operating system will ask for the password only during the first command executed with “sudo”. The reason is that the “sudo” command is used to run an application with administrator rights.

Once the server is up to date, you must apply a minimum of security. This section is optional, but highly recommended.

By default, the SSH service of a server is listening on port 22. Therefore, many of the hackers will try to exploit this port. Fortunately, it is very simple to change the default port on a Linux server.

You should see the contents of the file as follows:

Minicraft PE – Changing SSHD Settings

You need to replace the port number on the line below the cursor, shown in the picture above. For this tutorial, I will change port 22 for the port 22222.

Note: If you have never used the “VI” file editor in a Linux server, here are the basics. To modify a file, start by typing the “i” character (the text “- INSERT -” will appear at the bottom of the screen). Then make the desired changes. In this case; change the port number. When the changes are complete, press the “ESC” key to stop the edit mode. To save, enter the character “:”, this one allows you to enter a command. Then type the letters “wq” and the enter key (the “w” means “write” and the “q” “quit”).

Now you must prepare the firewall to prevent everyone having access to your server. We will place four rules in the server.

The first rule will block all incoming connections in the server:

Then, allow all outgoing connections from the server.

Now we must allow SSH to connect to the server so that we can always have access to the server. Important, I put port 22222 here because it’s the one I opened in my server, if you selected another port, please change 22222 for your port.

Finally, we will open the necessary port for the Minecraft PE server.

Now that we’re done with our firewall configuration, we need to restart the SSH service and the firewall. The order is important to avoid getting banned outside the server.

Читайте также:  Установка вентилятор для процессора

Then restart the SSH service (You may have to reconnect).

Good, now that security has been improved on your server, you can start the installation of the necessary modules for the Minecraft PE server. We will install “PocketMine MP” as Minecraft PE server, it is easy to use and is still maintained regularly.

First, install the necessary modules for the Minecraft PE server to function properly. I will not go into the description of each module. The curious can find descriptions easily on the web. I will simply give you’re the command to enter.

Now we must create a user under which we will run the Minecraft PE server. Creating a user improves the security of the server. I will create a user named “minecraft” with a folder in “/home/minicraft/”.

And then we will assign a password to the user (the system will ask you to enter the password twice.

Minecraft PE – Adding a User by SSH

For the rest of the tutorial, we will use the user “minecraft” we just created. To change users, run the following command

And then, move to the directory we assigned to the user.

Once in the right place, we need to install the suite of software necessary for the Minecraft PE server to work, thankfully, this is easily done with a single command.

The installation may take a few minutes, once completed we will use the application “screen” that will allow us to run our server Minecraft PE even if we are not connected by SSH.

To start the Minecraft PE server with the “screen” application it is necessary to launch the two following commands.

During the first launch, the system will ask you in which language should it start the server, accept the license and if you want to start the configuration wizard. In this tutorial I’ve kept all the default values.

Minecraft PE – Minecraft PE Server First Startup

After that, the Minecraft PE server will start without asking any questions.

Minecraft PE – Server running

Once the server is functional, to go back without closing your Minecraft PE server, press the “CTRL-A” keys followed by the “D” key. You will be back in the command line, but your Minecraft PE server will continue to work.

To return to the screen where the Minecraft PE server display the information, simply perform the following command.

Finally, if you want to close your Minecraft PE server smoothly, when you are on the screen displaying the Minecraft PE server status, type the word “stop” followed by the enter key.

источник

Как установить PocketMine | Уроки по созданию Minecraft PE сервера

Всем привет! Сегодня хочу рассказать вам как сделать сервер для Minecraft PE или же другими словами, как установить PocketMine. В этом уроке речь пойдет о установке PocketMine-MP на компьютер. В следующих уроках вы так же узнает, как установить PocketMine на Android, Linux, MacOS, IOS. Так что ждите :). По мере добавления новых туторов, буду уведомлять вас в группе по Minecraft PE так что вступайте, что бы узнать первым о новых туторах. Так же хотелось бы отметить, что я буду делать для вас большую серию туториалов. По моим планам, в неделю будет выходить 2 — 3 урока.

В общем давайте перейдем к делу, для начала вам нужно будет скачать PocketMine на компьютер. Это вы можете сделать, по оставленной мною ссылке чуть левее.

Т.е. нажав на ссылку, вы попадете на эту страничку:

На странице доступны 2 версии для скачивания — это 32bit, 64bit. В чем разница? Объяснять долго, но вам придется это узнать. Как? Гугл в помощь, однако если у вас больше 4 гигов оперативной памяти, то можете смело скачивать 64bit-ную версию. После того, как вы скачали, распакуйте архив и запустите установщик.

Ну тут вроде понятно, жмем на кнопочку «Next>»

Далее соглашаемся с правилами, нажимая на кнопку «I Agree», учтите (!), программное обеспечение распространяется по лицензии LGPL!

Далее мы должны выбрать путь установки. По умолчанию будет предложен путь, в котором находится файл — установщик. Т.к. мне будет удобней видеть сервер на рабочем столе, я соответственно и выберу «Рабочий стол», а далее нажму на кнопку «Install»

После этого пойдет установка, ВНИМАНИЕ! установка будет длиться 5 — 10 минут ( возможно больше ), ибо вместе с ядром установятся драйвера.


Ну и в конце установки мы запустим консоль.

На этом, в общей сложности, все. Проблем с установкой быть не должно. Если у вас возникли вопросы, вы можете задать их на нашем форуме, в специальном разделе разделе. В следующей статье я вам расскажу как настроить PocketMine. Если вы хотите видеть больше уроков, пожалуйста, поддержите меня. Как? Вы можете поделиться с друзьями какой ни будь статьей или вступить в группу в ВК.

источник

Добавить комментарий

Adblock
detector