Friday, September 28, 2007

Cài Ubuntu từ a->z (tiep theo)

8. Cài startdic từ điển đa ngôn ngữ.
$ ./configure

gặp lỗi: configure: error: Package requirements (libgnomeui-2.0 >= 2.2.0) were not met:
No package 'libgnomeui-2.0' found
sửa:
$ sudo apt-get install libgnomeui-dev
config lại:
./configure
make
sudo make install

Tạo thư mục chứa file từ điển
$ mkdir /home/nha/.stardict (nha là tại vì username của tôi là nha các bạn có thể thay bằng username của các bạn)
$ mkdir /home/nha/.stardict/dic
$ cd /home/nha/.stardict/dic
$ wget http://jaist.dl.sourceforge.net/sourceforge/stardict/stardict-dictd_anh-viet-2.4.2.tar.bz2
$ wget http://nchc.dl.sourceforge.net/sourceforge/stardict/stardict-dictd_viet-anh-2.4.2.tar.bz2
$ tar -xjvf stardict-dictd_anh-viet-2.4.2.tar.bz2
$ tar -xjvf stardict-dictd_viet-anh-2.4.2.tar.bz2

Vậy là xong phần cài.
Tạo icon ở trên desktop và trên taskbar.
a. Tạo trên desktop:
click chuột phải ngoài màn hình desktop. Chọn create Launcher, name bạn gõ "từ điển" command bạn gõ "stardict" xong ok
b. Tạo trên taskbar
click chuột phải vào taskbar chọn Add to panel chọn tiếp custom application launcher làm tương tự tạo icon bên desktop.
(phần hình cho icon bạn có thể browse từ thư mục usr/local/share/stardict/pixmap)