Screenshot, after removing snapshots:
Friday, May 14, 2010
Virtual Machines & Snapshots
Screenshot, after removing snapshots:
Wednesday, April 28, 2010
Free VMWare Server - VMWare ESXi
VMWare has a bunch of lovely options for you! Virtualize is the key word! Crawling (slow) virtual machines are a thing of past (ya, it used to be painfully slow before, make this technology kind of useless, especially on low-end hardware). The latest breed are "almost" comparable to real hardware performance. If you want to try your hands on virtualization, check out one of the following free (yes, totally free) options from VMWare:
1) VMWare Player:
Just play your VM like you play a movie. Great if you want to try a new OS or bring up an OS for casual use! Just load your VM, start it and you are ready to roll! Needs a host OS like Windows to run this. Perfect for desktop/laptop users.
http://www.vmware.com/products/player/
2) VMWare Server:
A little more advanced than VMWare Player, more features, more customization. Remote management of VMs possible. Use this if you want to host it on a server and then access it remotely. Needs a host OS like Windows or Linux.
http://www.vmware.com/products/server/
3) VMWare ESXi Server:
If you want more performance and has better hardware, then you should go for this instead of the above. This is a bare-metal hypervisor (means, doesn't need any host OS, therefore direct access to hardware and way too faster and lighter). Install this directly onto your server (as your base OS) and it gives you everything you need for a software enthusiastic, developer, tester or even a small business! It is a carrot from VMWare to get you to try this (and fall in love with and get addicted to it), with an upgrade path to their other licensed advanced products.
http://www.vmware.com/products/esxi/
Only catch is some missing advanced features and a cap on physical and virtual hardware.
Comparisons between ESXi (Free) vs licensed products (ESX etc)
VMware ESX and ESXi 4.0 Comparison (latest version)
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1015000
VMware ESX and ESXi 3.5 Comparison
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1006543
ESX vs ESXi
http://blogs.vmware.com/esxi/2009/06/esxi-vs-esx-a-comparison-of-features.html
VMWARE VSPHERE 4 ESSENTIALS BUNDLE LICEN
VMWARE VSPHERE STANDARD LICENSE
WebSphere (WAS) Password Recovery
Many a times you might have come across scenarios like you don't remember the passoword of the newly installed WebSphere Application Server (WAS) or you installed it a while back and totally forgot the userid, password or both! Same can be used if you screw up the security configuration too. Here is a lifesaver tip!
Turn off WebSphere Application Server global security from outside the administrative console so that you can access admin console. To do so you can either change the security.xml file of WAS or use the wsadmin tool for it.
Using WAS command-line client wsadmin (run with root privileges):
1) Open a connection to local WAS in offline mode (else you would need to login)
wsadmin -conntype NONE
2) Turn off global security
wsadmin> securityoff
3) Save
wsadmin> $AdminConfig save
OR
Disable security by modifying the security.xml file(s)
1) The security.xml file is located under WSAS_install_root/AppServer/config/cells/cellname. Always store a copy of the security.xml file in a temporary directory before making any changes
2) Open the security.xml file and search for the very first occurrence of enabled="true". This is located inside the
3) Change enabled="true" to enabled="false", then save the file.
You must restart the server for the change to take effect!
Server admins, secure your WAS server installation (tighter OS security) to prevent unauthorized access ;-)
More info:
http://www-01.ibm.com/support/docview.wss?rs=180&context=SSEQTP&q1=disable+global+security+security.xml&uid=swg21105430&loc=en_US&cs=utf-8&lang=en
Sunday, March 21, 2010
Mobile Phone Secret Codes
| Samsung | |
| IMEI number: | *#06# |
| Software version: | *#9999#albo*#0837# |
| Net Monitor: | *#0324# |
| Chaning LCD contrast: | *#0523# |
| Memory info: | *#0377#albo*#0246# |
| Check SIMLOCK Factory Reset (removes SIMLOCK): | *#7465625# *2767*3855# |
| Reset CUSTOM memory: | *2767*2878# |
| Battery state: | *#9998*228# |
| Alarm beeper: | *#9998*289# |
| Vibra test: | *#9998*842# |
| Nokia | |
| IMEI number: | *#06# |
| Software version: | *#0000#lub*#9999# |
| Simlock info: | *#92702689# |
| Enhanced Full Rate: | *3370#[#3370#off] |
| Half Rate: | *4720# |
| Provider lock status: | #pw+1234567890+1 |
| Network lock status: | #pw+1234567890+2 |
| Provider lock status: | #pw+1234567890+3 |
| SimCard lock status: | #pw+1234567890+4 |
1234567890 - MasterCode which is generated from IMEI | |
| Sony | |
| IMEI number: | *#06# |
| Software version: | *#8377466# |
More info:
http://www.gsm-technology.com/gsm.php/en,unlock,subpage_id,free_codes.html
http://www.gsm-technology.com/gsm.php/en,unlock,subpage_id,kody+sieciowe.html
http://www.freefonefun.co.uk/ff/secretcodes.htm
http://twilightwap.com/mobile/secrets.Asp
Saturday, March 20, 2010
Samsung Spica (i5700) Android 2.1 update
Search Amazon.com for samsung spica
Wednesday, January 07, 2009
Configuring VNC for Linux
Most of the new Linux distributions provide an easy way to configure VNC in main menu as 'Remote Desktop Preferences'. You just need to enable the options and provide a password. But if for any reason your linux doesn't have VNC or you don't have physical access to the machine to even enable VNC you can do the following:
1) Download and Install VNC
You can download the rpm off internet. Famous distributions are RealVNC and TightVNC. TightVNC offers more compression and is better when you have less bandwidth. Please google for more info.
2) Configure VNC remotely
Connect to the system using telnet, xterm or ssh/putty.
The default location of server configuration file for vncserver is '/etc/sysconfig/'. To configure the resolution, user and port open '/etc/sysconfig/vncservers' in you favorite editor and add two lines per user configuration as shown below:
You can choose any display port, but it should not be in use by another X server. Window height and width can be anything. The system on which you are going to view the desktop using vncviewer should have greater resolution than what you specify here, otherwise scrollbars will appear.VNCSERVERS="<displayport>:<username>"
VNCSERVERARGS[<displayport>]="-geometry <windowWidth> x
<windowHeight>"
eg:
VNCSERVERS="2:root"
VNCSERVERARGS[2]="-geometry 800x600"

