ubuntu 9.10 conky问题求助(已解决)

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
xiaoqing58
帖子: 47
注册时间: 2010-01-14 16:33

ubuntu 9.10 conky问题求助(已解决)

#1

帖子 xiaoqing58 » 2010-03-10 16:05

安装后出现显示的子都是方块。 原文地址http://www.ubuntuchina.com/viewthread.php?tid=3561 因为很菜 我是照搬的。

# set to yes if you want Conky to be forked in the background
background no

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
#font 8x13
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
#xftfont Bitstream Vera Sans Mono:size=8
xftfont Monospace:size=8

own_window_transparent yes
own_window_colour hotpink
# Text alpha when using Xft
xftalpha 0.8

on_bottom yes

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 1
# Create own window instead of using desktop (required in nautilus)
own_window yes
#If own_window is yes, you may use type normal, desktop or override
#own_window_type normal
#own_window_type desktop
own_window_type override

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
#minimum_size 280 5
maximum_width 308

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 10

# border margins
border_margin 4

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color white
default_outline_color white

# Text alignment, other possible values are commented
#alignment top_left
#minimum_size 10 10
gap_x 10
gap_y 10
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text

# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer no

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# boinc (seti) dir
# seti_dir /opt/seti

# Possible variables to be used:
#
# Variable Arguments Description
# acpiacadapter ACPI ac adapter state.
# acpifan ACPI fan state
# acpitemp ACPI temperature.
# adt746xcpu CPU temperature from therm_adt746x
# adt746xfan Fan speed from therm_adt746x
# battery (num) Remaining capasity in ACPI or APM
# battery. ACPI battery number can be
# given as argument (default is BAT0).
# buffers Amount of memory buffered
# cached Amount of memory cached
# color (color) Change drawing color to color
# cpu CPU usage in percents
# cpubar (height) Bar that shows CPU usage, height is
# bar's height in pixels
# downspeed net Download speed in kilobytes
# downspeedf net Download speed in kilobytes with one
# decimal
# exec shell command Executes a shell command and displays
# the output in torsmo. warning: this
# takes a lot more resources than other
# variables. I'd recommend coding wanted
# behaviour in C and posting a patch :-).
# execi interval, shell Same as exec but with specific interval.
# command Interval can't be less than
# update_interval in configuration.
# fs_bar (height), (fs) Bar that shows how much space is used on
# a file system. height is the height in
# pixels. fs is any file on that file
# system.
# fs_free (fs) Free space on a file system available
# for users.
# fs_free_perc (fs) Free percentage of space on a file
# system available for users.
# fs_size (fs) File system size
# fs_used (fs) File system used space
# hr (height) Horizontal line, height is the height in
# pixels
# i2c (dev), type, n I2C sensor from sysfs (Linux 2.6). dev
# may be omitted if you have only one I2C
# device. type is either in (or vol)
# meaning voltage, fan meaning fan or temp
# meaning temperature. n is number of the
# sensor. See /sys/bus/i2c/devices/ on
# your local computer.
# kernel Kernel version
# loadavg (1), (2), (3) System load average, 1 is for past 1
# minute, 2 for past 5 minutes and 3 for
# past 15 minutes.
# machine Machine, i686 for example
# mails Mail count in mail spool. You can use
# program like fetchmail to get mails from
# some server using your favourite
# protocol. See also new_mails.
# mem Amount of memory in use
# membar (height) Bar that shows amount of memory in use
# memmax Total amount of memory
# memperc Percentage of memory in use
# new_mails Unread mail count in mail spool.
# nodename Hostname
# outlinecolor (color) Change outline color
# pre_exec shell command Executes a shell command one time before
# torsmo displays anything and puts output
# as text.
# processes Total processes (sleeping and running)
# running_processes Running processes (not sleeping),
# requires Linux 2.6
# shadecolor (color) Change shading color
# stippled_hr (space), Stippled (dashed) horizontal line
# (height)
# swapbar (height) Bar that shows amount of swap in use
# swap Amount of swap in use
# swapmax Total amount of swap
# swapperc Percentage of swap in use
# sysname System name, Linux for example
# time (format) Local time, see man strftime to get more
# information about format
# totaldown net Total download, overflows at 4 GB on
# Linux with 32-bit arch and there doesn't
# seem to be a way to know how many times
# it has already done that before torsmo
# has started.
# totalup net Total upload, this one too, may overflow
# updates Number of updates (for debugging)
# upspeed net Upload speed in kilobytes
# upspeedf net Upload speed in kilobytes with one
# decimal
# uptime Uptime
# uptime_short Uptime in a shorter format
#
# seti_prog Seti@home current progress
# seti_progbar (height) Seti@home current progress bar
# seti_credit Seti@hoome total user credit


# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
#${font Dungeon:style=Bold:pixelsize=10}I can change the font as well
#${font Verdana:size=10}as many times as I choose
#${font Perry:size=10}Including UTF-8,
#${font Luxi Mono:size=10}justo como este texto que o google traduz f锚z o portugu锚s
# stuff after 'TEXT' will be formatted on screen
#${font Grunge:size=12}${time %a %b %d}${alignr -25}${time %k:%M}

TEXT
${color lightgrey}${font Monospace:style=Bold:size=8}${time %b%d鏃� 鏄熸湡%a}${alignr}${time %p%l:%M:%S}
${color #ddaa00}${exec whoami}${color snow} on ${color #88aadd}$nodename${alignr}$sysname $kernel
${color #88aadd}$stippled_hr
${color lightgrey}Uptime:$color $uptime ${color lightgrey}- Load:$color $loadavg
${color lightgrey}CPU Usage:${offset 50}${color}${acpitemp}掳C ${color lightgrey}Disk IO:${color}${alignr}${diskio}/s
${color #5000a0} ${cpu}% ${cpubar}
${color black}${cpugraph 25,150 000000 5000a0}${alignr}${color black}${diskiograph 25,150 5000a0 000000}
${color lightgrey}RAM Usage:$color $mem/$memmax - $memperc% ${color #88aadd}$membar
${color lightgrey}Swap Usage:$color $swap/$swapmax - $swapperc% ${color #88aadd}${swapbar}
${color #88aadd}$stippled_hr
${color lightgrey}Networking:$alignr${color snow}${addr ppp0}
${color lightgrey}Down:${color #8844ee} ${downspeed eth0} k/s${color lightgrey} ${offset 70}Up:${color #22ccff} ${upspeed eth0} k/s
${color black}${downspeedgraph eth0 25,150 ff0000 0000ff} $alignr${color black}${upspeedgraph eth0 25,150 0000ff ff0000}
${color lightgrey}File systems:
/ $color${fs_used /}/${fs_size /} ${color #000000}${fs_bar /}
${color lightgrey}/home $color${fs_used /home}/${fs_size /home} ${color #000000}${fs_bar /home}
${color #88aadd}$stippled_hr
${color lightgrey}Processes:$color $processes ${color grey}Running:$color $running_processes
${color}CPU usage PID CPU% MEM%
${color #ddaa00} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color}Mem usage
${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color #88aadd}$stippled_hr
${font Monospace:style=Bold:pixelsize=12}${color #88aadd}${alignc}$mpd_status $mpd_elapsed-$mpd_length
${color #88aadd}$mpd_bar
${color #88aadd}${alignc}$mpd_smart
$stippled_hr
${rss http://feed.feedsky.com/my_cnbeta 5 item_titles 5}


目前还不会贴图,见笑了。
上次由 xiaoqing58 在 2010-03-11 15:08,总共编辑 1 次。
水!树!
头像
tenzu
论坛版主
帖子: 36924
注册时间: 2008-11-21 20:26

Re: ubuntu 9.10 conky问题求助

#2

帖子 tenzu » 2010-03-10 16:10

字体换成能正确显示中文的,比如wenquanyi zenhei
开头有#的都是注释行,没必要帖
xiaoqing58
帖子: 47
注册时间: 2010-01-14 16:33

Re: ubuntu 9.10 conky问题求助

#3

帖子 xiaoqing58 » 2010-03-10 16:23

:em01 如何把字体换成正确显示中文的呢?如何换成wenquanyi zenhei的呢?能给个详细步骤吗?
我现在打算不用WINDOWS了,英文水平初中没满。不知道以后能不能会用linxu。如果学不会,计算机这东西我以后打算不怎么用了。除非必要。
水!树!
头像
tenzu
论坛版主
帖子: 36924
注册时间: 2008-11-21 20:26

Re: ubuntu 9.10 conky问题求助

#4

帖子 tenzu » 2010-03-10 16:37

viewtopic.php?f=33&t=168040
这个帖里有简单配置,字体已经换成zenhei了
需要其他东西的话照猫画虎吧

代码: 全选

use_spacer right
use_xft yes
font wenquanyi zenhei:size=8
xftfont wenquanyi zenhei:size=8
override_utf8_locale yes
update_interval 1.0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 206 5
maximum_width 400
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_right
gap_x 10
gap_y 30
cpu_avg_samples 2
uppercase no # set to yes if you want all text to be in uppercase

TEXT
${font wenquanyi zenhei:style=Bold:pixelsize=30}${alignc}${time %H:%M:%S}
${font wenquanyi zenhei:pixelsize=18}${alignc}${time %b%d日 星期%a}${font wenquanyi zenhei:pixelsize=12}
${color #ffd700}${hr 1}$color
${color #98c2c7}主机名:${color #db7093} $alignr$nodename
${color #98c2c7}内核: ${color #db7093}$alignr$kernel
${color #98c2c7}已开机: ${color #db7093}$alignr$uptime
${color #98c2c7}IP地址: ${color #db7093} ${alignr} ${addr eth0}
${color #98c2c7}CPU使用率: ${color #db7093} $alignr$cpu%
${color #78af78}$cpubar
${color #ddaa00} ${top name 1}$alignr ${top cpu 1}
${color lightgrey} ${top name 2}$alignr ${top cpu 2}
${color lightgrey} ${top name 3} $alignr${top cpu 3}
${color #98c2c7}物理内存:${color #4169e1}$alignr ${color}$mem ${color #98c2c7}/${color}$memmax${color #4169e1}${color #db7093}$memperc%
${color #78af78}${membar}
${color #98c2c7}根分区: ${color}${alignr}${fs_free /} / ${fs_size /}
${color #78af78}${fs_bar 4 /}
${color #98c2c7}Home分区: ${color}${alignr}${fs_free /home} / ${fs_size /home}
${color #78af78}${fs_bar 4 /home}
${color #98c2c7}下载速度:${color} ${downspeed eth0} k/s
${color #98c2c7}上传速度:${color} ${upspeed eth0} k/s
${color #ffd700}${hr 1}$color
头像
qiang_liu8183
论坛版主
帖子: 10699
注册时间: 2006-09-10 22:36
系统: Arch Debian
来自: 北京

Re: ubuntu 9.10 conky问题求助

#5

帖子 qiang_liu8183 » 2010-03-10 17:44

楼主是来给ubuntuchina做广告的吧?
看破、放下、自在、随缘、念佛
真诚、清净、平等、正觉、慈悲
头像
wangks18
帖子: 1151
注册时间: 2008-10-27 22:28
来自: 暮色酒馆

Re: ubuntu 9.10 conky问题求助

#6

帖子 wangks18 » 2010-03-10 17:47

qiang_liu8183 写了:楼主是来给ubuntuchina做广告的吧?
:em99
优猫饼
头像
黄美姬
帖子: 8428
注册时间: 2009-10-08 11:15
来自: 大城市铁岭

Re: ubuntu 9.10 conky问题求助

#7

帖子 黄美姬 » 2010-03-10 17:50

wangks18 写了:
qiang_liu8183 写了:楼主是来给ubuntuchina做广告的吧?
:em99
:em04
附件
抓图18.png
我们是命运的妓女,它把我们都嫖了

N卡驱动:http://www.nvidia.cn/Download/index.aspx?lang=cn
极品飞车:http://www.geforce.cn/optimize/optimal- ... ts-450-ops
孤岛危机优化设置:http://www.geforce.cn/optimize/optimal- ... tx-450-ops
:cp /etc/skel/.bashrc ~/
PS1="\[\e]2;\u@\H \w\a\e[32;1m\]\T$\[\e[0m\] "
http://cdimage.ubuntu.com/
http://releases.ubuntu.com/
xiaoqing58
帖子: 47
注册时间: 2010-01-14 16:33

Re: ubuntu 9.10 conky问题求助

#8

帖子 xiaoqing58 » 2010-03-11 6:43

qiang_liu8183 写了:楼主是来给ubuntuchina做广告的吧?
绝无此意,我倒是真希望用ubuntu的人越来越多。希望ubuntu的中文越来越好。
水!树!
xiaoqing58
帖子: 47
注册时间: 2010-01-14 16:33

Re: ubuntu 9.10 conky问题求助

#9

帖子 xiaoqing58 » 2010-03-11 6:57

谢谢tenzu 给出了详细的。
不过我还是特别喜欢tenzu的头像,乍一看很普通,仔细一看不得了,心跳跳。 :em04
水!树!
头像
tenzu
论坛版主
帖子: 36924
注册时间: 2008-11-21 20:26

Re: ubuntu 9.10 conky问题求助

#10

帖子 tenzu » 2010-03-11 8:56

开始我也觉得是做广告的,不过本着宁可放过一千不可错杀一个的原则,还是回答了

LZ可以YY我头像,不许YY我本人! :em35
xiaoqing58
帖子: 47
注册时间: 2010-01-14 16:33

Re: ubuntu 9.10 conky问题求助(已解决)

#11

帖子 xiaoqing58 » 2010-03-11 15:10

tenzu 头像真的给人一种美的享受。一点不夸张
水!树!
xiaoqing58
帖子: 47
注册时间: 2010-01-14 16:33

Re: ubuntu 9.10 conky问题求助

#12

帖子 xiaoqing58 » 2010-03-11 15:14

tenzu 写了:viewtopic.php?f=33&t=168040
这个帖里有简单配置,字体已经换成zenhei了
需要其他东西的话照猫画虎吧

代码: 全选

use_spacer right
use_xft yes
font wenquanyi zenhei:size=8
xftfont wenquanyi zenhei:size=8
override_utf8_locale yes
update_interval 1.0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 206 5
maximum_width 400
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_right
gap_x 10
gap_y 30
cpu_avg_samples 2
uppercase no # set to yes if you want all text to be in uppercase

TEXT
${font wenquanyi zenhei:style=Bold:pixelsize=30}${alignc}${time %H:%M:%S}
${font wenquanyi zenhei:pixelsize=18}${alignc}${time %b%d日 星期%a}${font wenquanyi zenhei:pixelsize=12}
${color #ffd700}${hr 1}$color
${color #98c2c7}主机名:${color #db7093} $alignr$nodename
${color #98c2c7}内核: ${color #db7093}$alignr$kernel
${color #98c2c7}已开机: ${color #db7093}$alignr$uptime
${color #98c2c7}IP地址: ${color #db7093} ${alignr} ${addr eth0}
${color #98c2c7}CPU使用率: ${color #db7093} $alignr$cpu%
${color #78af78}$cpubar
${color #ddaa00} ${top name 1}$alignr ${top cpu 1}
${color lightgrey} ${top name 2}$alignr ${top cpu 2}
${color lightgrey} ${top name 3} $alignr${top cpu 3}
${color #98c2c7}物理内存:${color #4169e1}$alignr ${color}$mem ${color #98c2c7}/${color}$memmax${color #4169e1}${color #db7093}$memperc%
${color #78af78}${membar}
${color #98c2c7}根分区: ${color}${alignr}${fs_free /} / ${fs_size /}
${color #78af78}${fs_bar 4 /}
${color #98c2c7}Home分区: ${color}${alignr}${fs_free /home} / ${fs_size /home}
${color #78af78}${fs_bar 4 /home}
${color #98c2c7}下载速度:${color} ${downspeed eth0} k/s
${color #98c2c7}上传速度:${color} ${upspeed eth0} k/s
${color #ffd700}${hr 1}$color
这个效果非常好。
水!树!
回复