Sunday, May 22, 2011

Build RT3070 kernel module on Ubuntu 10.04 (Lucid Lynx)

The Ralink USB dongle wireless 802.11n driver install on Ubuntu 10.04 steps as below:

1. Download the driver for linux http://www.ralink.com.tw/support.php?s=2
click RT8070/RT3070USB(RT307x) and press Accept button.

2. Extract the file, open a terminal, cd into it and copy a missing file.
tar -xvf DPO_RT3070_LinuxSTA_V2.3.0.2_20100412.tar.bz2
cd DPO_RT3070_LinuxSTA_V2.3.0.2_20100412
cp RT2870STA.dat RT3070STA.dat

3. edit os/linux/usb_main_dev.c, add one line “MODULE_LICENSE(“GPL”);”. Please refers to http://www.linuxforums.org/forum/wireless-internet/161550-rt3070sta-module-license-unspecified-taints-kernel-solved.html
lsusb to check your id, add the ids into file common/rtusb_dev_id.c.

4. Compile and install the driver.
make (you’ll see one error that related “tftpboot”, ignore it.)
sudo make install

5. Add a missing symlink.
sudo mkdir /etc/Wireless/RT2870STA; sudo ln -s /etc/Wireless/RT3070STA/RT3070STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat

6. Load the driver, if failed please rmmod rt2800usb related kernel modules.
sudo modprobe rt3070sta

7. edit file “/etc/modprobe.d/blacklist.conf”.
Add “blacklist rt2800usb” to the bottom line

After reboot you will use the WLAN well on Ubuntu 10.04, good luck!

Thursday, May 19, 2011

Linux Backup: Hard Disk Clone with "dd"

Most of Windows users may know "Norton Ghost". Norton Ghost is a backup software for hard disks. It can backup a whole hard disk or a partition to an image file. Also, Norton Ghost can copy all the contents from a hard disk to another exactly. However, Norton Ghost is a Windows software, users on other operating system (such as Linux) can not enjoy its powerful function. Fortunately, most of Unix/Linux operating system provides a command line whose function is similar to Norton Ghost, it is called "dd".
In fact, "dd" is much powerful than Norton Ghost. You can use many arguments to control it. In this short article, we only concern on how to backup a whole hard disk or a partition.

Hard Disk Clone

Suppose you have a 40GB hard disk and a removable hard disk whose capacity is 60GB, and you want to backup all the files from the hard disk to the removable disk. With "dd", it is a very easy task. Again, suppose your hard disk's Unix device name is /dev/sda and the removable disk is /dev/sdb. The following command can copy all the content from /dev/sda to /dev/sdb:

dd if=/dev/sda of=/dev/sdb

Here, if=... sets the source and of=... sets the destination. "dd" doesn't care of the contents of the hard disk. It just reads bytes from /dev/sda and writes them into /dev/sdb. It doesn't know what are files. So, the hard disk file system and how many partitions it has are not important. For example, if /dev/sda is splitted into three partitions, the /dev/sdb will have the same partitions. i.e. "destination" is completely same with "source".
Notice: to execute "dd" you should login as "root" or switch to "root" using "su" command. And you must be careful, a small mistake may cause a serious problem!

Making a Hard Disk Image File

Most of time you don't want to make a complete duplication of your hard disk. You may prefer to creating an image file of the hard disk and save it in other storage devices. The following command will create an image file "disk1.img" in your user's directory from /dev/sda:
dd if=/dev/sda of=~/disk1.img
Since you have created an image file, you can compress it with "gzip" or "bzip2":
gzip disk1.img #generates disk1.img.gz or
bzip2 disk1.img #generates disk1.img.bz2
You can save much storage space with compression. But it will take very long time.

Partition Clone

Backing up a hard disk partition is much similar to backing up a whole hard disk. The reason is that Unix/Linux uses device name, such as /dev/sda1, /dev/sda5... to indicate the partitions. For example, if you want to create an image file from the first partition of /dev/sda, use "dd" like this:
dd if=/dev/sda1 of=~/disk2.img
Also, you can compress the image file:
gzip disk2.img
By the way, you can copy a partition to another partition completely, just set "of" to the partition's device name. For example:
dd if=/dev/sda1 of=/dev/sdb5
This command will copy all the contents from /dev/sda1 to /dev/sdb5. You must be sure that the capacity of /dev/sdb5 is larger than /dev/sda1.

Restoring from an Image File

To restore a partition or a hard disk from an image file, just exchange the arguments "if" and "of". For example, restore the whole hard disk from the image file "disk1.img":
dd if=disk1.img of=/dev/sda
Restore the first partition of /dev/sda from the image file "disk2.img":
dd if=disk2.img of=/dev/sda1

Saturday, September 25, 2010

Remove Brontok Virus Yourself!!!