The default desktop view in vncviewer is gray scale desktop with very pathetic GUI (TWM or Tab Window Manager which came out in 1988!) as shown above. To view normal Gnome or KDE desktop in vncviewer, the xstartup file needs to be configured properly. This user specific configuration file of vncviewer resides in '.vnc' directory in user's home directory. (e.g. '/home/user1/.vnc/' or /root/.vnc). Open '.vnc/xstartup' in your favorite editor and edit as below:
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
#xsetroot -solid grey
#vncconfig -iconic &
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
startx &
The changes are:
1) uncomment
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
2) comment
#xsetroot -solid grey
#vncconfig -iconic &
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
3) add
startx & - for Gnome OR
startkde & - for KDE
3) Configuring VNC password
For setting up vncviewer password for user 'xyz', login as user 'xyz' and issue 'vncpasswd' command on a terminal/konsole. Enter password twice and you are good to go.
4) Starting Vncserver
To start vncserver, login as root and issue 'service vncserver start' command (first stop if already running - 'service vncserver stop'). If service started successfully, you are ready to use vncviewer on a remote/local machine.
5) Accessing through Vncviewer
* From Linux based machines
vncviewer <ipaddress>:<displayport> [Enter] #(IP Address is for the machine where you set up vncserver)
* From Windows
Install a VNC Viewer available for download from net (RealVNC, TightVNC, UltraVNC etc). Open it and enter <ipaddress>:<displayport> in the dialog box.

