Minecraft forge установка linux

Сервер Forge майнкрафта на линуксе через консоль

Есть ноутбук с неработающей графической картой, который я хочу использовать в качестве сервера для майнкрафта (Forge с модулями). На компьютер я установил линукс (Debian 10) без графического интерфейса, но с SSH-сервером, через который и буду управлять системой.

Выключать компьютер я буду командой: «sudo shutdown -h now».

Установка Java

Для установки java в терминал вводим команду «sudo apt install openjdk-11-jdk».

Когда установка закончится, можно проверить введя команду «java —version» в терминале.

Загрузка файлов сервера

В домашней папке создаём новую папку «minecraft» командой «mkdir minecraft».

Чтобы скачать файлы сервера, вначале надо узнать адрес этих файлов. Для этого переходим на сайт forge minecraft. На данный момент актуальная версия 1.16.5. Там я узнаю ссылку на «Installer«.

Теперь приступим к загрузке файлам сервера:

cd ~/minecraft wget https://maven.minecraftforge.net/net/minecraftforge/forge/1.16.5-36.1.0/forge-1.16.5-36.1.0-installer.jar chmod +x forge-1.16.5-36.1.0-installer.jar

Распаковка и настройка сервера

Переходим в новую папку «minecraft»: cd ~/minecraft/

Распаковываем файлы для сервера: «java -jar forge-1.16.5-36.1.0-installer.jar —installServer»

Запускаем сервер в первый раз: «java -Xms1024M -Xmx3000M -jar forge-1.16.5-36.1.0.jar nogui»

Редактируем файл “eula.txt”, там меняем “eula=false” на “eula=true”. (nano eula.txt)

После этого запускаем сервер во второй раз: «java -Xms1024M -Xmx3000M -jar forge-1.16.5-36.1.0.jar nogui«

Во время второго запуска будет создана папка «world» и конфигурационный файл server.properties.

Сервер останавливается командой «stop».

А папку «world» можно удалять командой «rm -r world».

Настало очередь поправить файл «server.properties» (nano server.properties).

Там подправил следующие параметры:

snooper-enabled=false server-port=25500 online-mode=false motd=Server by Me

Добавление модов

На другом компьютере уже собрал интересные мне моды и упаковал их в zip-архив. Первая попытка перенести файлы через флешку у меня не получилась. Поэтому я их выложил на свой локальный виртуальный сервер, от куда и буду их переносить на сервер.

Для начала установим пакет для распаковки zip-архивов: «sudo apt install unzip».

А теперь загружаем архив и распаковываем его:

cd ~/minecraft/mods/ wget http://192.168.1.2/mods.zip unzip mods.zip mv mods/* . rm -r mods

Иконка сервера

Иконка для сервера является картинка размером 64х64 пикселя, сохранённая в формате PNG, при этом она должна называться «server-icon.png». Создаю на своём компьютере эту картинку и переношу её на свой локальный виртуальный сервер. Дальше делаю по вышеописанной схеме:

cd ~/minecraft/ wget http://192.168.1.2/server-icon.png

Автоматическое сохранение мира

Убеждаемся, что мы находимся в папке “minecraft”. (cd ~/minecraft)

Читайте также:  Google remote desktop linux

Создаём файл “mcbackup.sh” (nano mcbackup.sh) и пишем внутрь:

# What to backup. Name of minecraft folder
backup_files=»minecraft»

# Specify which directory to backup to.
# Make sure you have enough space to hold 7 days of backups. This
# can be on the server itself, to an external hard drive or mounted network share.
# Warning: minecraft worlds can get fairly large so choose your backup destination accordingly.
dest=»/home/user/minecraftbackups»

# Create backup archive filename.
day=$(date +%A)
archive_file=»$day-$backup_files-.tar.gz»

# Backup the files using tar.
cd /home/user && tar zcvf $dest/$archive_file $backup_files

Проверяем работает ли этот скрипт….

Вписываем команду в кронджоб (crontab -e):

05 3 * * * /home/user/minecraft/mcbackup.sh &> /dev/null

Источник

How do I install minecraft Forge?

I’ve downloaded minecraft via the PPA & want to use mods, the only mods I can find need Forge to run, on Microsoft doing so is easy, anyone know how to on Linux? (I prefer to do it via terminal) (I’ll add info or change info as I get responses) (I’m technically using lubuntu)

3 Answers 3

I figured it out after asking.

then I downloaded it to the desktop (I used 1.10 version, but that doesn’t really matter)

then i used then commands in this order

