Autor Tópico: Exibicao de recursos do sistema no desktop  (Lida 11239 vezes)

Offline jurandir

  • Usuário Ubuntu
  • *
  • Mensagens: 5
    • Ver perfil
Exibicao de recursos do sistema no desktop
« Online: 10 de Julho de 2007, 11:21 »
Já vi fotos da tela de algumas distribuicoes (Debian, inclusive) com informacoes do tipo: uso do processador, memoria, sistema de arquivos na tela de fundo (area de trabalho).Tem jeito de fazer isso no ubuntu?

arlei

  • Visitante
Re: Exibicao de recursos do sistema no desktop
« Resposta #1 Online: 10 de Julho de 2007, 11:28 »
Ola amigo.

Gdesklets.
http://ubuntuforum-br.org/index.php?topic=21572.0

Se fizer uma busca aqui mesmo no fórum encontrará mais inúmeros tópicos a respeito.

T+
Arlei

Offline joao_as

  • Usuário Ubuntu
  • *
  • Mensagens: 47
    • Ver perfil
Re: Exibicao de recursos do sistema no desktop
« Resposta #2 Online: 10 de Julho de 2007, 14:36 »
Já usei também Screenlets e atualmente uso Conky, que é o mais leve da categoria, mas totalmente modo texto.

Offline clcampos

  • Administrador
  • Usuário Ubuntu
  • *****
  • Mensagens: 10.790
  • .:: User Linux #439596 ::.
    • Ver perfil
Re: Exibicao de recursos do sistema no desktop
« Resposta #3 Online: 10 de Julho de 2007, 14:39 »
Já usei também Screenlets e atualmente uso Conky, que é o mais leve da categoria, mas totalmente modo texto.

Coloca um screenshot da sua tela ai. Gostaria de ver como funciona.
Cristiano/Timóteo - MG
.: Como Fazer Perguntas de Forma Inteligente :.                
Com dúvida? pesquise!

Offline joao_as

  • Usuário Ubuntu
  • *
  • Mensagens: 47
    • Ver perfil
Re: Exibicao de recursos do sistema no desktop
« Resposta #4 Online: 10 de Julho de 2007, 14:55 »
Conky é bastante personalizável:



Meu PC com Screenlets você pode conferir em: http://ubuntuforum-br.org/index.php?topic=20853.0

Offline clcampos

  • Administrador
  • Usuário Ubuntu
  • *****
  • Mensagens: 10.790
  • .:: User Linux #439596 ::.
    • Ver perfil
Re: Exibicao de recursos do sistema no desktop
« Resposta #5 Online: 10 de Julho de 2007, 15:15 »
Conky é bastante personalizável:



Meu PC com Screenlets você pode conferir em: http://ubuntuforum-br.org/index.php?topic=20853.0

joao_as já te pedindo demais (o que não deixa de ser normal) tem como postar o conteúdo do arquivo ~/.conkyrc???
Cristiano/Timóteo - MG
.: Como Fazer Perguntas de Forma Inteligente :.                
Com dúvida? pesquise!

Offline samuelbh

  • Usuário Ubuntu
  • *
  • Mensagens: 582
    • Ver perfil
Re: Exibicao de recursos do sistema no desktop
« Resposta #6 Online: 10 de Julho de 2007, 15:16 »
Tem também o monitor de sistema do Gnome que fica na barra de tarefas. Acho melhor pois posso ver o consumo de CPU, Swap, Memória e rede ao mesmo tempo e com janelas abertas. Já vem por padrão no Ubuntu.
Assinatura removida pela Equipe do Fórum

Offline joao_as

  • Usuário Ubuntu
  • *
  • Mensagens: 47
    • Ver perfil
Re: Exibicao de recursos do sistema no desktop
« Resposta #7 Online: 10 de Julho de 2007, 15:31 »
Conky é bastante personalizável:



Meu PC com Screenlets você pode conferir em: http://ubuntuforum-br.org/index.php?topic=20853.0

joao_as já te pedindo demais (o que não deixa de ser normal) tem como postar o conteúdo do arquivo ~/.conkyrc???

Sem problema algum, segue abaixo um bem explicativo (em inglês) que peguei no próprio site do projeto, só tive que instalar o sensors, porque não estava conseguindo ver a temperatura da minha CPU e improvisei um código para isso (sensors|grep +|cut -c 15-16), vlw?