Keep in mind that by default, VNC is not a secure protocol. Passwords are not send in plain text though. But there are many distributions which encrypt the entire session (eg: UltraVNC). You can access a windows machine also remotely if you install VNC Server on it.
Alternatives to VNC:
- XDMCP
- NX
Visit this link for more info on NX:
http://www.nomachine.com/
For more info on VNC, refer:
http://wiki.linuxquestions.org/wiki/VNC
http://bobpeers.com/linux/vnc.php
http://fedora.co.in/2007/12/01/how-to-configure-vncserver
http://en.wikipedia.org/wiki/Virtual_Network_Computing
Tuesday, December 09, 2008
Replace Notepad with Notepad2
The original Notepad shipped with Windows is probably the handiest program of all times, small, fast, without frills! But Notepad has many disadvantages that are clear to any person using it on a daily basis. That's why many programmers and 3rd-party software developers looked into developing better tools that will still be as simple to use as Notepad, yet offer additional features and capabilities that were left out of the original Notepad. For example, notepad hangs if you try to open a large file (even if just a few MBs). Also there is no option to view line numbers or to go to a line. Again notepad can undo only the last action and neither can it detect external file changes.
Even if you have many complex IDEs and advanced word editors installed on your machine, we still use notepad at least a few times daily, probably to copy and paste the clipboard content or quickly note down something or even to open one or two files in a rush instead of waiting for the bulky IDE to load. I have EditPlus and Programmers Notepad installed on my machine, but still I use notepad for something or the other.
I considered multiple options, which finally boiled down to
1) Programmers Notepad
2) Notepad ++
3) TinyEdit
4) Notepad2
And the winner is, well the first position is shared between two, Notepad2 as a notepad replacement and Programmers Notepad for programming uses. Notepad2 doesn't have any installer. Just download and unzip notepad2.zip and you are ready to go. See Notepad2 in action below. You can see the line numbers, current line highlighting, wrap & long line indicator etc.

