跳到主要內容

發表文章

restore asus ux31a after installation of ubuntu 12.04

安裝了ubuntu 12.04後,回復asus ux31a的方法: Press ESC at booting, select EFI DVD, that's it. Note: Since at the installation of ubuntu, I have rewritten the sda1 partition, which contains EFI booting information, I have to switch to the recovery DVD that I made. The factory default recovery partition is on sda5, which is kept intact in my HD. One silly question though, why would one switch back to Win7 when it is a lot happier using ubuntu? Asus ux31a fine tune note from ubuntu documentation

BASH substring

${this_string:3}     從第4個位置(開始為0)開始讀到結束 ${this_string:0:3}  從開始(位置為0)讀3個位置 ${this_string:0:-5} 從開始(位置為0)讀到倒數第5個位置結束 ${this_string:(-4)} 從右(最後)往前數4個位置 資料來源: Advanced Bash-Scripting Guide

在ubuntu中PDF檔案的中英文列印,使用lpr指令

在ubuntu 11.10中列印中文PDF,有時遇到中英混雜的文件,會有印不出部份文字的情形,原因我並不了解,不過經驗上來說多半來自一些別的單位在win環境製作的PDF。解決的方法之一,我一直使用 FoxitReader ,但是他的linux版本不能選列印的雙面、一張紙印兩頁的選項,不過既然FoxitReader使用的列印是lpr,可以用下指令的方式來達到要的效果。 紙張來源: -o InputSlot=Tray3 或  -o InputSlot=Auto 一面印2張: -o number-up=2 雙面列印: sides=two-sided-long-edge 或  sides=two-sided-short-edge 範例: lpr -P HP-Color-LaserJet-2605-2 -o InputSlot=Tray3 -o Resolution= -o PageSize=A4 -o number-up=2 -o sides=two-sided-long-edge test.pdf  資料來源: Command-Line Printing and Options - Documentation - CUPS :

How to Install Evernote/Nixnote in Ubuntu

How to Install Evernote/Nixnote in Ubuntu : Install Nixnote in Ubuntu Now Nixnote has come to Version 1.0 and available various linux installer  (.deb, .rpm, Tar.gz)  64 bit or 32 bit. You can download and install Nixnote from sourceforge link bellow  : http://sourceforge.net/projects/nevernote/files/ For ubuntu user, Nixnote also available to install via PPA, do following on terminal : $ sudo add-apt-repository ppa:vincent-c/nevernote $ sudo apt-get update $ sudo apt-get install nixnote