Código: [Selecionar]
# conky configuration
# edited by darcon@gmail.com

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

# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*

# Use Xft?
use_xft yes

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

# Text alpha when using Xft
xftalpha 0.8

# Print everything to console?
# out_to_console no

# mail spool
#mail_spool $MAIL

# Update interval in seconds
update_interval 1.0

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window no

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

# Minimum size of text area
minimum_size 1000 5

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 8

# border margins
border_margin 4

# border width
border_width 1

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

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 0
gap_y 1

# Subtract file system buffers from used memory?
no_buffers yes

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

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale no


# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer yes
#Note: doesn't work in conky 1.2 =(

#   mldonkey_hostname     Hostname for mldonkey stuff, defaults to localhost
#   mldonkey_port         Mldonkey port, 4001 default
#   mldonkey_login        Mldonkey login, default none
#   mldonkey_password     Mldonkey password, default none


# Possible variables to be used:
#
#      Variable         Arguments                  Description               

# addr              (interface)   IP address for an interface
# acpiacadapter                   ACPI ac adapter state.                   
# acpifan                         ACPI fan state                           
# acpitemp                        ACPI temperature.                       
# adt746xcpu                      CPU temperature from therm_adt746x       
# adt746xfan                      Fan speed from therm_adt746x             
# alignr            (num)         Right-justify text, with space of N
# alignc                          Align text to centre
# 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                 
# cpugraph          (height),(width) (gradient colour 1) (gradient colour 2)
# CPU usage graph, with optional colours in hex,
# minus the #.
# downspeed         net           Download speed in kilobytes             
# downspeedf        net           Download speed in kilobytes with one     
# decimal                                 
# downspeedgraph    net (height),(width) (gradient colour 1) (gradient colour 2)
# Download speed graph, colours defined in
# hex, minus the #.
# exec              shell command Executes a shell command and displays   
# the output in conky. warning: this     
# takes a lot more resources than other   
# variables. I'd recommend coding wanted   
# behaviour in C and posting a patch :-). 
# execbar           shell command Same as exec, except if the first value
# return is a value between 0-100, it
# will use that number for a bar.
# The size for the bar is currently fixed,
# but that may change in the future.
# execgraph         shell command Same as execbar, but graphs values
# execi             interval, shell command
Same as exec but with specific interval.
# Interval can't be less than             
# update_interval in configuration.       
# font   font Specify a different font.  Only applies
# to one line.
# 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/tempf (first in C, second in F)
# meaning temperature. n is number of the 
# sensor. See /sys/bus/i2c/devices/ on     
# your local computer.                     
# if_running        (process)     if PROCESS is running, display
# everything if_running and the matching $endif
# if_existing       (file)        if FILE exists, display everything between
# if_existing and the matching $endif
# if_mounted        (mountpoint)  if MOUNTPOINT is mounted, display everything between
# if_mounted and the matching $endif
# else                            Text to show if any of the above are not true
# kernel                          Kernel version                         
# linkstatus        (interface)   Get the link status for wireless connections
# 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
#
# metar_ob_time
# metar_temp
# metar_tempf                     Temp in F
# metar_windchill
# metar_dew_point                 There are a bunch of these
# metar_rh                        and they are self-explanatory
# metar_windspeed
# metar_winddir
# metar_swinddir
# metar_cloud
# metar_u2d_time
#
# ml_upload_counter               total session upload in mb
# ml_download_counter             total session download in mb
# ml_nshared_files                number of shared files
# ml_shared_counter               total session shared in mb, buggy
# in some mldonkey versions
# ml_tcp_upload_rate              tcp upload rate in kb/s
# ml_tcp_download_rate            tcp download rate in kb/s
# ml_udp_upload_rate              udp upload rate in kb/s
# ml_udp_download_rate            udp download rate in kb/s
# ml_ndownloaded_files            number of completed files
# ml_ndownloading_files           number of downloading files
#
# mpd_artist Artist in current MPD song
# (must be enabled at compile)
# mpd_album Album in current MPD song
# mpd_bar           (height)      Bar of mpd's progress
# mpd_bitrate                     Bitrate of current song
# mpd_status                      Playing, stopped, et cetera.
# mpd_title Title of current MPD song
# mpd_vol MPD's volume
# mpd_elapsed                     Song's elapsed time
# mpd_length                      Song's length
# mpd_percent                     Percent of song's progress
# 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
# conky 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           
# offset            pixels        Move text over by N pixels
# tail              logfile, lines (interval)
# Displays last N lines of supplied text
# text file.  If interval is not supplied,
# Conky assumes 2x Conky's interval.
# Max of 30 lines.
# Max of 30 lines can be displayed.
# 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 conky   
# has started.                           
# top               type, num     This takes arguments in the form:
# top <name> <number>
# Basically, processes are ranked from
# highest to lowest in terms of cpu
# usage, which is what <num> represents.
# The types are: "name", "pid", "cpu", and
# "mem".
# There can be a max of 10 processes listed.
# top_mem           type, num     Same as top, except sorted by mem usage
# instead of cpu
# 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                                 
# upspeedgraph      net (height),(width)  (gradient colour 1) (gradient colour 2)
# Upload speed graph, colours defined in
# hex, minus the #.
# 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