Start ur computer in safe mode with command prompt and type the followinf command to enable registry editor:-reg delete HKCU\software\microsoft\windows\currentversion\policies\system /v “DisableRegistryTools”
and run HKLM\software\microsoft\windows\currentversion\policies\system /v “DisableRegistryTools”

after this ur registry editor is enable
type explorer
go to run and type regedit
then follow the following path :-
HKLM\Software\Microsoft\Windows\Currentversion\Run

on the right side delete the entries which contain ‘Brontok’ and ‘Tok-’ words.
after that restart ur system
open registry editor and follow the path to enable folder option in tools menu

HKCU\Software\Microsoft\Windows\Currentversion\Policies\Explorer\ ‘NoFolderOption’
delete this entry and restart ur computer

and search *.exe files in all drives (search in hidden files also)
remove all files which are display likes as folder icon.

ur computer is completely free from virus brontok

Make your Windows Xp Copy 100% Genuine!

Making your copy of windows genuine..works perfect making your copy of windows genuine many of you might have tried windows update and found out that your copy of windows is not genuine…here’s how to make your copy of windows genuine…download jellybean keyfinder from here:

http://www.magicaljellybean.com/beta/

 Now open keyfinder.exe Click on options and click “change windows key”Now enter this key and you’re done.
*******************************************************
V2C47-MK7JD-3R89F-D2KXW-VPK3J
*******************************************************

Thursday, September 2, 2010

XP Installation – The 34 minute hiccup

You want to install XP professional and suddenly you realize that it freezes up at the mention of 34 minutes remaining! You try all your efforts to make it running but nothing seems to be working to your dismay. You try checking your RAM, checking for any bad sectors in your hard drive, even your motherboard (as I have done) but cannot make a conclusion as to what’s the answer to your woes.
So what is the solution to the defamed 34 minute XP installation hangup problem?
Its as simple as deleting a simple file which caused the installation to freeze.
  • Let the XP hang up at 34 minutes remaining for the first time
  • remove the CD from the CDROM and reboot
  • Dont enter the CD when the installation asks for it, instead open the DOS prompt (Shift + F10)
  • goto C:/Windows and type setupapi.log, hit enter
  • The setupapi.log file opens in a notepad
  • Scroll to the very last few lines in the file and search for the word “inf”
  • You will notice that in the last few moments the installation created a file with the extension “.inf” before dying out (in my case it was the faulty modem for which XP created the file mdmcxpt.inf).
  • It means that the device mentioned in the last few lines is faulty and you have to make the installation skip through it.
  • Close the notepad and go to the folder C:/windows/inf in command prompt
  • Browse through the files to find the “.inf” which was related to the faulty device.
  • Straightaway delete the inf file (eg: del mdmcxpt.inf)
  • now put in the XP installation CD and Continue the installation
It will not put in the drivers related to the faulty device and so it wont freeze this time !!

Monday, August 23, 2010

Windows Tips And Tricks

This is an amazing trick to amaze your friends.By using this trick you can make your computer to speak whatever you type.This trick is working on all microsoft operating system and does not require any programming skills.You have to follow just simple steps and your own Text to Voice software will be ready.If you show this software to any of your friends he will be certainly impressed with you .
Ok,the trick is fairly simple and requires only 3 simple steps from your side.Let’s Begin the tutorial with screenshots to Make Your Computer Speak Whatever You Type


1.Open Notepad and copy and paste the following code into it

Dim message, sapi
message=InputBox("What do you want me to say?","Speak to Me")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak message

2.Now save the notepad file with the name speak.vbs at your desktop.
3.Now double click on speak.vbs type in the box whatever you want your computer to speak for you.

Wednesday, August 18, 2010

Install JDownloader Via PPA Repository Ubuntu Lucid

JDownloader is a a java-based tool that completely automates the downloading process. It can be very helpful for websites such as Rapidshare.com or Megaupload.com for both premium and free users.

Among JDownloader features are: captcha recognition, multi-part downloads, tweak wait times, auto-reconnect, scheduler and even automatic file extraction. JDownloader has way too many features and plugins to list them here, so make sure you check it out if you haven't already!


I recently came across an Ubuntu Launchpad PPA repository for JDownloader and wanted to share it with everybody.

To add the JDownloader PPA, simply paste this in a terminal:

sudo add-apt-repository ppa:jd-team/jdownloader

Then, to install JDownloader:

sudo apt-get update && sudo apt-get install jdownloader 

Once installed, you can find JDownloader under the Applications > Internet menu.

Installing JDownloader via the PPA isn't too much different than downloading it from it's website since a script automatically downloads and installs the latest JDownloader version in both cases (not 100% sure about this though), I found this as a great opportunity to remind you of JDownloader, which many consider to be the best download manager.