logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 10-09-2017 15:26:52

Debian Alain
Membre
Lieu : Bretagne
Distrib. : sid (unstable) / bullseye (stable)
Noyau : Linux sid 6.4.0-3-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

[résolu] conky et les disques durs

bonjour ,

je cherche , sous conky , à  afficher l'espace occupé et  l'espace total de chacun de mes  disques .

j'y suis arrivé pour sdc , sde et sdf

mais pas pour sda , sdb et sdd .

je pense  que je ne maîtrise pas cette histoire de "point de montage"

quelqu'un pourrait il m'aider ?

$ cat /etc/conky/conky.conf



-- vim: ts=4 sw=4 noet ai cindent syntax=lua
--[[
Conky, a system monitor, based on torsmo

Any original torsmo code is licensed under the BSD license

All code written since the fork of torsmo is licensed under the GPL

Please see COPYING for details

Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
Copyright (c) 2005-2012 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
All rights reserved.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
]]

conky.config = {
    alignment = 'top_left',
    background = false,
    border_width = 1,
    cpu_avg_samples = 2,
  default_color = 'white',
    default_outline_color = 'white',
    default_shade_color = 'white',
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    use_xft = true,
    font = 'DejaVu Sans Mono:size=12',
    gap_x = 5,
    gap_y = 60,
    minimum_height = 5,
  minimum_width = 5,
    net_avg_samples = 2,
    no_buffers = true,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,
    own_window = true,
    own_window_class = 'Conky',
    own_window_type = 'desktop',
    stippled_borders = 0,
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    show_graph_scale = false,
    show_graph_range = false
}

