2011-10-08

Virtual Box - How to clone a virtual machine

First, make a copy of the hard drive(s) of the original virtual machine (using the command line).

vboxmanage clonehd ORIGINAL_HD_FILENAME.vdi NEW_HD_FILENAME.vdi

Then, simply create a new virtual machine with the same specs as your original one, specifying the new hard drive(s) copy(ies).

Linux - Change file ownership

sudo chgrp YOUR_GROUP_NAME "FILE NAME.EXTENSION"

2011-10-03

Punch Out! - Pass keys

After wining the first title bout: 005 737 5423
More to come, I haven't played this in ages.

2011-10-02

HTTP - Apache Benchmark Tool

This is a great way to test the capacity to respond quickly and concurrently of a website.  You need the Apache Utilities 2 package in order to try this in Linux.

(1) Get the utilities through this command:  apt-get install apache2-utils

(2) Run the "ab" command (Apache Benchmark) like this:  ab -n 100 -c 10 http://test.com/pagex.htm

100 represents the number of requests to be sent.
10 represents how many concurrent requests are to be made.
Make sure to point not to the root of a site, but to a specific document.

Linux - CURL to get the text of an HTTP call

Use this command to get the HTTP response from calling any website. CURL is much more powerful than this, but this is a nice little way of using it.

curl http://test.com

2011-10-01

Linux - How to change your MAC address


sudo ifconfig eth0 down
sudo ifconfig eth0 hw ether FF:FF:FF:FF:FF:F
sudo ifconfig eth0 up

Linux - How to get your MAC address


ifconfig | grep HWaddr

Linux - How to open a file with root privileges using a launcher in GUI mode


Simply create a new launcher with this command: gksudo "gnome-open %u"

Then just drop any file into the launcher and it will open the file, in the default application, with root privileges.