Monday, August 29, 2016

Installing Adobe Reader on Ubuntu 16.04 LTS

Adobe stopped Adobe Reader support for Linux so it is bit of a challenge to find and install the Adobe Reader for Linux. Here I describe how to install it on Ubuntu 16.04 LTS.

Step 1. First install gdebi

sudo apt-get install gdebi

Step 2. Install required libraries

sudo apt-get install libgtk2.0-0:i386
sudo apt-get install libnss3-1d:i386
sudo apt-get install libnspr4-0d:i386
sudo apt-get install libxml2:i386
sudo apt-get install libxslt1.1:i386


Step 3. Download the Adobe Reader DEB package

Adobe Reader 9.5.5 enu

Sunday, August 28, 2016

VB Script to Know Windows XP Product Key

If you ever loose your Windows XP Product Key (CD Key or Serial Key), you can find it through registry. But the value will be encoded, so following code will find the key in registry and decodes it and shows it in a message box. This way you can get back your Serial Key.

Create a Notepad file with title "ProductKey.vbs" and write the following code into it and save the file. If you double click the file, it will show the product key.

******************************************************
Set WshShell = CreateObject("WScript.Shell")
MsgBox ConvertToKey(WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))

Function ConvertToKey(Key)
Const KeyOffset =52
i = 28
Chars="BCDFGHJKMPQRTVWXY2346789"
Do
Cur = 0
x = 14
Do
Cur=Cur*256
Cur=Key(x+KeyOffset)+Cur
Key(x+KeyOffset)=(Cur\24) And 255
Cur= Cur Mod 24
x=x-1
Loop While x>=0
i=i-1
KeyOutput = Mid(Chars,Cur+1,1) & KeyOutput
If(((29-i) Mod 6)=0) And (i-1) Then
i=i-1
KeyOutput="-" & KeyOutput
End If
Loop While i>0
ConvertToKey=KeyOutput
End Function
****************************************************