Friday, 28 June 2013

CW PvP ~



CapitalWorld PVP
Hello all, I'm Rocky. Before I show you my story I want to tell you about some stuff. Ok, well this one is on CW. No it's not an actual story. I will be talking about Plugins, actual story's and More. I hope you enjoy it guys!
It all started when Lakeol was messing around with his Flame Bow. It was about 4:50pm on June 30th when he shot it up in the air. Xxrocky65Xx and Peng55 had just finished the base. About 2 or 3 hours later we saw Lights. Lots of them! We all knew we should get our Armour on, so we did. Peng55 then yelled out “PENG55 WATCH OUT!” Next second he gets an arrow to the leg! He couldn’t fight. The whole night Lakeol and Xxrocky65Xx were fighting them. It was about 5am in the morning when we killed the last guy. We had a look at there Armour and saw that they were apart of the Faction “KoE” ( Knights of Ender). We were all scared. Lakeol carried Peng55 and we all walked to the City of CapitalWorld. In CapitalWorld we met up with the Faction KarmaPvP. KarmaPvP  was  a Strong faction and hasn’t been raided. Back in the day KarmaPvP was only a small faction. It had been raided quite a lot and no one liked them. Today KarmaPvP is a strong and un-raidable Faction. We were looking around  their “f home”, and looked at their items they collected from killing People. They had Swords and Bows to spare, Armour and more. We were greatly happy to be with them. We heard a noise, we looked over and saw the best PVP’er walk in. His name was vMystery. He gave us all spare armour, as he had just returned  from a raid.

The next day everyone went out looking  for bases and food. Lakeol, Peng and I, stayed back and had another look at the base. It was about 5 minutes later and we heard a bomb go off; we weren’t quite sure what it was. Lakeol saw another person walk in and said “what the…” they shot Arrows at Lakeol. Lakeol ran and hid. We all popped our Armour on and fought. We killed at least 13 of them, then ran. We saw a person named XxBowzxX coming up. We thought he was gonna kill us but instead started helping us. He had killed a lot, as in 35 people at least. The 4 of us then ran for our lives. We got out alive but saw the base blew up. We all knew we’d been raided. We didn’t quite see what happened to KarmaPvP; All we knew is they didn’t have a base (lol). We wanted to get revenge on them, sometime we will. For now we’ll be a little faction hiding away, named “Deception”. Yes, we’ll be raided but we will end up being Strong as KarmaPvP was. At least we got most of their items. we’re Building a base when we find more land away from others.  It was only after a month later, that Peng’s leg got a lot better. We were all back in the game;we had Armour and Swords . Now, time to go raid those people!!
To be Continued

New Author, ~Rocky

Hello Readers,

I am happy to present to you my first Co-Author here at Rudker's Software Corner.
His name is Rocky, and he will be writing on a variety of topics mainly to-do with Minecraft Servers and plugins; Capital World especially since that is one of our sponsors. In addition to that, he might grace us with some short fiction or even poetry!
In Rocky's first post he will be doing what he does best; telling storys; and he's starting off with a real life PVP experience. Hope you enjoy, and good luck Rocky! Welcome Aboard.

Amazing, Free mind-mapper Xmind for Mac, Windows, and Linux




I hope this post will bring to your attention a free tool that has now become a great help to my everyday
life. The credit goes to a mind-mapper called Xmind; available for download (or purchase for premium features like more exporters.) at www.xmind.net
I absolutely love this thing. I can do everything in it. From organizing my thoughts, to planning my day, to solving problems, to starting and finishing projects. There are so many features and pros about this software, that I would recommend to pretty much anyone. 

I particularly have an intrest in the idea and practice of mind mapping. Getting an image of your mind out there on paper, presenting your thoughts in a structured, visual, and logical representation. I have tried other mind-mappers, but just dont find them as fluid and flexible as Xmind. Take Freemind for instance. Its what I started with but it's only good for completely structured mind mapping. You have to have a strict hierarchy. No multi-maps projects, no free-floating nodes, no lines for creating manual relationship between non-directly relating nodes. Xmind has all this and more.

