作這樣修改其實不難,只要一道指令:
grep -rl OLD_APPID | xargs sed -i 's/OLD_APPID/NEW_APPID/g'
靠軟體謀生真不易... 勤作筆記,幫助記憶...
grep -rl OLD_APPID | xargs sed -i 's/OLD_APPID/NEW_APPID/g'
avconv -i INPUT.mp4 -s 640x360 OUTPUT.mp4若影片的聲音是 acc 編碼,上述指令可能會警告你程式的 acc 編碼器還在驗證階段,要求你多加一個參數 ("-strict experimental") 確定你要用這個實驗品:
avconv -i INPUT.mp4 -s 640x360 -strict experimental OUTPUT.mp4若影片太長,你只要前 N 秒,可以加上參數 "-t N"。若只要影像,不要聲音,請參考 去除影片檔聲音的方法。
avconv -i IN-FILE -vcodec copy -an OUT-FILE其中:
sudo apt-get install lame
ls *.wav | sed -e 's/\.wav//' | xargs -i -n 1 lame -h -b 128 "{}.wav" "{}.mp3"
convert file1.jpg file2.jpg file3.jpg output.pdf此功能是包含在 imagemagick 套件上,若沒有上述 convert 程式,可以自己安裝此套件:
sudo apt-get install imagemagick據說 Windows 和 MacOS 平台上也都有此程式。
若你想加上封面、頁首、頁尾等也可以,請自行參閱 wkhtmltopdf -H 的說明。wkhtmltopdf http://news.chinatimes.com/ news.pdf
QSslSocket: cannot call unresolved function SSLv23_client_method4%解決辦法是下載 source 自己編譯。不要擔心,編譯非常簡單:
QSslSocket: cannot call unresolved function SSL_CTX_new
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function ERR_get_error
QSslSocket: cannot call unresolved function SSLv23_client_method
QSslSocket: cannot call unresolved function SSL_CTX_new
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function ERR_get_error
$ sudo apt-get install qt4-dev-tools
$ wget http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.11.0_rc1.tar.bz2
$ tar xvjf wkhtmltopdf-0.11.0_rc1.tar.bz2
$ cd wkhtmltopdf-0.11.0_rc1/
$ qmake && make
$ sudo apt-get make install
unzip -O big5 your_compressed_file.zipPS: 我發現 Ubuntu 10.04 的 unzip 已經移除 -O 的功能 (怪怪~~稍微新或舊一點的版本卻都有)。需要此功能的朋友,可以到以下頁面下載稍微新一點的版本來用:
http://packages.ubuntu.com/oneiric/unzip
http://www.adobe.com/products/acrobat/acrrasianfontpack.html然而,這個 URL 早已失效了。切換到 Windows Vista,用 Adobe Reader X 來開啟,也是要求要安裝 Chinese Simplified Font Packs。但畢竟是主流平台的最新版本,直接點選錯誤訊息的連結就可以完成安裝程序。
# sudo -s接著,再安裝 Font Packs (簡中和繁中都必須裝,否則 Big5 編碼的也開不起來):
# cd /tmp
# wget ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/9.5.5/enu/AdbeRdr9.5.5-1_i386linux_enu.deb
# dpkg -i AdbeRdr9.5.5-1_i386linux_enu.deb
# wget ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/9.1/misc/FontPack910_cht_i486-linux.tar.bz2以下是 ./INTALL 的過程,僅供參考:
# tar xvjf FontPack910_cht_i486-linux.tar.bz2
# cd CHTKIT/
# ./INSTALL
# cd /tmp
# wget ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/9.1/misc/FontPack910_chs_i486-linux.tar.bz2
# tar xvjf FontPack910_chs_i486-linux.tar.bz2
# cd CHSKIT/
# ./INSTALL
Welcome to the Asian Language Kit installation.
This installation will not work if you do not have the Unix Adobe Reader version 9.1 installed prior to this installation.
If you do not have Adobe Reader version 9.1 already installed on your system please do so before installing this Asian Language Kit.
Continue installation? [y]y
The font software contained in this package is being licensed to you solely
for use with the Adobe Reader product ("Adobe Reader") subject to
the terms and conditions of the Electronic End User License Agreement
accompanying the Adobe Reader.
Please type "accept" to accept the terms and conditions of license agreement; Type "decline" to exit. accept
Enter the location where you installed the Adobe Reader [/opt]
Installing Common binaries ...
Done
Installing Common resources ...
Done
Installing Simplified Chinese language resources ...
Done
Installation completed.
- 名稱:Rainlendar2
- 指令:rainlendar2
- 備註:Customizable desktop calendar
Do you want to start another instance?雖然按 Yes 就可以繼續,但總是不方便。後來將啟動應用程式的指令改成「rainlendar2 -m」,問題好像就解決了。
vi .config/Unknown\ Organization.conf修改最底下那行 History= 就可以了。
sudo apt-get install colordiff使用方式:
http://www.vmware.com/download/player/截至發文的時間,最新的版本是 2.5.3。若你有安裝舊版本,請用以下指令移除:
$ LANG=C rpm -e VMware-Player若用以下指令安裝,會有「相依性偵測失敗:/bin/sh 被 VMware-Player-2.5.3-185404.i386 所需要」的錯誤發生:
$ rpm -Uhv VMware-Player-2.5.3-185404.i386.rpm請改用以下指令跳過相依性檢查,就可以安裝成功:
$ LANG=C rpm --nodeps -Uhv VMware-Player-2.5.3-185404.i386.rpm安裝成功之後,可以在系統工具選單找到 VMware Player 的啟動圖示。
grep -r STRING *這兩個指令很好用。但是遇到 Subversion 的 working copy 時,就會受到 .svn 目錄的干擾。所幸這兩個指令都提供排除非必要目錄的方法:
diff -ur DIR1 DIR2
grep --exclude-dir=.svn -r STRING *
diff -x .svn -ur DIR1 DIR2
alias grep='grep --exclude-dir=.svn'
alias diff='diff -x .svn'