Friday, January 20, 2017

Setting up raspberry pi to test my internet speed

The setup is easy and can be done with steps below.

1. Install the python-pip

pi@raspberrypi:~$ sudo apt-get install python-pip


2. Install speedtest-cli

pi@raspberrypi:~$ sudo pip install speedtest-cli


Installation is done !!!


now just run the speedtest-cli to check the speed.


pi@raspberrypi:~$ speedtest-cli
Retrieving speedtest.net configuration...
Testing from Optus (1.43.205.101)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Telstra (Sydney) [1.92 km]: 54.277 ms
Testing download speed................................................................................
Download: 10.82 Mbit/s
Testing upload speed....................................................................................................
Upload: 4.44 Mbit/s
pi@raspberrypi:~$ 


Stopping some services to start at the boot time on Rasbian - Raspberry PI

I just wanted an easy way to stop mysqld at the start of raspberry pi and the easiest way I have found was package rcconf


Install it using:

sudo apt-get install rcconf


Start using is by:

sudo rcconf


-- It is easy peasy 

pi@raspberrypi:~$ sudo apt-get install rcconf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  rcconf
0 upgraded, 1 newly installed, 0 to remove and 140 not upgraded.
Need to get 23.9 kB of archives.
After this operation, 135 kB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main rcconf all 2.5 [23.9 kB]
Fetched 23.9 kB in 4s (4,890 B/s) 
Selecting previously unselected package rcconf.
(Reading database ... 89771 files and directories currently installed.)
Unpacking rcconf (from .../archives/rcconf_2.5_all.deb) ...
Processing triggers for man-db ...
Setting up rcconf (2.5) ...
pi@raspberrypi:~$ 
pi@raspberrypi:~$ 
pi@raspberrypi:~$ 
pi@raspberrypi:~$ 
pi@raspberrypi:~$ 
pi@raspberrypi:~$ sudo rcconf



Tuesday, January 17, 2017

AWS t2.micro vs my VM from virtual box for performance test on aircrack-ng

I ran aircrack-ng to test where aws t2.micro and my desktop stands in terms of performance and I was pretty impressed with AWS performance.

I was running aircrack on virtual box off SSD with 4096MB RAM and 2 cpus.

My Virtual machine was twice as fast as t2.micro. I believe t2.micro has done well.

Below are the results 

t2.micro:

                                 Aircrack-ng 1.2 rc4

      [00:00:13] 15972/9822769 keys tested (1227.29 k/s) 

      Time left: 2 hours, 13 minutes, 12 seconds                 0.16%

                       Current passphrase: matthew04                  


      Master Key     : 47 C4 FD F4 32 09 57 AB 6D A9 1E 09 2B F1 1B 1F 
                       5D 39 2D 54 5C 55 A9 6F FE 63 DD CC 8A 5A EA B3 

      Transient Key  : B5 15 6F EF 50 9C 6B 6A 73 EC 00 D2 E0 6A C8 1E 
                       C5 64 48 CD 65 E8 DE 95 C0 57 BD 5D B9 95 A1 98 
                       5B 47 5F E1 55 2B 67 C4 4E 1D 22 A1 E3 7B 2A 93 
                       AD 23 8A BF 28 6D CB C8 42 65 5B E7 61 BF 25 36 


      EAPOL HMAC     : FC 71 B1 5A 1F A5 94 57 DA 69 D4 07 9E E8 EA D5 




Virtual Box Machine:


                                 Aircrack-ng 1.2 rc4

      [00:06:52] 23458/9822769 keys tested (2124.49 k/s) 

      Time left: 1 hours, 6 minutes, 43 seconds                 0.24%

                       Current passphrase: 1a2b3c4d5e6f7g             


      Master Key     : A6 74 BB ED FE 7B CD E2 9F B5 72 A4 53 19 1C 03 
                       64 1D BE 54 F4 A3 42 9D 1F 30 63 42 13 53 7C FB 

      Transient Key  : 84 2D 62 A4 3B 81 79 46 41 A8 33 42 BF 05 39 4B 
                       57 1E CD 18 34 C5 E4 00 32 37 21 A0 B0 6C ED 5B 
                       4E A6 42 FD CD DF 9E 8A 79 A6 B5 E8 EE AA C4 C4 
                       D7 F5 36 67 59 58 03 4B 77 96 F3 D5 32 E7 23 25 


      EAPOL HMAC     : F5 F8 50 52 75 FE 09 D7 4E 13 CA 55 C1 38 71 59