# stuff after 'TEXT' will be formatted on screen

TEXT


${offset 0}${color slate grey}Ubuntu 7.04 - Feisty Fawn
${offset 0}${color }Linux for Human Beings!

${offset 0}${color slate grey}${time %Z, } ${color }${time %H:%M:%S}
${offset 0}${color slate grey}${time %a, } ${color }${time %e %B %G}
${offset 0}${color slate grey}UpTime: ${color }$uptime
${offset 0}${color slate grey}Kernel: ${color }$kernel

${offset 0}${color slate grey}CPU:${color } $cpu% ${color slate grey}    Temp:${color } ${exec sensors|grep +|cut -c 15-16} C
${offset 0}${cpugraph 20,155 000000 ffffff}
${offset 0}${color slate grey}Load: ${color }$loadavg
${offset 0}${color slate grey}Processes: ${color }$processes${color slate grey}Running: ${color }$running_processes
${offset 0}${color slate grey}Highest CPU:
${offset 0}${color lightgrey} ${top name 1}${top cpu 1}
${offset 0}${color lightgrey} ${top name 2}${top cpu 2}
${offset 0}${color lightgrey} ${top name 3}${top cpu 3}

${offset 0}${color slate grey}MEM: ${color }$memperc% $mem/$memmax
${offset 0}${membar 3,155}
${offset 0}${color slate grey}SWAP: ${color }$swapperc% $swap/$swapmax
${offset 0}${swapbar 3,155}
${offset 0}${color slate grey}Highest MEM:
${offset 0}${color lightgrey} ${top_mem name 1}${top_mem mem 1}
${offset 0}${color lightgrey} ${top_mem name 2}${top_mem mem 2}
${offset 0}${color lightgrey} ${top_mem name 3}${top_mem mem 3}

${offset 0}${color slate grey}NET:
${offset 0}${color}Up: ${color }${upspeed eth0} k/s
${offset 0}${upspeedgraph eth0 20,155 000000 ffffff}
${offset 0}${color}Down: ${color }${downspeed eth0}k/s${color}
${offset 0}${downspeedgraph eth0 20,155 000000 ffffff}

${offset 0}${color slate grey}SYSTEM: ${color }${fs_used /}/${fs_size /}
${offset 0}${fs_bar 3,155 /}
${offset 0}${color slate grey}HOME: ${color }${fs_used /home}/${fs_size /home}
${offset 0}${fs_bar 3,155 /home}
${offset 0}${color slate grey}DADOS: ${color }${fs_used /media/hda5}/${fs_size /media/hda5}
${offset 0}${fs_bar 3,155 /media/hda5}

${offset 0}${color }${exec cal}

${offset 0}${color slate grey}I NEVER GIVE UP!
${offset 0}${color }joao_as

Offline clcampos

  • Administrador
  • Usuário Ubuntu
  • *****
  • Mensagens: 10.790
  • .:: User Linux #439596 ::.
    • Ver perfil
Re: Exibicao de recursos do sistema no desktop
« Resposta #8 Online: 10 de Julho de 2007, 15:51 »
Obrigado. Estou brincando com o arquivo aqui e vendo as alterações que da para fazer.
Cristiano/Timóteo - MG
.: Como Fazer Perguntas de Forma Inteligente :.                
Com dúvida? pesquise!

