designevo

Logo通過DesignEvo設計製作

2009年4月3日 星期五

安裝ntop上的Local Network Traffic Map

參考文件:http://www.graphviz.org/Download_linux_rhel.php

由於ntop使用的Local Network Traffic Map需要 dot 的軟體套件才可以正確的呈現.

step 1.
若是用Centos請先行設定 yum 的設定,在目錄 /etc/yum.repos.d/ 下,新增 graphviz-rhel.repo 檔案,可直接下載檔案http://www.graphviz.org/graphviz-rhel.repo

step 2.
確認yum是否設定有正確
#yum list available 'graphviz*'

step 3.
執行安裝
#yum install 'graphviz*'
若安裝沒有問題應該會有 /usr/bin/dot 這個檔案。

step 4.
設定 ntop 的Local Network Traffic Map,若有需要必須增加 ntop 的Preference設定dot.path並填入參數/usr/bin/dot

step 5.
若一切正常使可以在 ntop 看到Local Network Traffic Map


附記
若有發生以下狀況問題:

# yum install 'graphviz*' Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
* rpmforge: fr2.rpmfind.net
* base: ftp.chu.edu.tw
* updates: rsync.atworks.co.jp
* addons: ftp.cse.yzu.edu.tw
* extras: ftp.cse.yzu.edu.tw
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package graphviz-python.i386 0:2.22.0-4.el5.rf set to be updated
--> Processing Dependency: libgv_python.so.0 for package: graphviz-python
---> Package graphviz-lua.i386 0:2.8-1.el5.rf set to be updated
--> Processing Dependency: graphviz = 2.8-1.el5.rf for package: graphviz-lua
--> Processing Dependency: libgvc.so.2 for package: graphviz-lua
---> Package graphviz-devel.i386 0:2.22.0-4.el5.rf set to be updated
---> Package graphviz-tcl.i386 0:2.22.0-4.el5.rf set to be updated
--> Processing Dependency: tk for package: graphviz-tcl
--> Processing Dependency: libtk8.4.so for package: graphviz-tcl
---> Package graphviz-perl.i386 0:2.22.0-4.el5.rf set to be updated
--> Processing Dependency: libgv_perl.so.0 for package: graphviz-perl
---> Package graphviz.i386 0:2.22.0-4.el5.rf set to be updated
--> Processing Dependency: libgs.so.8 for package: graphviz
--> Processing Dependency: librsvg-2.so.2 for package: graphviz
---> Package graphviz-php.i386 0:2.8-1.el5.rf set to be updated
--> Processing Dependency: graphviz = 2.8-1.el5.rf for package: graphviz-php
--> Processing Dependency: libgvc.so.2 for package: graphviz-php
---> Package graphviz-ocaml.i386 0:2.8-1.el5.rf set to be updated
--> Processing Dependency: graphviz = 2.8-1.el5.rf for package: graphviz-ocaml
---> Package graphviz-ruby.i386 0:2.22.0-4.el5.rf set to be updated
--> Processing Dependency: libgv_ruby.so.0 for package: graphviz-ruby
--> Processing Dependency: /usr/bin/ruby for package: graphviz-ruby
---> Package graphviz-guile.i386 0:2.22.0-4.el5.rf set to be updated
---> Package graphviz-graphs.i386 0:2.22.0-4.el5.rf set to be updated
---> Package graphviz-doc.i386 0:2.22.0-4.el5.rf set to be updated
---> Package graphviz-java.i386 0:2.22.0-4.el5.rf set to be updated
--> Running transaction check
---> Package ruby.i386 0:1.8.5-5.el5_2.6 set to be updated
---> Package graphviz-python.i386 0:2.22.0-4.el5.rf set to be updated
--> Processing Dependency: libgv_python.so.0 for package: graphviz-python
---> Package graphviz-lua.i386 0:2.8-1.el5.rf set to be updated
--> Processing Dependency: graphviz = 2.8-1.el5.rf for package: graphviz-lua
--> Processing Dependency: libgvc.so.2 for package: graphviz-lua
---> Package graphviz-perl.i386 0:2.22.0-4.el5.rf set to be updated
--> Processing Dependency: libgv_perl.so.0 for package: graphviz-perl
---> Package graphviz-php.i386 0:2.8-1.el5.rf set to be updated
--> Processing Dependency: graphviz = 2.8-1.el5.rf for package: graphviz-php
--> Processing Dependency: libgvc.so.2 for package: graphviz-php
---> Package graphviz-ocaml.i386 0:2.8-1.el5.rf set to be updated
--> Processing Dependency: graphviz = 2.8-1.el5.rf for package: graphviz-ocaml
---> Package librsvg2.i386 0:2.16.1-1.el5 set to be updated
--> Processing Dependency: libcroco >= 0.6.1 for package: librsvg2
--> Processing Dependency: libgsf-1.so.114 for package: librsvg2
--> Processing Dependency: libcroco-0.6.so.3 for package: librsvg2
--> Processing Dependency: libgsf >= 1.6.0 for package: librsvg2
---> Package graphviz-ruby.i386 0:2.22.0-4.el5.rf set to be updated
--> Processing Dependency: libgv_ruby.so.0 for package: graphviz-ruby
---> Package ghostscript.i386 0:8.15.2-9.4.el5_3.4 set to be updated
--> Processing Dependency: ghostscript-fonts for package: ghostscript
--> Processing Dependency: urw-fonts >= 1.1 for package: ghostscript
---> Package tk.i386 0:8.4.13-5.el5_1.1 set to be updated
--> Running transaction check
---> Package graphviz-python.i386 0:2.22.0-4.el5.rf set to be updated
--> Processing Dependency: libgv_python.so.0 for package: graphviz-python
---> Package graphviz-lua.i386 0:2.8-1.el5.rf set to be updated
--> Processing Dependency: graphviz = 2.8-1.el5.rf for package: graphviz-lua
--> Processing Dependency: libgvc.so.2 for package: graphviz-lua
---> Package graphviz-perl.i386 0:2.22.0-4.el5.rf set to be updated
--> Processing Dependency: libgv_perl.so.0 for package: graphviz-perl
---> Package graphviz-php.i386 0:2.8-1.el5.rf set to be updated
--> Processing Dependency: graphviz = 2.8-1.el5.rf for package: graphviz-php
--> Processing Dependency: libgvc.so.2 for package: graphviz-php
---> Package graphviz-ocaml.i386 0:2.8-1.el5.rf set to be updated
--> Processing Dependency: graphviz = 2.8-1.el5.rf for package: graphviz-ocaml
---> Package graphviz-ruby.i386 0:2.22.0-4.el5.rf set to be updated
--> Processing Dependency: libgv_ruby.so.0 for package: graphviz-ruby
---> Package urw-fonts.noarch 0:2.3-6.1.1 set to be updated
---> Package ghostscript-fonts.noarch 0:5.50-13.1.1 set to be updated
---> Package libcroco.i386 0:0.6.1-2.1 set to be updated
---> Package libgsf.i386 0:1.14.1-6.1 set to be updated
--> Finished Dependency Resolution
Error: Missing Dependency: libgv_perl.so.0 is needed by package graphviz-perl
Error: Missing Dependency: libgvc.so.2 is needed by package graphviz-php
Error: Missing Dependency: libgv_python.so.0 is needed by package graphviz-python
Error: Missing Dependency: graphviz = 2.8-1.el5.rf is needed by package graphviz-php
Error: Missing Dependency: libgv_ruby.so.0 is needed by package graphviz-ruby
Error: Missing Dependency: libgvc.so.2 is needed by package graphviz-lua
Error: Missing Dependency: graphviz = 2.8-1.el5.rf is needed by package graphviz-lua
Error: Missing Dependency: graphviz = 2.8-1.el5.rf is needed by package graphviz-ocaml

可以試試下列方法.

#wget ftp://fr2.rpmfind.net/linux/dag/redhat/el5/en/i386/dag/RPMS/graphviz-2.8-1.el5.rf.i386.rpm
#rpm -ivh graphviz-2.8-1.el5.rf.i386.rpm
#yum install graphviz.i386

應該可以解決。

沒有留言:

資料無價

做資訊的都知道 資料備份 很重要,但當資料因不可抗力或人為失誤弄掉了!  到底會想要花多少錢來救資料? 答案常常是越少越好~  最好是 免費 .... 那誰會要去救 .... 買備份設備就跟買保險一樣,有備無患,但重要的是有沒有買對設備,有備份也要有還原測試驗証,而且最好要一段時...