Home > tag> Minecraft


Creating an Ubuntu server for Minecraft (5)

Once, I went with the state to move, but the settings of the port release and RAMDisk to move from here comfortable.
User to return to the user that can use the Sudo.

minecraft@MineCraft:~$ exitログアウトmaster@MineCraft:~$ 

Port release

 master@MineCraft:~$ sudo ufw allow 25565/tcp master@MineCraft:~$ sudo ufw reload master@MineCraft:~$ sudo ufw enable 

(Please change the 25565 / tcp If you have changed the port of Minecraft)

Creating a RAMDisk

Creating a mount point

 master@MineCraft:~$ sudo mkdir /ramdisk master@MineCraft:~$ sudo chmod 777 /ramdisk 

Check the usage of memory

 master@MineCraft:~$ df -Th Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/GameServer--vg-root ext4 134G 2.0G 125G 2% / none tmpfs 4.0K 0 4.0K 0% /sys/fs/cgroup udev devtmpfs 2.0G 4.0K 2.0G 1% /dev tmpfs tmpfs 396M 668K 395M 1% /run none tmpfs 5.0M 0 5.0M 0% /run/lock none tmpfs 2.0G 0 2.0G 0% /run/shm none tmpfs 100M 0 100M 0% /run/user /dev/sda1 ext2 236M 55M 169M 25% /boot 

/ Dev / shm on it is in no / run / shm in and mount it on / ramdisk on an extension because it was 2.0GB to 2.5GB.

 master@MineCraft:~$ sudo nano /etc/fstab 

Was appended to the last line below

 none /run/shm tmpfs nosuid,nodev,size=2560M 0 0 /run/shm /ramdisk tmpfs defaults,size=2560M 0 0 

(By the way, / run / shm is written to / lib / init / fstab, we override the settings in the / etc / fstab)

Restart in order to reflect

 master@MineCraft:~$ sudo reboot 

Check that the RAMDisk is possible

 master@MineCraft:~$ df -h | grep ramdisk /run/shm 2.5G 0 2.5G 0% /ramdisk 

Move World data on RAMDisk

Reading and writing of data of Minecraft because it is basically the World data to move it to the RAMDisk, and faster.
First of all, to switch the user, and then navigate to the working folder.

 master@MineCraft:~$ su - minecraft minecraft@MineCraft:~$ cd 1.7.10/ 

Copy the contents of the world folder to world_storage (save folder)

 minecraft@MineCraft:~/1.7.10$ mkdir world_storage minecraft@MineCraft:~/1.7.10$ cp -rp world/ world_storage/ 

Bring the World folder by creating a minecraft folder to RAMDisk

 minecraft@MineCraft:~/1.7.10$ mkdir /ramdisk/minecraft minecraft@MineCraft:~/1.7.10$ mkdir /ramdisk/minecraft/1.7.10 minecraft@MineCraft:~/1.7.10$ mv world/ /ramdisk/minecraft/1.7.10/ 

I want to create a link configuration file to world. (Actually, I would like move on RAM)

 minecraft@MineCraft:~/1.7.10$ ln -s /ramdisk/minecraft/1.7.10/world/ . 

Creating a startup script

Since RAMDisk is erased when the power is turned off, you can copy at startup RAMDisk, you write a startup script to copy from RAMDisk to save folder at the end.

 minecraft@MineCraft:~/1.7.10$ nano 00_StartServer.sh 
 #!/bin/bash mkdir /ramdisk/minecraft/1.7.10 cp -rp /home/minecraft/1.7.10/world_storage/* /ramdisk/minecraft/1.7.10/world/ #起動java -Xmx1024M -Xms1024M -jar forge-1.7.10- nogui #終了時に保存用フォルダにコピーrsync -av --delete /ramdisk/minecraft/1.7.10/world/ /home/minecraft/1.7.10/world_storage/ 

Then, I will grant execute privileges

 minecraft@MineCraft:~/1.7.10$ chmod +x 00_StartServer.sh 

The execution

 minecraft@MineCraft:~/1.7.10$ ./00_StartServer.sh 

Next time, we will continue to take regular backups order to respond to power outages.

ツイート Tweets

Creating an Ubuntu server for Minecraft (4)

Installation of Minecraft Server

I will create a directory for the server.
This time I have entered the version 1.7.10 so the following command.

 minecraft@MineCraft:~$ mkdir 1.7.10 

Change to the directory that you created earlier with the following command.

 minecraft@MineCraft:~$ cd 1.7.10 

Then I download the file server of Minecraft.

 minecraft@MineCraft:~/1.7.10$ wget https://s3.amazonaws.com/Minecraft.Download/versions/1.7.10/minecraft_server.1.7.10.jar 

I try to start the server.

 minecraft@MineCraft:~/1.7.10$ java -Xmx1024M -Xms1024M -jar minecraft_server.1.7.10.jar nogui 

When you run it will be various display but it should not start with the contents of the following.

 [10:56:50] [Server thread/INFO]: Starting minecraft server version 1.7.10 [10:56:50] [Server thread/INFO]: Loading properties [10:56:50] [Server thread/WARN]: server.properties does not exist [10:56:50] [Server thread/INFO]: Generating new properties file [10:56:50] [Server thread/WARN]: Failed to load eula.txt [10:56:50] [Server thread/INFO]: You need to agree to the EULA in order to run the server. Go to eula.txt for more info. [10:56:50] [Server thread/INFO]: Stopping server [10:56:50] [Server Shutdown Thread/INFO]: Stopping server 

