How To Run BackTrack Using VirtualBox in Windows

I wanted to run Linux on Windows but i never wanted to install it directly. So what i did is that i installed it in a Virtual Environment. Which means you can use Windows and run another Operating System while using Windows. This can be achieved through a Software like VMware or VirtualBox.

The subject of this thread consist of Backtrack. You can download BackTrack Linux from their Official Website. Now in this post i am going to show you how to install Backtrack 5 using VirtualBox on Windows.

If you are wondering what is it, then this is what they say about it :

BackTrack is a Linux-based penetration testing arsenal that aids security professionals in the ability to perform assessments in a purely native environment dedicated to hacking.

#1. Downloading and Installing Virtual Box

To run a Operating System in a Virtual Environment, We will need a Virtual Machine Tool. And in this case i am using Virtual Box. Why VirtualBox? Because its free ! And it is a powerful virtualization product. To get Virtual Box Click here.

Click here to know – How to Install Virtual Box

After installing VirtualBox, We can run BackTrack Linux. So lets see how to do that !

#2. How to Run BackTrack Linux Using VirtualBox

To create a virtual machine, let us start the VirtualBox and click the “New” virtual machine button in the tool bar.

starting virtualbox

After clicking on new, the following window appears:

create virtual machine

Enter any name for the Virtual Machine, For example: Ironman

Then choose the type of OS as Linux and Version as Other Linux.

create virtual machine for backtrack linux

Once you are done, Click next.

memory size for virtual memory

Since my computer holds 6 GB of RAM, I am allocating about 1 GB of it to the Virtual Machine. And don’t worry, this is not permanent allocation. The memory will be taken back by your computer after you shut down Virtual Machine.

The template will further guide you to create a virtual hard drive for the virtual machine. The virtual hard drive is simply a file on your host computer. This file will consist all the data of the OS which you are about to run in VirtualBox.

Just select ‘Create a virtual hard drive now’ and Click Create.

creating virtual drive

Then it asks you to choose Hard drive file type. Select the default VDI (Virtual Disk Image) and Hit next.

select hard drive type

Then after you have to select ‘Dynamically allocated’ and hit next.

dynamic allocation

And now comes the important part. You have to select the Size of Virtual Drive. I have given about 2.5 GB of disk space for Virtual Machine. You can give more or less according to your wish.

file location and size of virtual machine

After you hit Create, the Virtual Machine will be created and the following Window appears:

virtual machine created backtrack linux

Adding Backtrack Linux ISO to Virtual Machine

Now that you have created Virtual Machine, You need to add an ISO or Image file of an OS. To do that, Just hit the settings button. After doing so, The following window will show up:

virtual-machine-settings

In the window above, you have to select Storage, then select Empty. And finally select the disc icon on the rightmost side. Which would open up a drop down menu.

choose a virtual cd file

Now select ‘Choose a virtual CD/DVD dis file’ and browse to the directory where your ISO or Image file is stored. In this case i will just browse and select BT5.ISO image from my hard drive. And just click OK.

backtrack 5 selected

Now everything is set up. All you need to do is click ‘Start’.

virtual machine created backtrack linux

After you hit Start, The Virtual Machine boots up. Then it loads up the OS (in this case – BackTrack 5). You might need to hit Enter so BackTrack starts booting.

backtrack-5-running-on-Virtualbox

Once BackTrack starts, All you need to do is type in a command ‘startx‘ to get to the graphical user interface of BackTrack Linux. That’s it. You have successfully run BackTrack 5 using VirtualBox on Windows Host.

If you have any questions, feel free to comment below.

How To Install VirtualBox in Windows

This thread consist of basic information on how to get VirtualBox and how to install it on your Windows Computer. This thread alone can seem useless. But i am writing this thread because it will form a basis for other threads such as – How to install Backtrack Linux on Windows Using VirtualBox, etc.

First of all, if you don’t know what is VirtualBox then here’s a short intro:

VirtualBox is a Virtual Machine (VM) software which will provide you with an environment to run any Operating System as a Virtual Machine rather than installing an OS physically.

A basic example would be to run Linux in VirtualBox while you are using Windows on your Computer. So i hope you get the idea ! Now lets see how do we get and install VirtualBox.

#1. Getting VirtualBox

You can download latest version of VirtualBox by Clicking here. I have downloaded VirtualBox 4.2.10 for Windows hosts  x86/amd64. Obviously by the time you read this thread, there might be a newer version available. So i would recommend you to download the newer version.

I am downloading that specific version because I am using Windows as my Host. If you are using Linux as Host, then download VirtualBox for linux hosts.

#2. Installing VirtualBox

If you double click on the “VirtualBox-4.2.10-84105-Win.exe” file, the VirtualBox installation wizard will be launched.

how to install virtualbox step 1

Click on the “Next” button, we can do some changes in the installation options.

how to install virtualbox step 2

To keep it simple, I chose to install all the packages that comes with VirtualBox. You can customize what you want to install, but i would recommend you to keep the default settings and then click on Next.

During the installation, VirtualBox may ask you to install various software devices. You can just proceed with the installation and hit next till the installation is complete.

how to install virtualbox step 4

Once you are done installing, you can create a desktop icon for VirtualBox. And furthermore you can run Linux on VirtualBox.

Click here to know more about How to Run BackTrack Linux using Virtual Box.

How To Block Any Website Using Notepad

In this post, I am going to talk about how to block any website on your computer without using any software. You can do this with the help of notepad. But if you are too lazy to use notepad, you can just block a website with a mouse click. Interesting right?

