2012年3月13日星期二

Compare PDF files in Mac or Windows


http://www.techf5.com/1471/compare-multiple-pdf-files/

DiffPDF

DiffPDF is used to compare two PDF files—textually or visually.

2012年3月6日星期二

Chinese input: ibus in Opensuse 12.1


IBus 輸入法 1.2.0 for openSUSE 11.2



1, go to 

2, click here

[TXT] ibus.ymp                          16-Feb-2012 19:45   13K   Details



照這下面的圖,一步一步完成
寄件者 openSUSE 11.2
按"下一步"
寄件者 openSUSE 11.2
預設會安裝 ibus, ibus-gtk, ibus-qt 套件,因為不知道您想使用哪一種輸入法
所以要請您按"自訂"
寄件者 openSUSE 11.2
按"下一步"
寄件者 openSUSE 11.2
在此選擇您要使用的輸入法模組
目前支援(2009/12/07)
jyutping 粵語拼音
wubi 五筆
anthy (要安裝 anthy,請看注意事項3)
array30 行列30
quick 速成
xinhua 新華
chewing 新酷音(要安裝新酷音,請看注意事項2)
cangjie 倉頡
rustrad
hangul
cantonese 廣東拼音
stroke5 筆順五碼
yong 永碼
m17n
cantonhk 香港廣東拼音
thai
zhuyin 注音
pinyin 拼音
cns11643 交換碼
translit
ziranma 自然碼
easy 輕鬆
viqr
erbi 二筆
wu 吳語
您可以依照您的需求安裝
寄件者 openSUSE 11.2
安裝摘要確認,請按"下一步"
寄件者 openSUSE 11.2
最後確認,請按"是"
寄件者 openSUSE 11.2
請輸入 root 的密碼
寄件者 openSUSE 11.2
開始執行安裝
寄件者 openSUSE 11.2
第一次使用此套件庫,會要求您匯入金鑰
寄件者 openSUSE 11.2
開始進行安裝
寄件者 openSUSE 11.2
完成了!(才怪!)
注意事項1:
因為使用 1-Click Install (或用 zypper 直接安裝)並不會更新 gtk-immodule
所以您必須手動完成最後一個步驟
$ sudo /sbin/SuSEconfig
注意事項4:
現在會針對 en zh_TW zh_HK zh_CN zh_SG ko_KR ja_JP 這幾個語系設定自動啟動 ibus
只要重新登入,即可使用

Useful cmds in HLRN


showq -v -i -p berlinshow the next jobs scheduled in Berlin
pbmapdisplays the machine status
showstart jobidshows estimated start time for the Job

OpenSuse software install

http://en.opensuse.org/Package_repositories

1, open terminal, type "yast"
2. Software           │ │Software Management
3. search & install by choosing "Accept"
4, tips: using Tab to switch opotions, or use Alt + "shortcut"

keep ssh connection alive


1, vi /etc/ssh/ssh_config

#added by Jkiss for keepalive
ServerAliveInterval 30

2, /etc/init.d/network restart
CPfS printer

1, in Browser
http://localhost:631/

2, CUPS for Administrators


3, Choose "add printer", login with root

4. choose "LPD/LPR Host or Printer "

5, 
Name:MyPrinter
Description:Printer in B1-2-51
Location:B1-2-51-flur
Connection:lpd://172.24.1.52/LP27
Sharing:Do Not Share This Printer
Make:HP 
 HP Color LaserJet 4650 hpijs pcl3

6,

General

Media Size:
Printout Mode:
Media Source:
Double-Sided Printing:
7, done

MyPrinter (Idle, Accepting Jobs, Not Shared)

 
Description:Printer in B1-2-51
Location:B1-2-51-flur
Driver:HP Color LaserJet 4650 hpijs pcl3, 3.11.10 (color, 2-sided printing)
Connection:lpd://172.24.1.52/LP27
Defaults:job-sheets=none, none media=iso_a4_210x297mm sides=two-sided-long-edge

2012年3月2日星期五

SSH login without password SSH login without password

http://linuxproblem.org/art_9.html


SSH login without password

Your aim

You want to use Linux and OpenSSH to automize your tasks. Therefore you need an automatic login from host A / user a to Host B / user b. You don't want to enter any passwords, because you want to call ssh from a within a shell script.

How to do it

First log in on A as user a and generate a pair of authentication keys. Do not enter a passphrase:
a@A:~> ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/a/.ssh/id_rsa): 
Created directory '/home/a/.ssh'.
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/a/.ssh/id_rsa.
Your public key has been saved in /home/a/.ssh/id_rsa.pub.
The key fingerprint is:
3e:4f:05:79:3a:9f:96:7c:3b:ad:e9:58:37:bc:37:e4 a@A
Now use ssh to create a directory ~/.ssh as user b on B. (The directory may already exist, which is fine):
a@A:~> ssh b@B mkdir -p .ssh
b@B's password: 
Finally append a's new public key to b@B:.ssh/authorized_keys and enter b's password one last time:
a@A:~> cat .ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys'
b@B's password: 
From now on you can log into B as b from A as a without password:
a@A:~> ssh b@B hostname
B
A note from one of our readers: Depending on your version of SSH you might also have to do the following changes:
  • Put the public key in .ssh/authorized_keys2
  • Change the permissions of .ssh to 700
  • Change the permissions of .ssh/authorized_keys2 to 640
Keywords: ssh openssh password   Author: Mathias Kettner
Tauschzone MK