在 Ubuntu 11.04 顶栏上显示网络速度


由于 Ubuntu Natty Unity 界面取消了对 Gnome Applet 的支持,所以之前的很多软件都无法使用了。比如之前一直在用的 netspeed ,可以在顶部面板显示当前的网络速度,现在就无法在 Ubuntu 11.04 中使用。

不过现在,WebUpd8 的作者给出了一个解决方案,通过 indicator-sysmonitor 加上自已编写的脚本来实现这一功能。

- 方法如下:

1 安装 indicator-sysmonitor 及 dstat

sudo add-apt-repository ppa:alexeftimie/ppa
sudo apt-get update
sudo apt-get install indicator-sysmonitor

2 下载脚本

mkdir -p ~/scripts && cd ~/scripts
wget http://webupd8.googlecode.com/files/sysmon_0.1.tar.gz
tar -xvf sysmon_0.1.tar.gz

3 运行并设置 indicator-sysmonitor

选择 "Use this command",然后在文本框中输入

$HOME/scripts/sysmon

4 关闭及重启 indicator-sysmonitor

killall indicator-sysmonitor

5 如果有需要的话你还可以配置一下脚本,来选择是否要显示 CPU 或 内存使用状态

gedit ~/scripts/sysmon

相应选项如下

#settings:
netspeed=true
ram=true
cpu=false

另外,为了让它开机自动启动,你还需要在“启动应用程序”设置中添加一下。

PS: 这里有一个 Chrome 插件,可以让滚动条变为 Overlay Scrollbar 样式。

相关内容