Xonotic is a free, open source (GPL) ultra-fast, first-person shooter


Follow Xonotic on

Post Reply 
[Tutorial] How To Setup Your Free Amazon Server
03-31-2012, 04:17 AM (This post was last modified: 03-31-2012 06:37 PM by Loafers.)
Post: #1
[Tutorial] How To Setup Your Free Amazon Server
Special thanks to Sless, Asy7um, Paxil, and Amazon.

Intro: Amazon has a free tier usage that you can use to host your small, but very own Xonotic server. I'm not very tech savvy, but I still managed to get 3 servers running so it shouldn't be too hard for you too!

[Image: aws_1.png]

Let's get started:

1) Sign up & follow instructions.
2) Once your done go to aws.amazon.com and login if you already haven't.
3) Then go to your AWS Management Console.
4) Click on the Amazon EC2 Tab.
5) Select your desired region.
6) Now click "Launch Instance".
7) Fill in the blanks! Make sure you select "More Amazon Images" since it isn't chosen by default.
8) Download Your Keypair.
9) Click "Continue".
10) Filter for Debian and 64-bit (I Heart Debian).
11) Depending on the region you will have various images that you can choose from. I personally chose "debian-squeeze-amd64-ebs-beta2.img". You can pretty much pick whatever you want.
12) Now initialize your image!
13) Box will disappear and you should see something like this.
14) Except in your case the status will say Initializing and Status Checks will still be running.
15) Wait until it's finished/green like mine.
16) Then right click your instance and press connect.
17) Make sure you select "Connect with a standalone SSH Client".
18) Fire up your terminal and change to the directory where your keypair was saved to.
19)
Code:
chmod 400 your keypair
20) Then copy and paste that ssh command into your command line.
21) It'll say some error message blah blah type "yes"
22) Boom your in.
23) Now do the following:
Code:
apt-get update
apt-get install vim p7zip-full wajig
24) Once your done installing do:
Code:
wget http://dl.xonotic.org/xonotic-0.6.0.zip
25) Afk until it's done downloading.
26) Now do:
Code:
7z x xonotic-0.6.0.zip
27) Once it's done extracting do:
Code:
cd Xonotic/server
mv server.cfg ../data
mv server_linux.sh ../
cd ..
28) Now you want to edit your server.cfg with vim (Keep in mind, it's a free server! So you may want to host a duel server with 3-4 slots like I did just to be safe.):
Code:
vim data/server.cfg
29) Once your done configuring you wanna open your ports. Follow my sample.
30) Now make sure your instance is using this security group.
31) Now launch your server with:
Code:
./server_linux.sh &
32) If everything was successful it should appear on Xonotic's Server List.
33) To see your server usage stats or fees (there should be none), you can find it in your "Account Activity" located in the drop down menu in the top right corner. (I'm getting lazy to post screenshots).

Enjoy!
Find all posts by this user
Quote this message in a reply
03-31-2012, 05:10 AM
Post: #2
RE: [Tutorial] How To Setup Your Free Amazon Server
Looking good, thank you for the tutorial. I gave you a reputation point.

Maybe this should be moved to the Server forum though?

"Yes, there was a spambot some time ago on these forums." - aa
Find all posts by this user
Quote this message in a reply
03-31-2012, 06:14 AM
Post: #3
RE: [Tutorial] How To Setup Your Free Amazon Server
wow.

[Image: nemxonsig.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
04-01-2012, 12:35 AM
Post: #4
RE: [Tutorial] How To Setup Your Free Amazon Server
Awesome! I got my server up and running and it's fast! I hope it's really free because I would hate to get some ridiculous bill for some hidden charge.
Find all posts by this user
Quote this message in a reply
04-01-2012, 05:28 PM
Post: #5
RE: [Tutorial] How To Setup Your Free Amazon Server
(04-01-2012 12:35 AM)W4RP1G Wrote:  Awesome! I got my server up and running and it's fast! I hope it's really free because I would hate to get some ridiculous bill for some hidden charge.
No hidden charges, just make sure you read the fine print Smile Only thing I got charged for was having an elastic ip that wasn't associated to my instance. They charged me $0.01 per hour Big Grin But yeah if your worried, just check your account activity.
Find all posts by this user
Quote this message in a reply
04-03-2012, 03:56 PM
Post: #6
RE: [Tutorial] How To Setup Your Free Amazon Server
I'm going to use autobuild to update my xonotic version. is there a downside to doing that(for running a server)?
Find all posts by this user
Quote this message in a reply
04-04-2012, 10:58 PM
Post: #7
RE: [Tutorial] How To Setup Your Free Amazon Server
(04-03-2012 03:56 PM)W4RP1G Wrote:  I'm going to use autobuild to update my xonotic version. is there a downside to doing that(for running a server)?
i highly doubt it. when in doubt check your activity page.
Find all posts by this user
Quote this message in a reply
04-13-2012, 03:14 AM (This post was last modified: 04-13-2012 03:18 AM by Loafers.)
Post: #8
RE: [Tutorial] How To Setup Your Free Amazon Server
been so occupied these past few weeks and forgot that i had servers running so i decided to man up and take a look at the account activity page to see how screwed i was lol... ooops...

[Image: tZGN5MA]

no clue why i was billed lulz... i too lazy to read the fine print.
Find all posts by this user
Quote this message in a reply
04-13-2012, 03:24 AM
Post: #9
RE: [Tutorial] How To Setup Your Free Amazon Server
I strongly suggest you scratch "free" from the title and slap a big disclaimer on top of your post.

[Image:http://i.imgur.com/4XODR.png]640K ought to be enough for anybody.
     ― Linux Torvalds
Find all posts by this user
Quote this message in a reply
04-13-2012, 03:31 AM (This post was last modified: 04-13-2012 03:32 AM by Loafers.)
Post: #10
RE: [Tutorial] How To Setup Your Free Amazon Server
(04-13-2012 03:24 AM)Mr. Bougo Wrote:  I strongly suggest you scratch "free" from the title and slap a big disclaimer on top of your post.

"it is free", insisted Loafers, "just make sure you read everything!".
Mr. Bougo buried his face into his palms.

The End.
Find all posts by this user
Quote this message in a reply
04-21-2012, 04:56 AM
Post: #11
RE: [Tutorial] How To Setup Your Free Amazon Server
if anybody gets billed from following the guide and not doing anything else such as creating an elastic ip and going afk lmk.

k thx bai
Find all posts by this user
Quote this message in a reply
04-21-2012, 08:51 AM (This post was last modified: 04-21-2012 08:52 AM by Spaceman.)
Post: #12
RE: [Tutorial] How To Setup Your Free Amazon Server
Amazon EC2 Pricing http://aws.amazon.com/ec2/pricing/
  • 750 hours of EC2 running Linux/Unix Micro instance usage
  • 750 hours of EC2 running Microsoft Windows Server Micro instance usage
  • 750 hours of Elastic Load Balancing plus 15 GB data processing
  • 30 GB of Amazon Elastic Block Storage (EBS) plus 2 million IOs and 1 GB snapshot storage
  • 15 GB of bandwidth out aggregated across all AWS services
  • 1 GB of Regional Data Transfer

Loafers account screenshot used
US East Region
167 hours Free
124 hours Charged

US West Region
292 hours Free

EU Ireland Region
291 hours Free

167 + 292 + 291 = 750

He has three Xonotic servers running on one account, their total usage time went over the 750 hours of free usage. Thus Amazon charged him.

Running a Xonotic server for 124 hours (or 5 days 4 hours) and being charged $2.48 seems quite good value.

What's the ping like for the Ireland server, compared to the DCC servers?
Find all posts by this user
Quote this message in a reply
04-21-2012, 03:55 PM
Post: #13
RE: [Tutorial] How To Setup Your Free Amazon Server
(04-21-2012 08:51 AM)Spaceman Wrote:  Amazon EC2 Pricing http://aws.amazon.com/ec2/pricing/
  • 750 hours of EC2 running Linux/Unix Micro instance usage
  • 750 hours of EC2 running Microsoft Windows Server Micro instance usage
  • 750 hours of Elastic Load Balancing plus 15 GB data processing
  • 30 GB of Amazon Elastic Block Storage (EBS) plus 2 million IOs and 1 GB snapshot storage
  • 15 GB of bandwidth out aggregated across all AWS services
  • 1 GB of Regional Data Transfer

Loafers account screenshot used
US East Region
167 hours Free
124 hours Charged

US West Region
292 hours Free

EU Ireland Region
291 hours Free

167 + 292 + 291 = 750

He has three Xonotic servers running on one account, their total usage time went over the 750 hours of free usage. Thus Amazon charged him.

Running a Xonotic server for 124 hours (or 5 days 4 hours) and being charged $2.48 seems quite good value.

What's the ping like for the Ireland server, compared to the DCC servers?

Very informative Spaceman ty Smile!

I am not familiar with DCC servers, but all three of my servers were always near the top when filtering for low ping.
Find all posts by this user
Quote this message in a reply
04-22-2012, 02:25 AM
Post: #14
RE: [Tutorial] How To Setup Your Free Amazon Server
I haven't been charged anything for my 1 server.
Find all posts by this user
Quote this message in a reply
04-28-2012, 07:22 PM
Post: #15
RE: [Tutorial] How To Setup Your Free Amazon Server
Just wanted to say that I accidentally deleted my key on my computer. Supposedly there are ways to create a new key pair, but after 45 minutes of trying, I couldn't figure it out. So i decided it would be much faster and more simple to just start a new instance and repeat the process. I keep my maps and cfgs in my dropbox anyway, so it wasn't a big deal.

Anyway, everything went smoothly and I still see no charges. So the moral of the story is: keep that key somewhere where it won't be deleted, and make a copy! Of course, if someone wanted to make a quick guide to creating a new key pair when you've lost yours, or link to one that works, that would be very good for future reference.
Find all posts by this user
Quote this message in a reply
04-29-2012, 02:33 AM (This post was last modified: 04-29-2012 01:35 PM by Mr. Bougo.)
Post: #16
RE: [Tutorial] How To Setup Your Free Amazon Server
Search engines are a wonderful thing! You should try them out sometime.
http://stackoverflow.com/questions/10369...the-server

EDIT: I mean no offense Wink

[Image:http://i.imgur.com/4XODR.png]640K ought to be enough for anybody.
     ― Linux Torvalds
Find all posts by this user
Quote this message in a reply
04-30-2012, 09:19 PM (This post was last modified: 04-30-2012 09:23 PM by W4RP1G.)
Post: #17
RE: [Tutorial] How To Setup Your Free Amazon Server
(04-29-2012 02:33 AM)Mr. Bougo Wrote:  Search engines are a wonderful thing! You should try them out sometime.
http://stackoverflow.com/questions/10369...the-server

EDIT: I mean no offense Wink

Thanks, that looks like just what I need. Like I said, I messed with it for 45 minutes before just creating a new server. I did search google, but I ended up finding way too many unanswered questions, outdated answers, and workarounds that seemed like more trouble than they were worth.
Find all posts by this user
Quote this message in a reply
06-15-2012, 11:14 PM
Post: #18
RE: [Tutorial] How To Setup Your Free Amazon Server
Just an update. When I lost my keypair key that was on my computer, I created a snapshot of my server, which is a service amazon provides. This apparently costs me $0.33 usd a month. I could delete the snapshot, but considering how convenient it is to have it I think it's worth the price.
Find all posts by this user
Quote this message in a reply
06-16-2012, 01:20 AM
Post: #19
RE: [Tutorial] How To Setup Your Free Amazon Server
Why not store a backup of the keypair to your personal comupter?

[Image:http://i.imgur.com/4XODR.png]640K ought to be enough for anybody.
     ― Linux Torvalds
Find all posts by this user
Quote this message in a reply
06-16-2012, 05:55 PM
Post: #20
RE: [Tutorial] How To Setup Your Free Amazon Server
Well, I have made a backup already. I guess it's just for piece of mind. Plus, you can do stuff with a snapshot, like create a new server in a new region with very little effort. I guess I could delete it an make another snapshot later if I need it, but if something happens to my server that i can't fix(which is a possibility with my limited knowledge of Linux), I'll be kicking myself for deleting it to save $4 a year.
Find all posts by this user
Quote this message in a reply
06-17-2012, 02:23 AM
Post: #21
RE: [Tutorial] How To Setup Your Free Amazon Server
You could simply tar up the personal data directory and download that!

But well... I misread the price as $3.33 a month, so it seemed like a bad waste of money. .33 is more decent. Still not worth the price, since you can do the exact same thing for free with very little effort.

[Image:http://i.imgur.com/4XODR.png]640K ought to be enough for anybody.
     ― Linux Torvalds
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [How to] Linux map file server end user 8 409 10-21-2014 04:13 PM
Last Post: Smilecythe
  Server via UGCC? Arbo 9 492 10-19-2014 03:58 PM
Last Post: Mr. Bougo
Thumbs Up [SOLVED] Create a server on DigitalOcean CJ25 8 557 09-14-2014 05:36 AM
Last Post: Mr. Bougo
Question How to start a Server with Mutators ? Wolfseye 1 454 07-08-2014 12:07 PM
Last Post: Mr. Bougo
  Turning on AES Support on the server? evit 8 1,951 06-01-2014 01:12 PM
Last Post: dipol
  [SOLVED] Stats failing to submit | FreeBSD server Pricetx 1 725 03-16-2014 03:31 PM
Last Post: Pricetx
  [SOLVED] Not attempting to generate keys | FreeBSD server Pricetx 3 777 03-16-2014 02:00 PM
Last Post: Pricetx
  [ Drive Mofo ] Vehicle CTF Server end user 5 1,348 03-01-2014 05:12 PM
Last Post: end user
  Server Question - CTF Topher 2 811 01-25-2014 03:22 PM
Last Post: Topher
  Some issues with 0.7.0 server -maniac|Su- 16 2,597 01-15-2014 04:29 PM
Last Post: -maniac|Su-

Forum Jump: