Friday, July 9, 2010

How to use dictionary in UBUNTU without using internet [offline]

0 comments
I searched all over to find an offline dictionary solution to fulfill my needs, since I'm often in need of a dictionary. Having not found an adequate solution in OpenDict (its dictionaries are only for foreign languages like Latvian and its website is inundated with spam), Stardict (it's bloated, written in bad English, and generally annoying to use) or other programs, and not always having access to the internet whenever I need a dictionary. So, I figured out on how to set up a local DICT server and thereby use the Dictionary program that's already included with Ubuntu to access locally stored dictionaries. It's not all that difficult, it turns out.

First of all, we need to install DictD:
sudo apt-get install dictd

this installs a DICT server. now you can install whatever dictionaries you want. Dictionaries are in the repos, here's a list I found using a package search:
http://packages.ubuntu.com/search?suite=default&section=all&arch=any&searchon=names&keywords=dict

And to install a thesaurus; for an example use;
sudo apt-get install dict-moby-thesaurus

Now to configure the Dictionary, open the Dictionary program (in Preferences, click on "Add" to add a source, then under "Description" give it a name like "Local Dictionaries," under "hostname" type "localhost" [EDIT: In Jaunty and later you might try putting "127.0.0.1" (without the quotes) instead; see below] and leave the port number the same. Now click "add" and now whenever you're offline you can choose "Local Dictionaries" from "Dictionary Sources" and access your dictionaries offline!


Enjoy & I'll catch you back with another awesome trick... ; )

0 comments:

Post a Comment