But first of all, Why would you want to block a website? There are many reasons why you might need to block a website.

Parental Control – To block adult websites such as porn sites, gambling sites, etc.

You might also want to block social networking sites on a temporary basis, so that you can focus on your work without distraction. Or you can also use this trick as a prank by blocking websites on your friend’s computer.

Method 1) – How to Block a Website Using Hosts File ?

To access the hosts file in Windows you can use the following command in the Run Dialog Box to open notepad and the file.

notepad and fileAs shown in the image above, Type the following command in the Run Dialog Box.

notepad c:windowssystem32driversetchosts

OR just navigate to c:windowssystem32driversetc and open hosts file using Notepad.

After opening the file, Add the following code at the end of the file:

0.0.0.0    www.facebook.com

After adding the code, the file will look like this:

after-adding-fb-block-codeSave the file.

And now if you try to access facebook then you wont be able to do so !

When you try to access, An error will occur in the browser saying – “The webpage cannot be found” or something like that.

Method 2) – Blocking Websites Simply by Using Notepad

Open Notepad and copy paste the following code:

@echo off
echo 127.0.0.1 www.google.com >> C:windowssystem32driversetchosts.txt
echo 127.0.0.1 www.yahoo.com >> C:windowssystem32driversetchosts.txt
exit

Save the file as BlockWebsites.bat

Now once you open the the batch file, google.com and yahoo.com are blocked. You can modify the batch file according to your needs.

Method 3) – Using a Batch File Created by Amit Agarwal

You can double click on the batch file to block all websites listed in it. And double click again to unblock the websites.

You can download the batch file by Clicking Here.

So that’s all in this post. Thanks for reading. If you have any doubts or questions, you can comment below. I will respond asap !

How To Create Signature in Gmail

Usually in physical world we all end a letter or a mail with a signature. But do you know that you can add a signature to your e-mails as well ?

I am not talking of signing mails manually every time you compose an e-mail.

I am talking about adding a electronic signature to your mail settings which will then be added as a footer to each and every email which you send.

This is called an e-mail signature. And this feature is available in almost every e-mail service like Google, Yahoo, Hotmail, etc. But in this thread, I am going to talk about how to add signature to your Gmail account.

Also note that this might be a very simple or newbie type of thread for you if you are a computer geek. But there are many people around me who don’t know about this. And i am writing this short post to help them out.

google mail settings

Then after, in General Settings. You can find Signature feature as shown below.

signature in gmail

You can add normal text, or an image, or even a link in your signature.

And then save changes to your Gmail Settings. That’s it.

WordPress OrangeBox Plugin doesn’t work in Sidebar

OrangeBox is a plugin for WordPress which creates a fancybox or thickbox effect for all media on your blog. Such as pictures, videos, etc.

Its really nice and effective fancybox plugin which you can use with your WordPress blog.

Now about the problem, The plugin only works in Single post or Single page area of WordPress posts.

I wasn’t aware of this till the time i tried to use OrangeBox in the sidebar !

When i tried to use OrangeBox in the sidebar, it just used to open up a completely new web page instead of opening the content in a fancybox.

I have drawn a image which explains this problem very well –

orangebox-sidebar-problem

See the image above, Consider you want to open the blue image in the sidebar of your blog.

Case 1 – When you click on the image in the sidebar, it simply opens up in a new window.

Case 2 – When you click on the image in the sidebar, it opens up in a fancybox effect with the help of OrangeBox.

Case 1 is our problem and Case 2 is how we want it to work.

How to Solve it?

If you are displaying an image link in the sidebar then you might be using this type of code:

And that code might not work well with OrangeBox.

So to get it to work, you can just replace that code with the following code:

And that would definitely solve the problem.

If you have any questions or if this doesn’t work out with your blog, then comment below. I’ll try and help asap. Thanks for reading.

Simple CSS Feedburner Subscribe Box

If you need a very Simple CSS Feedburner Subscribe Box then this is the right post for you.

I have previously written a few posts on Creating Subscribe Box for a WordPress as well as Blogger Platforms.

But the subscribe box which we created was very simple, plain and with no colors.

So in this post what we are going to do is style it up a little bit, and make it look a little better than just plain white box.

Also note that we’re not adding any fancy styles or designs to the subscribe box in this post. What we are going to do is just add simple CSS code to the feed-burner subscribe box.

Given below are codes to different colored Simple Subscribe Boxes –

simple-css-feedburner-subsc

GREEN

BLUE

MAGENTA

RED

YELLOW

BLACK

How To Add Quick Edit Button in WordPress Posts

We all make mistakes in our Blog posts every now and then. But when we realize our mistakes, what do we do?

We correct the mistakes by editing the post. But for that purpose many wordpress users follow a tedious procedure. They first log in to their wordpress account, then search for the post, then edit it and publish it.

But to avoid this tiresome procedure, we can use a Quick Edit button/link on the post.

So that is exactly what we are going to learn in this post.

How to add Quick Edit Button ?

Simply open your theme’s single.php file and add this post anywhere inside the loop. Don’t worry, this will only be shown to users that have specific permissions. Average user will not see this button. For example: This link wont appear to a normal visitor.

<?php edit_post_link(__(‘( Quick Edit )’), ”); ?>

This would produce the following effect:

quick-edit-for-wordpress-posts

After implementing this code, you can edit your post directly by 1 click on the post page, instead of accessing Administrator Dashboard.

If you have any questions on how to implement this code in your theme, you can comment below. I will get back to you asap. Thanks for reading.