Hackety Hack: Ruby Programming for novices

3:15 AM

Hackety Hack is an open source application that teaches individuals how to create software using Ruby Programming language. It combines an IDE with an extensive Lessons system. Hackety Hack is a cross-platform desktop application available for Windows, Mac and Linux, it also has integration with the website, where "Hackers" can share what they've learned, ask questions, and submit feedback.

Using Hackety Hack does not require any programming experience, and is designed for absolute starters in computer programming.

 With Hackety Hack, you can learn the Ruby programming language. Ruby is used for all kinds of programs, including desktop applications and websites.

Here is a list of programs which users have made using Hackety Hack.


Installing Hackety Hack

Download Hackety Hack from here, this will download a binary run file. Change the file permissions to executable,
  • $ sudo chmod +x hacketyhack-1.0.1.run
Now you are ready to run the Hackety Hack, open the terminal and issue the following command,
  • $ ./hacketyhack-1.0.1.run
 or double click the run file in the file browser.

Now you are ready to hack Hollywood style :)



Enjoy!

0 comments

» read more....

Protect GRUB Entries with Password

5:24 AM

Ubuntu comes with GRUB recovery mode that enables you to recover or rescue your broken system. Unfortunately, everyone can drop a root shell without having to enter the password. Of course, that makes your system less secure. Please imagine that a stranger can access GRUB recovery mode and make some changes to your system! Today, I'd like to show you how to protect GRUB entries with password especially GRUB recovery mode. So, if someone want to access recovery mode, he must enter the password first.
Let's get started. Ope the terminal and type "grub" so that the GRUB shell appears. Enter the following command:
  • md5crypt
You will be asked for a password, please enter your desired password and hit Enter. You'll get an encrypted password, please remember or paste it on somewhere you like.

Open "/boot/grub/menu.lst" with your favorite text editor (root privilege needed). To protect GRUB entries you must add the following line to each entries you want to protect:
  • password --md5 encrypted_password
E.g.:
Before editing:
title Ubuntu, kernel 2.6.8.1-2-386 (recovery mode)
root (hd1,2)
kernel /boot/vmlinuz-2.6.8.1-2-386 root=/dev/hdb3 ro single
initrd /boot/initrd.img-2.6.8.1-2-386


After editing:
title Ubuntu, kernel 2.6.8.1-2-386 (recovery mode)
root (hd1,2)
kernel /boot/vmlinuz-2.6.8.1-2-386 root=/dev/hdb3 ro single
initrd /boot/initrd.img-2.6.8.1-2-386
password --md5 $1$w7Epf0$vX6rxpozznLAVxZGkcFcs

You might like to run the following command the restrict "/boot/grub/menu.lst" for being read by regular user:
  • sudo chmod 600 /boot/grub/menu.lst
Enjoy :)

0 comments

» read more....

How to Reset Ubuntu Password Using LiveCD

8:17 AM

Dear readers! Today I'd like to show you how to reset your lost Ubuntu password using Live CD. This trick should not be used for doing something bad with someone else. The main purpose of this trick is to recover your lost Ubuntu password.

Now, prepare your Ubuntu Live CD and boot your computer from it until the desktop appears. Once, the desktop is ready, open Terminal and type the following command:

  • gksudo nautilus


Now, at the left sidebar, navigate to the root partition of your installed Ubuntu system, NOT the root partition of the Live CD.

For the example, I'll reset password of the user "hok00age". Open file "/etc/shadow" with your favorite text editor and then search for line containing the username:
  • hok00age:$1$2TUdk8Z0$tb2Fn6Idgo8dq9EgYv4xZ0:13721:0:99999:7:::
Look at that code! All you need to do is replace the weird phrase "$1$2TUdk8Z0$tb2Fn6Idgo8dq9EgYv4xZ0" with another weird phrase "U6aMy0wojraho". If you did it well, you'll see the line is changed like the below one:
  • hok00age:U6aMy0wojraho:13721:0:99999:7:::
It will, replace your old password with newly BLANK password. So, if you want to log in your computer just leave the password field empty.

Now, reboot your computer and login with the BLANK password.

Video:




Regards.

0 comments

» read more....

Ebook: Linux 101 Hacks

4:37 PM

The book writer said:

There are total of 101 hacks in this book that will help you build a strong foundation in Linux. All the hacks in this book are explained with appropriate Linux command examples that are easy to follow.

This book contains 12 chapters. Hacks mentioned in 6 chapters are based on the articles that I’ve already posted on my blog. Hacks mentioned in rest of the 6 chapters are brand new.

You can download this ebook by clicking the link below:


Have a nice weekend mate!

0 comments

» read more....