SlideShare uma empresa Scribd logo
1 de 4
Baixar para ler offline
Your Own Minecraft Server on a Linode VPS

#Danols Minecraft Server properties
allow-nether=true
level-name=world
enable-query=false
allow-flight=false
server-port=25565
level-type=DEFAULT
enable-rcon=false
level-seed=Artomix #ht tp://seedhunter.blogspot.com/2012/03/jungle-island.html
server-ip=
max-build-height=256
spawn-npcs=true
white-list=false
spawn-animals=true
online-mode=true
pvp=true
difficulty=3
gamemode=0
max-players=6
spawn-monsters=true
generate-structures=true
view-distance=10
motd=you must survive




Automatic Startup
Compared that what is posted on the Minecraft Wiki the below is a simple startup script using
Debians/Ubuntus start-stop-deamon utility, it does not have the update server, or run file
system in memory option; in my opinion Java+Linux do a good job system caching on
demand and any speeds from running in memory

The server is run under user 'minecraft-server' and group 'daemon' to increase security - this
account and group is created as follows:



# useradd --home-dir /usr/local/minecraft-server --no-create-home -g
daemon --shell /bin/false minecraft-server
# groupadd daemon

Create the startup script as follows



# cd /etc/init.d/
# touch minecraft-server
# chmod +x minecraft-server

Paste the following code into the script and make sure to modify the DAEMON_ARGS setting
to reflect your memory allocation.



#!/bin/bash
### BEGIN INIT INFO
# Provides: minecraft_server
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: Minecraft server debian init script.
# Author: Daniel Sokolowski
#
### END INIT INFO

# You can use this as a template or symbolic link it into
`/etc/init.d` on Debian system

# PATH should only include /usr/* if it runs after the mountnfs.sh
script
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin
DESC="Minecraft Server"
NAME=minecraft_server.jar
SCREENNAME=minecraft-server # the session screen game given

DAEMON="/usr/bin/screen"
DAEMONUSER=minecraft-server
DAEMONGROUP=daemon
# the -Xincgc options enable incremental garbage collector which
slows
# execution but makes more memory efficient.
# -Xmx1024M is the recommended minimum
As a last resort, sleep for some time.



#
# Function that stops the daemon/service
#
do_stop()



# Return

# 0 if daemon has been stopped
# 1 if daemon was already stopped

# 2 if daemon could not be stopped

# other if a failure occurred

start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile
$PIDFILE

RETVAL="$?"

[ "$RETVAL" = 2 ] && return 2

# Wait for children to finish too if this is a daemon that forks

# and if the daemon is only ever run from this initscript.

# If the above conditions are not satisfied then add some other code

# that waits for the process to drop all resources that could be

# needed by services started subsequently. A last resort is to

# sleep for some time.

start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec
$DAEMON

[ "$?" = 2 ] && return 2

# Many daemons don't delete their pidfiles when they exit.

rm -f $PIDFILE

sleep 5s

return "$RETVAL"



#
# Function that sends a SIGHUP to the daemon/service
#
do_reload()

#

# If the daemon can reload its configuration without
# restarting (for example, when it is sent a SIGHUP),

# then implement that here.

#

start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --
name $NAME

return 0



case "$1" in
herobrine, factions

Mais conteúdo relacionado

Destaque

TCI 2015 The Comparison of European and Asian Model of Cluster Policy
TCI 2015 The Comparison of European and Asian Model of Cluster PolicyTCI 2015 The Comparison of European and Asian Model of Cluster Policy
TCI 2015 The Comparison of European and Asian Model of Cluster PolicyTCI Network
 
Edld 5362 week 2 assignment - Social Networking Goes to School
Edld 5362 week 2 assignment - Social Networking Goes to SchoolEdld 5362 week 2 assignment - Social Networking Goes to School
Edld 5362 week 2 assignment - Social Networking Goes to Schooltrekkerjhawks
 
TCI 2014 The importance of the inter-organizational trust of the actors in a ...
TCI 2014 The importance of the inter-organizational trust of the actors in a ...TCI 2014 The importance of the inter-organizational trust of the actors in a ...
TCI 2014 The importance of the inter-organizational trust of the actors in a ...TCI Network
 
TCI2013 The Athletic and Outdoor Cluster in Portland
TCI2013 The Athletic and Outdoor Cluster in PortlandTCI2013 The Athletic and Outdoor Cluster in Portland
TCI2013 The Athletic and Outdoor Cluster in PortlandTCI Network
 
Badges and keychains collection
Badges and keychains collectionBadges and keychains collection
Badges and keychains collectionDoculand Lebanon
 
Huong dan thiet ke website danh cho nguoi khong biet ve it bai 2 nang cao-ceo...
Huong dan thiet ke website danh cho nguoi khong biet ve it bai 2 nang cao-ceo...Huong dan thiet ke website danh cho nguoi khong biet ve it bai 2 nang cao-ceo...
Huong dan thiet ke website danh cho nguoi khong biet ve it bai 2 nang cao-ceo...Vinh Jansen
 
Sathayamev jayate hackathon
Sathayamev jayate hackathonSathayamev jayate hackathon
Sathayamev jayate hackathonAlagirisamys
 
Convert ch7 part2
Convert ch7 part2Convert ch7 part2
Convert ch7 part2Yu Liang
 
TCI 2014 World class cluster born on reindustrialization of Olivetti settlement
TCI 2014 World class cluster born on reindustrialization of Olivetti settlement TCI 2014 World class cluster born on reindustrialization of Olivetti settlement
TCI 2014 World class cluster born on reindustrialization of Olivetti settlement TCI Network
 

