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

Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
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
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
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
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 

Último (20)

Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
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
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
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...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 

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