Offline PP188

  • Usuário Ubuntu
  • *
  • Mensagens: 64
    • Ver perfil
Re: Exibicao de recursos do sistema no desktop
« Resposta #9 Online: 21 de Agosto de 2007, 23:36 »
Obrigado. Estou brincando com o arquivo aqui e vendo as alterações que da para fazer.

kra no seu conky.. ele fica piscando?
será q tem como mudar isso?

T+

Offline Flaviodbz

  • Usuário Ubuntu
  • *
  • Mensagens: 98
    • Ver perfil
Re: Exibicao de recursos do sistema no desktop
« Resposta #10 Online: 09 de Setembro de 2007, 01:19 »
entao eu instalei o conky so que ele fica no canto inferior esquerdo e gostaria de mudar para o canto superior esquerdo como faço ???

Jabber:flaviodbz@jabber.org

Offline s4suk3

  • Usuário Ubuntu
  • *
  • Mensagens: 78
    • Ver perfil
Re: Exibicao de recursos do sistema no desktop
« Resposta #11 Online: 09 de Setembro de 2007, 13:46 »
Obrigado. Estou brincando com o arquivo aqui e vendo as alterações que da para fazer.

kra no seu conky.. ele fica piscando?
será q tem como mudar isso?

T+
Bota teu xorg pra carregar a extensão dbe:
Embaixo de:
Código: [Selecionar]
Section "Module"Você coloca:
Código: [Selecionar]
      Load           "dbe" Isso, é claro, no /etc/X11/xorg.conf. Depois é só reiniciar o X(ctrl+alt+backspace)
Pentium 4 2.8ghz - 512 RAM DDR 400Mhz -  2 HDs 20gb 7200rpm IDE - Radeon 9200 PRO 128/64 - Arch Linux 2007.09 "Core Dump"
-
Humor, Linux, Software Livre e o resto :P
http://sryche.wordpress.com

Offline RaphaelSantos

  • Usuário Ubuntu
  • *
  • Mensagens: 89
    • Ver perfil
Re: Exibicao de recursos do sistema no desktop
« Resposta #12 Online: 10 de Setembro de 2007, 12:23 »
joao_as
instalei o conky... fui no terminal e digitei apenas conky e ele mostrou na tela algumas informações, porem vem minha duvida...na sua screen tem muito mas opções, voce poderia passar uma lista de parametros ou dizer onde configuro pra mostrar mais opções???
e como move ele de lugar? ele ficou no canto inferior esquerdo :(

Offline leandromdelima

  • Usuário Ubuntu
  • *
  • Mensagens: 272
  • My fate to live and die in the shadows.
    • Ver perfil
Re: Exibicao de recursos do sistema no desktop
« Resposta #13 Online: 11 de Setembro de 2007, 16:17 »
joao_as
instalei o conky... fui no terminal e digitei apenas conky e ele mostrou na tela algumas informações, porem vem minha duvida...na sua screen tem muito mas opções, voce poderia passar uma lista de parametros ou dizer onde configuro pra mostrar mais opções???
e como move ele de lugar? ele ficou no canto inferior esquerdo :(


Copia o arquivo .conkyrc que ele passou que fica igual. 

Só não estou conseguindo colocar na dirieta. No arquivo tá assim:

Código: [Selecionar]
# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

top_right deveria ser topo à direita, mas ele insiste em ficar na esquerda.  Com isso ele está cobrindo os ícones da área de trabalho.
Alguém sabe pq?
« Última modificação: 11 de Setembro de 2007, 16:24 por leandromdelima »
Quando eu avançar, avancem comigo.  Se eu parar, me empurrem para frente.  Se eu der meia volta, matem-me.

Offline Roberto Ramos

  • Usuário Ubuntu
  • *
  • Mensagens: 82
    • Ver perfil
    • http://www.trincadeas.com.br
Re: Exibicao de recursos do sistema no desktop
« Resposta #14 Online: 11 de Setembro de 2007, 19:35 »
estou com o mesmo problema do leandro, quando aplico para ele ficar na direita ele fica no meio do desktop e n vai mais quando aplico para a esquerda ele ta indo de boa...podem explicar isso?  ;)