To replace windows notepad, do the following:
* Backup your original c:\windows\Notepad.exe (say copy to old_notepad.exe).
* Rename Notepad2.exe to Notepad.exe in above unzipped folder
* Copy the above notepad.exe into 4 directories (in given order) :
1. c:\windows\servicepackfiles\i386 or C:\WINDOWS\i386
2. c:\windows\system32\dllcache
3. c:\windows\system32
4. c:\windows
If when you replace notepad.exe, a "Windows File Protection" message box appears, click Cancel. Now wherever notepad used to come, you get notepad2 instead. Notepad2 is fast and light (260KB versus 67KB windows notepad) and very much worth the extra 200 KB.
You can download it from here:
http://www.flos-freeware.ch/notepad2.html
I did like Notepad ++ a lot too, because:
1) Comes with an autoupdater (no need to download and install again when a new version is released)
2) Supports code folding and syntax highlighting
3) Has plugin support and MDI (multiple tabs)
4) Can replace the default notepad
5) Supports USB mode (all settings stored in app folder)
6) Auto-completion and explorer context menu
7) Love the function list in java files
and a lot more....
My favorite NPP (Notepad Plus) plugins are:
1) Function List (No Unicode Support)
2) Hex Editor
3) Search In Files (No Unicode Support)
4) Spell Checker
Download NPP from here:
http://notepad-plus.sourceforge.net
Here is the list of complete plugins:
http://sourceforge.net/project/showfiles.php?group_id=189927
To install the plugins, just unzip to C:\Program Files\Notepad++\plugins
Since Function List and Search In Files doesn't work in the new versions because of no unicode support, I had to ditch Notepad++ and select Programmers Notepad (PN) instead.
Advantages of Programmers Notepad are:
# Code Folding/Outlining
# Docking tool windows
# Excellent external tool support with user-configurable output matching - click on errors and warnings to jump right to the place in the file where they were generated (compile and run from PN itself)
# File association manager
# In-file method/definition navigation (using Ctags)
# No limit on file size (although large files may take a while to load)
# Projects and Project Groups with multi-level folders and file system mirroring
# Support for unicode files
# Support for windows, unix and macintosh file formats
# Syntax highlighting for many languages through “schemes”.
# Tabbed MDI interface
But I wish PN has an auto updater too :(
You can download it from here:
http://www.pnotepad.org/
You can map new file types to existing schemas for enabling syntax highlighting as shown below. Now I can create/edit JSPs with PN.

This is the file type manager in PN.

PN in action. See the methods and member variables listed nicely, excellent!

You can also notice that I compiled the java program from inside PN. Click on the error and it will take you to that line in source file.
Wednesday, December 03, 2008
Browser Bookmarks Synchronizer
Do you have multiple computers? Say you have a desktop and a laptop? Or perhaps you have a PC/laptop at work and have another one at home too? For e.g.: I have a work laptop, a personal laptop and also a desktop at home. I get online from all of these and many times I wish I had the bookmark on the other machine here or wish I could bookmark a site and it is accessible from everywhere. Many years back I found a solution. It was a different browser called 'Avant' which is basically an Internet Explorer extension. Avant has an online storage and a bookmark manager (multi-tabbed too), and while starting the browser I can login to my account and all my bookmarks are available anywhere... wow! It was so cool and very helpful. Over the years I changed my work PC and laptops many times and I still I have all the bookmarks I accumulated. Trust me, in these days a bookmark is almost as valuable as a contact number. Of course you may be able to locate a site thru a search engine like Google or Yahoo, but then many times when you quickly want something you may not have the luxury to search and find it. Also what is the guarantee that it appears on top of your search results!
So back to the story, I was a happy user of Avant for many years (since 2004). But then in between I quit using IE (2005-06) and fell in love with my sweet, sexy and versatile Firefox browser. Once a foxy (firefox user :P), always one. Back in the days of slow stupid single tabbed IE 5/6, firefox was a charmer with amazingly fast page loading, multiple tabs, integrated download manager and a general sturdy and dependable feel. It even has an integrated search box which can be associated with any search engine of your choice, including msn, Google, Yahoo and even wikipedia. Oh and as an extra bonus, you can even change your search engine in one click. I believe I started using firefox from version 1.x and now it is 3.x. But the only thing I miss is my well arranged huge collection of bookmarks. Firefox didn't have an option to automatically synchronize bookmarks (but you can import IE bookmarks). So I still used to install Avant just to get my bookmarks, but then managing bookmarks and synching between my computers became a big headache. And then I stumbled upon this, a nifty firefox add-on called ‘foxmarks’.
"If you use Firefox on more than one computer, you'll want Foxmarks. Install Foxmarks on each computer, and it works silently in the background to keep your bookmarks and (optionally) passwords synchronized. Foxmarks also keeps your data backed up and safe from computer failures. If you're away from your computer, Foxmarks allows you to access your bookmarks online by logging into my.foxmarks.com"

If you are excited already wait to hear this. Foxmarks just launched a beta version for IE (and Safari) too. Wow! What more do you need?! What are you waiting for, download foxmarks today itself, give it a try and share your experience. It also has an optional 'secure' password synchronizer, but as a word a caution, I would rather stay away from it as I don't want to take any risk and trust anyone else with my password. I prefer not to store my passwords even on the browser!
Here is the download link for foxmarks:
https://addons.mozilla.org/en-US/firefox/addon/2410
http://www.foxmarks.com/ (home page)
Very useful, compiled link of popular Firefox add-ons
http://en.wikipedia.org/wiki/List_of_Firefox_extensions
These are my favorite Firefox add-ons:
1) Firebug - allows the debugging, editing, and modifying of any website's CSS, HTML, DOM, and JavaScript, and provides other web development tools.
https://addons.mozilla.org/firefox/addon/1843
2) DownThemAll (DTA) - a download manager/accelerator extension
https://addons.mozilla.org/en-US/firefox/addon/201
3) IE Tab - view pages using the IE rendering engine from within Firefox. This is useful for some websites that do not work properly in Firefox.
https://addons.mozilla.org/en-US/firefox/addon/1419
4) Adblock Plus - used for blocking ads
https://addons.mozilla.org/firefox/1865/
5) PDF Download - allows users to customize the handling of PDF files. You can also convert web pages to PDF for printing or saving. Instead of the default action of opening a pdf inside browser (which clicked the pdf link), instead you can save it and open externally or even view it as html. Makes browser crashes and slow downloads a thing of the past.
https://addons.mozilla.org/en-US/firefox/addon/636
6) Tab Mix Plus - provides tabbed browsing enhancements. It includes such features as duplicating tabs, controlling tab focus, tab clicking options, undo closed tabs and windows, plus much more. It also includes a full-featured session manager.
https://addons.mozilla.org/en-US/firefox/addon/1122
I haven't tried this, but BookmarkSync is another free bookmark synchronizer which supports even more browsers (opera, safari etc) and platforms.
http://en.wikipedia.org/wiki/BookmarkSync
http://en.wikipedia.org/wiki/Comparison_of_browser_synchronizers
Sunday, June 22, 2008
Got booted and can't sign back in to yahoo messenger?
I hope yahoo will soon come up with some fix for the vulnerability... or your id is gone for a toss forever! All all the booters shall go to hell, Amen!
Friday, November 16, 2007
How to copy directories remotely in Linux
SCP - Secure Copy Protocol
To use the scp command to copy files between systems, use the following command:
scp filename1 userid@hostname:filename2
where filename1 is the file on the local system that you wish to copy, userid@hostname is the userid and hostname where you wish to copy it, and filename2 is the name you want to call the file on the remote system. For example:
scp /home/file1 root@mysystem.com:/root/file1
When you issue the command, you'll be prompted for the password on the remote system. You will then be given the stats of the transfer. Pay attention to the second item on the stat line; it's how much of the file got transferred (eg: 100%).
Note: SCP may also be used to copy files from a remote system to a local system. To do this in the first example above, reverse the order of filename1 and userid@hostname:filename2.
scp root@mysystem.com:/root/file1 /home/file1
To use the scp command to copy directories between systems, use the following command:
scp -r directoryname userid@hostname:directoryname2
where directoryname is the directory on the local system you wish to copy, userid@hostname is the userid and hostname where you wish to copy it, and directoryname2 is the name you want to call the file on the remote system. For example:
Note: SCP may also be used to copy directories from a remote system to a local system. To do this in the first example above, reverse the order of directoryname and userid@hostname:directoryname2.
scp -r root@mysystem.com:/root/dir1 /home/
How to increase the size of an existing VM - VMware
1) Create a new clone/replica with increased disc size
2) Add another disc to the VM
3) Use the vdiskmanager command
Using log file C:\Users\admin\AppData\Local
Grow: 100% done.
The old geometry C/H/S of the disk is: 522/255/63
The new geometry C/H/S of the disk is: 1958/255/63
Disk expansion completed successfully.
WARNING: If the virtual disk is partitioned, you must use a third-party utility in the virtual machine to expand the size of the partitions. For more information, see:
http://www.vmware.com/support
How to clone a Linux VM - VMware
Tried googling and came upon many options.
1) http://www.vmware.com/products/converter/faqs.html
Says that experimental support available for Linux-based physical to virtual machine conversions using the Vmware Converter BootCD (cold cloning) if the source physical machine has SCSI disks.
Also read: http://communities.vmware.com/thread/76266
This blog explains how to do the above:
http://virtualaleph.blogspot.com/2007/04/cloning-linux-machine-with-converter.html
It is a bit complex and you have to do a few configuration steps to get the VM running.
2) Using g4l, Ghost for Linux
http://www.windley.com/archives/2007/08/p2v_how_to_make_a_physical_linux_box_into_a_virtual_machine.shtml
3) P2V instructions for Linux
http://vmwiz.com/
All the above didn't seem quite viable. I tried creating a new VM using ESX Server, but when I powered up the VM it said "Missing operating system". I thought of cloning one of the other linux VMs in the ESX server, but you need 'Virtual Center" for that. Then suddenly the 'idea bulb' lighted and I remembered that VMware converter had an option to select a ESX server
as source. Voila!! so easy and I created a new virtual machine within a few minutes (took me just 10 mins)!!!
















