Tuesday, December 30, 2014

Reinstall / Recover GRUB from Ubuntu live CD / USB

This is the common problem which is faced, when you try for dual boot. Easily Recover / Re-Install Grub in Ubuntu using Boot-Repair from live cd / usb. Boot Repair is the simple graphical tool used to repair, restore or reinstall the grub bootloader on Ubuntu. Now this tools has been updated with some new features in advanced option, using boot- repair you can also restore the MBR on Windows.


On dual boot once you update your Ubuntu OS, Windows / Fedora will not be listed on your grub. After installing Windows / Fedora your Ubuntu will not boot anymore and its grub may be wiped out. To restore it follow the steps below

To Reinstall Grub

You need to have Ubuntu Live CD or Live USB. Normal session can be used to repair the grub. Boot using your Ubuntu Live CD or Live USB, while booting choose Try Ubuntu.


Once booted then open a terminal, and run the following command one by one to install the boot repair.

To add boot-repair to the repository
sudo add-apt-repository ppa:yannubuntu/boot-repair

To Update your repository
sudo apt-get update

To install boot-repair
sudo apt-get install -y boot-repair

Once Installation complete run boot-repair on terminal by typing the following command or select it by System->Aministration->Boot Repair.

boot-repair

NOTE: Update the Boot Repair if its newer version is available.

It will scan the System for few seconds and will show you the options Recommended repair and Create a BootInfo summary. By clicking the Recommended Repair it will start repair the grub. Check the screen shots below.





Once done click ok and restart your system, your grub should work now. If not run the boot-repair again using live cd / usb. Then follow the steps below.
Select the Advanced options, In Main options tab check whether the following options are selected or not. If not select it, the options are Reinstall Grub and unhide boot menu for 10 seconds. Check the screen shot below


Then select the GRUB locations tab and check the following options are selected or not. The options are OS to boot by default and place grub into, In “OS to boot by default” option choose the OS which you want to be default on boot. Then select the drive where you need to reinstall the grub in “place grub into” option and click apply. Check the screen shots below






Click ok and restart your System.

Hope this will be helpful for you!!!


To Restore MBR

Run boot-repair on terminal by typing the following command or select it by System->Aministration->Boot Repair.

boot-repair

It will scan the System for few seconds and will pop-up a small window. Select Advanced options and in Main options tab select Restore MBR. Check the screen shot below.




Then select the MBR options tab, check the drive for MBR and Windows OS. By default all the options are selected correctly if not select the drive where your MBR is to be and the correct OS. Click apply now, check the screen shots below.






Once done click ok and restart your system and it should work. Then after logging in into your windows, go to Disk Management in Computer Management then select the Storage. Now you will see the list of all available partitions, there you select the linux partitions and delete it. Make a new partition from the deleted one and format it with ntfs. Thats it your done.

Hope this will be helpful for you!!!


Thursday, December 11, 2014

How to solve Display Driver issue on Ubuntu 12.04 "intel corporation 4 series chipset integrated graphics controller"


  • sudo apt-get install linux-generic-lts-raring linux-headers-3.8.0-30 linux-headers-3.8.0-30-generic linux-headers-generic-lts-raring linux-image-3.8.0-30-generic linux-image-generic-lts-raring
  • sudo update-grub && sudo reboot
  •  sudo apt-get install libgl1-mesa-dri-lts-raring libxatracker1-lts-raring xserver-xorg-core-lts-raring xserver-xorg-input-all-lts-raring xserver-xorg-input-evdev-lts-raring xserver-xorg-input-mouse-lts-raring xserver-xorg-input-synaptics-lts-raring xserver-xorg-input-vmmouse-lts-raring xserver-xorg-input-wacom-lts-raring xserver-xorg-lts-raring xserver-xorg-video-all-lts-raring xserver-xorg-video-ati-lts-raring xserver-xorg-video-cirrus-lts-raring xserver-xorg-video-fbdev-lts-raring xserver-xorg-video-intel-lts-raring xserver-xorg-video-mach64-lts-raring xserver-xorg-video-mga-lts-raring xserver-xorg-video-modesetting-lts-raring xserver-xorg-video-neomagic-lts-raring xserver-xorg-video-nouveau-lts-raring xserver-xorg-video-openchrome-lts-raring xserver-xorg-video-r128-lts-raring xserver-xorg-video-radeon-lts-raring xserver-xorg-video-s3-lts-raring xserver-xorg-video-savage-lts-raring xserver-xorg-video-siliconmotion-lts-raring xserver-xorg-video-sis-lts-raring xserver-xorg-video-sisusb-lts-raring xserver-xorg-video-tdfx-lts-raring xserver-xorg-video-trident-lts-raring xserver-xorg-video-vesa-lts-raring xserver-xorg-video-vmware-lts-raring libxrandr-ltsq2 x11-xserver-utils-lts-raring xserver-common-lts-raring
  •  sudo apt-get install --install-recommends xserver-xorg-lts-raring
  • sudo apt-get autoremove
  • sudo apt-get autoclean
  •  sudo dpkg-reconfigure $(dpkg -l | awk '{print $2}' | grep 'lts-raring' | tr '\n' ' ')
  •  sudo reboot

