Xen – PPTP Script
Looking for an easy way to run PPTP on a Xen based VPS? Check out this script for an easy solution.
WampServer 2 – Windows/Apache/PHP/MySQL
WampServer is an open source project that includes the following:
- Apache 2.2.17
- Php 5.3.3
- Mysql 5.1.53 (version 64 bits)
- Mysql 5.5.8 (version 32 bits)
- PhpMyadmin 3.2.0.1
- SQLBuddy 1.3.2
You can find the latest version here and it's strongly recommended as one stop solution for these applications.
Set up a Minecraft SMP server on Ubuntu
- Taken from Linode, credit goes to Jed Smith.
Set up a Minecraft SMP server on Ubuntu. Automatically installs Java, creates a minecraft user, pulls in the latest minecraft_server.jar, and writes a script to automatically start the server. Read the comments in the script for more information.
Following script works on the following OS: Ubuntu 10.04 LTS|Ubuntu 10.10|Ubuntu 9.10
You can download it here or see below for the details.
#!/bin/bash
#
# Minecraft Stackscript
# Prepares the system, installs Java, installs Minecraft, and starts the server.
# By Jed Smith <jed@jedsmith.org>
#
# <udf name="mcopname" label="Admin Nickname" example="Nickname to give initial operator status">
# <udf name="mclevelname" label="Level Name" default="world" example="Name for the level">
# <udf name="mconline" label="Online Mode" default="yes" oneOf="yes,no" example="Whether the server will verify usernames with minecraft.net">
# <udf name="mcmonsters" label="Spawn Monsters" default="yes" oneOf="yes,no">
# <udf name="mcmaxplayers" label="Maximum Players" default="20">
#
# Once this script is completed, you can start the Minecraft server by typing the following:
#
# # su - minecraft -s /opt/minecraft/run.sh
#
# This StackScript installs screen as well, so you can assign a password to the minecraft user,
# log in as the minecraft user, and run minecraft in a screen (if you so desire).
#
# Don't run minecraft as root!
#
# which distro are we on?
distro=`grep DISTRIB_CODENAME /etc/lsb-release | cut -d'=' -f 2`
# add source for java
cat >>/etc/apt/sources.list <<EOF
# for java, added by minecraft stackscript
deb http://archive.canonical.com/ubuntu $distro partner
deb-src http://archive.canonical.com/ubuntu $distro partner
EOF
# update and install packages
apt-get -y update
apt-get -y upgrade
# accept the sun-dlj-v1-1 license
for j in jdk jre; do
echo "sun-java6-$j shared/accepted-sun-dlj-v1-1 select true" | /usr/bin/debconf-set-selections
done
# install java
apt-get -y install sun-java6-jre screen
# add the minecraft user
adduser --system --group --disabled-login --disabled-password --home /opt/minecraft minecraft
cd /opt/minecraft
# find where to get minecraft (please don't change this, Notch)
version=`wget -q -O- http://www.minecraft.net/download.jsp | grep "download/minecraft_server.jar" | cut -d'"' -f 2`
wget -O minecraft_server.jar "http://www.minecraft.net/$version"
# convert configuration variables
[ "$MCONLINE" == "yes" ] && MCONLINE=true
[ "$MCONLINE" == "true" ] || MCONLINE=false
[ "$MCMONSTERS" == "yes" ] && MCMONSTERS=true
[ "$MCMONSTERS" == "true" ] || MCMONSTERS=false
# write the configuration
cat >server.properties <<EOF
# Minecraft server properties
# Created by Minecraft StackScript `date`
online-mode=$MCONLINE
monsters=$MCMONSTERS
server-ip=
server-port=25565
max-players=$MCMAXPLAYERS
level-name=$MCLEVELNAME
EOF
# initial op user
echo $MCOPNAME >ops.txt
touch banned-players.txt
touch banned-ips.txt
# write the run script
cat >run.sh <<EOF
#!/bin/sh
java -Xmx1024M -Xms1024M -jar /opt/minecraft/minecraft_server.jar nogui
EOF
# clean up
chown minecraft:minecraft *
chmod a+x run.sh
# do a motd too
cat >/etc/motd.tail <<EOF
This server has been deployed from Jed Smith's Minecraft StackScript. To start
Minecraft, run the following as root:
# su - minecraft -s /opt/minecraft/run.sh
screen is also installed if you prefer to run Minecraft in a screen. It is a
very bad idea to run the Minecraft server as root; although there are no
currently-known vulnerabilities, you're better off insulating your server.
All files related to the server are in /opt/minecraft.
EOF
Windows VPS Check List
After receiving your login details to a Windows VPS, it's always important to check to double check the settings to see if you your resources were allocated to your correctly.
You can check the RAM & CPU Processor here:
From this screen you can verify the CPU Cores allocated to your VPS.
Last, but now least the Disk Space allocation:
For this example, we're using a ZAP1 from PhotonVPS which allocates the following:
512MB RAM
1 CPU Core
35GB Disk Space
Looks like we got everything we ordered!
Connecting to your Windows VPS
If you signed up for a Windows VPS, here's how you'll connect to it:
If your using a Windows XP you can follow these simple directions below:
http://www.microsoft.com/windowsXp/using/mobility/getstarted/Remoteintro.mspx#EQG
Using Windows Vista or Windows 7:
If your on OSX, I recommend using this Application:
Connecting to your Linux VPS
After signing up for a VPS, your provider should send you your login details anywhere from a couple minutes to 24 hours after signing up. Anything longer than 24 hours and you should contact your provider to see what the hold up is.
Now that you've received your details you'll need connect to it via SSH if you have a Linux VPS:
If you're running on Windows you'll need to download PuTTY which can be found at this link:
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
If you're running on OSX, you'll be able to connect using the Terminal application found the /Applications/Utilites/
Welcome to VPS-Tutorial
The only spot to go for all your VPS tutorials! If there's something you need a tutorial on, please contact us and we'll get it posted when we can.


