Tuesday, January 12, 2010

My Workstation and the Tryst with Bash:

I run Ubuntu Jaunty Jackalope 9.04 with a BASH kernel, alongwith Windows Vista Home Premium with the boot-loader making it possible for Dual Booting.


The System I use is Dell Inspiron 1525 having 3GB RAM, 250 GB SATA Hard Drive, Intel Core 2 Duo Processor T6400 (965GM Chipset) and 15.4’ TFT Display. It also has a 8 in 1 Card Reader, Integrated 2.0 mega pixel webcam, and Intel Integrated Graphics Media Accelerator X3100 for rendering performance in 3D.


All in all the configuration is pretty decent. With many more specifications attracting people all around, the current ones for me are more than enough.


Few months back I was not more than a novice at GNU BASH (Bourne–Again Shell), which in layman terms provides a Command Line Interface for working on Unix/Linux systems and is the most common shell used on Linux systems. After gOogling and having some idea of it, I started experimenting with the version I had. To my surprise I started getting effective results, and it became my daily routine.


The little knowledge I gained gave me an idea about the Bash’s configuration files, which I eventually realized allows one to set an environment while logging in and logging out. These are 3 in number and convey a special meaning to the Bash. These files are generally present in home directory, but also depend largely on the Linux distro one is using and how the admin of the system has set up the account.


In my case these were missing. So here is how to create them using any of your favorite text editor. These are :

  • .bash_profile : Read and the commands in it are executed by bash everytime one logs into the system.
  • .bashrc : Read and executed by Bash everytime one start a subshell
  • .bash_logout : Read and executed by Bash everytime a login shell exits.


These files are useful for automatically executing commands like: set, alias, unalias and setting the PS- 1, 4 variables which can be used to modify the Bash Environment.


The best part of this rendezvous was when I managed to alter the command prompt look and information. This is done by setting the PS1 variable. The PS2 variable controls what is displayed after a second line of prompt is added and is usually by default ‘>’. The PS1 variable is usually set to show some useful information by the Linux distribution one is running.


All this has fascinated me to the core. I am reading more about these scripts and codes. Many more changes would be highlighted in the days to come. Linux is indeed fun to work with because you get what you do. However, Windows cannot be neglected any how as far as I am concerned.


P.S: This blog of mine was in hibernation for the last one year. I am back into it with some incidents occurring in my Computer World. I shall write more about Bash kernel and even tell you my tryst with the GRUB2, and other illogical crap which many of you give a brown krill about! Anyways, this is my LOVE!


P.P.S : The credit for the initial booting of the Linux version goes to one of my friend who loves to call him ProNoah (Pranav Gupta) – another Chemi-cool Sophomore.


Cheers! Ciao …

Sunday, May 25, 2008

How to create Virtual drives in your Computer??



AIM :
You can create Virtual Drives in your Computer. Now you can access your Favorite Folders as a drive in My Computer.

RESULT:
Fool Computer Beginners or your Friends (Non-Expert) , as the drive will show Disk Space of the folder's drive so it seems that the disk space has increased !!

METHOD:
Do The Following :

Start >> Run

Type
cmd and hit Enter

T
his will open "Command Prompt"

Type subst Z: E:\folder and hit Enter key.

→ You can replace Z: with your desired New Drive Letter (Except existing Drive letters)!

→ You can replace E:\folder with the path of your favorite folder !

► Now, type
exit

This creates a new drive ! When you open this , it will open your folder !!!


Amazing naa!!....:)


PROBLEM:
But there's a problem with this trick, i.e on restarting the Computer the Virtual Drive Disappears !!! :(

But here's a solution for this problem too:

We can make a
batch file which will make the drive everytime on startup !

This is how:


Open Notepad.

Type :

@ECHO OFF

subst Z: E:\folder

exit


Then go to File >> Save As...

Name it : Virtual Drive Emulator.bat

Then go to Start >> All Programs >> Startup >>(Right click) >> Open

This open the Startup folder

Paste the Virtual Drive Emulator.bat file here !

That's all , now the drive will automatically be created when ever you start your PC!!......:)



Plz leave a comment if u liked this article :).......



Hack Windows XP login Password!!


Disclaimer: Use this article for eductational purpose ONLY.

Follow these steps:


1. Open command prompt (Start->Run->cmd),
2. Enter the following command, then press ENTER

3. Enter the followin command, then press ENTER:
compmgmt.msc
This should open the computer management console.
4. Go to local users & groups->users. Right click on any user and select "set password".


If you get a "access denied" do the following:
start>run>cmd
then use following commands
1) net user test /add (this command will make test named user)
2) net localgroup administrators test /add (this command will make test user as administrators rights)

and use net user command to reset your admin password.


So interesting method of hacking login Password naa!!


If u want to ask anything do leave a comment :).....cheers!!

How to recover the lost administrators password in Windows XP??

Slightly more work needed if you lose or forget the Windows XP administrator password.

1. First reboot Windows XP in safe mode by re-starting the computer and pressing F8 repeated as the computer starts up.

2. Then (in safe mode) click Start and then click Run. In the open box type "control userpasswords2" without the quotes - I have just used quotes to differentiate what you have to type.

3. You will now have access to all the user accounts, including the administrators account and will be able to reset the lost password.

4. Just click the e administrators user account, and then click Reset Password.

5. You will need to add a new password in the New password and the Confirm new password boxes, and confirm by clicking OK.


All done, you have recovered the lost administrators password!

Cheers :)......any querry do leave a comment!!

WINDOWS XP tricks, which many of us don't know!!

HIDDEN PROGRAMS in WINDOWS XP :-

There are many useful programs stored in Windows XP which many of us don't know, but now after reading this blog u'll be able to utilize them :). Here are few of them :
Programs :

1. Private Character Editor :
Used for editing fonts,etc.
GO to start>>Run
Now, type
eudcedit

2. Dr. Watson : This an inbuilt windows repairing software !
GO to start>>Run
Now, type
drwtsn32

3. Media Player 5.1 : Even if you upgrade your Media Player, you can still access your old player in case the new one fails !!!
GO to start>>Run
Now, type
mplay32

4. iExpress : Used to create Setups you can create your own installers !
GO to start>>Run
Now, type
iexpress