兩台電腦沒兩台螢幕還挺不方便的, 用ssh連到另一台Linux用command line的缺點是一些X11 apps都沒辦法用, 不過好像ssh也不是只有文字可用

ssh -X my_host

用上面的方式就可以用X11 forwarding的模式連到Linux的那台, 這時候執行任何一個X11程式, 視窗就會在你的電腦顯示而非遠端那台Linux, 舉個例, 我從mac mini連到一台遠端的Linux執行banshee, 這就是mac mini上得到的結果(這screenshot有兩個視窗, 上頭是banshee run on X11, 下頭是terminal, 用ssh -X連到Linux並執行banshee):

_2012-01-29_1

“男人”(man)的說明是這樣寫的:

-X      Enables X11 forwarding.  This can also be specified on a per-host basis in a configuration file.

             X11 forwarding should be enabled with caution.  Users with the ability to bypass file permissions on the remote host (for the user’s X authorization database) can access the local X11 display through the forwarded connection.  An attacker may then be able to perform activities such as keystroke monitoring.

             For this reason, X11 forwarding is subjected to X11 SECURITY extension restrictions by default.  Please refer to the ssh -Y option and the ForwardX11Trusted directive in ssh_config(5) for more information.

 

 

買了Kindle之後覺得, Kindle真是適合拿來看書的裝置, 舒服又省電, 對我這種通勤族尤其方便, 比較麻煩的是如果不想花太多錢買書就得自己找出口

有時候增進知識的方式並不只有來自於書籍, 還有網頁, 但要閱讀網頁就得要有網路了, 我每天通勤搭的高鐵, 車上網路還是會有中斷的時候, 如果可以離線閱讀就很好用了, 所幸有Instapaper可以搭配Kindle使用

方法很簡單:

  1. 申請個Instapaper的帳號
  2. 加入Read Later的bookmarklet到你的Browser
  3. 看到想要進一步閱讀的網頁, 按下Read Later儲存到Instapaper
  4. 回到Instapaper就可以看到一個網頁的list
  5. 按下Kindle下載mobi檔(kindle格式電子書)到你電腦, 再透過Calibre放到Kindle(或是自行copy進Kindle)
    _2011-08-22_8

由於他會把你整個list內的文章全部放到一個mobi, 如果想要分類看, 建議可以create folder來分類儲存, 已經看過的最好是archive起來, 這樣下次做的時候就不會重複了….