Heres a map I made in xmind before i made this post. No need for a thousand words! All i wanted to say is simply covered in the mind map. No fuss. No Fluff.

(Click for larger view)

One of my favorite things to do with xmind is take notes. You can go so fast because it can be fully keyboard controlled, and you keep track of what leads to what during a conversation or lecture.

Anyway, thats far from all there is to this monster, but there you go; Thats my two bits. Enjoy. And I hope it helps you in some shape or form as it has me.

Saturday, 2 March 2013

Game Latency (Lag), Traceroute, Zenmap and Network Troubleshooting

Gamers and computer guys are similar in a few ways.  One way i would go so far as to say this is their desire for no lag, or latency.  A website designer hates when it takes so long to load a Wordpress.com page and a gamer hates when his "lag" is over 300 in an intense FPS.  There are many other scenarios, but I am here to tell you some of the ways i have learned to troubleshoot things like network speed, lag, latency and the like.

Before we proceed I will tell of a few necessary fundamentals you need to understand the following concepts. 

What is lag?
There are two kinds of "lag". Lag normally refers to hardware lag on the user's side such as Frames per second in a game. (FPS) or a freeze of the screen, and the spinning wheel of death on mac, or a "Glitch"

The other kind of lag, Latency, or the more understandable term: "Response time." It is the response time between the computer you are are, and the computer or server you are connected to. This also a cause of great distress for people who are particular about their internet speed. This network latency lag is what we will be talking more about.

What is the Internet really made of?
To understand what i will be telling you next you must understand this; the Internet or more properly defined in these terms, Intranet, is a globally wide connection or web of interconnected computers. (Experts, correct me if im wrong, but I think this is generally understood as the Intranet.)
Not to bore you with theory and history of the internet, but its not quite that simple. Sure, we could run cables from one computer to the next, and then from that computer to the next and so on but that would make it more big and bulky then the Internet needs to be. What is between the computers is what we are interested in. Its something most of us don't pay that much attention to. And for most of us its unnecessary but for some of us that run into problems, we want to know why they are happening, and how to solve them. 

There are hundreds of kinds of devices that lie between you, another country and a website. Plainly put, these devices comprise mostly of Switches, Routers, Domain name Servers, Your internet service provider, and large telecommunications cables that go under the sea. Or, smaller ones that go to the office or house next door.

With the continued use of the Internet Protocol Version 4, which allows only 4,294,967,296
addresses because of its addressing protocol, we couldn't just use a bunch of cables, connect everything and give every device an IP of its own. There are too many devices! We did, but we have more devices than that. So what we did next was make use of the idea of subnetworks and Local Area Networks (LAN).

 Now subnetworks is getting into a pretty complicated matter, so i will simplify. You have a main network, that is the internet, then attached to that network are smaller networks, often defined by entities such your ISP or a corporation or a hosting company, then, attached to those networks is you home LAN, your LAN has both an internal and an external IP in most cases, your router or firewall makes this possible. Your LAN gives you your very own mini-internet and each of the computers on that mini-internet have an IP address.
There is more in between you and a website, but those are normally hundreds of connections, not networks.

Heres how we can see those connections.

