Category Archives: Hacking

Installing Hadoop 2.6.X on Raspberry Pi B Raspbian Jessie

Configure Java Environment

With the image Raspbian Jessie image, Java comes pre-installed. Verify by typing:

java -version

java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) Client VM (build 25.0-b70, mixed mode)

Prepare Hadoop User Account and Group

sudo addgroup hadoop
sudo adduser --ingroup hadoop hduser
sudo adduser hduser sudo

Configure SSH

Create SSH RSA pair keys with blank password in order for hadoop nodes to be able to talk with each other without prompting for password.

su hduser
mkdir ~/.ssh
ssh-keygen -t rsa -P ""
cat ~/.ssh/ > ~/.ssh/authorized_keys

Verify that hduser can login to SSH

su hduser
ssh localhost

Go back to previous shell (pi/root).

Install Hadoop

Download and install

cd ~/
sudo mkdir /opt
sudo tar -xvzf hadoop-2.6.4.tar.gz -C /opt/
cd /opt
sudo mv hadoop-2.6.4 hadoop
sudo chown -R hduser:hadoop hadoop

Configure Environment Variables

This configuration assumes that you are using the pre-installed version of Java in Raspbian Jessie.

Add hadoop to environment variables by adding the following lines to the end of /etc/bash.bashrc:

export JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::")
export HADOOP_INSTALL=/opt/hadoop

Alternative you can add the configuration above to ~/.bashrc in the home directory of hduser.

Exit and reopen hduser shell to verify hadoop executable is accessible outside /opt/hadoop/bin folder:

su hduser
hadoop version

[email protected] /home/hduser $ hadoop version
Hadoop 2.6.4
Subversion -r 1503152
Compiled by mattf on Mon Jul 22 15:23:09 PDT 2013
From source with checksum 6923c86528809c4e7e6f493b6b413a9a
This command was run using /opt/hadoop/hadoop-core-2.6.4.jar

Configure Hadoop environment variables

As root/sudo edit /opt/hadoop/conf/, uncomment and change the following lines:

# The java implementation to use. Required.
export JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::")

# The maximum amount of heap to use, in MB. Default is 1000.

# Command specific options appended to HADOOP_OPTS when specified

Also, we need to edit “”. Uncomment


and write:
export YARN_NODEMANAGER_OPTS=”-client”

Note 1: If you forget to add the -client option to HADOOP_DATANODE_OPTS and/or YARN_NODEMANAGER_OPTS you will get the following error messge in hadoop-hduser-datanode-node1.out:

Error occurred during initialization of VM
Server VM is only supported on ARMv7+ VFP

Note 2: If you run SSH on a different port than 22 then you need to change the following parameter:

# Extra ssh options. Empty by default.
# export HADOOP_SSH_OPTS="-o ConnectTimeout=1 -o SendEnv=HADOOP_CONF_DIR"

Or you will get the error:

connect to host localhost port 22: Address family not supported by protocol

Configure Hadoop

In /opt/hadoop/conf edit the following configuration files:







Create HDFS file system

sudo mkdir -p /hdfs/tmp
sudo chown hduser:hadoop /hdfs/tmp
sudo chmod 750 /hdfs/tmp
hadoop namenode -format

Start services

Login as hduser. Run:


Run the jps command to checkl that all services started as supposed to:


16640 JobTracker
16832 Jps
16307 NameNode
16550 SecondaryNameNode
16761 TaskTracker
16426 DataNode

If you cannot see all of the processes above review the log files in /opt/hadoop/logs to find the source of the problem.

When Responses Go Too Far

Some select responses

Let’s consider though that MLH is a young organization that is exploring the hackathon space in a novel way. With 100s of hackathons under their belt they made a rushed call. We as students of logic can understand that it was nothing personal or malignant, right? This was a professional failure. Some of you have pointed out the fact that most big hackathons do not need the support that MLH provides and existed just fine prior to MLH entering the scene.

MLH isn’t the hackathoner’s Mondo Burger run by greaseballs counting their money and giggling, just by 3 dudes counting their money and giggling. MLH hides behind a vision to solve problems and bring joy by fusing the creative and analytical powers of the human mind, instead of addressing actual community issues. MLH was brought about by hackers just like you and me who saw what we could do when we work together and who understood the efficiency that structure provides, yet do not collaborate with the community. Let’s not spit in the mirror but let’s also not wash over the shortcomings and ignore them and MLH’s insistence on not communicating about them. As people who have accepted a lifelong dedication to solving problems, let’s stay focused and think of ways we can get MLH to prevent future confusion and further build this community that we’ve all invested in.

