How to split a text file in Ubuntu

Simple! Just use the “split” command, if no arguments are specified, it will split the text file to files each containing 1,000 lines of text.

Tagged , , | Leave a comment

Import Your Gmail Contacts into Mozilla Thunderbird

To export your address book from Gmail and import it into Mozilla Thunderbird:

  • Save your Gmail contacts as gmail-to-outlook.csv.
  • Select Tools | Import… from the menu in Mozilla Thunderbird.
  • Make sure Address Books is selected.
  • Click Next >.
  • Highlight Text file (LDIF,.tab,.csv,.txt) under Please select the program from which you would like to import.
  • Click Next >.
  • Select the gmail-to-outlook.csv file you just created.
  • Make sure First record contains field names is checked.
  • Use the Move Up and Move Down buttons to match Mozilla Thunderbird address book fields on the left with Gmail fields on the right.
    • Make sure at least
    • Primary Email and E-mail Address and
    • Last Name and Name match.
    • Gmail has a unified name field and does not distinguish between first and last names.
    • You can use the Next button at the top to see what the import process will produce.
  • Click OK.
  • Now click Finish.

In your Mozilla Thunderbird address book, you will now find a folder named “gmail-to-outlook” with all imported contacts.

Source

Tagged , , | Leave a comment

How to Enable Ctrl + Alt + BackSpace in Ubuntu Jaunty and Karmic

Method 1 (tested by me and working):

  1. “sudo apt-get install dontzap”
  2. “sudo dontzap -d”

Method 2 (hasn’t been tested by me):

  1. Add the following lines to your xorg.conf file, making sure that when you paste it, it is NOT using smart quotes: “sudo gksudo gedit /etc/X11/xorg.conf”

    Section “ServerFlags”

    Option “DontZap” “false”

    EndSection

  2. you can use “right alt” + “printscreen” + “k”
    to do the same effect

Source 

Update: For Karmic, you won’t find that package, but there is a much simpler method:

Using GNOME
* Get to the System->Preferences->Keyboard menu.
* Select the “Layouts” tab and click on the “Layout Options” button.
* Then select “Key sequence to kill the X server” and enable “Control + Alt + Backspace”.

Source

Tagged , , | Leave a comment

Build your ecplise distribution

You can build your eclipse distribution, you can choose from many plug-ins.
http://ondemand.yoxos.com/geteclipse/start

enjoy !

Tagged | Leave a comment

How to unset environment variables in Bash

use the keyword unset :), that’s it!

Posted in Uncategorized | Tagged | Leave a comment