NOTE: Server logs are being broadcasted by ScreenX TV:
- a). Increase Swap Size
- b). Install MineCraft Server
cf. swapファイルを追加する
-
cat /proc/swaps
Filename Type Size Used Priority
/dev/dm-1 partition 2093052 814496-1 -
sudo dd if=/dev/zero of=/swap bs=2G count=5 iflag=fullblock
5+0 records in
5+0 records out
10737418240 bytes (11 GB) copied, 3079.19 s, 3.5 MB/s -
sudo mkswap /swap
OKINAWARB /home/yasulab% sudo mkswap /swap
[sudo] password for yasulab:
Setting up swapspace version 1, size = 10485756 KiB
no label, UUID=9ac709f4-1232-4583-967a-05e1e79d3235 -
sudo swapon /swap
-
sudo echo "/swap swap swap defaults 0 0" >> /etc/sftab
-
cat /proc/swaps
Filename Type Size Used Priority
/dev/dm-1 partition 2093052 804008 -1
/swap file 10485756 0 -2
cf. #27: Okinawa.rb サーバに MineCraft を導入する in okinawarb/meetups
sudo aptitude install openjdk-6-jre
which java; /usr/bin/java
mkdir ~/minecraft; cd minecraft
wget https://s3.amazonaws.com/Minecraft.Download/versions/1.7.9/minecraft_server.1.7.9.jar
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
#=>/stop
to stop server.
See UbuntuでMinecraftサーバを構築 for details.
- Note: Need to consider how to co-exist MineCraft server with ScreenX TV server.