Reset GNOME Keyring Password on Ubuntu


The problem

You are prompted by the system to enter your keyring passphrase in order to unlock additional keys. None of your passphrases work–somehow you have become locked out of your keyring. In this situation you may not be able to unlock needed keys, such as passwords, SSH or GPG keys.

The solution

The only solution that I’ve been able to come up with is to delete the keyring contents, including the incorrect or corrupt passphrase. Note: this will destroy all stored keys in the keyring, requiring that they be re-imported. Other than the need to “start over” with the keyring manager, this solution should be otherwise harmless.

Method :

It is possible to clobber your keyring passphrase and settings from the Terminal. Open a terminal (Applications > Accessories > Terminal), and run the command:

rm ~/.gnome2/keyrings/login.keyring

On older systems you may need to try:

rm ~/.gnome2/keyrings/default.keyring

Saturday, October 18, 2014

How to access public share of windows form another machine without username and password. Turn Password Protected Sharing On or Off in Windows7 or Windows 2008 server


Information:
Password protected sharing is a more secure method of sharing files and folders on a network, and it is enabled by default. If password protected sharing is turned on, people on your network will not be able to access shared folders on other computers on the network, including the Public folders (except on a homegroup), unless they log in to a user account with a password on the computer that has the shared folders stored on it. They will be prompted to type a user name and password when accessing the shared folders.

This tutorial will show you how to turn Password protected sharing on or off in Windows 7.

You must be logged in as an administrator to be able to do the steps in this tutorial.

Note   Note
If you have password protected sharing turned on, then using the same username and password on each computer on the network that you want to share with will make it easier and faster to access.




Here's How:
1. Open the Control Panel (icons view), and click on the Network and Sharing Center icon.

2. In the left pane, click on the Change advanced sharing settings link. (see screenshot below)
Password Protected Sharing - Turn On or Off in Windows 7-step-1.jpg
3. Click on the Name:  arrow.jpg
Views: 68415
Size:  485 Bytes to expand the network profile (type) that you want to turn password protected sharing on or off for. (see screenshot below)
NOTE: Normally this would be your current profile.
Password Protected Sharing - Turn On or Off in Windows 7-step-2.jpg
4. To Turn On Password Protected Sharing
NOTE: This is the default setting.
A) Select (dot) Turn on password protected sharing. (see screenshot below step 6)

B) Go to step 6.
5. To Turn Off Password Protected Sharing
A) Select (dot) Turn off password protected sharing. (see screenshot below step 6)
6. Click on the Save Changes button. (see screenshot below)
Password Protected Sharing - Turn On or Off in Windows 7-password.jpg
7. If prompted by UAC, then click on Yes.

8. When finished, you can close the Network and Sharing Center. 

Thursday, May 22, 2014

ZimbraDesktop Installation on Ubuntu


Installation

Download the ZibraDesktop Linux version from following link:
http://www.zimbra.com/downloads/zd-downloads.html

