[问题] speedometer指令

楼主: smile2359630 (TYW)   2018-04-12 09:46:42
小弟刚步入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,但还是没用...
在此感谢
作者: Bx2009 (张麻吉二号)   2018-04-12 11:17:00
speedometer仰赖/proc档案系统,MacOS没有.
作者: kenduest (小州)   2018-04-12 12:22:00
题外话用 mac os x 一般装付费的 istat menus 比较实用若你要免费的,一般推荐装 netdata, mac 环境可以用 brew 方式安装上就可以用独立回应一篇好了..

Links booklink

Contact Us: admin [ a t ] ucptt.com