Archive for the ‘How To’ Category

Installing Adobe Air and TweetDeck on Ubuntu 9.04 64 Bit

with 11 comments

After installing Ubuntu 9.04 x64 when I installed Adobe AIR and TweetDeck it all got installed normally, but TweetDeck or any other AIR application didn’t work.

As of now Adobe AIR binaries are not available for 64 bit OS. However, Adobe AIR 32 bit will work if 32 bit libraries and packages are installed. To install Adobe AIR on a 64 bit OS follow these instructions.

Download Adobe AIR Installer

Download the Adobe AIR Installer from http://get.adobe.com/air/

Download 32 bit Files

Now you need to install all the 32 bit dependencies. To do so use the getlibs utility from http://frozenfox.freehostia.com/cappy/ (thanks to Laurie Cope for the updated link)

After installing getlibs utility issue the following commands in the console.

zuhaib@NerdBox:/$ sudo apt-get install lib32asound2 lib32gcc1 lib32ncurses5 lib32stdc++6 lib32z1 libc6 libc6-i386 lib32nss-mdns
zuhaib@NerdBox:/$ sudo apt-get install ia32-libs
zuhaib@NerdBox:/$ sudo getlibs -l libgnome-keyring.so
zuhaib@NerdBox:/$ sudo getlibs -l libgnome-keyring.so.0
zuhaib@NerdBox:/$ sudo getlibs -l libgnome-keyring.so.0.1.1

 

Install Adobe AIR

Open console and goto the change directory to the location where you downloaded Adobe AIR installer and issue the following commands.

zuhaib@NerdBox:~/Desktop$ chmod +x AdobeAIRInstaller.bin
zuhaib@NerdBox:~/Desktop$ sudo ./AdobeAIRInstaller.bin
zuhaib@NerdBox:~/Desktop$ sudo cp /usr/lib/libadobecertstore.so /usr/lib32

 

You are good to go now.

Sources

http://goblog.vergilhost.info/?p=5

http://kb2.adobe.com/cps/408/kb408084.html

Written by Zuhaib

May 6th, 2009 at 1:08 pm

Posted in How To,Ubuntu

Preventing Or Removing Autorun.inf virus

with 2 comments

How many times have you plugged in your removable drive into some pc and next time you insert your removable drive and you see an autorun command. You double click on the removable drive and bam your pc is infected. Sometimes the clicking on the Open and Explore command will also execute the virus and your pc will be infected.

When your flash drive is infected it normally contains two files autorun.inf and some executable file. The autorun.inf can be found in the root of your flash drive.

If your system is infected formatting the media also will not clean the virus and sometimes you can’t even show hidden files. When you try to show hidden files from the folder options it simply won’t work.

If you have ever faced such problems then read along. When I plug-in any removable media to my pc I follow few steps to avoid such malwares. Even if you get infected its easy to eliminating such viruses.

Prevention Is Better Than Cure

Method 1:

Disable Autorun by running this reg file.  This will turn off the autorun feature.

Method 2:

If you do not want to turn off the autorun feature and still want to be safe then follow these few steps before opening any flash drive to avoid triggering the virus.

Do not double click and open your flash drive. Always open it from the explorer folder list.

explorer

This way you avoid triggering the virus via autorun.inf.

To check if your flash drive contains the virus. Open folder options from the tools menu. Select the View tab and select Show hidden files and folders radio button under the Hidden files and folders tree. Also uncheck the Hide protected operating system files (recomended) check box. Click on apply and the OK.

folderoptions

Now you should be able to view hidden files and folders. Open your flash drive and explorer from the explorer folder tree. If you see see autorun.inf file in the root of your flash drive then open it in notepad. Delete any executable file or batch files it is pointing to and then the autorun.inf file itself.

If you still can’t see the hidden files then open command prompt and type the command dir /AH to view all the hidden and system files.

cmd

If you get an access denied error while deleting the files then it means that you are already infected by the virus.

If Show Hidden Files & Folders option in the folder options dialog doesn’t work then follow the steps mentioned at the end of the post to fix this issue.

Manually Deleting The Autorun.inf Virus

If you can’t show hidden files or you are not able to delete the autorun.inf file and the executable then you are already infected by the virus. Now you need to manually delete the virus.

Step 1

The first place to look for the virus is the startup program list. Open Run dialog from the start menu and type msconfig and press enter. This will bring the System Configuration dialog box. Under the startup tab look for any suspicious unwanted program.

