speedometer指令 - Linux

Oscar avatar
By Oscar
at 2018-04-12T09:46

Table of Contents

小弟剛步入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,但還是沒用...

在此感謝

--
Tags: Linux

All Comments

Una avatar
By Una
at 2018-04-15T12:42
speedometer仰賴/proc檔案系統,MacOS沒有.
Victoria avatar
By Victoria
at 2018-04-17T13:02
題外話用 mac os x 一般裝付費的 istat menus 比較實用
Jake avatar
By Jake
at 2018-04-21T21:58
若你要免費的,一般推薦裝 netdata, mac 環境
可以用 brew 方式安裝上就可以用
Ina avatar
By Ina
at 2018-04-24T00:17
獨立回應一篇好了..

Ubuntu 16.04 自動登出

Christine avatar
By Christine
at 2018-04-12T09:07
各位好,小弟最近使用Linux系統做些小實驗。 不過昨天ssh近自己ubuntu玩著玩著就發現成功登入後大概過不到幾秒就自動斷線。 原先以為是ssh設定問題,想說今天直接到Host來查看問題。 結果發現現在登入後完全不能下commad就會自動被登出。 不論是GUI介面還是tty都一樣有這問題,導致完全 ...

kali live on surface pro 失敗

Elvira avatar
By Elvira
at 2018-04-11T10:00
我使用 kali 2018.1 版本 再用rufus 做成支援 UEFI 的開機隨身碟 使用PC 測試是正常沒有問題的。pc 也是用UEFI 開機的。 但在surface pro 上面有出現grub 的選單, 但選了live 選項後就沒有任何動靜了。 surface 上已關掉security ,並且US ...

PCIe 重新啟動

Barb Cronin avatar
By Barb Cronin
at 2018-04-10T15:03
環境:ubuntu 14.04 小弟剛入門 Linux 環境 因工作需求,須插拔PCle的nvme ssd裝置,來重新辨識裝置 但無法像sata 可以直接熱拔,無須關電重開機,達到重新識別裝置。 目前pcie都是重開機後重新認裝置 想請問 有軟體方式 重新啟動pcie裝置,而不用關電重開機?? ※ ...

Linux Bonding免費課程

Tristan Cohan avatar
By Tristan Cohan
at 2018-04-09T19:14
請問有人知道Linux Bonding嗎? 剛剛逛到一個FB貼文,有免費課,感覺可以聽看看 2018年4月10日 星期二 20:00~21:00 『Linux Bonding的秘密』 https://goo.gl/ifFrQP 出處: https://m.facebook.com/story.ph ...

ubuntu 開指定版本matlab

Lydia avatar
By Lydia
at 2018-04-09T11:50
各位大神好 小的菜菜菜鳥 剛進入linux 想請問 我的電腦有裝兩的版本的matlab 如果用指令 matlab 就會打開最新版的 但我想打開舊版的 請問該怎麼做? 安裝 https://i.imgur.com/i21xs9c.jpg 有人說 在bin下面可找到 ./matlab 但我的是這樣 htt ...