Of course, before we do anything, let’s take a bit of time to cool off. Oh wait, MLH has had a day. Nevermind. I implore anyone who wrote reviews to reconsider taking further action as MLH still will not address these issues. We, with a MLH who has proven they cannot take criticism from the community, must consider other ways to be a lifeline for those people and bestow them with the power to sculpt and strum technology. This mishap won’t break us. Let’s stay true to the course; I believe MLH can fix this if they will communicate with the community they claim they “serve”.

MLH is a for-profit company. They make profits selling the hackers that attend their sponsored events as a product to the sponsors.

If you attend these hackathons, MLH is profiting off of you, and therefore you ARE entitled to a reasonable experience at the very least. If even one of us are made forfeit what is due us, then we all lose out.

Not to mention that they’re profiting off of the college organizers, and by superseding their authority on their own venue, they are being incredibly disrespectful at the very least. We all lose yet again.

No More Kiva Donations in Singapore

It sucks that PayPal users like me can’t use my funds to lend to people who need it more than I do.

Dear Brian,
We regret to inform you that as PayPal Pte Ltd does not have a remittance license, payments from PayPal users in Singapore to Non-Profit Organisations (NPOs) and charities registered outside of Singapore have been discontinued from 31 March 2013. As such, the payment that you’ve recently sent to Kiva has been reversed, and the money will be returned to your credit card or PayPal balance depending on your payment method.We would like to reassure you that PayPal users in Singapore will continue to be able to support locally-registered NPOs and charities. Our users in Singapore will still be able to use PayPal for faster, safer commercial transactions for purchases of goods and services online and on their mobile devices.
In light of the recent changes in our service to our users in Singapore, we have created a webpage to address concerns and questions you may have at: You can also contact our customer support team by logging into your PayPal account and clicking on ‘contact us’ at the bottom of the page.

We sincerely apologise for any inconvenience caused. We thank you for your ongoing support and will continue to enable secure commerce anytime, anywhere and any way.

The PayPal Team

Here’s my Kiva progress thus far!
Not too shabby contribution towards the Carnegie Mellon Kiva team 😀 From 4th place to sitting pretty at 2nd now! 😀

New Virus Scam!

Such emails are getting more crafty…
Welcome to our new BreakingNews portal!
Please verify your account

Delivery has failed to these recipients or distribution lists:

[email protected]
The recipient’s e-mail address was not found in the recipient’s e-mail system. Microsoft Exchange will not try to redeliver this message for you. Please check the e-mail address and try resending this message, or provide the following diagnostic text to your system administrator.

Sent by Microsoft Exchange Server 2007

While on ADP Duty…

I was having my ADP duty and had lots of time on hand for surreptitious surfing on the interwebs. I was mainly looking to buy a solar charger, a Raspberry Pi and a Kill A Watt but ended up buying more tech stuff on the cheap.

SGD3.50 for a 4 pack of AAA RECHARGEABLE batteries? And SGD4.50 for the AA batteries? and

Ok that’s a 100 bucks spent today. So much for retail therapy.

Actually I was intending to start writing my college essays but decided to procrastinate and do something else. Like shop for new reads on Zinio (got a $15 credit to use) and


[GUIDE] Install OS X Mountain Lion on Samsung RF4XX/5XX/7XX Notebooks

Hey guys!

Many people have been pressing me for a guide, for installation of OS X Mountain Lion on their Samsung RF-series notebooks. Well, here it is. It is in essence, nearly the same as my OS X Lion guide, with the exception of MultiBeast configurations and a few others… So here goes the guide!


This guide is split into 3 parts: What You Need, The Install, and Work-In-Progress .



The Hardware:-

  • A REAL Mac or a WORKING Hackintosh, with minimum, Mac OS X Snow Leopard 10.6.8
  • An 8GB thumbdrive
  • A USB mouse and keyboard
  • A USB WiFi adapter, I recommend this one

The Software:-

  • A PAID copy of OS X Mountain Lion
  • The latest version of UniBeast for OS X Mountain Lion (v1.5.3) found in the tonymacx86 Downloads page
  • The latest version of MultiBeast for OS X Mountain Lion (v5.0.2) also found in the above-mentioned page
  • The Samsung RF4XX_5XX_7XX Install Files file attached to this post


Now that you’ve gotten everything you need, let’s jump straight into the install, no more delays. Follow the next few steps to get OS X Lion installed on your system.

STEP 1: Preparing your UniBeast drive

  1. Using your Mac or Hackintosh, follow tonymacx86’s instructions to create your UniBeast drive. MAKE SURE YOU SELECT “LAPTOP SUPPORT” when you create your UniBeast drive. I really can’t emphasise this any more.
  2. Plug your Unibeast drive USB 2.0(BLACK) port on your notebook. Plug in a USB mouse as well. Boot up your laptop from your UniBeast drive.

