13 November 2012

Forgot the Password Of Ubantu

Hi, This is all about what to do if we forget our Ubantu account Password. It so simple and easy.

1. First, you have to reboot into "recovery mode".
    If you have a single-boot (Ubuntu is the only operating system on your computer), to get the
    boot menu to show, you have to hold down the "Shift" key during bootup.

     From the boot menu, select recovery mode, which is usually the second boot option.

2.  After you select recovery mode and wait for all the boot-up processes to finish, there you will
    get few options. Select the "Root - Drop to root shell prompt" option, and then press "Enter".

    The root account is the ultimate administrator and can do anything to the Ubuntu installation and
    configuration.

3.  In recent versions of Ubuntu, the filesystem is mounted as read-only, so you need to enter the
     follow command to get it to remount as read-write, which will allow you to make changes:
        mount -o rw, remount /     
4.  If you have forgotten your username, use the following command to get the list of the users in
    Ubantu
       ls /home     
    here 'l' in 'ls' in the lower case 'L' not upper case 'I'

5. In this case lets consider we want to change the password for 'deepak'


6. Its done. On exit you get return back to previous menu. Here, 'Resume' the boot or restart
    system.

7. Happy Blogging. :)

6 November 2012

Remove/Uninstall Feature in SharePoint 2010

Sometime we require to remove/ uninstall the unwanted feature previously added by us. Its little bit tricky. but not Impossible.
For this you require to get the Id of the feature.

1.  Open the -> "SharePoint 2010 Management Shell"

2. Use the command "GET-SPFeature"



3. Scroll down and find the feature you what to remove. Get the Id of that feature.
  Let consider I want to remove the feature named as "VisualWebPartWatch_Feature1"
  with Id "a463dd22-7c4c-4b17-9a46-eb8f1be1a716".

4. Now use the following cmd "stsadm.exe -o uninstallfeature -id id of the feature got in step3"

5.  Remember feature should be deactivate to uninstall it. Or you have to use the "-force" keyword
  after giving the Id of the feature got in step 3.


6. Now its done. Happy Coding. :)