Pages

Friday, November 23, 2012

PHP curl installation in ubuntu

While installing magento in ubuntu there may be some errors related to php curl not being installed. To work around this, try the command:

sudo apt-get install php5-curl

Wednesday, November 21, 2012

Installing phpmyadmin in ubuntu

  1. Open your terminal and type the command:
    sudo apt-get install phpmyadmin
  2. It will ask for your password, type your ubuntu password and press enter key, it will ask for confirmation. Type
    y
    and press enter key
  3. During the installation you will be prompted for a web server configuration. Select
    Apache
    and press Enter
  4. Now you will be prompted for phpmyadmin configuration, select
    no
  5. In terminal run the command:
    sudo cp /etc/phpmyadmin/apache.conf /etc/apache2/conf.d
  6. Restart your apache server:
    sudo /etc/init.d/apache2 restart
  7. Open your browser and type
    http://localhost/phpmyadmin/
  8. Enter root for username and leave password field empty and click on Go
  9. You will get the following error:
    Login without a password is forbidden by configuration (see AllowNoPassword)
    when trying to login to your passwordless account; 
  10. To enable AllowNoPassword, uncomment or add the following line in /etc/phpmyadmin/config.inc.php :
    $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
  11. To make this file editable in ubuntu, type in the terminal:
    cd /etc/phpmyadmin
    then press enter
  12. Then type
    gksu nautilus
  13. Make necessary changes and save the file. Now type
    http://localhost/phpmyadmin/
    in the browser and enter only the username as root and click on Go.

Monday, November 12, 2012

Reset password in ubuntu

  1. Reboot into recovery mode 
  2. Select Drop to root shell prompt option
  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 -rw -o remount /
  4. If you have forgotten your username as well, type:  ls /home
  5. To reset the password, type:  passwd username  ex: passwd meenu
  6. You'll then be prompted for a new password. When you type the password you will get no visual response acknowledging your typing. Your password is still being accepted. Just type the password and hit Enter when you're done. You'll be prompted to retype the password. Do so and hit Enter again.
    Now the password should be reset. Type: exit to return to the recovery menu.
     

Thursday, November 1, 2012

grub rescue problem

  • Download boot repair software from http://sourceforge.net/p/boot-repair/home/Home/
  • Download iso version of the software(boot-repair-disk.iso) and create a bootable usb using linux live usb creator
  • Change the boot option to usb flash drive in the computer which has grub rescue problem by hitting F2 key(this is the case in lenovo laptop)
  • Then insert the created bootable usb into the computer and reboot
  • The boot repair software runs ... now choose the appropriate system version(32bit or 64bit)
  • Then choose recommended repair and follow on screen directions
  • Do a final reboot and you can see the OS loading without any grub rescue errors

Create bootable usb

To create a bootable usb from a windows 7 computer, install linux live usb creator from http://www.linuxliveusb.com/en/download
Then choose the required iso image to be extracted into the destination usb.