$ cd Desktop $ java -jar jarfilename.jar 

And now it’s modded. .;,;. (I used the command to launch the jar file due to me not being able to do so any other way on my computer).

As far as I can see this one is easy:

go to ‘http://files.minecraftforge.net/’ and select the forge version you need to use and download either the sources or the universal jar file. For this answer I assume you used the jarfile.

now cp /path/to/downloaded.jar /path/to/minecraft/mods/.jar

start minecraft, it should be modded now and you can copy other mods into your mods directory you want ot use.

is this a command, (ie terminal) or not, if not what does this even mean, i’m somewhat of a beginner to terminal, anyway, I’ve already figured it out.

Читайте также:  Canon mf411dw драйвер linux

There is a whole other way. You could used Multi MC . This approach is especially usefull if you want to keep multible differnet modpack around to play with.

You can download the deb package for Ubunutu and install with dpkg . to install forge and other mods, you start multmc create a instance and edit the instance.

You must log in to answer this question.

Highly active question. Earn 10 reputation (not counting the association bonus) in order to answer this question. The reputation requirement helps protect this question from spam and non-answer activity.

Источник

How to Install Minecraft Forge on Linux and Windows

fivem server hosting

Minecraft Forge is a free and open-source software application that allows the dynamic loading of other Mods for Minecraft server. It is a Modding API or layer between Minecraft and code and allows players to install and run Minecraft mods. Minecraft Forge provides a simple and easier way to manage mods in the building-based game. It helps Minecraft players to download, install, and run mods without any programming and tech knowledge.

If you are a Minecraft player and want to explore the wild world of Minecraft mods, then Minecraft Forge is the best tool for you. In this post, we will show you how to install Minecraft Forge on Linux and Windows.

Also Read

Prerequisites

  • A Java JDK must be installed on your system.
  • A Minecraft server Java edition is installed and run at least once. ( Follow this guide How to Make a Minecraft Server )
  • You don’t need to install the Minecraft server if you are creating a Forge server.

Install Minecraft Forge on Windows

You can follow the below steps to install Minecraft Forge on the Windows operating system.

download minecraft forge

Step 1 – Visit the Minecraft Forge official website as shown below.
Step 2 – Select the Minecraft Forge version in the left pane that matches your installed Minecraft version then click on the Installer button. You will be redirected to the adfoc.us website as shown below:

skip to download minecraft forge

Step 3 – Don’t click on any links on this website. Wait for 6 seconds and click on the skip button to download the Minecraft Forge jar file to your server.

Читайте также:  Linux network activity monitor

Step 4 – Double-click on the downloaded file. You should see the Forge installation interface screen.

select minecraft forge client

Step 5 – Select Install client, and change the default Minecraft install location if it’s not correct then click on the OK button. This will install the client files and folders for Minecraft Forge. Once Minecraft Forge is installed successfully, you should see the following screen.

minecraft forge installed

Step 6 – Click on the OK button to complete the installation process.

Install Minecraft Forge on Linux

You can also install Minecraft Forge on a Linux desktop system by following the below steps.

minecraft forge download page

Step 1 – Open your web browser and go to the Minecraft Forge official website as shown below.

Step 2 – Select the Minecraft Forge version in the left pane that matches your installed Minecraft version then click on the Installer button. You will be redirected to the adfoc.us website as shown below:

skip to download minecraft forge

Step 3 – Don’t click on any links on this website. Wait for 6 seconds and click on the skip button to download the Minecraft Forge jar file to your Linux system.

Step 4 – Open the File Manager and navigate to the Download folder. You should see your downloaded file on the following screen.

Step 5 – Right-click on the downloaded file and click on the properties. You should see the following screen.

minecraft forge properties

minecraft forge permission

Step 6 – Click on the Permission tab and check the box “Allow executing file as program” to make the file executable.

minecraft forge open with java

Step 7 – Next right-click on the downloaded file => Open with Other Application => Select OpenJDK Java and click on Select. This will run and open the Minecraft Forge installer as shown below.

minecraft forge select client

Step 8 – Select Install client, define the correct Minecraft install location then click on the OK button. This will install all required files and directories for Minecraft Forge. After the successful installation, you should see the following screen.

minecraft forge installation done

Step 9 – Click on the OK button to complete the installation process.

How to Install Minecraft Forge on Windows and Linux: Final Thoughts

In this post, we explained how to install Minecraft Forge on Windows and Linux. You can now open the Minecraft launcher, add your desired mods and start designing Minecraft easily.

Also Read

Источник

Оцените статью
Adblock
detector