Pages

Saturday, February 5, 2011

Linux : Unmounting the unresponsive DVD drive

The newbie states that when he pushes the Eject button on the DVD drive of a server running a certain Redmond-based operating system, it will eject immediately. He then complains that, in most enterprise Linux servers, if a process is running in that directory, then the ejection won't happen. For too long as a Linux administrator, I would reboot the machine and get my disk on the bounce if I couldn't figure out what was running and why it wouldn't release the DVD drive. But this is ineffective.
Here's how you find the process that holds your DVD drive and eject it to your heart's content: First, simulate it. Stick a disk in your DVD drive, open up a terminal, and mount the DVD drive:
# mount /media/cdrom

# cd /media/cdrom


# while [ 1 ]; do echo "All your drives are belong to us!"; sleep 30; done
Now open up a second terminal and try to eject the DVD drive:
# eject

You'll get a message like:
umount: /media/cdrom: device is busy
Before you free it, let's find out who is using it.

# fuser /media/cdrom
You see the process was running and, indeed, it is our fault we can not eject the disk.
Now, if you are root, you can exercise your godlike powers and kill processes:
# fuser -k /media/cdrom

Boom! Just like that, freedom. Now solemnly unmount the drive:
# eject

Friday, February 4, 2011

How to Test the Working of your Antivirus – EICAR Test ???

Have you ever wondered how to test your Antivirus software to ensure it’s proper working? Well here is a quick and easy way to test your antivirus. The process is called EICAR test which will work on any antivirus and was developed by European Institute of Computer Antivirus Research. This process can be used by people, companies and antivirus programmers to test the proper functioning of the antivirus/antimalware software without having to deal with the real computer virus which can cause damage to the computer. Here is a step-by-step procedure to test your antivirus.
1. Open a notepad (New Text Document.TXT) and copy the following code exactly onto it, and save the notepad.
EICAR Test code
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
2. Rename the file from New Text Document.TXT to myfile.com
3. Now run the antivirus scan on this myfile.com file.
If the antivirus is functioning properly on your computer, then it should generate a warning and immediately delete the file upon scanning. Otherwise you may have to re-install your antivirus.
NOTE: Most antivirus will pop-out a warning message in the Step-1 itself
You can also place the myfile.com file in a ZIP or RAR file and run a scan on it so as to ensure whether your antivirus can detect the test string in the compressed archive. Any antivirus when scanning this file will respond exactly as it will do for a genuine virus/malicious code. This test will cause no damage to your computer even though the antivirus will flag it as a malicious script. Hence it is the safest method to test the proper functioning of any antivirus.

How to Change the Logon Screen Background in Windows 7 ???

How would you like to change the logon screen background in Windows 7 so as to give your Windows a customized look and feel? With a small tweak it is possible to customize the Windows 7 logon screen and set your own picture/wallpaper as the background. Changing logon screen background in Windows 7 is as simple as changing your desktop wallpaper. Well here is a step by step instruction to customize the logon screen background.
 
1. The image you need to set as the background should be a .jpg file and it’s size should not exceed 245KB.
2. The image resolution can be anything of your choice. However I prefer 1440 x 900 or 1024 x 768. You can use any of the photo editing software such as Photoshop to compress and set the resolution for your image. Once you’re done, save this image as backgroundDefault.jpg.
3. You will need to copy this image to
C:\Windows\system32\oobe\info\backgrounds
You will need to create that path if it does not already exist on your computer.
4. Now open the Registry Editor (Start -> Run -> Type regedit) and navigate to the following key
HKLM\Software\Microsoft\Windows\CurrentVersion\Authentication\
LogonUI\Background
If Background does not exist rightclick LogonUI, select New and then Key, and then name it Background. Now locate OEMBackground (listed on the right side). If it does not exist, right-click Background and select New and then DWORD and name it OEMBackground.
5. Double-click on OEMBackground and set the Value Data to 1.
6. Now log-off to see the new logon screen background. If you would like to revert back to the default background, just set the Value Data back to 0.
I hope you like this trick. Just try out and give your feedback!