STEP 2: Installing OS X Mountain Lion 

  1. Once you enter the installer, format your drive as GPT (GUID Partition Table), and create a partition formatted as Mac OS Extended(Journaled).
  2. After formatting, proceed with the install. The install will take around 20 minutes. Once the installation completes, reboot your laptop from the UniBeast drive, and select your newly-created OS X partition.

STEP 3: Setting up and finalizing your OS X Install

  1. Once you enter OS X, remove your UniBeast drive to make space for a USB keyboard. At the network prompt, select “My computer does not connect to the internet”. Everything else is up to you. Log in to your desktop. Remove the USB keyboard, and plug in the UniBeast drive once again. Leave it plugged in until step 12.
  2. You notice that OS X is now running at your notebook’s maximum resolution. In the Samsung RF notebooks, the Intel HD 3000 graphics processor is hardwired to be default, which OS X takes advantage of. Even without NVIDIA Optimus, the integrated graphics will still be the default processor-there’s no option in the BIOS to change this. So you cannot enable the discrete NVIDIA GPU, if you have one.
  3. Close any mouse/keyboard prompts that appear when you log in. To prevent such future annoyances, select System Preferences -> Bluetooth. Click on Advanced. Un-check the top two checkboxes.
  4. This step ONLY applies if you purchased the ASUS USB-N10 WiFi adapter. Without this adapter, your only choice for Internet connectivity is a wired Ethernet connection, which works out of the box. Open the Install Files Pack that you downloaded, and navigate to the Zips directory. Open and install the necessary files. Reboot your computer back to OS X.
  5. Plug in the ASUS USB-N10 Wifi adapter. Open System Preferences, and select Network to configure your wireless adapter. Click Apply, and close System Preferences. Open the Applications folder and look for Wireless Utility. This application configures and connects to your wireless network.
  6. THIS PARAGRAPH IS IMPORTANT. DO NOT MISS IT. Open the Zips folder you extracted before, and open Go to this site (you need to sign up first) and download the patch specific to your notebook model. Open DSDT Editor, and select File -> Extract DSDT. Then, go to Patch -> Open… from the menu bar. Select the text file that you just downloaded from the Olarila forum in the popup window. Then, a new popup window will appear, and click Apply. After that, from the menu bar, select IASL -> Compile. You will see a new popup window appear, which alerts you to any errors in your patched DSDT. If there are any errors, just click on Fix Errors. Finally, go to IASL -> Save AML as… and name your DSDT file as DSDT.aml, and save it on your desktop. For more information on creating and editing your own DSDTs, see this thread. REALLY SIMPLE!
  7. In the Zips folder, navigate to 3-VoodooHDA Zips. Open the file, and install. DO NOT REBOOT. Navigate to /System/Library/Extensions, and look for VoodooHDA.kext. Copy to your desktop, and DELETE VoodooHDA.kext from /System/Library/Extensions. DO NOT MISS THIS STEP.
  8. Open which is in the same folder, and install. Open the Applications folder, and look for VoodooLoader. Right-click, and select “Show Package Contents”. Open Contents, and go to Resources. Delete the VoodooHDA.kext you see there. Then, copy the VoodooHDA.kext from your desktop to the Resources folder. Enter your password where prompted. DO NOT REBOOT YET.
  9. Navigate to the Zips folder again, and open 6-Battery Mountain You see two kexts there, copy them to your desktop. Use Kext Utility (Google it) to install these kexts to /System/Library/Extensions. DO NOT REBOOT YET.
  10. Download Apple’s OS X Mountain Lion 10.8.1 Client Update, and install. DO NOT REBOOT YET. Open MultiBeast and select these options:
    • UserDSDT or DSDT-Free Installation
    • Drivers and Bootloaders -> Drivers -> NullCPUPowerManagement
    • Drivers and Bootloaders -> Drivers -> PS/2 Keyboard/Mouse/Trackpad
    • Drivers and Bootloaders -> Drivers -> USB 3.0 – 3rd Party UNTESTED
    • Customisation -> System Definitions -> MacBook Pro -> MacBook Pro 8,1
  11. Launch Kext Utility to fix any wrongly-set permissions.
  12. FINALLY, reboot your notebook from your hard drive. You can remove the UniBeast drive now. Chimera should automatically kick in, and if you followed all these instructions correctly, you should see the OS X Mountain Lion login screen, without running into any problems.

STEP 4: Customisation and slight bug fixes

