小弟剛步入linux系統沒多久而已,目前遇到一個問題
我想在macbook上使用speedometer這個網路監測軟體,想說都是以unix下去發展出來的OS,
執行上照理說可行的,但目前遇到下面問題
speedometer -rx eth0 時顯示以下
Traceback (most recent call last):
File "/usr/local/bin/speedometer", line 1093, in <module>
console()
File "/usr/local/bin/speedometer", line 797, in console
wait_all(cols)
File "/usr/local/bin/speedometer", line 1088, in wait_all
tap.wait_creation()
File "/usr/local/bin/speedometer", line 856, in wait_creation
if self.feed() is None:
File "/usr/local/bin/speedometer", line 610, in networkfn
f = open('/proc/net/dev')
IOError: [Errno 2] No such file or directory: '/proc/net/dev'
如果輸入 speedometer -rx
Usage: speedometer [options] tap [[-c] tap]...
Monitor network traffic or speed/progress of a file transfer. At least one
tap must be entered. -c starts a new column, otherwise taps are piled
vertically.
Taps:
-f filename [size] display download speed [with progress bar]
-r network-interface display bytes received on network-interface
-t network-interface display bytes transmitted on network-interface
-c start a new column for following tap arguments
Options:
-b use old blocky display instead of smoothed
display even when UTF-8 encoding is detected
(use this if you see strange characters)
-i interval-in-seconds eg. "5" or "0.25" default: "1"
-k (1|16|88|256) set the number of colors this terminal
supports (default 16)
-l use linear charts instead of logarithmic
you will VERY LIKELY want to set -m as well
-m chart-maximum set the maximum bytes/second displayed on
the chart (default 2^32)
-n chart-minimum set the minimum bytes/second displayed on
the chart (default 32)
-p use original plain-text display (one tap only)
-s use bits/s instead of bytes/s
-x exit when files reach their expected size
-z report zero size on files that don't exist
instead of waiting for them to be created
Note: -rx and -tx are accepted as aliases for -r and -t for compatibility
with earlier releases of speedometer. -f may be also omitted for similar
reasons.
Speedometer requires Urwid 0.9.9.1 or later when not using plain-text display.
Urwid may be downloaded from: http://excess.org/urwid/
Urwid may be installed system-wide or in the same directory as speedometer.
Python Version: 2.7
Urwid >= 0.9.9.1 detected: NO UTF-8 encoding detected: NO
如果輸入 speedometer eth0
Waiting for 'eth0' to be created...
然後就卡在這邊了
上述都有google過了,好像有網友建議前面給個sudo,但還是沒用...
在此感謝