conky.text = [[
${scroll 16 $nodename - $sysname $kernel on $machine | }
$hr
${color grey}Uptime:$color $uptime
${color grey}Frequency (in MHz):$color $freq
${color grey}Frequency (in GHz):$color $freq_g
${color green}RAM Usage:$color $mem/$memmax - $memperc% ${color green} ${membar 4}
${color green}Swap Usage:$color $swap/$swapmax - $swapperc% ${color green} ${swapbar 4}
${color red}CPU Usage:$color $cpu% ${color red} ${cpubar 4}
${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
$hr
${color yellow}File systems:
 / $color${fs_used /}/${fs_size /} ${color yellow} ${fs_bar 6 /}
 /tmp $color${fs_used /tmp}/${fs_size /tmp} ${color yellow} ${fs_bar 6 /tmp}
 /var $color${fs_used /var}/${fs_size /var} ${color yellow} ${fs_bar 6 /var}
 /sda $color${fs_used /dev/sda}/${fs_size /dev/sda} ${color yellow} ${fs_bar /dev/sda}
 /sdb $color${fs_used /dev/sdb}/${fs_size /dev/sdb} ${color yellow} ${fs_bar /dev/sdb}
 /sdc $color${fs_used /media/alain/CLONEZILLA}/${fs_size /media/alain/CLONEZILLA} ${color yellow} ${fs_bar 6 /media/alain/CLONEZILLA}
 /sdd $color${fs_used /media/alain/HDD EXT 2}/${fs_size /media/alain/HDD EXT 2} ${color yellow} ${fs_bar 6 /media/alain/HDD EXT 2}
 /sde $color${fs_used /media/alain/HDD EXT 3}/${fs_size /media/alain/HDD EXT 3} ${color yellow} ${fs_bar 6 /media/alain/HDD EXT 3}
 /sdf $color${fs_used /media/alain/HDD EXT 4}/${fs_size /media/alain/HDD EXT 4} ${color yellow} ${fs_bar 6 /media/alain/HDD EXT 4}
${color grey}Networking:
Up:$color ${upspeed enp3s0} ${color grey} - Down:$color ${downspeed enp3s0}
$hr
${color grey}Name              PID   CPU%   MEM%
${color lightgrey} ${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 lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
]]
 



voilà ce que ça  donne :

1505053339.png

et quand j'aurai réussi à bien afficher la capacité  des disques  durs  , il faudra encore que j'affiche leur température ....

pour sdd , les  données sont bonnes mais le graphique est mauvais
pour sda et sdb , rien n'est bon . ils font respectivement 2To(sda) et 3To(sdb)

merci pour votre aide

Dernière modification par Debian Alain (10-09-2017 19:18:52)

Hors ligne

#2 10-09-2017 16:02:47

Anonyme-8
Invité

Re : [résolu] conky et les disques durs

"/media/alain/HDD" n'existe pas

#3 10-09-2017 16:28:36

Debian Alain
Membre
Lieu : Bretagne
Distrib. : sid (unstable) / bullseye (stable)
Noyau : Linux sid 6.4.0-3-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : [résolu] conky et les disques durs

~$ ls -la /media/alain/


total 164
drwxr-x---+ 10 root  root    4096 sept. 10 16:04 .
drwxr-xr-x   5 root  root    4096 juin  18 16:43 ..
drwxr-xr-x   5 root  root    4096 sept.  6 09:13 1fd1e7fd-23f2-4f88-b0fb-e08910c1dce0
drwxrwxrwt  10 root  root    4096 sept. 10 10:22 47edaa62-506c-480a-9216-ca818107263f
drwxr-xr-x   4 root  root    4096 juil. 10 10:13 8493cc7d-746c-4b19-98bf-bb57187cbb8e
drwxr-xr-x  26 root  root    4096 sept.  6 09:21 8ae6dd7a-83f9-4f86-913f-57722e88df4a
drwxrwxrwx   1 alain alain   4096 sept.  7 15:20 CLONEZILLA
drwxrwxrwx   1 alain alain   4096 sept. 10 11:51 HDD EXT 2
drwxrwxrwx   1 alain alain   4096 sept.  7 15:20 HDD EXT 3
drwxrwxrwx   1 alain alain 131072 sept.  7 15:20 HDD EXT 4
 



$ cat /etc/fstab



# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda5 during installation
UUID=4cdc1628-5b00-4b1d-92d6-bf5f88539529 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda9 during installation
UUID=1d456481-986f-45f2-9947-537642158c38 /home           ext4    defaults        0       2
# /tmp was on /dev/sda8 during installation
UUID=32ebfb88-b6eb-42a4-b3a7-d53b8a864f3f /tmp            ext4    defaults        0       2
# /var was on /dev/sda6 during installation
UUID=6bef8ab3-3766-426a-ac30-8179ab0fee3a /var            ext4    defaults        0       2
# swap was on /dev/sda7 during installation
UUID=6ccae062-5b95-440f-a584-ea37652891ce none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/sr1        /media/cdrom1   udf,iso9660 user,noauto     0       0
 



en modifiant les paramètres de hddtemp , j'ai réussi à afficher la température , mais , pour les disques durs , je butte toujours .

voilà mon conky.conf

$ cat /etc/conky/conky.conf



-- vim: ts=4 sw=4 noet ai cindent syntax=lua
--[[
Conky, a system monitor, based on torsmo

Any original torsmo code is licensed under the BSD license

All code written since the fork of torsmo is licensed under the GPL

Please see COPYING for details

Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
Copyright (c) 2005-2012 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
All rights reserved.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
]]

conky.config = {
    alignment = 'top_left',
    background = false,
    border_width = 1,
    cpu_avg_samples = 2,
  default_color = 'white',
    default_outline_color = 'white',
    default_shade_color = 'white',
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    use_xft = true,
    font = 'DejaVu Sans Mono:size=12',
    gap_x = 5,
    gap_y = 60,
    minimum_height = 5,
  minimum_width = 5,
    net_avg_samples = 2,
    no_buffers = true,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,
    own_window = true,
    own_window_class = 'Conky',
    own_window_type = 'desktop',
    stippled_borders = 0,
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    show_graph_scale = false,
    show_graph_range = false
}

conky.text = [[
${scroll 16 $nodename - $sysname $kernel on $machine | }
$hr
${color grey}Uptime:$color $uptime
${color grey}Frequency (in MHz):$color $freq
${color grey}Frequency (in GHz):$color $freq_g
${color green}RAM Usage:$color $mem/$memmax - $memperc% ${color green} ${membar 4}
${color green}Swap Usage:$color $swap/$swapmax - $swapperc% ${color green} ${swapbar 4}
${color red}CPU Usage:$color $cpu% ${color red} ${cpubar 4}
${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
$hr
${color yellow}File systems:
 / $color${fs_used /}/${fs_size /} ${color yellow} ${fs_bar 6 /}
 /tmp $color${fs_used /tmp}/${fs_size /tmp} ${color yellow} ${fs_bar 6 /tmp}
 /var $color${fs_used /var}/${fs_size /var} ${color yellow} ${fs_bar 6 /var}
 /sda $color${fs_used /dev/sda}/${fs_size /dev/sda} ${color yellow} ${fs_bar /dev/sda}
 /sdb $color${fs_used /dev/sdb}/${fs_size /dev/sdb} ${color yellow} ${fs_bar /dev/sdb}
 /sdc $color${fs_used /media/alain/CLONEZILLA}/${fs_size /media/alain/CLONEZILLA} ${color yellow} ${fs_bar 6 /media/alain/CLONEZILLA}
 /sdd $color${fs_used /media/alain/HDD EXT 2}/${fs_size /media/alain/HDD EXT 2} ${color yellow} ${fs_bar 6 /media/alain/HDD EXT 2}
 /sde $color${fs_used /media/alain/HDD EXT 3}/${fs_size /media/alain/HDD EXT 3} ${color yellow} ${fs_bar 6 /media/alain/HDD EXT 3}
 /sdf $color${fs_used /media/alain/HDD EXT 4}/${fs_size /media/alain/HDD EXT 4} ${color yellow} ${fs_bar 6 /media/alain/HDD EXT 4}
${color grey}Networking:
Up:$color ${upspeed enp3s0} ${color grey} - Down:$color ${downspeed enp3s0}
$hr
${color grey}Name              PID   CPU%   MEM%
${color lightgrey} ${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 lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
$hr
win10/debian   : sda ${hddtemp /dev/sda}°C
sauvegardes w10: sdb ${hddtemp /dev/sdb}°C
CLONEZILLA     : sdc ${hddtemp /dev/sdc}°C
HDD EXT 2      : sdd ${hddtemp /dev/sdd}°C
HDD EXT 3      : sde ${hddtemp /dev/sde}°C
HDD EXT 4      : sdf ${hddtemp /dev/sdf}°C
]]
 



et voilà  le résultat :

1505059642.png

Dernière modification par Debian Alain (10-09-2017 17:07:50)

Hors ligne

#4 10-09-2017 18:00:17

Debian Alain
Membre
Lieu : Bretagne
Distrib. : sid (unstable) / bullseye (stable)
Noyau : Linux sid 6.4.0-3-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : [résolu] conky et les disques durs

j'ai réussi à afficher l'espace libre sur presque tous mes  disques .

je ne trouve pas le point de montage de sda2 (windows) .

peut être dois je le créer ? comment faire ?

voilà mon df -h avec mes points de montage :

$ df -h


Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
udev               7,8G       0  7,8G   0% /dev
tmpfs              1,6G     19M  1,6G   2% /run
/dev/sda5           23G    5,4G   17G  25% /
tmpfs              7,9G    151M  7,7G   2% /dev/shm
tmpfs              5,0M    4,0K  5,0M   1% /run/lock
tmpfs              7,9G       0  7,9G   0% /sys/fs/cgroup
/dev/sda8          1,9G    5,7M  1,7G   1% /tmp
/dev/sda6          9,2G    1,3G  7,4G  15% /var
/dev/sda9          835G    312G  481G  40% /home
tmpfs              1,6G     16K  1,6G   1% /run/user/117
tmpfs              1,6G     52K  1,6G   1% /run/user/1000
/dev/sdd9          689G    152G  502G  24% /media/alain/8493cc7d-746c-4b19-98bf-bb57187cbb8e
/dev/sdd6          976M    119M  791M  14% /media/alain/1fd1e7fd-23f2-4f88-b0fb-e08910c1dce0
/dev/sdd5           49G     16G   31G  34% /media/alain/8ae6dd7a-83f9-4f86-913f-57722e88df4a
/dev/sdd7           49G     53M   47G   1% /media/alain/47edaa62-506c-480a-9216-ca818107263f
/dev/sdc1          1,9T    891G  973G  48% /media/alain/CLONEZILLA
/dev/sde1          3,7T    2,4T  1,3T  65% /media/alain/HDD EXT 3
/dev/sdf1          3,7T    2,5T  1,2T  68% /media/alain/HDD EXT 4
/dev/sdd10         1,1T    935M  1,1T   1% /media/alain/HDD EXT 2
/dev/sdb2          2,8T    159G  2,6T   6% /media/alain/SAUVEGARDES W10
 



$ cat /etc/conky/conky.conf



-- vim: ts=4 sw=4 noet ai cindent syntax=lua
--[[
Conky, a system monitor, based on torsmo

Any original torsmo code is licensed under the BSD license

All code written since the fork of torsmo is licensed under the GPL

Please see COPYING for details

Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
Copyright (c) 2005-2012 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
All rights reserved.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
]]

conky.config = {
    alignment = 'top_left',
    background = false,
    border_width = 1,
    cpu_avg_samples = 2,
  default_color = 'white',
    default_outline_color = 'white',
    default_shade_color = 'white',
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    use_xft = true,
    font = 'DejaVu Sans Mono:size=12',
    gap_x = 5,
    gap_y = 60,
    minimum_height = 5,
  minimum_width = 5,
    net_avg_samples = 2,
    no_buffers = true,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,
    own_window = true,
    own_window_class = 'Conky',
    own_window_type = 'desktop',
    stippled_borders = 0,
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    show_graph_scale = false,
    show_graph_range = false
}

conky.text = [[
${scroll 16 $nodename - $sysname $kernel on $machine | }
$hr
${color grey}Uptime:$color $uptime
${color grey}Frequency (in MHz):$color $freq
${color grey}Frequency (in GHz):$color $freq_g
${color green}RAM Usage:$color $mem/$memmax - $memperc% ${color green} ${membar 4}
${color green}Swap Usage:$color $swap/$swapmax - $swapperc% ${color green} ${swapbar 4}
${color red}CPU Usage:$color $cpu% ${color red} ${cpubar 4}
${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
$hr
${color yellow}File systems:
 /usr $color${fs_used /}/${fs_size /} ${color yellow} ${fs_bar 6 /}
 /tmp $color${fs_used /tmp}/${fs_size /tmp} ${color yellow} ${fs_bar 6 /tmp}
 /var $color${fs_used /var}/${fs_size /var} ${color yellow} ${fs_bar 6 /var}
${color grey}Networking:
Up:$color ${upspeed enp3s0} ${color grey} - Down:$color ${downspeed enp3s0}
$hr
${color grey}Name              PID   CPU%   MEM%
${color lightgrey} ${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 lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
$hr
WIN10 / DEBIAN  : sda ${hddtemp /dev/sda}°C
SAUVEGARDES W10 : sdb ${hddtemp /dev/sdb}°C
CLONEZILLA      : sdc ${hddtemp /dev/sdc}°C
HDD EXT 2       : sdd ${hddtemp /dev/sdd}°C
HDD EXT 3       : sde ${hddtemp /dev/sde}°C
HDD EXT 4       : sdf ${hddtemp /dev/sdf}°C
$hr
WINDOWS 10        FREE : ${fs_free_perc /dev/sda2}%
SAUVEGARDES WIN10 FREE : ${fs_free_perc /media/alain/SAUVEGARDES W10}%
DEBIAN            FREE : ${fs_free_perc /home}%
CLONEZILLA        FREE : ${fs_free_perc /media/alain/CLONEZILLA}%
HDD EXT 2         FREE : ${fs_free_perc /media/alain/HDD EXT 2}%
HDD EXT 3         FREE : ${fs_free_perc /media/alain/HDD EXT 3}%
HDD EXT 4         FREE : ${fs_free_perc /media/alain/HDD EXT 4}%
]]
 



et voilà le résultat :

1505062780.png

en cherchant , j'ai trouvé ça :


$ sudo fdisk -l /dev/sda
 



Disque /dev/sda : 1,8 TiB, 2000398934016 octets, 3907029168 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 4096 octets
taille d'E/S (minimale / optimale) : 4096 octets / 4096 octets
Type d'étiquette de disque : dos
Identifiant de disque : 0x000c8e33

Périphérique Amorçage      Début        Fin   Secteurs Taille Id Type
/dev/sda1    *              2048    1026047    1024000   500M  7 HPFS/NTFS/exFAT
/dev/sda2                1026048 2021488639 2020462592 963,4G  7 HPFS/NTFS/exFAT
/dev/sda3             2021490686 3907028991 1885538306 899,1G  5 Étendue
/dev/sda5             2021490688 2070317055   48826368  23,3G 83 Linux
/dev/sda6             2070319104 2089848831   19529728   9,3G 83 Linux
/dev/sda7             2089850880 2123278335   33427456    16G 82 partition d'éch
/dev/sda8             2123280384 2127183871    3903488   1,9G 83 Linux
/dev/sda9             2127185920 3907028991 1779843072 848,7G 83 Linux

La partition 3 ne commence pas sur une frontière de cylindre physique.
 





$ sudo blkid
 



/dev/sda1: LABEL="RM-CM-)servM-CM-) au systM-CM-(me" UUID="0EAAB1AEAAB19327" TYPE="ntfs" PARTUUID="000c8e33-01"
/dev/sda2: UUID="48BEB90ABEB8F214" TYPE="ntfs" PARTUUID="000c8e33-02"
/dev/sda5: UUID="4cdc1628-5b00-4b1d-92d6-bf5f88539529" TYPE="ext4" PARTUUID="000c8e33-05"
/dev/sda6: UUID="6bef8ab3-3766-426a-ac30-8179ab0fee3a" TYPE="ext4" PARTUUID="000c8e33-06"
/dev/sda7: UUID="6ccae062-5b95-440f-a584-ea37652891ce" TYPE="swap" PARTUUID="000c8e33-07"
/dev/sda8: UUID="32ebfb88-b6eb-42a4-b3a7-d53b8a864f3f" TYPE="ext4" PARTUUID="000c8e33-08"
/dev/sda9: UUID="1d456481-986f-45f2-9947-537642158c38" TYPE="ext4" PARTUUID="000c8e33-09"
/dev/sdb2: LABEL="SAUVEGARDES W10" UUID="0CE41FABE41F95D4" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="7dee4ed1-a599-4baa-906b-fe5ef15fc7bd"
/dev/sdc1: LABEL="CLONEZILLA" UUID="00C9126C750535DC" TYPE="ntfs" PARTUUID="cbf916aa-5698-4e73-b44e-36924b55762b"
/dev/sdd5: UUID="8ae6dd7a-83f9-4f86-913f-57722e88df4a" TYPE="ext4" PARTUUID="d15626ca-05"
/dev/sdd6: UUID="1fd1e7fd-23f2-4f88-b0fb-e08910c1dce0" TYPE="ext4" PARTUUID="d15626ca-06"
/dev/sdd7: UUID="47edaa62-506c-480a-9216-ca818107263f" TYPE="ext4" PARTUUID="d15626ca-07"
/dev/sdd8: UUID="b279d08a-b9c5-433b-ba21-563ff28a1fdf" TYPE="swap" PARTUUID="d15626ca-08"
/dev/sdd9: UUID="8493cc7d-746c-4b19-98bf-bb57187cbb8e" TYPE="ext4" PARTUUID="d15626ca-09"
/dev/sdd10: LABEL="HDD EXT 2" UUID="4B3E1115553CB67D" TYPE="ntfs" PARTUUID="d15626ca-0a"
/dev/sde1: LABEL="HDD EXT 3" UUID="B6E8A04DE8A00DA5" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="770cae4f-f9c5-4838-8305-1825b08589e6"
/dev/sdf1: LABEL="HDD EXT 4" UUID="4739E9CC7687E15B" TYPE="ntfs" PARTUUID="3d8de4e7-881d-4061-b36f-d0d25ec0fb8d"
/dev/sdb1: PARTLABEL="Microsoft reserved partition" PARTUUID="6cbecf1e-970d-498e-8894-5aa28d0b813e"
 



j'ai créé un point de montage :


~$ sudo mkdir /media/WIN_10
 



j'ai incorporé le point de montage au /etc/fstab :

~$ cat /etc/fstab



# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda5 during installation
UUID=4cdc1628-5b00-4b1d-92d6-bf5f88539529 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda9 during installation
UUID=1d456481-986f-45f2-9947-537642158c38 /home           ext4    defaults        0       2
# /tmp was on /dev/sda8 during installation
UUID=32ebfb88-b6eb-42a4-b3a7-d53b8a864f3f /tmp            ext4    defaults        0       2
# /var was on /dev/sda6 during installation
UUID=6bef8ab3-3766-426a-ac30-8179ab0fee3a /var            ext4    defaults        0       2
# swap was on /dev/sda7 during installation
UUID=6ccae062-5b95-440f-a584-ea37652891ce none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/sr1        /media/cdrom1   udf,iso9660 user,noauto     0       0
# /media/WIN_10 point de montage partition windows sda2 ntfs
UUID="48BEB90ABEB8F214" /media/WIN_10                     ntfs    defaults    0   0
 



j'ai , ensuite , modifié /etc/conky/conky.conf  comme suit :


$ cat /etc/conky/conky.conf
 



-- vim: ts=4 sw=4 noet ai cindent syntax=lua
--[[
Conky, a system monitor, based on torsmo

Any original torsmo code is licensed under the BSD license

All code written since the fork of torsmo is licensed under the GPL

Please see COPYING for details

Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
Copyright (c) 2005-2012 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
All rights reserved.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
]]

conky.config = {
    alignment = 'top_left',
    background = false,
    border_width = 1,
    cpu_avg_samples = 2,
  default_color = 'white',
    default_outline_color = 'white',
    default_shade_color = 'white',
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    use_xft = true,
    font = 'DejaVu Sans Mono:size=12',
    gap_x = 5,
    gap_y = 60,
    minimum_height = 5,
  minimum_width = 5,
    net_avg_samples = 2,
    no_buffers = true,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,
    own_window = true,
    own_window_class = 'Conky',
    own_window_type = 'desktop',
    stippled_borders = 0,
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    show_graph_scale = false,
    show_graph_range = false
}

conky.text = [[
${scroll 16 $nodename - $sysname $kernel on $machine | }
$hr
${color grey}Uptime:$color $uptime
${color grey}Frequency (in MHz):$color $freq
${color grey}Frequency (in GHz):$color $freq_g
${color green}RAM Usage:$color $mem/$memmax - $memperc% ${color green} ${membar 4}
${color green}Swap Usage:$color $swap/$swapmax - $swapperc% ${color green} ${swapbar 4}
${color red}CPU Usage:$color $cpu% ${color red} ${cpubar 4}
${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
$hr
${color yellow}File systems:
 /usr $color${fs_used /}/${fs_size /} ${color yellow} ${fs_bar 6 /}
 /tmp $color${fs_used /tmp}/${fs_size /tmp} ${color yellow} ${fs_bar 6 /tmp}
 /var $color${fs_used /var}/${fs_size /var} ${color yellow} ${fs_bar 6 /var}
${color grey}Networking:
Up:$color ${upspeed enp3s0} ${color grey} - Down:$color ${downspeed enp3s0}
$hr
${color grey}Name              PID   CPU%   MEM%
${color lightgrey} ${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 lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
$hr
${color lightgrey}Température des disques durs :
WIN10 / DEBIAN  : sda ${hddtemp /dev/sda}°C
SAUVEGARDES W10 : sdb ${hddtemp /dev/sdb}°C
CLONEZILLA      : sdc ${hddtemp /dev/sdc}°C
HDD EXT 2       : sdd ${hddtemp /dev/sdd}°C
HDD EXT 3       : sde ${hddtemp /dev/sde}°C
HDD EXT 4       : sdf ${hddtemp /dev/sdf}°C
$hr
${color lightgrey}Espace Disque Libre :
WINDOWS 10        FREE : ${fs_free_perc /media/WIN_10}%
SAUVEGARDES WIN10 FREE : ${fs_free_perc /media/alain/SAUVEGARDES W10}%
DEBIAN            FREE : ${fs_free_perc /home}%
CLONEZILLA        FREE : ${fs_free_perc /media/alain/CLONEZILLA}%
HDD EXT 2         FREE : ${fs_free_perc /media/alain/HDD EXT 2}%
HDD EXT 3         FREE : ${fs_free_perc /media/alain/HDD EXT 3}%
HDD EXT 4         FREE : ${fs_free_perc /media/alain/HDD EXT 4}%
]]
 



résultat :

1505066705.png

parfait !

terminé .

voilà les sites qui m'ont servi :

https://doc.ubuntu-fr.org/conky_scripts … lle_espace

https://doc.ubuntu-fr.org/tutoriel/comm … ns_windows

https://doc.ubuntu-fr.org/mount_fstab

https://debian-facile.org/viewtopic.php?id=14175

$ apt-cache  policy conky


conky:
  Installé : 1.10.6-1
  Candidat : 1.10.6-1
 Table de version :
 *** 1.10.6-1 500
        500 http://ftp.fr.debian.org/debian stretch/main amd64 Packages
        500 http://ftp.fr.debian.org/debian stretch/main i386 Packages
        100 /var/lib/dpkg/status
 

Dernière modification par Debian Alain (11-09-2017 08:11:35)

Hors ligne

Pied de page des forums