Saturday, April 27, 2013

How to install the "dict" dictionary

dict is a very powerful console dictionary for linux:

Installation:
Download libmaa from http://sourceforge.net/projects/dict/files/libmaa/
$ ./configure
$ make
$ make install


Download dictd from http://sourceforge.net/projects/dict/
$ ./configure
$ make
$ make install


Create the configuration file:
either /etc/dict.conf  or   ~/.dictrc with:

# This file is used to specify the dict servers to talk to.  See the
# CONFIGURATION section of dict(1) for the full syntax.
#
# A list of public dict servers is available at
#  http://luetzschena-stahmeln.de/dictd/index.php
# but one of the following should work.
#

server dict.org
server dict.trit.org
server dict.die.net



---------------------


 Some useful commands:
$ dict -D
List all available dictionaries in the servers listed in ~/.dictrc

$ dict -d deu-eng Haus
Searchs for Haus in the German-English dictionary

$ dict dict://dict.org/d house
Looks up a word using the server dict.org


No comments: