Flash Player 11 for Linux (YUM) 64-bit
$ sudo yum install adobe-release-x86_64.noarch
$ sudo yum install flash-plugin.x86_64
Restart browser.
Wednesday, October 5, 2011
Monday, October 3, 2011
Portable Document Format (PDF) tools
Ghostscript
interpreter for the PostScript language and for PDF
Links
http://www.ghostscript.com/
GSview
Ghostscript 的圖形化介面。
Links
GSview, http://pages.cs.wisc.edu/~ghost/gsview/index.htm
gv
Ghostscript 的 PostScript interpreter。
於 Linux 系統使用 yum 安裝套件
$ sudo yum install gv
由於套件相依性,將安裝以下兩個套件 (以 64 bit 系統為例)
gv.x86_64 : A X front-end for the Ghostscript PostScript(TM) interpreter
Xaw3d.x86_64 : A version of the MIT Athena widget set for X
安裝完成後,gv 程式位於 /usr/bin/gv
CutePDF Writer
安裝於 Microsoft Windows 的 PDF 轉檔免費軟體,藉由安裝虛擬的印表機(CutePDF Writer) 可將文件輸出為 PDF 文件。
Links
CutePDF Writer, http://www.cutepdf.com/products/cutepdf/Writer.asp
interpreter for the PostScript language and for PDF
Links
http://www.ghostscript.com/
GSview
Ghostscript 的圖形化介面。
Links
GSview, http://pages.cs.wisc.edu/~ghost/gsview/index.htm
gv
Ghostscript 的 PostScript interpreter。
於 Linux 系統使用 yum 安裝套件
$ sudo yum install gv
由於套件相依性,將安裝以下兩個套件 (以 64 bit 系統為例)
gv.x86_64 : A X front-end for the Ghostscript PostScript(TM) interpreter
Xaw3d.x86_64 : A version of the MIT Athena widget set for X
安裝完成後,gv 程式位於 /usr/bin/gv
CutePDF Writer
安裝於 Microsoft Windows 的 PDF 轉檔免費軟體,藉由安裝虛擬的印表機(CutePDF Writer) 可將文件輸出為 PDF 文件。
Links
CutePDF Writer, http://www.cutepdf.com/products/cutepdf/Writer.asp
Tuesday, September 27, 2011
Release Cache Memory
Linux 從 kernel 2.6.16 開始,提供透過指令清除 pagecache、inode、dentry。
$ sync; /sbin/sysctl vm.drop_caches=3
或者
$ sync; echo 3 > /proc/sys/vm/drop_caches
查看清除前的記憶體使用情況
$ cat /proc/meminfo
MemTotal: 10270912 kB
MemFree: 33092 kB
Buffers: 152300 kB
Cached: 9784508 kB
SwapCached: 0 kB
Active: 196180 kB
Inactive: 9802104 kB
SwapTotal: 2031608 kB
SwapFree: 2031608 kB
查看清除後的記憶體使用情況
$ cat /proc/meminfo
MemTotal: 10270912 kB
MemFree: 10061932 kB
Buffers: 408 kB
Cached: 28692 kB
SwapCached: 0 kB
Active: 89624 kB
Inactive: 928 kB
SwapTotal: 2031608 kB
SwapFree: 2031608 kB
參考資料
drop_caches, http://www.linuxinsight.com/proc_sys_vm_drop_caches.html
The Linux Kernel Archives - vm sysctl documentation, http://www.kernel.org/doc/Documentation/sysctl/vm.txt
$ sync; /sbin/sysctl vm.drop_caches=3
或者
$ sync; echo 3 > /proc/sys/vm/drop_caches
查看清除前的記憶體使用情況
$ cat /proc/meminfo
MemTotal: 10270912 kB
MemFree: 33092 kB
Buffers: 152300 kB
Cached: 9784508 kB
SwapCached: 0 kB
Active: 196180 kB
Inactive: 9802104 kB
SwapTotal: 2031608 kB
SwapFree: 2031608 kB
查看清除後的記憶體使用情況
$ cat /proc/meminfo
MemTotal: 10270912 kB
MemFree: 10061932 kB
Buffers: 408 kB
Cached: 28692 kB
SwapCached: 0 kB
Active: 89624 kB
Inactive: 928 kB
SwapTotal: 2031608 kB
SwapFree: 2031608 kB
參考資料
drop_caches, http://www.linuxinsight.com/proc_sys_vm_drop_caches.html
The Linux Kernel Archives - vm sysctl documentation, http://www.kernel.org/doc/Documentation/sysctl/vm.txt
Saturday, September 24, 2011
JMeter usage
使用 CSV 檔案
18.4.1 CSV Data Set Config, http://jakarta.apache.org/jmeter/usermanual/component_reference.html#CSV_Data_Set_Config
18.4.1 CSV Data Set Config, http://jakarta.apache.org/jmeter/usermanual/component_reference.html#CSV_Data_Set_Config
Friday, September 9, 2011
gnuplot PostScript
gnuplot> set terminal postscript eps enhanced
gnuplot> set output 'enhanced.eps'
eps - 使用 Encapsulated PostScript (EPS) 檔案格式,而非 raw PostScript。
enhanced - 使用增強文字模式(enhanced text mode),例如上標、下標文字等。
gnuplot> set output 'enhanced.eps'
eps - 使用 Encapsulated PostScript (EPS) 檔案格式,而非 raw PostScript。
enhanced - 使用增強文字模式(enhanced text mode),例如上標、下標文字等。
Thursday, September 1, 2011
Linux CPU Frequency Scaling
cpuspeed
user-space cpu frequency scaling program.
CPUSpeed web page: http://carlthompson.net/Software/CPUSpeed
cpufreq-utils
使用 APT (例如於 Debian/Ubuntu) 安裝套件:
$ sudo aptitude install cpufrequtils
使用 yum (例如 Red Hat /CentOS/Fedora) 安裝套件:
$ sudo yum install cpufreq-utils
查看 CPU 資訊:/usr/bin/cpufreq-info
設定 CPU frequency:/usr/bin/cpufreq-set
user-space cpu frequency scaling program.
CPUSpeed web page: http://carlthompson.net/Software/CPUSpeed
cpufreq-utils
使用 APT (例如於 Debian/Ubuntu) 安裝套件:
$ sudo aptitude install cpufrequtils
使用 yum (例如 Red Hat /CentOS/Fedora) 安裝套件:
$ sudo yum install cpufreq-utils
查看 CPU 資訊:/usr/bin/cpufreq-info
設定 CPU frequency:/usr/bin/cpufreq-set
Wednesday, August 31, 2011
JMeter Installation
於 CentOS Linux 安裝 JMeter。
安裝 JDK
於 Sun/Oracle Java JDK 網頁選擇安裝版本
http://www.oracle.com/technetwork/java/javase/downloads/index.html
例如,選擇 Java SE 7 JDK
依據 Linux 的安裝版本選擇所需套件
32 bit: jdk-7-linux-i586.rpm
64 bit: jdk-7-linux-x64.rpm
例如,下載 32 bit 的 jdk-7-linux-i586.rpm 檔案後,即可於 Linux 主機安裝
$ sudo rpm -ivh jdk-7-linux-i586.rpm
安裝 JMeter
例如,下載 jakarta-jmeter-2.5.tgz 後,將壓縮檔解開來,即可直接使用。
$ tar zxfv jakarta-jmeter-2.5.tgz
安裝 JDK
於 Sun/Oracle Java JDK 網頁選擇安裝版本
http://www.oracle.com/technetwork/java/javase/downloads/index.html
例如,選擇 Java SE 7 JDK
依據 Linux 的安裝版本選擇所需套件
32 bit: jdk-7-linux-i586.rpm
64 bit: jdk-7-linux-x64.rpm
例如,下載 32 bit 的 jdk-7-linux-i586.rpm 檔案後,即可於 Linux 主機安裝
$ sudo rpm -ivh jdk-7-linux-i586.rpm
安裝 JMeter
例如,下載 jakarta-jmeter-2.5.tgz 後,將壓縮檔解開來,即可直接使用。
$ tar zxfv jakarta-jmeter-2.5.tgz
Subscribe to:
Posts (Atom)