This is, because it is of a can not be started because not agree to the End User License Terms,
I agree. (Please agree to from eula.txt be grasped by Nari Find the translation, etc.)

 minecraft@MineCraft:~/1.7.10$ nano eula.txt 
 eula = true 

(A eula = false it means that you agree to be changed to true)

I will try to start again.

 minecraft@MineCraft:~/1.7.10$ java -Xmx1024M -Xms1024M -jar minecraft_server.1.7.10.jar nogui 

To proceed with possible input something like the following it has succeeded in successfully boot.

 [11:12:57] [Server thread/INFO]: Preparing spawn area: 84% [11:12:58] [Server thread/INFO]: Done (4.997s)! For help, type "help" or "?" 

Please enter a stop when it is finished.

ツイート Tweets

Creating an Ubuntu server for Minecraft (3)

Now that we have introduced the previous SSH, are connected by remote, we will continue to work.
(Software are using RLogin is.)

Installation of OracleJDK

This time I put basically OpenJDK on Linux will try to put the JDK of Oracle that are using any Windows.
Version I want to Java7 so move the Minecraft1.7.10. Since the body Forge but move even Java8 results in an error that it is Java8.

 $ sudo add-apt-repository ppa:webupd8team/java $ sudo apt-get update $ sudo apt-get install oracle-java7-installer 

(If there is a need of switching, you run the update-alternatives -config java)

Creating a User

I will create a user for Minecraft.

 $ sudo adduser minecraft 

The password of the input and user profile you are prompted, please enter as appropriate.

User Switching

From here, you can switch to the user who made just because it becomes to Minecraft-only setting.

 master@MineCraft:~$ su – minecraft 

When you run the display changes as shown below.

 minecraft @MineCraft:~$ 

I will continue to set up the server from the next time.

ツイート Tweets

Creating an Ubuntu server for Minecraft (2)

Operation because I want to use also file transfer is done from a remote terminal using basically SSH.
First, we want to install the Openssh Server To do this, you get the latest software list.

 $ sudo apt-get update 


Then, I have something or garbled.
If this is you have selected the Japanese in the installer, but each program in console tries to output the Japanese, in the standard console to fix this first because such because it does not correspond to display Japanese.

Garbled correspondence of the console screen

Here you can make settings for displaying the English message in the console.

  $ Nano ~ / .bashrc 

and adds the following to the end of the file if you open .bashrc in nano editor

 case $TERM in linux) LANG=C ;; *) LANG=ja_JP.UTF-8 ;; esac 

Ctrl + X and press the key, to save According the instructions on the screen end

 $ source ~/.bashrc 

Whether English messages now appear above.

Updated UbuntuServer to the latest state

First, since the avoided by returning the console of garbled English output, and then update the Ubuntu to the latest state.
Need is not, but you can run the following command again to make sure that you are able to cope garbled.

 $ sudo apt-get update 


It has become the English notation.
Then in accordance with the list you just update, the software had the update with the following command I want to date.

 $ sudo apt-get upgrade 

Installation of OpenSSH Server

This is set to be able to log in with a password system because it is a server that is utilized within the LAN.

Install first with the following command

 $ sudo apt-get install openssh-server 

Then restart the server just in case

 $ sudo /etc/init.d/ssh restart 

More than, SSH remote login possible to the server.
(Since the configuration file remains the default remote login possible in the server's login password)

ツイート Tweets

Creating an Ubuntu server for Minecraft (1)

I think I try to Minecraft Local server because PC has opened one.

As PC configuration that server below

OS Ubuntu Server 14.04
CPU Intel Core 2 Duo E4500 @ 2.20GHz
Memory 4GB

Immediately install the OS in that.
This time I will use the UbuntuServer14.04.

Burn ISO to download and DVD-R and to Boot the server.

It will be in the above screen by selecting the Japanese [Enter]

Select the installation of Ubuntu Server [Enter]

Since confirmation screen but is displayed, this time to continue [Yes]

Select the Japan [Enter]

Select the Japanese [Enter]

Select your keyboard [Enter]
(Usually Japanese)

Enter the host name [Continue]
(This is the name of the computer that says in Windows. This time MineCraft)

Enter a user name and [Continue]
(This time master)

Type of account name and [Continue]
(This time master)

Enter the password to [Continue]

Re-enter the password to [Continue]

If you enter a simple password, a confirmation screen will appear

Since not encrypt this time because the game data only put not [No]

This time, since correct time zone of automatic detection [Yes]

Guide - to choose to set up LVM use the entire disk [Enter]
(HDD is also considering the possibility of Ubuntu dedicated and expansion installed using the LVM)

Select the disk [Enter]

If there are no problems [Yes]

Capacity setting screen. Enter the appropriate value [Continue]
(Screenshot HDD is lack of 21.2GB for the setting of 20GB for commentary for the VM environment)

If there are no problems [Yes]

Enter the Proxy settings to [Continue]

Automatically select the update city [Enter]
System Update I done in the basic manual.

All in unselected I [Continue]
and (unselected all to put it while checking one by one)


[Carry on]

Above, you are finished installing the UbuntuServer. I will continue to build environment from the following.

ツイート Tweets

Home > tag> Minecraft

Japanese flagEnglish flag

I back to the top of the page