StarDict更多词典的安装
http://alexandermail.blog.hexun.com/23159549_d.html
可以在官网找到很多的词典
下载你喜欢的词典后只需把它解压到 ~/.stardict/dic 或 /usr/share/stardict/dic
现在以安装文件名为a.tar.bz2 的词典为例:
tar -xjvf a.tar.bz2
sudo mv a /usr/share/stardict/dic
注意:a.tar.bz2是词典文件,a 是解压出来的词典目录
重新启动stardict,新的词典就会被自动加载了。
安装 WyabdcRealPeopleTTS
如果你的源中有该软件包,直接
sudo apt-get install wyabdcrealpeopletts
没有的话,请到wiki_ubuntu_ftp下载后执行
sudo tar -xvf WyabdcRealPeopleTTS.tar.gz -C /usr/share
安装OtdRealPeopleTTS(确保空闲空间>3G)
下载後手动安装
注意:需下载112.3M,安装後会消耗2.9G空间
解压缩,然後执行
sudo apt-get install python mpg321 #先安装python及mpg321
./INSTALL #安装OtdRealPeopleTTS
发音设置
如果您安装的是 ubuntu/gnome, 那么只要安装真人发音包之後不需要任何设置,stardict 就可以发音了。
如果您确认安装的是 statdict-gtk ,并且安装了 sox , 那么无须任何设置就可以发音了, 不过依然推荐修改下让星际译王用 alsa , 启动stardict後,点击主界面右下角按钮进入设置页面 -> 词典 -> 声音 -> 在启用声音前打钩,并将play改为aplay。 改完後如下图所示
2009年7月19日日曜日
2009年7月10日金曜日
linux shortcut keys
CTRL + A Moves the cursor to the head of a line
CTRL + E Moves the cursor to the end of a line
CTRL + R Search a command from the command history.
CTRL + B Moves the cursor backward one character.
CTRL + F Moves the cursor forward one character.
CTRL + D Logs out of the current session.
CTRL + H Erase one character. Similar to pressing backspace.
CTRL + W Deletes the last word typed in. For example, if you typed 'mv file1 file2' this shortcut would delete file2.
CTRL + U Erases the complete line.
CTRL + P Paste previous line and/or lines.
CTRL + N Paste next line and/or lines.
CTRL + S Stops all output on screen (XOFF).
CTRL + Q Turns all output stopped on screen back on (XON).
CTRL + Z Cancels current operation, moves back a directory and/or takes the current operation and moves it to the background. See bg command for additional information about background.
CTRL + E Moves the cursor to the end of a line
CTRL + R Search a command from the command history.
CTRL + B Moves the cursor backward one character.
CTRL + F Moves the cursor forward one character.
CTRL + D Logs out of the current session.
CTRL + H Erase one character. Similar to pressing backspace.
CTRL + W Deletes the last word typed in. For example, if you typed 'mv file1 file2' this shortcut would delete file2.
CTRL + U Erases the complete line.
CTRL + P Paste previous line and/or lines.
CTRL + N Paste next line and/or lines.
CTRL + S Stops all output on screen (XOFF).
CTRL + Q Turns all output stopped on screen back on (XON).
CTRL + Z Cancels current operation, moves back a directory and/or takes the current operation and moves it to the background. See bg command for additional information about background.
2009年6月30日火曜日
ubuntu 9 + ssh
sudo apt-get install openssh-server
sudo vi /etc/ssh/sshd_config
PermitRootLogin no ←rootでのログインを禁止
...
IgnoreRhosts yes ←.rhostsおよびhost.equivファイルでの認証を許可しない
...
RhostsAuthentication no ←パスワードなしでログインできるrhosts認証を禁止
...
RSAAuthentication yes ←RSA鍵ファイルを利用したユーザー認証を許可
...
RhostsRSAAuthentication yes ←RSA鍵の交換でrhosts認証を許可(noのまま編集なし)
...
PermitEmptyPasswords no ←パスワードなしでのログインを禁止
...
AllowUsers user ←SSHでログインできるユーザーを限定
(例:ユーザー名が"user"の場合)
sudo /etc/init.d/ssh restart
sudo vi /etc/ssh/sshd_config
PermitRootLogin no ←rootでのログインを禁止
...
IgnoreRhosts yes ←.rhostsおよびhost.equivファイルでの認証を許可しない
...
RhostsAuthentication no ←パスワードなしでログインできるrhosts認証を禁止
...
RSAAuthentication yes ←RSA鍵ファイルを利用したユーザー認証を許可
...
RhostsRSAAuthentication yes ←RSA鍵の交換でrhosts認証を許可(noのまま編集なし)
...
PermitEmptyPasswords no ←パスワードなしでのログインを禁止
...
AllowUsers user ←SSHでログインできるユーザーを限定
(例:ユーザー名が"user"の場合)
sudo /etc/init.d/ssh restart
2009年6月20日土曜日
javadoc のインストール