If you suspect any program then google the executable name and gather some information about it. Usually all the viruses copy themselves to the windows or system32 folders and sometimes to the root or program files.

After un-checking all the unwanted programs click Ok. The dialog will prompt you to restart for the changes to apply. Click on Exit without restarting. We still have some steps to complete.

Step 2

Some viruses hook into the shell. Open the run dialog from the start menu and type regedit and press enter, this will open the registry editing tool.

Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon using the tree in the left hand panel. Check the value of the Shell key.

regedit

The value of the Shell key should be explorer.exe if you see name of any other executable file along with the explorer.exe, double click on the Shell key and delete anything except the explorer.exe and click ok.

regsvr

Now reboot your pc. After rebooting your pc you should now be able to delete the autofun.inf and any other virus that you were not able to delete before.

Folder Options – Fix For “Show Hidden Files & Folders” Not Working

Sometimes even after removing the virus you won’t be able to show the hidden files. After settings the options in the folder options they get back to the old settings. You need to do change another key in the registry to fix this problem.

Method 1:

Go to registry editor by running regedit in the run box.
Go to this key:
HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Explorer\Advanced

In the right hand area, double click hidden and change the value to 1.

Now you’re all set to go. Check it in your tools menu if the changes have taken effect.

Method 2:

1. Click “Start” -> “Run…” (or press Windows key + R)
2. Type “regedit” and click “Ok”.
3. Find the key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\
Advanced\Folder\Hidden\SHOWALL
4. Look at the “CheckedValue” key… This should be a DWORD key. If it isn’t, delete the key.
5. Create a new key called “CheckedValue” as a DWORD (hexadecimal) with a value of 1.
6. The “Show hidden files & folders” check box should now work normally.

Hope it helps

Written by Zuhaib

March 8th, 2009 at 4:12 pm

Clearing AnkhSVN Saved UserName/Password/Authentication Data

with 5 comments

Recently we started using Subversion in our office. We are using VisualSVN Server because it has a nice administration interface, where we can manage user and their rights.

TortoiseSVN is an awesome subversion client, but to have subversion features integrated to our Visual Studio IDE we found two useful plugins VisualSVN and AnkhSVN.

Since AnkhSVN is free and it stable (at least for me) we preferred using it.

The Problem

When you open a project from Subversion repository AnkhSVN will prompt you to authenticate (If you have turned on security in your subversion repository). Once you enter your username and password and check the save password it will not prompt again.

Now what if you change your password? I googled about this for two days but didn’t find any solution. Luckily today my boss found this.

The Solution

The authentication data is saved to the following directories

%APPDATA%\Subversion\auth\svn.ssl.server
%APPDATA%\Subversion\auth\svn.simple

Deleting all the files inside these folders will solve the problem. After deleting these files AnkhSVN will prompt you for username and password once again.

I am currently writing a small Visual Studio Add-in that will help you clear these information from within Visual Studio.

Written by Zuhaib

January 13th, 2009 at 4:38 am

Dell XPS M1330 – Make Multimedia Keys To Work With iTunes

with 48 comments

I just now installed iTunes 64-Bit on my vista and noticed that the multimedia keys only work when the itunes main window is in focus, which is very irritating.

After a little bit of googling I found out this post and his solution works. This is what you have to do to fix this issue.

Download this plugin: (I uploaded the plugin to my site, just in case if the author removes it)

Read the rest of this entry »

Written by Zuhaib

December 9th, 2008 at 5:55 am

Posted in How To

Tagged with , , , , ,

Ubuntu – Getting The Multimedia Keys To Work With Amarok In Dell XPS M1330

without comments

Few days back I got a sexy Dell XPS M1330, the first thing that I did was installed Ubuntu. Although the installation was smooth and everything was working out of the box except the nVidia graphics card, which I fixed after a little bit of googling. The default media player in ubuntu is not that cool, so I quickly installed Amarok. Amarok is cool, but the only problem was that the media keys were not working with amarok. But were working with the default media player.

After a lot of searching I stumbled upon an amarok script Gnome Multimedia Keys.

After downloading the script, open amarok click Tools–>Script Manager. Click on Install Script choose the downloaded script. Then locate Gnome Multimedia Key’s in the scripts and then click on Run to start the pluggin.

Thats it now the media keys should be working just fine. Easy isn’t it?. I hope this helps to all the proud M1330 owners.

Written by Zuhaib

November 15th, 2008 at 8:28 am

Posted in How To,Ubuntu

Tagged with , , , , ,