Thursday, November 26, 2009

How to change the computer name?

Linux :

edit /etc/hostname file

Redhat :

edit /etc/sysconfig/network

change the hostname = xx

- Mihir Patel.



restart the redhat machine from command prompt

/sbin/shutdown -r 0

will restart the machine on the spot.

- Mihir Patel.



Usage:    shutdown [-akrhfnc] [-t secs] time [warning message]
                  -a:      use /etc/shutdown.allow
                  -k:      don't really shutdown, only warn.
                  -r:      reboot after shutdown.
                  -h:      halt after shutdown.
                  -f:      do a 'fast' reboot (skip fsck).
                  -F:      Force fsck on reboot.
                  -n:      do not go through "init" but go down real fast.
                  -c:      cancel a running shutdown.
                  -t secs: delay between warning and kill signal.
                  ** the "time" argument is mandatory! (try "now") **


Wednesday, November 11, 2009

how to compare or diff the word files

Diff doc is the tool that can be used.

http://www.softinterface.com/MD/Document-Comparison-Software.htm

I found it only effective for small size word files, this tool is much better then Winmerge for word documents.

- Mihir Patel.

how to create hp recovery cd \ DVD \ Restore Disks

Steps:


  1. Click Start>All Programs>Recovery Manager.

  2. Select Recovery Manager. This will open Recovery Manager.

  3. Click Advanced Options. If you are using a laptop and operating on battery power alone you must connect to an AC power outlet before you can go to the next step.
  4. Select Recovery disc creation. Click Next. The Recovery Manager will begin creating the necessary files. This may take a while, so be patient until the bar has reached 100%.
  5. Read the table of requirements that appears. Depending on the type of discs you use, more or less may be needed; if you use ordinary CDs, Recovery Manager will require more compared to fewer discs if DVDs are used.

  6. Insert your first blank disc, having made sure it is fully labeled, such as "Recovery Disc 01" or "Recovery Disc 1 of 2". The optical drive of your computer will have automatically opened. If not, open manually. Close the optical drive and click Next.
  7. Understand and confirm you want to go through with the operation using the type of disc you have inserted by clicking Next.

  8. Wait while Recovery Manager now creates the first disc. This may take 20-40 minutes as it collects the files, writes the files and verifies the files to disc.
  9. Remove the disc and insert the next after the first has been finished after clicking Next. Continue the creation of discs according to the necessary requirements, up until the last has finished creating files.

  10. Click Next after removing the disc and then Finish to complete the session. Congratulations! You have just made yourself a set of recovery discs.
  11.                                                                                                 
    Use the recovery discs to recover your computer in case of system instability or failure.


Tips

  • The number of discs you will need, whether CDs or DVDs, is highly variable across all computers. Do not take the table of requirements for granted.
  • Remember, if using a laptop you must be connected to an AC power outlet to create recovery discs.
  • Be sure to label all discs in numerical order as they are created. If the time comes when your computer has crashed, and you don't know the order in which your recovery discs are to be inserted, your system may be in very big trouble.
  • You will need high-quality CD-R, DVD-R, DVD-R with double-layer support, DVD+R, or DVD+R with dual-layer support discs (all discs purchased separately with computer).
  • Re-Writable discs (RW) are not compatible with the Recovery Manager software.
  • Permission may have be sought from the computer administrator (unless you are one) in order to start creating recovery discs.
  • These instructions are based on a Compaq Computer with Windows Vista, and are not intended for previous versions of Windows such as XP.
  • Sony's recovery disc creator is in a bit more unusual spot. Look in the Help & Support menu to find the recovery disc creator.
  • Acer has a program called Acer eRecovery. This will do the same thing.
  • In Acer, there is an option to restore to factory default without making a restore disk. At startup, push one of the following: [F10, CtrlF10, CtrlF10 while tapping]. One of these will start the Acer eRecovery screen which allows you to restore your system.

Warnings

  • Only one set of recovery discs can be made per computer, so do not lose them. Handle the discs carefully and keep them in a safe place.
  • However, the set you make can be copied. Keeping the originals in a safe location, while keeping copies with the laptop while traveling could be very useful to restore the system if major problems happen away from home. Students who study far from home could particularly benefit from the idea that restore disks might be necessary to use their computer after a virus wipes it out.

Things You'll Need

  • A computer
  • OS (operating system) of Windows Vista
  • High-quality discs
  • A Compaq or HP computer with Recovery Manager
  • A CD or DVD burner


Tuesday, November 3, 2009

Allow not compatible extensions in Firefox

The last version of firefox is out, but an extension that I use daily (QuickProxy) has not been updated yet. In fact, it should work but it is considered ‘not compatible’ by firefox and thus, is automatically de-activated.

The workaround (at your own risks !) is to bypass the security that enforces the compatibilty of extensions.

  • Open firefox and enter  “about:config” in the URL bar.
  • Right click in the page, then “new->boolean”
  • enter “extensions.checkUpdateSecurity” as the preference name in the dialog
  • set it’s value to false.
  • Create a similar entry called “extensions.checkCompatibility” set to false too.

Be careful when testing unsupported extensions, you may want to activate them one by one ! However do not hesitate to try, I have been able to succesfully use QuickProxy this way for more than a month….

For the record, the list of all the about:config options of firefox.

Ref : http://demeringo.ovh.org/blog/



Solution : Eclipse Galileo 3.5 + Proxy settings

I installed eclipse 3.5 at my work place (where we access internet through an authenticated NTML proxy).  I was unable to make eclipse pass through this proxy, which prevented me to install updates and additional software.

Anthony Dahanne’s describes the workaround on his blog (in french). The Apache httpclient implementation should be disabled because it doesn’t work well with NTMLv2 proxies.

For NTLMv2 Proxies, that require user name and password for access the workaround is to

  1. Disable the ECF httpclient provider.
  2. Provide the NTLMv2 proxy authentication info (proxyhost, domain, username, and password)

In practice, edit your eclipse.ini file to append the following properties.

-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient
-Dhttp.proxyPort=8080
-Dhttp.proxyHost=myproxy
-Dhttp.proxyUser=mydomain\myusername
-Dhttp.proxyPassword=mypassword
-Dhttp.nonProxyHosts=localhost|127.0.0.1

Ref : <a target="_blank" href="http://demeringo.ovh.org/blog/?p=103">http://demeringo.ovh.org/blog/?p=103
</a>