Destaque (11)

TCI 2015 The Comparison of European and Asian Model of Cluster Policy
TCI 2015 The Comparison of European and Asian Model of Cluster PolicyTCI 2015 The Comparison of European and Asian Model of Cluster Policy
TCI 2015 The Comparison of European and Asian Model of Cluster Policy
 
Edld 5362 week 2 assignment - Social Networking Goes to School
Edld 5362 week 2 assignment - Social Networking Goes to SchoolEdld 5362 week 2 assignment - Social Networking Goes to School
Edld 5362 week 2 assignment - Social Networking Goes to School
 
TCI 2014 The importance of the inter-organizational trust of the actors in a ...
TCI 2014 The importance of the inter-organizational trust of the actors in a ...TCI 2014 The importance of the inter-organizational trust of the actors in a ...
TCI 2014 The importance of the inter-organizational trust of the actors in a ...
 
TCI2013 The Athletic and Outdoor Cluster in Portland
TCI2013 The Athletic and Outdoor Cluster in PortlandTCI2013 The Athletic and Outdoor Cluster in Portland
TCI2013 The Athletic and Outdoor Cluster in Portland
 
2014 Kickoff
2014 Kickoff 2014 Kickoff
2014 Kickoff
 
Badges and keychains collection
Badges and keychains collectionBadges and keychains collection
Badges and keychains collection
 
Huong dan thiet ke website danh cho nguoi khong biet ve it bai 2 nang cao-ceo...
Huong dan thiet ke website danh cho nguoi khong biet ve it bai 2 nang cao-ceo...Huong dan thiet ke website danh cho nguoi khong biet ve it bai 2 nang cao-ceo...
Huong dan thiet ke website danh cho nguoi khong biet ve it bai 2 nang cao-ceo...
 
Jess slide show
Jess slide showJess slide show
Jess slide show
 
Sathayamev jayate hackathon
Sathayamev jayate hackathonSathayamev jayate hackathon
Sathayamev jayate hackathon
 
Convert ch7 part2
Convert ch7 part2Convert ch7 part2
Convert ch7 part2
 
TCI 2014 World class cluster born on reindustrialization of Olivetti settlement
TCI 2014 World class cluster born on reindustrialization of Olivetti settlement TCI 2014 World class cluster born on reindustrialization of Olivetti settlement
TCI 2014 World class cluster born on reindustrialization of Olivetti settlement
 

Último

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 

Último (20)

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 

Your Own Minecraft Server on a Linode VPS

  • 1. Your Own Minecraft Server on a Linode VPS #Danols Minecraft Server properties allow-nether=true level-name=world enable-query=false allow-flight=false server-port=25565 level-type=DEFAULT enable-rcon=false level-seed=Artomix #ht tp://seedhunter.blogspot.com/2012/03/jungle-island.html server-ip= max-build-height=256 spawn-npcs=true white-list=false spawn-animals=true online-mode=true pvp=true difficulty=3 gamemode=0 max-players=6 spawn-monsters=true generate-structures=true view-distance=10 motd=you must survive Automatic Startup Compared that what is posted on the Minecraft Wiki the below is a simple startup script using Debians/Ubuntus start-stop-deamon utility, it does not have the update server, or run file system in memory option; in my opinion Java+Linux do a good job system caching on demand and any speeds from running in memory The server is run under user 'minecraft-server' and group 'daemon' to increase security - this account and group is created as follows: # useradd --home-dir /usr/local/minecraft-server --no-create-home -g daemon --shell /bin/false minecraft-server # groupadd daemon Create the startup script as follows # cd /etc/init.d/ # touch minecraft-server
  • 2. # chmod +x minecraft-server Paste the following code into the script and make sure to modify the DAEMON_ARGS setting to reflect your memory allocation. #!/bin/bash ### BEGIN INIT INFO # Provides: minecraft_server # Required-Start: $local_fs $remote_fs $network # Required-Stop: $local_fs $remote_fs $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Description: Minecraft server debian init script. # Author: Daniel Sokolowski # ### END INIT INFO # You can use this as a template or symbolic link it into `/etc/init.d` on Debian system # PATH should only include /usr/* if it runs after the mountnfs.sh script PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin DESC="Minecraft Server" NAME=minecraft_server.jar SCREENNAME=minecraft-server # the session screen game given DAEMON="/usr/bin/screen" DAEMONUSER=minecraft-server DAEMONGROUP=daemon # the -Xincgc options enable incremental garbage collector which slows # execution but makes more memory efficient. # -Xmx1024M is the recommended minimum As a last resort, sleep for some time. # # Function that stops the daemon/service # do_stop() # Return # 0 if daemon has been stopped
  • 3. # 1 if daemon was already stopped # 2 if daemon could not be stopped # other if a failure occurred start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE RETVAL="$?" [ "$RETVAL" = 2 ] && return 2 # Wait for children to finish too if this is a daemon that forks # and if the daemon is only ever run from this initscript. # If the above conditions are not satisfied then add some other code # that waits for the process to drop all resources that could be # needed by services started subsequently. A last resort is to # sleep for some time. start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON [ "$?" = 2 ] && return 2 # Many daemons don't delete their pidfiles when they exit. rm -f $PIDFILE sleep 5s return "$RETVAL" # # Function that sends a SIGHUP to the daemon/service # do_reload() # # If the daemon can reload its configuration without
  • 4. # restarting (for example, when it is sent a SIGHUP), # then implement that here. # start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE -- name $NAME return 0 case "$1" in herobrine, factions