Traceroute
Traceroute is a multi-platform command line network diagnostic tool. And its named is very explicably chosen. It does what is sounds like. It traces routes. It traces routes, known as hops or nodes between the computer you are running it on, and your target. You target can be an IP address or a url such as:
www.google.com
You put in the the target address, run the trace, and it gives you the address (and more information) of all the nodes in between. AND LAG TIME!!! If you know what the program ping does (comment if you don't) its basically that, but it pings every node and the shows you the total ping time between you and the target address.
It is used on *NIX systems for the most part, but is open sourced and written in a language supported by all operating systems.

I use a Mac, so if you want to follow along it is included on every mac natively:


  1. Open up a Terminal.app window and type the following:
  2. traceroute www.google.com
Let it do its work, and when its finished you should see something like this.


Starting from the top you can see the command I entered, then the program starts to give its opinion of things. It tell us that www.google.com has multiple IPs, but its chooses the nearest. Thats how google works with so many people to serve and only one simple domain name.

Then it shows you each of the nodes on the route to the google server its trying to reach.
We can see at the bottom that there are a total of 12 hops from us and the server.
The last of the 3 pings is what you need to worry about. (Not sure what the other millisecond readings are. O.o)

OK, so what is this doing for me? How can it help me?
Well, lets say you were looking for a server to join for a game such as Minecraft. And you have the IP of 2 servers you are looking at. You could take those, replace www.google.com with the address of the server and run the program. Run it for both of the IP's and you can see which server will have the fastest response time. Generally the server that returns the fewest hops, will be best for you. (This does not measure CPU lag that is often a cause of lag in Minecraft servers actually, this is pure network.)

Is there any GUI version of this... traceroute? Its too many numbers! Im more visual!
Your in luck. Fortunately the guys over at nmap.org have created a GUI program called "zenmap" for the incredibly powerful command line program nmap. Now nmap is something quite juicy and will require another post for me to go into detail, but i think that with this background i have given you, you will be able to discover nmap for yourself (As nmap is the default function of zenmap and the traceroute is a subroutine that is just accessing that program for you.)
Download the program then I will show you how to do traceroute's in it.

This is the screen you get when you open it by default. Pretty self explanatory.


I will input the IP of my favorite Minecraft server and choose "Quick traceroute" from the Profile drop-down. Feel free to experiment with the other types of scans! (Curtain laws may apply in certain jurisdictions. ) Ask question in the comments if you like.



After the scan, this is what is returned


MORE NUMBERS!! No, wait, thats not all.
Switch to the Topology tab.


Yeah man! Now thats what im talking about!

Now, without closing the program put in a new address and run the quick traceroute scan again.
Then look at the topology map now and surprise yourself.
Now you can map out the whole internet! No, not really. It would crash your computer and you probably wouldn't see anything displayed. (I tried over 21,000 nodes once! And it froze LOL)



Oh, one more thing i forgot. In the controls toolbar, change the option so you can see latency displayed.


There are tons of other things that amazed me by just clicking around in zenmap. Go for it.

Thank you for reading, please comment and feel free to ask questions if you like.















Thursday, 3 January 2013

Understanding Apache Virtual Hosts, creating one in 6 steps

I have been using Apache2.2 web server for numerous applications as long i can remember. (4 years) And until last night i have been missing out on the real power behind the software and its ability to create virtual hosts. Now i have like 5 websites running on one server with the power of virtual hosts in Apache2.

It was one of those late nights that every student studying System Administration and Networking gets.
Out of necessity i was forced to finally break the brick wall between be ABLE to make an apache virtual hosts and NOT being able to create one.

It is from many blogs such as these and the long-lasting and extremely helpful *NIX community that i finally pieced together how to do it. I dont just write this to say i did it (Although i threw my hands up when i did) im writing this to contribute to the community of learners and teachers out the in the computer world. Hopefully i can simplify the steps down to their bare bones.

What you are trying to achieve:

  1. You want to serve multiple websites, but you only have one server....... CAN YOU? YES!
  2. Do something you thought you couldn't....... CAN YOU? YES!
Prerequisites:
  1. Linux Server (Debian or Ubuntu Server Edition Recommended - i use Debian)
  2. Apache web server 2.x
  3. Terminal or Shell access (Either through telnet, or SSH)
  4. Root or Sudo access Preferably (Not sure if needed, i will get back to you.)
  5. A domain. You need be able to create subdomains. Preferably from www.no-ip.com (They have free ones you can have 50 subdomains for any premium domain you buy, i own rudkerfern.net. I use it for testing. Its also my Minecraft IGN :p)
My Model System:
  •  I am using Debian GNU/Linux 6.0.6 Codename "Squeeze"
  • I am on an Apple Network with IP adresses that build upon the 10.0.1.0 framework (no 192 for me :p) 
  • I will be using sub.example.com as the example domain (sub.* means any subdomain you created)
  • I am doing most of my administration on a mac and ssh'ing in.
Note: "$" stands for the Linux Terminal Prompt

I did this on my home system so i have a dynamic IP (changing every few days) and premium domain registered at www.no-ip.com. You can still do this if you have a static IP. I will leave notes to tell you what to do if you have a static IP. I also have a firewall which mean i had to port forward the respective ports for anything i wanted to access on the inside from the outside world. You will need to do the same. I have another tutorial on port forwarding.

We will be using the standard http port 80
Nothing special.
Anything enclosed "<  >" means you need you fill in YOUR respective value
WE WILL BE MAKING A NAME-BASED VIRTUAL HOST

Let get started.

STEP 1, get shell access:

SSH or telnet into your server if you dont have physical access
Open up Terminal.app on Mac and enter the following


$ ssh <user>@<host/ip>

Example $ root@www.example.com

If you need to do this in Windows, you will need a telnet/ssh client called http://www.putty.org/
It works in a similar fashion.


STEP 2, get in the right directory:

On my Debian system the directory with all the configuration virtual hosts in under
 /etc/apache2/sites-available

$ cd /etc/apache2/sites-available



STEP 3, write the configuration:

Now that you are in the right directory you can make the config file with my favorite text editor "nano"


$ nano sub.example.com
Heres all i needed to get a virtual host working.
You can copy this over and edit it to your needs.


<VirtualHost *:80>
        ServerName sub.example.com

        DocumentRoot /path/to/files/to/serve
        <Directory /path/to/files/to/serve>
                Options FollowSymLinks
                AllowOverride None
                Order allow,deny
                Allow from all
        </Directory>
         </VirtualHost>

You will need to change "ServerName" to the subdomain you setup with your domain registrar.
And change "DocumentRoot" to the directory that you want to server files from

"<VirtualHost *:80>" just says that you are listening to all requests from all ip on port 80
You can of course add any other standard apache2 directives into this config file for this particular site.

You might be interested in the "AllowOverride" directive. This tells apache2 wether or not to use Authentication for people that are requesting anything from this site. None means NO authentication. The only option i use would be "AuthConfig" instead of "None" on the "AllowOverride" directive.

Now

ctrl+o and the <ReturnKey> to save
and ctrl+x to exit nano

STEP 4, enable the newly configured site:
You can use the apache2 tools "a2ensite" and "a2dissite" to enable and disable site configs respectivly


$ a2ensite sub.example.com
It should enable the site and give you the next step. For you guys out there that HAVE to know what apache just did for you, here it is: it created a Symbolic Link aka an "Alias" on desktop systems in
/etc/apache2/sites-enabled/sub.example.com
If you want to see more on that, cd that directory and try the command $ ls -la
You will fond some interesting things next the site config file ;)

STEP 5, reload apache2:
Yep, what the step says...

$ /etc/init.d/apache2 reload



Apache is very good  at debugging config files, if something is wrong it will tell you what and where.
If you got no error then stand up and shout! You did it. No wait, never jump to soon, there will be plenty time for that, lets test it first!

Go to your browser and type in "sub.example.com" or whatever you domain and subdomain address is.
If you have nothing in the folder you wanted to serve from and it give you and "Index Of" page then you are in luck buddy. It worked, simply put in your content. E.g an index.html or index.php page.
  


STEP 6, post a comment if you have any problems:

Go ahead! Bring it.


Notes: to disable a site just use the "a2dissite <sitefile>" command then reload apache.