元ネタ
http://www.db.is.kyushu-u.ac.jp/rinkou/javaintro/javadoc.html
ダウンロードと Eclipse での設定
1. http://java.sun.com/javase/ja/6/download.html を使用.このWebページで,「Java SE 6 ドキュメント」のところにある「ダウンロード」をクリック.
2. jdk-6-doc.zip あるいは jdk-6-doc-ja.zip をダウンロード(前者は英語版,後者は日本語版)
3. JDK のインストールディレクトリ (c:\Program Files\Java\jdk1.6.0_11のような名前のはず)の下に解凍.
c:\Program Files\Java\jdk1.6.0_11\docs のようなディレクトリができる.
4. Eclipse で,JAVA_HOME を JDK 1.6.0 に設定
Eclipse で「Window(ウィンドウ)」→「Preferences(設定)」→「Java」→「Installed JREs(インストール済みのJRE)」
5. 「c:\Program Files\Java\jdk1.6.0_11」のように,JDK を設定した行があれば,それをクリック.(なければ,「追加」ボタンをクリックして,c:\Program Files\Java\jdk1.6.0_11を追加する).
6. 「編集」をクリック. JRE の編集ウインドウが開く.
7. JRE の編集ウインドウの中に「...rt.jar」の行があるので,クリック.
8. 「Javadoc ロケーション」をクリック.
「Javadoc ロケーション・パス」に,先ほど解凍したディレクトリの下の ja\api ディレクトリ,つまり, c:\Program Files\Java\jdk1.6.0_11\docs\ja\api を設定(日本語版の場合).
英語版の場合には, c:\Program Files\Java\jdk1.6.0_11\docs\api を設定
9. 「検証」をクリック
10. 「OK」をクリックして,元に戻る.
使ってみよう
Eclipse で,プログラム中の調べたい単語で「SHIFT + F2」 (ファンクションキー2)を押すと,Javadoc が開きます.
但し,上記の設定では,JDK の Javadoc (String とかファイル関係とか)しか出ません.自前で追加した jar の Javadoc などは出ないということです.
2009年6月19日金曜日
enable remote display on your PC:
* * set the follows only once
$ su - root
Passwod:
# svccfg
svc:> select application/x11/x11-server
svc:/application/x11/x11-server> setprop options/tcp_listen = boolean: true
svc:/application/x11/x11-server> listprop options/tcp_listen
options/tcp_listen boolean true
svc:> exit
# logout
- Logout from your desktop, and re-login
* * Add permission to display to your desktop everytime after you restart your PC(I have added the follow setting to ~/.bashrc)
- $ xhost +
$ su - root
Passwod:
# svccfg
svc:> select application/x11/x11-server
svc:/application/x11/x11-server> setprop options/tcp_listen = boolean: true
svc:/application/x11/x11-server> listprop options/tcp_listen
options/tcp_listen boolean true
svc:> exit
# logout
- Logout from your desktop, and re-login
* * Add permission to display to your desktop everytime after you restart your PC(I have added the follow setting to ~/.bashrc)
- $ xhost +
2009年6月18日木曜日
2009年6月15日月曜日
登録:
投稿 (Atom)