12/15/2010

一個視窗可切割多個畫面的終端機 - Terminator

發現來自這裡 :

http://plog.longwin.com.tw/my_note-unix/2010/12/15/linux-terminal-terminator-2010

http://go-linux.blogspot.com/2010/09/terminator_01.html

一般Ubuntu預設是使用gnome-terminal,但它是沒辦法切窗視窗.

有時要寫code和查code會有滿大的困擾,要開好幾個TAB,而且有時一忙起來都忘了這個TAB具體是要幹嘛的...

試用了一會,發現Terminator可以做到我想要到 ! 而且左上有個group可以設定想要的名稱...這樣我就可以知道這個畫面的terminal是要做什麼事了 !

切割多重畫面的Terminator



安裝非常簡單,只需敲一行命令即可 :

#sudo apt-get install terminator

Terminator的快鍵(個人覺得只需要記這3個就好>_<) :

  • Ctrl + Shift + o 水平開 Tab
  • Ctrl + Shift + e 垂直開 Tab
  • Alt + 上下左右切換同一個視窗(Ctrl + Shift + e 或 o 的視窗)




12/12/2010

好用的桌面日曆行事 - Rainlendar

在朋友的網誌上發現一款相當好用的行事曆軟體 - Rainlendar 

本來一直以為它只支援微軟系統....

沒想到竟然有For ubuntu ! 而且有多國語言喔 !

到官網上找"Download"字樣或者直接到這裡 :

別點錯了要安裝的系統喔~

它有分Free(Lite)的版本和需付費的Pro版本


個人認為其實也不用破解.....Lite版本就相當夠用了

下載完之後,就直接點擊安裝

安裝之後先不要執行它,因為還要安裝中文語言

繁體中文

接著到終端機輸入下列命令來安裝語言 :

#rainlendar2 -i Traditional_Chinese.r2lang

之後執行Rainlendar,按右鍵進選項,其中有個語言選擇選Chinese,就可以看到中文囉 !

















相當簡潔的日記行事曆~










還有鬧鈴直接顯示在桌面提醒喔 ! 想忘都忘不掉


WiKiLeaks

近期內最值得關注的事想必就是WiKiLeaks(維基解密)的報導了 !

每天早上上班時,第一件事去追的就是他了 XD

對我這樣的無為平民百姓,真的是感覺到一天比一天精彩呀~~~

今天又在網路上看到一家TED的電視台專訪WiKiLeaks的創辦人 : Julian Assange

視頻上除了述說一些解密的內容之外,還表達WiKiLeaks存在的核心價值 : 監督罪犯

朱利安.亞桑傑專訪

大家也知道,Julian的PayPal轉帳被取消....被Amazon擺了一道....被EveryDNS封鎖.....

現在又被瑞典以強姦罪理由對Julian發出通緝 XD (記得好像沒被抓吧....在我打這篇文章的時候)

所以 !! 就有很多人以實際的行動來表達對Julian的支持 !!

就算殺了我,還有千千萬萬個我

而想知道WiKiLeasks大致如何運作,或者一些事績,可以到維基百科去看,裡面介紹很詳細

WiKiLeaks(維基解密)-維基百科

又或計是因為公怖大多不能公開的事,似乎己經遭到死亡的威脅 !!

亞桑傑嗆- 握有保命文件 要死一起死


VIM Setting for myself

最近使用Vim一段時間了....終於漸漸習慣操作方式和界面

現在換成去用Source Insigh整個不習慣= =

上傳我自己的Vim設置備份一下


" Maintain : Dicky
"
" Mail : dickychiang73@gamil.com
"
" Date : 2010/5/14 14:43
"
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => General
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Sets how many lines of history VIM has to remember
set history=300

" Enable filetype plugin
filetype plugin on
filetype indent on

" Set to auto read when a file is changed from the outside
set autoread

" When vimrc is edited, reload it
autocmd! bufwritepost vimrc source ~/.vim_runtime/vimrc

" always show the mouse
"set mouse=a
set mouse=v

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => VIM user interface
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Turn on WiLd menu
set wildmenu

