PREREQUISITES

mkdir ~/minecraft
cd ~/minecraft

mkdir ~/minecraft/{forge,buildcraft,minecraft,server,files}

cd ~/minecraft/files

wget http://www.curseforge.com/media/files/719/726/buildcraft-A-3.7.2.jar
wget http://files.minecraftforge.net/minecraftforge/minecraftforge-universal-1.5.2-7.8.1.738.zip
wget https://s3.amazonaws.com/Minecraft.Download/versions/1.5.2/minecraft_server.1.5.2.jar

cd ~/minecraft/buildcraft
unzip ~/minecraft/files/buildcraft-A-3.7.2.jar

cd ~/minecraft/forge
unzip ~/minecraft/files/minecraftforge-universal-1.5.2-7.8.1.738.zip

cd ~/minecraft/minecraft
unzip ~/minecraft/files/minecraft_server.1.5.2.jar

rm -rf META-INF

rsync -av ~/minecraft/forge/ ~/minecraft/minecraft/

zip -r ~/minecraft/minecraft_forge.jar ~/minecraft/minecraft/

cd ~/minecraft/server
java -Xmx1024M -Xms1024M -jar ~/minecraft/minecraft_forge.jar

===> type "/stop" once the server finishes starting up to stop the server <===

cp ~/minecraft/files/buildcraft-A-3.7.2.jar ~/minecraft/server/mods

java -Xmx1024M -Xms1024M -jar ~/minecraft/minecraft_forge.jar