How to Use Windows 7 Without Activation ???

Most of you might be aware of the fact that it is possible to use Windows 7 and Vista for 120 days without activation. This is actually possible using the slmgr -rearm command which will extend the grace period from 30 days to 120 days. However in this post I will show you a small trick using which it is possible to use Windows 7 without activation for approximately an year! Here is a way to do that.
1. Goto “Start Menu -> All Programs -> Accessories” . Right click on “Command Prompt” and select “Run as Administrator“. If you are not the administrator then you are prompted to enter the password, or else you can proceed to step-2.
2. Now type the following command and hit enter
slmgr -rearm
3. You will be prompted to restart the computer. Once restarted the trial period will be once again reset to 30 days. You can use the above command for up to 3 times by which you can extend the trial period to 120 days without activation.
4. Now comes the actual trick by which you can extend the trial period for another 240 days. Open Registry Editor (type regedit in “Run” and hit Enter) and navigate to the following location
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform

5. In right-side pane, change value of SkipRearm to 1.
6. Now you will be able to use the slmgr -rearm command for another 8 times so that you can skip activation process for another 240 days. So you will get 120 + 240 = 360 days of free Windows 7 usage.
120 days using “slmgr -rearm” command before registry edit
+                                                                                                                                                                 
240 days using “slmgr -rearm” command after registry edit
 =      360 Days

solve i raise to power i.....

exp(ìΘ)=cosΘ+i sinΘ

let Θ =π/2

exp(i π/2)=i

change base iota with exp(i π/2)

now eq. is

exp{(i  π/2)*i}=exp(-π/2)

value is =0.207879576764

error code 0x80072EE2 .........

Ok, you have problems to activate Windows 7, right?
Either you are getting the error code 0x80072EE2 or the system can’t find your slui.exe (the exe that is required to activate win7).
I have a solution!

If you are running the AVG (best choice so far) firewall it will block the slui.exe and you will not be able to activate Windows 7. To disable the firewall process you need admin privileges.
First of all you will have to learn how to activate the hidden administrator account in Windows 7:






Activating the hidden admin account

Goto “Start” and enter “cmd” into the search
field.Do not just hit enter. Hold CTRL + Shift and hit Enter! That’s the shortcut to run this as an admin.
Enter the command you can see above:
net user administrator /active:yes
This will activate the hidden admin account.


Switch Users

Simply switch the user account now (Start – select from pulldown menu “shutdown” -> “switch users”.) and you will see the admin account!
Click on the admin icon to switch to that user. Once you are logged in you can disable your firewall which blocked the slui.exe!

Disabling the firewall service

Open the task-manager. Select the tab “services” and locate the AVG firewall service by hitting the key “a” several times. Search for AVGfws8 – right-click -> turn it off.

Activating Windows .. finally

Now open the cmd.exe again (as described above) and enter “slui.exe” to run it. Activate Windows. Done!

Thursday, February 3, 2011

how to change folder background in Windows Explorer ???

One of the great unknown features of Windows 98 is the ability to take any picture or graphic and use it as the background for a folder. Changing folder backgrounds is more than switching up color schemes and putting up wallpaper on the desktop. With the help of a wizard and a few clicks, it allows the personality of the user to come through.
Difficulty: Easy

Instructions

  1. Click on "Start" in the lower left hand corner of the bottom toolbar and allow the submenu to open up.
  2. Go to "Programs" and select "Windows Explorer." This is an easy way to browse through folders contained on the computer. The left side is a list of all folders, and clicking on one will bring up the folder and its contents in the right windowpane.
  3. Select the folder you wish to change the background in and make sure the contents of the folder appear in the right side of the window.
  4. Right-click while the cursor is in the right side of the windowpane in the blank, white background of the selected folder. This brings up a small submenu.
  5. Choose "Customize this Folder," which is about halfway down on the small submenu and it opens up a wizard.
  6. Pick "Choose a Background Picture" option on the wizard and click the "Next" button. The wizard will guide you through browsing files on your computer and choosing one to become the new background of the folder.
  7. Repeat this process for each folder that you wish to customize in Windows