"Always show current position
set ruler

"Ignore case when searching
set ignorecase

"Highlight search things
set hlsearch

"Make search act like search in modern browsers
set incsearch

"Set magic on, for regular expressions
set magic

"Show matching bracets when text indicator is over them
set showmatch

"Show the number line
"set nu

"cursorline : hightlight currentline
set cul

"Auto save current status
if has("autocmd")
      au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
  endif
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Colors and Fonts
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set background=dark
"colorscheme desert
syntax on
syntax enable
"Default file types
set ffs=unix,dos,mac

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Files and backups
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Turn backup off, since most stuff is in SVN, git anyway...
set nobackup
set nowb
set noswapfile

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Text, tab and indent related
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set expandtab
set shiftwidth=4
set tabstop=4
set smarttab
set lbr
set tw=500
"Auto indent
set ai
"Smart indet
set si
"Wrap lines
set wrap
"C indent
set cin

""""""""""""""""""""""""""""""
" => Statusline
""""""""""""""""""""""""""""""
" Always hide the statusline
set laststatus=2

" Format the statusline
"set statusline=\ %F%m%r%h\ %w\ \ CWD:\ %r%h\ \ \ Line:\ %l/%L:%c

""""""""""""""""""""""""""""""
" => Chinese solution
""""""""""""""""""""""""""""""
set fileencodings=utf-8,gb2312,gbk,gb18030
set termencoding=utf-8
"set fileformats=unix
set encoding=prc
set helplang=cn

""""""""""""""""""""""""""""""
" => tools setting
""""""""""""""""""""""""""""""
"ctags
set tags=tags
"taglist
let Tlist_Show_One_File=1
let Tlist_Use_Right_Window=1
let Tlist_Exit_OnlyWindow=1
let Tlist_Auto_Open=0
nmap :Tlist
"Grep command
nnoremap :Grep
"MiniBufExplorer
let g:miniBufExplMapCTabSwitchBufs = 1
let g:miniBufExplMapWindowNavVim = 1
"fast Change c/h between
nnoremap :A
"Cscope
set cscopequickfix=s-,c-,d-,i-,t-,e-
nmap s :cs find s =expand("")
nmap g :cs find g =expand("")
nmap c :cs find c =expand("")
nmap t :cs find t =expand("")
nmap e :cs find e =expand("")
nmap f :cs find f =expand("")
nmap i :cs find i =expand("")$
nmap d :cs find d =expand("")

12/01/2010

[轉] 在233行Kernel修正版還未發行之前, 五行的設定加速Linux!!!

有人為Ubuntu寫了一個Script:

http://ubuntulife.wordpress.com/2010/11/22/el-parche-milagro-de-linux-ahora-con-script-de-instalacion/

原文是西班牙文, 大字不識幾個, 但是script是不會有語言問題的, 本想複製下來試試, 卻又找到了英文版, 作者還做了一些修正, 分享安裝方法如下:

$ wget http://launchpadlibrarian.net/59511828/cgroup_patch
$ chmod +x cgroup_patch
$ sudo ./cgroup_patch
$ sudo reboot

就這樣, 重開機後, 果然效果顯著, 我用Wireshark分析封包, 之前總要等上一會, 現在載入大檔快速, 而用firefox開個四五十頁也比之前快"很多", 但是, 我的電腦有4G, 不準, 就把512M, 1G CPU的舊筆電拿出, 原本裝的Ubuntu 10.04開Firefox瀏覽很慢的, 用滑鼠捲軸都卡卡的, 執行了以上的動作後, 不可思議的改進了整個效能, 瀏覽網頁非常流暢, 開啟Openoffice也快速,..., 真的是很神奇.

只是, 這個設定已經存在很久了, 為什麼要等233行的補丁新聞出現之後, RedHat的工程師才酸酸的"推廣"? 不過這也不重要, Ubuntu 10.04和10.10都已經可以順利使用這個設定, 效能真的非常好, 可以很流暢的執行Ubuntu的視覺效果.