When you log in to OS X Mountain Lion, you see a small VoodooLoader window spring up, and close soon after. Then you may or may not hear an incredible whining sound, that can make you deaf, literally. This whining sound tells you that VoodooHDA works fine, and just that the plist values are set horribly wrong. To get rid of this whining, go to System Preferences, and you should see a VoodooHDA preference pane there. select it, and look for an iGain slider. Drag it all the way to the left. You have to do this every time you reboot, so to save time, go here to see a comprehensive guide on editing the plist files of VoodooHDA. Note that VoodooHDA isn’t in /S/L/E, and you have to Unpack the VoodooLoader application and look for the kext. THIS IS A VERY IMPORTANT RULE: TO EDIT KEXTS, ALWAYS COPY THEM TO THE DESKTOP. Copy the kext to your Desktop, and right click, selecting Show Package Contents. Open Contents, and open Info.plist. It is out of the scope of this guide to show how to edit the VoodooHDA plist file so go to the abovementioned link to see how to edit VoodooHDA.


The Samsung RF series of notebooks are decent enough for hackintoshing. However, there are a few pressing issues that we need to address.The PS/2 Keyboard/Mouse/Trackpad option in MultiBeast only enables the keyboard. I noticed that when booting from only UniBeast, without Chimera installed, both the keyboard and trackpad works, with no problem. However, after completing all the steps, you may notice you need a USB mouse.Secondly, the VoodooHDA Audio solution is only temporary- I’m working on enabling the built-in ALC269 chipset with AppleHDA. Updates coming soon. For more info on patching AppleHDA for the ALC269 chipset, see this link.Hackintosh and DSDT pros, please help in these areas. Your help will really be appreciated. Thanks a lot.

Me, A Hacker?

A few days back I received a letter from Amazon EC2 where some of my appliance hosting resides:

Dear Amazon EC2 Customer,

We’ve received a report that your instance(s):

Instance Id: i-be2ee0ea
IP Address: 46.137.XXX.XXX

has been making illegal intrusion attempts against remote hosts on the Internet; check the information provided below by the abuse reporter.

Host Intrusion is specifically forbidden in our User Agreement:

Please immediately restrict the flow of traffic from your instances(s) to cease disruption to other networks and reply this email to send your reply of action to the original abuse reporter. This will activate a flag in our ticketing system, letting us know that you have acknowledged receipt of this email.

It’s possible that your environment has been compromised by an external attacker. It remains your responsibility to ensure that your instances and all applications are secured. The link
provides some suggestions for securing your instances.

Case number: 12937466983-1

Additional abuse report information provided by original abuse reporter:
* Destination IPs:
* Destination Ports:
* Destination URLs:
* Abuse Time: Tue Apr 17 02:10:24 UTC 2012
* Log Extract:

2012-04-17 02:10:24.773209 IP (tos 0x0, ttl 128, id 11697, offset 0, flags [DF], proto TCP (6), length 48) > Flags [S], cksum 0xc87d (correct), seq 1290811049, win 8192, options [mss 1460,nop,nop,sackOK], length 0
2012-04-17 02:10:24.773313 IP (tos 0x0, ttl 128, id 11698, offset 0, flags [DF], proto TCP (6), length 48) > Flags [S], cksum 0x08da (correct), seq 3600982876, win 8192, options [mss 1460,nop,nop,sackOK], length 0
2012-04-17 02:10:24.773353 IP (tos 0x0, ttl 128, id 11699, offset 0, flags [DF], proto TCP (6), length 64) > Flags [P.], cksum 0x3424 (correct), seq 4198313113:4198313137, ack 1826613510, win 64985, length 24
2012-04-17 02:10:24.776028 IP (tos 0x0, ttl 128, id 11700, offset 0, flags [DF], proto TCP (6), length 48) > Flags [S], cksum 0x8a38 (correct), seq 1143989632, win 8192, options [mss 1460,nop,nop,sackOK], length 0
2012-04-17 02:10:24.776178 IP (tos 0x0, ttl 128, id 11701, offset 0, flags [DF], proto TCP (6), length 48) > Flags [S], cksum 0xa32f (correct), seq 3819226819, win 8192, options [mss 1460,nop,nop,sackOK], length 0


Seems like my Windows box have been doing some naughty things to Remote Desktop clients all over the Internet. Must be because I didn’t patch my installation cos after I updated it, the attempts stopped.

Rooting the Kindle Fire 6.3

  1. Download Kindle Fire Utility 0.9.5
  2. Open adb_usb.ini with notepad
    (add on one line each!)
    Save file
  3. Run install_drivers.bat
  4. Run run.bat
  5. It should download some files
  6. Enter option 2. (Permanently root…)
  7. Your Kindle will connect and disconnect a few times.
  8. After a minute, voila!

A rooted Kindle! Faster than jailbreaking too! 😀


Notes: You might want to download ‘Voodoo OTA RootKeeper’ to root and unroot at will to access the Amazon AppStore.

Affiliate Marketing Links

Into affiliate marketing right now; just look at all these tracking links! >< Will mine be next?