如何在Ubuntu和Debian中安装中Indicator SysMonitor

ubuntu 让Indicator-Sysmonitor 在顶部面板显示上下行网速及CPU温度
我的图书馆
ubuntu 让Indicator-Sysmonitor 在顶部面板显示上下行网速及CPU温度
转自:http://a-nerd.info/?p=1377update:
先是安装Indicator-sysmonitor,也就是system monitor indicator
sudo add-apt-repository ppa:alexeftimie/ppa
sudo apt-get update
sudo apt-get install indicator-sysmonitor
默认只显示CPU、内存,要显示上下行网速和温度的话
sudo apt-get install dstat
sudo apt-get install acpi
下载,放入主目录,重命名为.sysmon,在设置界面按下图配置,Customize output中有{sysmon}就可以
下方为以前的版本,sysmon文件的由来及修改,可无视
sudo apt-get install dstat
mkdir -p ~/.Indicator-Sysmonitor-Scripts
cd ~/.Indicator-Sysmonitor-Scripts
wget http://webupd8.googlecode.com/files/sysmon_0.2.tar.gz
tar -xvf sysmon_0.2.tar.gz
在设置中选中Use &this command,输入:
$HOME/.Indicator-Sysmonitor-Scripts/sysmon
不过这样一来就不能显示CPU温度了。 安装acpi
sudo apt-get install acpi
a-nerd:~$ acpi -t
Thermal 0: ok, 49.0 degrees C
得到的结果中第16-20字符是CPU温度 此时需要稍微修改一下sysmon文件:
sudo gedit .Indicator-Sysmonitor-Scripts/sysmon
在“The Indicator Sysmonitor actual output”上方空白处加上:
#------------------- acpitemp --------------------------
if [ $temp = true ]; then
#将acpi -t这个命令显示出第16-20个字符即CPU温度赋给acpitemp
acpitemp=$(acpi -t| cut -c 16-20)°C
在“The Indicator Sysmonitor actual output”下方文本的末尾处加上:
$(if [ $temp = true ]; then echo \|Temp:$ fi)
#当temp为True时显示acpitemp即CPU温度
最后在Setting部分加上
以显示CPU温度。
如果感觉太占地方了可以去掉分隔符、简写Men/CPU/Temp等。 可以参考。
本文链接地址:
TA的最新馆藏
喜欢该文的人也喜欢有回复时邮件通知我&>&Ubuntu下的 indicator-sysmonitor
Ubuntu下的 indicator-sysmonitor
上传大小:7KB
Ubuntu下的 indicator-sysmonitor软件。
综合评分:0
下载个数:
{%username%}回复{%com_username%}{%time%}\
/*点击出现回复框*/
$(".respond_btn").on("click", function (e) {
$(this).parents(".rightLi").children(".respond_box").show();
e.stopPropagation();
$(".cancel_res").on("click", function (e) {
$(this).parents(".res_b").siblings(".res_area").val("");
$(this).parents(".respond_box").hide();
e.stopPropagation();
/*删除评论*/
$(".del_comment_c").on("click", function (e) {
var id = $(e.target).attr("id");
$.getJSON('/index.php/comment/do_invalid/' + id,
function (data) {
if (data.succ == 1) {
$(e.target).parents(".conLi").remove();
alert(data.msg);
$(".res_btn").click(function (e) {
var parentWrap = $(this).parents(".respond_box"),
q = parentWrap.find(".form1").serializeArray(),
resStr = $.trim(parentWrap.find(".res_area_r").val());
console.log(q);
//var res_area_r = $.trim($(".res_area_r").val());
if (resStr == '') {
$(".res_text").css({color: "red"});
$.post("/index.php/comment/do_comment_reply/", q,
function (data) {
if (data.succ == 1) {
var $target,
evt = e || window.
$target = $(evt.target || evt.srcElement);
var $dd = $target.parents('dd');
var $wrapReply = $dd.find('.respond_box');
console.log($wrapReply);
//var mess = $(".res_area_r").val();
var mess = resS
var str = str.replace(/{%header%}/g, data.header)
.replace(/{%href%}/g, 'http://' + window.location.host + '/user/' + data.username)
.replace(/{%username%}/g, data.username)
.replace(/{%com_username%}/g, data.com_username)
.replace(/{%time%}/g, data.time)
.replace(/{%id%}/g, data.id)
.replace(/{%mess%}/g, mess);
$dd.after(str);
$(".respond_box").hide();
$(".res_area_r").val("");
$(".res_area").val("");
$wrapReply.hide();
alert(data.msg);
}, "json");
/*删除回复*/
$(".rightLi").on("click", '.del_comment_r', function (e) {
var id = $(e.target).attr("id");
$.getJSON('/index.php/comment/do_comment_del/' + id,
function (data) {
if (data.succ == 1) {
$(e.target).parent().parent().parent().parent().parent().remove();
$(e.target).parents('.res_list').remove()
alert(data.msg);
//填充回复
function KeyP(v) {
var parentWrap = $(v).parents(".respond_box");
parentWrap.find(".res_area_r").val($.trim(parentWrap.find(".res_area").val()));
评论共有0条
综合评分:
积分/C币:3
VIP会员动态
CSDN下载频道资源及相关规则调整公告V11.10
下载频道用户反馈专区
下载频道积分规则调整V1710.18
spring mvc+mybatis+mysql+maven+bootstrap 整合实现增删查改简单实例.zip
资源所需积分/C币
当前拥有积分
当前拥有C币
输入下载码
为了良好体验,不建议使用迅雷下载
Ubuntu下的 indicator-sysmonitor
会员到期时间:
剩余下载个数:
剩余积分:0
为了良好体验,不建议使用迅雷下载
积分不足!
资源所需积分/C币
当前拥有积分
您可以选择
程序员的必选
绿色安全资源
资源所需积分/C币
当前拥有积分
当前拥有C币
为了良好体验,不建议使用迅雷下载
资源所需积分/C币
当前拥有积分
当前拥有C币
为了良好体验,不建议使用迅雷下载
资源所需积分/C币
当前拥有积分
当前拥有C币
您的积分不足,将扣除 10 C币
为了良好体验,不建议使用迅雷下载
无法举报自己的资源
你当前的下载分为234。
你还不是VIP会员
开通VIP会员权限,免积分下载
你下载资源过于频繁,请输入验证码
您因违反CSDN下载频道规则而被锁定帐户,如有疑问,请联络:!
若举报审核通过,可返还被扣除的积分
被举报人:
举报的资源分:
请选择类型
资源无法下载 ( 404页面、下载失败、资源本身问题)
资源无法使用 (文件损坏、内容缺失、题文不符)
侵犯版权资源 (侵犯公司或个人版权)
虚假资源 (恶意欺诈、刷分资源)
含色情、危害国家安全内容
含广告、木马病毒资源
*详细原因:
Ubuntu下的 indicator-sysmonitorIndex of /fossfreedom/indicator-sysmonitor/ubuntu/pool/main/i/indicator-sysmonitor
Index of /fossfreedom/indicator-sysmonitor/ubuntu/pool/main/i/indicator-sysmonitor}

我要回帖

更多关于 人人中彩票手机版 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信