Extract the files from the archive using (sudo in this case is very important!):
sudo tar xzvf zdesktop_2_0_b10580_linux_i686.tgz

Then cd into that directory:
cd zdesktop_2_0_b10580_linux_i686/

And run:
sudo perl install.pl

Enter your password and hit return/enter.

Follow the on-screen instructions, if you choose the defaults, you should have a launcher on your desktop, we need to get rid of that and the zdesktop directory in your home folder:
cd ~
sudo rm -rf zdesktop Desktop/zd.desktop

Then we need to create a new one using:
/opt/zimbra/zdesktop/linux/user-install.pl

Uninstallation

If you used the defaults during the installation, you can remove ZimbraDesktop by issuing the following commands. (note: this section is not yet complete)
sudo rm -rf /opt/zimbra/

Saturday, March 15, 2014

Saturday, February 22, 2014

The following table lists Microsoft Office features and their LibreOffice equivalents.


    Microsoft Office XP   =>  LibreOffice
  • AutoShapes  =>  Gallery Objects
  • Change Case  =>  Case/Characters
  • Click and Type  =>  Direct Cursor
  • Compare and Merge Documents  =>  Compare
  • Document Map  =>  Navigator
  • Formula Auditing  =>  Detective
  • Lines and Page Breaks  =>  Text Flow
  • Page setup  =>  Format - Page
  • Mail Merge  =>  Form Letter
  • Markup  =>  Changes - Show
  • Refresh Data (in Excel)  =>  Refresh Range
  • Replace text as you type  =>  AutoCorrect
  • Show/Hide  =>  Nonprinting Characters, Hidden Paragraphs
  • Spelling and Grammar  =>  Spellcheck
  • Track changes  =>  Changes - Record
  • Validation  =>  Validity
  • Workbook  =>  Spreadsheet
  • Worksheet  =>  Sheet
  • Shared Workbooks  =>  Collaboration

Friday, January 17, 2014

Passwordless SSH tuthorization on Linux


  • Delete all files from => rm -rf  root/.ssh/ *
  • Generate Key => ssh-keygen -t rsa -N “”
  • Cope script on Second Server => scp root@192.168.1.3:/root/
  • cd /root/.ssh
  • cat /root/id_rsa.pub > authorized_keys 

Install LAMP on Ubuntu Server


  • sudo apt-get update
  • sudo apt-get install openssh-server
  • sudo apt-get install apache2
  • sudo apt-get install php5
  • sudo apt-get install mysql-server
  • sudo apt-get install libapache2-mod-php5
  • sudo apt-get install php5-mysql
  • sudo apt-get install mysql-client
  • sudo apt-get install php5-curl
  • sudo apt-get install php5-gd
  • sudo apt-get install php5-idn
  • sudo apt-get install php5-imagick
  • sudo apt-get install php5-imap
  • sudo apt-get install php5-mcrypt
  • sudo apt-get install php5-memcache
  • sudo apt-get install php5-mhash
  • sudo apt-get install php5-ming
  • sudo apt-get install php5-ps
  • sudo apt-get install php5-pspell
  • sudo apt-get install php5-recode
  • sudo apt-get install php5-snmp
  • sudo apt-get install php5-sqlite
  • sudo apt-get install php5-tidy
  • sudo apt-get install php5-xmlrpc
  • sudo apt-get install php5-xsl
  • sudo apt-get install php5-json
  • sudo apt-get install php5-cli
  • sudo apt-get install php-pear
  • sudo apt-get install php-apc
  • sudo apt-get install phpmyadmin
  • sudo apt-get install curl
  • sudo apt-get install sendmail
  • sudo apt-get install ethtool
  • sudo apt-get install nfs-kernel-server
  • sudo apt-get install nfs-common
  • sudo apt-get install portmap
  • sudo apt-get install perl
  • sudo apt-get install libnet-ssleay-perl
  • sudo apt-get install openssl
  • sudo apt-get install libauthen-pam-perl
  • sudo apt-get install libpam-runtime
  • sudo apt-get install libio-pty-perl
  • sudo apt-get install htop