Re: Boxed W8/W10 PC; must anything be done, first, to enable dual-bootable later?

2015-09-20 Thread Pascal Hambourg
Andrew M.A. Cater a écrit :
> On Sat, Sep 19, 2015 at 11:43:11AM +0100, Ron Leach wrote:
> 
>> 4.  Then I'd like to install Debian.  I'd prefer to install Debian Wheezy
>> because we have a very slow internet service and already have the install
>> DVDs for D7.8.  Is Wheezy 7.8 installable on UEFI, or should I use the
>> legacy boot system in the BIOS?
> 
> No, don't install Wheezy at all if: Jessie works from the outset with UEFI.

Wheezy works with UEFI too. I'm currently using this combination.
Howerer I observed diplay problems in the installer with some platforms.

> If you boot from Debian install media you can use the partitioning tools in 
> the
> installer to shrink an installed Windows partition. Put the empty space at 
> the end 
> of the disk.

It may be safer to shrink a Windows partition from Windows disk
management tool.



Re: augmenetation taille /tmp

2015-09-20 Thread Philippe Gras

Le 20 sept. 2015 à 00:46, Francois Lafont  a écrit :

> On 19/09/2015 23:40, Jean-Michel OLTRA wrote:
> 
>>> Personnellement, je ne comprends pas qu'un reboot n'ait pas résolu
>>> ce problème.
>> 
>> Non seulement ça ne le résoud pas, mais en plus ça fait empirer le
>> phénomène, puisque mon volume monté sur /tmp s'est pris 64M après le
>> reboot !
> 
> La seule explication possible que je vois à un truc pareil c'est que
> tu as un processus (ou plusieurs) qui est lancé au démarrage du système
> qui t'écrit plein de trucs dans /tmp et cela avant même le vidage
> de /tmp qui lui aussi s'effectue à chaque démarrage du système.

J'avais un système de captcha qui écrivait contnuellement dans tmp…

Ce serait peut-être intéressant de voir ce qu'il y a dedans lorsqu'il démarre ?

> 
> Pour moi, un fichier qui prend de la place dans le fs mais qu'on ne
> voit plus dans l'arborescence, c'est forcément un fichier utilisé
> par un processus, je ne vois pas comment il peut en être autrement
> (où alors un fs en vrac peut-être).
> 
> Perso, à ta place je tenterais ceci :
> 
># apt-get install lsof
>lsof | grep /tmp/
> 
> Sauf erreur, ça devrait t'afficher la liste de tous les
> processus qui utilisent un fichier dans /tmp/ *même* si
> celui-ci n'existe plus dans l'arborescence.
> 
> À tester donc...
> 
> PS : j'ose à peine te le demander mais bon juste au cas où : tu
> as bien sûr fait un `ls -al /tmp` pour afficher aussi les fichiers
> « cachés », n'est-ce pas ? ;)
> 
> -- 
> François Lafont
> 



Re: augmenetation taille /tmp

2015-09-20 Thread Jean-Michel OLTRA

Bonjour,


Le dimanche 20 septembre 2015, Francois Lafont a écrit...


> > Non seulement ça ne le résoud pas, mais en plus ça fait empirer le
> > phénomène, puisque mon volume monté sur /tmp s'est pris 64M après le
> > reboot !

Confirmé !

Le volume monté sur /tmp s'est pris 32M au reboot
Le volume inutilisé monté sur /home/laurena (ancien montage nfs pour
l'ordi de ma fille), s'est également pris 32M.
Le volume monté sur /usr est plus gros, donc on ne voit pas la
différence avec `df -h`, mais avec df tout court : +23128 blocs de 1k.

A ce rythme là, je vais bientôt avoir de gros soucis…

> Sauf erreur, ça devrait t'afficher la liste de tous les
> processus qui utilisent un fichier dans /tmp/ *même* si
> celui-ci n'existe plus dans l'arborescence.

J'ai déjà parlé de lsof. Je donne les résultats ci après :

espinasse:~$ fuser -v -m /tmp/
 UTIL.   PID ACCÈS  COMMANDE
/tmp:root kernel mount /tmp
 mysql  1598 F mysqld
 root   1613 F Xorg
 root   1712 F apache2
 jm 2126 F ssh-agent
 www-data   6504 F apache2
 www-data   6505 F apache2
 www-data   6506 F apache2
 www-data   6507 F apache2
 www-data   6508 F apache2

espinasse:~$ lsof /tmp
COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
mysqld  1598mysql5u   REG  253,10  135 /tmp/ibQZHR5l (deleted)
mysqld  1598mysql6u   REG  253,1  101  136 /tmp/ibaQ1rC0 (deleted)
mysqld  1598mysql7u   REG  253,10  137 /tmp/ibIoH28E (deleted)
mysqld  1598mysql8u   REG  253,10  138 /tmp/ibuX4pgY (deleted)
mysqld  1598mysql   12u   REG  253,10  139 /tmp/ibT8zJyG (deleted)
apache2 1712 root   10u   REG  253,10  132 /tmp/.ZendSem.AEtmFA 
(deleted)
apache2 6504 www-data   10u   REG  253,10  132 /tmp/.ZendSem.AEtmFA 
(deleted)
apache2 6505 www-data   10u   REG  253,10  132 /tmp/.ZendSem.AEtmFA 
(deleted)
apache2 6506 www-data   10u   REG  253,10  132 /tmp/.ZendSem.AEtmFA 
(deleted)
apache2 6507 www-data   10u   REG  253,10  132 /tmp/.ZendSem.AEtmFA 
(deleted)
apache2 6508 www-data   10u   REG  253,10  132 /tmp/.ZendSem.AEtmFA 
(deleted)

> PS : j'ose à peine te le demander mais bon juste au cas où : tu
> as bien sûr fait un `ls -al /tmp` pour afficher aussi les fichiers
> « cachés », n'est-ce pas ? ;)

Juste après l'ouverture de la session X :

espinasse:~$ la /tmp/
total 12
drwxrwxrwt 12 root root 4096 sept. 20 10:39 .
drwxr-xr-x 24 root root 4096 sept. 11 12:03 ..
drwxrwxrwt  2 root root6 sept. 20 10:05 .font-unix
drwxrwxrwt  2 root root   17 sept. 20 10:07 .ICE-unix
drwx--  2 jm   jm  6 janv.  1  1970 orbit-jm
drwx--  2 root root6 sept. 20 10:05 pulse-PKdhtXMmr18n
drwx--  2 jm   jm 23 sept. 20 10:10 ssh-ZTEyLQglrWVt
drwx--  3 root root   16 sept. 20 10:07 
systemd-private-b08106bc4793424f806ac0ea7c1752b3-tor.service-OJOe56
drwxrwxrwt  2 root root6 sept. 20 10:05 .Test-unix
drwx--  2 jm   jm  6 sept. 20 10:31 vXp3d2e
-r--r--r--  1 root root   11 sept. 20 10:07 .X0-lock
drwxrwxrwt  2 root root   15 sept. 20 10:07 .X11-unix
drwxrwxrwt  2 root root6 sept. 20 10:05 .XIM-unix

Mais il ne semble pas que ce soit lié à /tmp, en définitive.
Le volume monté sur /usr semble avoir subi une augmentation de taille
inférieure, environ 24M, et je ne pense pas qu'un processus écrive
dedans également.

Le volume monté sur  /home/laurena est _totalement_ inutilisé, lui, mais
il s'est pris 32M. Je me dis donc que l'occupation disque est bas niveau
et invisible au système de fichiers.


-- 
jm



Re: augmenetation taille /tmp

2015-09-20 Thread Sylvain L. Sauvage
Le dimanche 20 septembre 2015, 11:02:26 Sylvain L. Sauvage a 
écrit :
> Le dimanche 20 septembre 2015, 10:44:17 Jean-Michel OLTRA a
> 
> écrit :
> > Bonjour,
> 
> ’jour,
> 
> >[…]
> >
> > Le volume monté sur  /home/laurena est _totalement_
> > inutilisé, lui, mais il s'est pris 32M. Je me dis donc que
> > l'occupation disque est bas niveau et invisible au système
> > de fichiers.
>   Et des snapshots LVW au boot ?
>   Bon, il faudrait que la taille d’un instantané « vide » soit
> de 32 Mo pour le /home/laurena, et ça me paraît beaucoup…

Remarque, il n’est peut-être pas vide s’il est aussi monté avec 
relatime et qu’une lecture complète est faite (locate ou autre).

-- 
 Sylvain Sauvage



nederlands versie van commerciele game data

2015-09-20 Thread Alexandre Detiste
Dag,

Ik werk op Debian's game-data-packager project [1].

Bedoel van dit is om commerciele/"freeware" speel data te kunnen
automatisch packagen in .deb voor lokale verbruik.

Vandaag heb ik eerst nederlandstalig speel toegevoegd.
"Hank's Quest: Slachtoffer Van Het Gebeuren." [2]

Ik weet niet van andere, zo kan jullie misschien me helpen
om leven van andere nederlandstalige gebruiker helpen.

Somige spele werd vertald, maar Steam en/of GOG.com
verkopen sedert niet altijdt alle de vertalingen.

Groeten,

(ik ben niet subscribed tot dit lijst, graag me in CC zetten).

Alexandre Detiste

[1] http://pkg-games.alioth.debian.org/game-data/
[2] http://wiki.scummvm.org/index.php/AGIWiki/Hank%27s_Quest:_Victim_of_Society


signature.asc
Description: This is a digitally signed message part.


Re: augmenetation taille /tmp

2015-09-20 Thread Sylvain L. Sauvage
Le dimanche 20 septembre 2015, 10:44:17 Jean-Michel OLTRA a 
écrit :
> Bonjour,

’jour,

>[…]
> Le volume monté sur  /home/laurena est _totalement_ inutilisé,
> lui, mais il s'est pris 32M. Je me dis donc que l'occupation
> disque est bas niveau et invisible au système de fichiers.

  Et des snapshots LVW au boot ?
  Bon, il faudrait que la taille d’un instantané « vide » soit 
de 32 Mo pour le /home/laurena, et ça me paraît beaucoup…

-- 
 Sylvain Sauvage



Re: augmenetation taille /tmp

2015-09-20 Thread Pascal Hambourg
Jean-Michel OLTRA a écrit :
> 
>>   Et quel est le FS ?
> 
> xfs
> 
> /dev/mapper/debian-lvtmp on /tmp type xfs (rw,relatime,inode64,noquota)
> 
> Je reviens sur la configuration en volume comme facteur. Je me dis que
> si je ne vois rien concernant le système de fichiers (fichiers effacés
> mais toujours ouverts par exemple), c'est peut-être que l'augmentation
> est due à des metadonnées de lvm2.

Je ne vois pas comment. Les méta-données de LVM sont stockées en dehors
des volumes logiques et leurs systèmes de fichiers.

Je soupçonne plutôt le système de fichiers lui-même. Peut-être un
journal qui grossit, un snapshot qui s'ajoute, (si ça existe sur XFS)...

Tu peux démarrer un autre système (live par exemple) dont tu es sûr
qu'il n'écrit rien sur ces volumes, et tu pourras voir si l'espace
occupé affiché par du et df coïncide.



Re: Openssh client or server problem?

2015-09-20 Thread Volker Thieme
On 20 Sep 2015, at 00:46, Dylan Scott  wrote:
> 
>> At the shell prompt enter 
>> 
>> shutdown -h +1
>> 
>> and hit Enter twice. The ssh shell remains responsible and the session can 
>> be terminated via exit.
> 
> If you ever forget, you can also disconnect an unresponsive SSH session by 
> pressing 
> 
> ~.

Nice!! Thanks!

> 
> You need to do it after pressing enter though, I believe.



Re: Reinicios aleatorios

2015-09-20 Thread Josu Lazkano
Buenas a todos,

El viernes le quite la tapa al servidor y de golpe bajo casi 10
grados, de momento no se me ha reiniciado.

http://i59.tinypic.com/dcui5k.png
http://i57.tinypic.com/vhdw89.png

Estoy pensando que puede ser la grafica del servidor [GIGABYTE
GV-N210TC-1GI (REV 1.2)]:
http://www.gigabyte.com/products/product-page.aspx?pid=3331

No necesito ninguna grafica, ya que el servidor hace de backend y
despues tengo los frontends en las habitaciones y salon, pero la placa
viene sin ninguna salida de video, por eso le puse. la plca es esta
[GIGABYTE GA-P31-DS3L]:
http://www.gigabyte.com/products/product-page.aspx?pid=2615

Me he fijado y el disipador de la grafica esta muy caliente, ¿podria
quitar la grafica? o sino tendre que poner una grafica sencilla que no
se caliente mucho.

Saludos y gracias por todo.

-- 
Josu Lazkano



Re: augmenetation taille /tmp

2015-09-20 Thread Fabien R
On 19/09/2015 23:16, Jean-Michel OLTRA wrote:
> 
> Je viens d'enregistrer les sorties de `df` et `df -h`. J'ai d'autres
> volumes logiques sur ce raid logiciel, un qui couvre /usr, et un autre
> sur un home utilisateur qui n'est plus utilisé. Je vais voir si ceux ci
> grossissent également. La suite demain, donc.
> 
> 
Tu peux afficher les sorties de df ?

--
Fabien



Re: augmenetation taille /tmp

2015-09-20 Thread Francois Lafont
On 20/09/2015 10:44, Jean-Michel OLTRA wrote:

> espinasse:~$ lsof /tmp

J'avais indiqué la commande « lsof | grep /tmp », pas la commande
ci-dessus. Par ailleurs, et là par contre je ne l'ai pas indiqué,
il faut mieux lancer la commande en tant que root.

> COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
> mysqld  1598mysql5u   REG  253,10  135 /tmp/ibQZHR5l (deleted)
> mysqld  1598mysql6u   REG  253,1  101  136 /tmp/ibaQ1rC0 (deleted)
> mysqld  1598mysql7u   REG  253,10  137 /tmp/ibIoH28E (deleted)
> mysqld  1598mysql8u   REG  253,10  138 /tmp/ibuX4pgY (deleted)
> mysqld  1598mysql   12u   REG  253,10  139 /tmp/ibT8zJyG (deleted)
> apache2 1712 root   10u   REG  253,10  132 /tmp/.ZendSem.AEtmFA 
> (deleted)
> apache2 6504 www-data   10u   REG  253,10  132 /tmp/.ZendSem.AEtmFA 
> (deleted)
> apache2 6505 www-data   10u   REG  253,10  132 /tmp/.ZendSem.AEtmFA 
> (deleted)
> apache2 6506 www-data   10u   REG  253,10  132 /tmp/.ZendSem.AEtmFA 
> (deleted)
> apache2 6507 www-data   10u   REG  253,10  132 /tmp/.ZendSem.AEtmFA 
> (deleted)
> apache2 6508 www-data   10u   REG  253,10  132 /tmp/.ZendSem.AEtmFA 
> (deleted)

Je suis très surpris que la commande « lsof /tmp » que tu as tapée
t'indique des fichiers « deleted » dans /tmp vu que normalement la
commande va faire une recherche dans les fichiers qui se trouvent
dans l'arborescence de /tmp et donc des fichiers forcément non deleted.
Du coup ta commande me semble incohérente. Ceci étant, on voit des
fichiers deleted encore utilisés dans /tmp mais ils ne sont pas bien gros.

-- 
François Lafont



Re: bluetooth

2015-09-20 Thread Paulo Roberto Evangelista
apt-get install bluedevil ussp-push rfkill e tente novamente.

Em 20 de setembro de 2015 12:08, Manoel Pedro de Araújo 
escreveu:

> Olá amigo estou com um problema em meu bluetooth. Nao consigo fazer
> transferencia de dados,
>
> quando eu ligo meu pc aparece a mensagem: *bluetooth hci0  hardware error
> 0x37*
>
> Uso debian8 com interface kde
>
>
> --
> Manoel
>


Re: Boxed W8/W10 PC; must anything be done, first, to enable dual-bootable later?

2015-09-20 Thread Andrew M.A. Cater
On Sun, Sep 20, 2015 at 10:45:07AM +0200, Pascal Hambourg wrote:
> Andrew M.A. Cater a écrit :
> > On Sat, Sep 19, 2015 at 11:43:11AM +0100, Ron Leach wrote:
> > 
> >> 4.  Then I'd like to install Debian.  I'd prefer to install Debian Wheezy
> >> because we have a very slow internet service and already have the install
> >> DVDs for D7.8.  Is Wheezy 7.8 installable on UEFI, or should I use the
> >> legacy boot system in the BIOS?
> > 
> > No, don't install Wheezy at all if: Jessie works from the outset with UEFI.
> 
> Wheezy works with UEFI too. I'm currently using this combination.
> Howerer I observed diplay problems in the installer with some platforms.
> 
> > If you boot from Debian install media you can use the partitioning tools in 
> > the
> > installer to shrink an installed Windows partition. Put the empty space at 
> > the end 
> > of the disk.
> 
> It may be safer to shrink a Windows partition from Windows disk
> management tool.

Yes, but the original poster asked if there was anything he should do prior to 
booting into
Windows for the first time. It is entirely possbile to have installed Debian 
before you boot
into Windows - the crucial thing is not to move the first Windows partitions 
apart from resizing.

When Windows first boots, it should deal with the issue of disk size correctly.

For a potential Windows 8 -> 10 upgrade on that specification of machine: look 
carefully at Microsoft's
advice including using USB sticks as extra storage temporarily If you dig back 
through Planet Debian, 
you'll find a post of mine about how to rescue the upgrade if it all goes wrong.

If the machine only has 32G of SSD storage, then it's possibly too little disk 
space to dual boot well. 
Windows 10 will want approximately 20G to run.

Although I referenced the 
http://wiki.debian.org/InstallingDebianOn/Acer/T100TA, it may also be best
to look at the links for the Acer X205TA referenced in the early paragraphs 
there.

I'm quite tempted to write up a detailed blog on how to get dual boot working 
with a preinstalled 
Windows installed using UEFI and the steps to install Debian in this situation

All the very best,

AndyC



bash script globbing

2015-09-20 Thread rlharris
I have been using the following script (named "enscript+") as a substitute
for the package "a2ps":

#!/bin/bash
enscript --media=letter -2 --landscape --borders \
--header='$n|A.D. $D{%Y.%m.%d}|$* gmt | Page $% of $=' "$1"

The script works properly for a single file:

enscript+ filename

But when I execute

enscript+ *

in a directory containing several files, enscript prints only the first
file in the directory.

I googled "bash script globbing", but the discussions which I found are
deep and confusing.  Is there not a simple solution?

RLH




aptitude perdido

2015-09-20 Thread Ricardo Delgado
Buenas, el punto es el siguiente en mi testing semanalmente hago un
aptitude full-upgrade -y

luego de ello, note que se habia "desaparecido" aptitude, instale en
forma manual nuevamente pero me pidio otras dependencias libcwidget3v5
libsigc++-2.0-0v5,

   ahora tengo nuevamente aptitude, espero que en mi proxima
actualizacion no me de este problemilla

 slds


-- 
"Windows? Reboot
Debian?  beRoot "



Re: aptitude perdido

2015-09-20 Thread Manolo Díaz
El domingo, 20 sep 2015 a las 23:30 UTC
Ricardo Delgado escribió:

> Buenas, el punto es el siguiente en mi testing semanalmente hago un
> aptitude full-upgrade -y
> 
> luego de ello, note que se habia "desaparecido" aptitude, instale en
> forma manual nuevamente pero me pidio otras dependencias libcwidget3v5
> libsigc++-2.0-0v5,
> 
>ahora tengo nuevamente aptitude, espero que en mi proxima
> actualizacion no me de este problemilla
> 
>  slds

Pues entonces no ejecutes 'aptitude full-upgrade -y'. Parece que, en
ocasiones, la transición es más fluida si algunos paquetes abandonan
temporalmente testing. Vaya, que perfectamente podría volver a
ocurrirte con otro.


Saludos.
-- 
Manolo Díaz



Can't Log in

2015-09-20 Thread ray
I cannot log on.  I don't know if this is related, I was setting up for remote 
desktop, setup a password for the remote session.  After rebooting, my normal 
user and password do not work and my rdp password does not work.

What can I do to recover?

This is Debian stretch with LXDE.  



Re: Can't Log in

2015-09-20 Thread Lisi Reisz
On Monday 21 September 2015 02:06:47 ray wrote:
> I cannot log on.  I don't know if this is related, I was setting up for
> remote desktop, setup a password for the remote session.  After rebooting,
> my normal user and password do not work and my rdp password does not work.
>
> What can I do to recover?
>
> This is Debian stretch with LXDE.

Use a live CD to reset your password?

Lisi



Too many screen clearings

2015-09-20 Thread Serhii Savchuk
Some reasons make me use own splash screens in my debian stretch. My
service starts just /dev/fb0 is set. I found unwanted screen clearing
occurs three times up to my main program starts from
~/.config/openbox/autostart:

1) getty@tty1.service does it (despite autologin, -noclear option in
command line, TTYVTDisallocate=no in service header);

2) X does it (despite only mode 800x600-16 is used from grub up to
openbox, Option "ModeSetClearScreen" "off" for vesa driver in
lightdm.conf);

3) openbox-autostart does it (as user has no choice this was solved by
direct disabling xsetroot in this file).

What am i doing wrong?



Re: Reinicios aleatorios

2015-09-20 Thread Camaleón
El Sun, 20 Sep 2015 10:14:36 +0200, Josu Lazkano escribió:

> Buenas a todos,
> 
> El viernes le quite la tapa al servidor y de golpe bajo casi 10 grados,
> de momento no se me ha reiniciado.
> 
> http://i59.tinypic.com/dcui5k.png http://i57.tinypic.com/vhdw89.png

Yo es que sin ver los datos de la BIOS no te podría decir nada, como ya 
te he dicho antes esos valores que obtienes vía software no son fiables.

> Estoy pensando que puede ser la grafica del servidor [GIGABYTE
> GV-N210TC-1GI (REV 1.2)]:
> http://www.gigabyte.com/products/product-page.aspx?pid=3331

Las tarjetas gráficas tienen su propio sensor de temperatura, la cual 
podrás consultar desde el panel de control del driver de nvidia. Pero por 
el modelo de chipset te diría que su TDP es realmente bajo y que esas 
tarjetas de gama baja suelen venir con disipador sin ventilador del poco 
calor que generan.

> No necesito ninguna grafica, ya que el servidor hace de backend y
> despues tengo los frontends en las habitaciones y salon, pero la placa
> viene sin ninguna salida de video, por eso le puse. la plca es esta
> [GIGABYTE GA-P31-DS3L]:
> http://www.gigabyte.com/products/product-page.aspx?pid=2615

Los chipset de intel que llevan una "P" (en lugar de la "G") no suelen 
llevar subsistema gráfico integrado por lo que tienes que poner una 
tarjeta gráfica dedicada. Ahora bien, si quieres un sistema "headless" y 
la placa te permite iniciar sin tener una gráfica conectada, pues es otra 
opción a considerar.

> Me he fijado y el disipador de la grafica esta muy caliente, ¿podria
> quitar la grafica? o sino tendre que poner una grafica sencilla que no
> se caliente mucho.

¿Más sencilla que esa gráfica? Además, lleva ventilador :-)

Si la caja te lo permite (parece que es una placa ATX), monta todos los 
ventiladores que puedas, si son silenciosos mejor, así evitas ruidos 
innecesarios pero mantienes los componentes fresquitos.

Saludos,

-- 
Camaleón



Re: [Fwd: Re: imprimir pdf]

2015-09-20 Thread Santiago Vila
On Sat, Sep 19, 2015 at 05:49:03PM +, Camaleón wrote:
> porque el formato PS [...] no deja lugar a la interpretación.

El formato PDF tampoco, pero que digas eso precisamente de Postscript,
que en el fondo es un lenguage de programación *interpretado* no deja
de tener su gracia...



Brightness Configuration issue

2015-09-20 Thread Himanshu Shekhar
I normally dim my laptop's screen, as I work long. However, I don't
understand why I have to dim it every time when the laptop restarts.
Doesn't GNOME remembers what brightness I used last time?
Need a way out !

-- 
Himanshu Shekhar
IIIT-Allahabad
IRM2015006


Re: problema con xrandr

2015-09-20 Thread Camaleón
El Sat, 19 Sep 2015 19:33:19 -0500, Pablo Magé escribió:

> Estoy usando Debian Wheezy en un DELL Inspiron 15R 5537. Necesito
> conectar otra pantalla para extender mi escritorio, pero no funciona.
> Este es el mensaje de error que emite cuando intento extender el 
> escritorio con
> xrandr

¿Qué comando usas para extender el monitor?

Por otra parte, no se si habrás probado con alguna utilidad de escritorio 
como el applet de GNOME/KDE que permite manejar un monitor externo 
fácilmente (Activarlo, definir la resolución...).

> xrandr: Failed to get size of gamma for output default
> Screen 0: minimum 1366 x 768, current 1366 x 768, maximum 1366 x 768
> default connected 1366x768+0+0 0mm x 0mm
>1366x7680.0*
> 
> La salida que emite lspci -v para el video es:

> 00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT
> Integrated

(...)

Mejor manda la salida de "xrandr -q" con el segundo monitor conectado.

Saludos,

-- 
Camaleón



bluetooth

2015-09-20 Thread Manoel Pedro de Araújo
Olá amigo estou com um problema em meu bluetooth. Nao consigo fazer
transferencia de dados,

quando eu ligo meu pc aparece a mensagem: *bluetooth hci0  hardware error
0x37*

Uso debian8 com interface kde


-- 
Manoel


Ethernet not working after wakeup

2015-09-20 Thread Himanshu Shekhar
I probably had asked this question before, but I had no proper solution and
probably, the thread seems to be obsolete. I use internet with Ethernet
(the drivers are downloaded from my hardware manufacturer, Realtek, and I
have also tried the one that came bundled with Debian 8.1). However, I
found my ethernet connection missing (reports cable unplugged in
gnome-settings), after the system wakes from sleep.
Need a fix!

-- 
Himanshu Shekhar
IIIT-Allahabad
IRM2015006


Re: Detectar una antena por puerto de red modelo NexNet RSU-2510-VF

2015-09-20 Thread Camaleón
El Sat, 19 Sep 2015 20:46:18 -0500, Debia Linux escribió:

(...)

> Ahora que me encuentro, la conecto por el puerto eth0, perfectamente se
> que no recibe la señal, los led recorren la tapa secuencialmente de
> izquierda a derecha (significado que no recibe señal, pues las empresas
> que menciono ya no brindan este servicio).
> 
> La idea es re-utilizarla para recibir una señal wifi proveniente de otro
> edificio de la empresa y poderle brindar el servicio de internet.
> La mayoria de los modems trae una pagina web donde se puede configurar,
> normalmente se usa la ip 192.168.1.1 ó tal vez 192.168.100.1 u otra mas
> 192.168.1.254 etc.

(...)

Empecemos por el principio... ¿se trata de este aparato?

http://www.cowboom.com/product/72517

En caso afirmativo parece un módem para banda ancha vía radio/wifi, pero 
un módem no es un enrutador y no tendrá una IP fija local a la que puedas 
conectar para configurarlo, es decir, me parece que ese aparato debe 
funcionar mediante una conexión PPP con el ISP o el proveedor de banda 
ancha, tal y como lo haría una conexión de tipo dial-up.

Es decir, sin conocer las características técnicas del dispositivo para 
saber qué permite y qué no, poco más te puedo decir :-(

Saludos,

-- 
Camaleón



home.netz vom eigenen bind auflösen mit welchen Einstellungen

2015-09-20 Thread Thomas
Hallo,

ich habe in meinen Netzwerk einen eigenen Nameserver, der über DHCP den 
Rechnern quasi "auf gezwängt" wird.

rechner.home.netz und andere lösen auch prima zu der jeweiligen internen IP 
auf.

Nur was muss ich in der home.netz Datei oder einer anderen Datei eintragen das 
home.netz auch aufgelöst wird, das findet der Nameserver aktuell nicht.

Danke..



[OFF TOPIC]interesant aquest escrit

2015-09-20 Thread mfp
Bon dia, he trobat aquest [1] escrit sobre ubuntu que m'ha semblat prou 
interessant.

[1] http://www.gnu.org/philosophy/ubuntu-spyware.es.html



Problems with wine and fglrx driver

2015-09-20 Thread Артём Банщиков
Hello. I tried installing fglrx driver for my Radeon HD 6850. It installed
and X.org ran properly. But when I try to run any windows application with
wine, it falls immediately givimg me the message:

[xcb] Extra reply data still left in queue
[xcb] This is most likely caused by a broken X extension library
[xcb] Aborting, sorry about that.
2.exe: ../../src/xcb_io.c:576: _XReply: Assertion
`!xcb_xlib_extra_reply_data_left' failed.

I found different solutions for similar problems on Ubuntu forums, they
included making links to libGL.so.1. None of them worked for me. I want to
find any workarounds for this bug.

Regards, Artyom.


Re: augmenetation taille /tmp

2015-09-20 Thread Jean-Michel OLTRA

Bonjour,


Le dimanche 20 septembre 2015, Pascal Hambourg a écrit...


> Je ne vois pas comment. Les méta-données de LVM sont stockées en dehors
> des volumes logiques et leurs systèmes de fichiers.

Oui, j'ai vu ça.

> Je soupçonne plutôt le système de fichiers lui-même. Peut-être un
> journal qui grossit, un snapshot qui s'ajoute, (si ça existe sur XFS)...

Possible. Je vais voir si je peux évaluer l'évolution de la taille des
logs du fs.

> Tu peux démarrer un autre système (live par exemple) dont tu es sûr
> qu'il n'écrit rien sur ces volumes, et tu pourras voir si l'espace
> occupé affiché par du et df coïncide.

Bonne idée. Je ferai la manip au prochain reboot (demain).

J'ai désactivé le montage au boot d'un des volumes. Je verrai si ça
induit un changement.

Merci.

Au fait : personne en LVM et XFS sur la liste…?

-- 
jm



Re: Will you come to Yiwu in Oct.?

2015-09-20 Thread workwithyou
Hi Sir/Madam,
 Do you want to ship your goods in time?
  Do you want to reduce the quality issues?
   Do you want to get quick replies from Chinese suppliers?
 If yes, contact Vivian now! You will get a reliable export agent in China. For 
more details, let’s discuss on skype: goodpartner44 or whatsapp 8615755350196. 
 Cheers,
Vivian

2015-09-21



workwithyou

Re: augmenetation taille /tmp

2015-09-20 Thread Jean-Michel OLTRA

Bonjour,


Le dimanche 20 septembre 2015, Daniel Huhardeaux a écrit...


> >Au fait : personne en LVM et XFS sur la liste…?

> Si, sur plusieurs serveurs en wheezy et jessie, rien noté de spécial.

Je me demande si ce n'est pas une partie du problème. Il y a de
nombreuses années que j'utilise XFS, et c'est bien la première fois que
ça me fait ce coup là (si c'est bien lié à xfs).

Il se pourrait que mes soucis aient débuté avec l'arrivée des nouveaux
noyaux 4.x
Je vais voir à installer un noyau 4.0 de chez snapshot.debian.org


-- 
jm



Re: bash script globbing

2015-09-20 Thread Thomas Schmitt
Hi,

rlhar...@oplink.net wrote:
> enscript --media=letter -2 --landscape --borders \
> --header='$n|A.D. $D{%Y.%m.%d}|$* gmt | Page $% of $=' "$1"
> ...
> when I execute
>enscript+ *
> in a directory containing several files, enscript prints only the first
> file in the directory.

This is because you use only the first argument "$1" in
your script.

The globbing happens before your script gets started.
The shell parser converts your command
  enscript+ *
to a list of arguments
  enscript+ file1 file2 ...
which your script gets to see as
  "$0"  "$1"  "$2"  ...

As i wrote a few days ago, "$@" (with quotes around it) gives
you the list of arguments: "$1" "$2" ...

According to its man page, enscript is willing to take more
than one filename. So may simply write

enscript --media=letter -2 --landscape --borders \
--header='$n|A.D. $D{%Y.%m.%d}|$* gmt | Page $% of $=' "$@"

If enscript would only take one filename per run, you
would have to execute it several times in a loop:

for i in "$@"
do
  enscript --media=letter -2 --landscape --borders \
   --header='$n|A.D. $D{%Y.%m.%d}|$* gmt | Page $% of $=' "$i"
done
  
This would also be the way to go if enscript concatenates
all filenames of a run to a single output file whereas
you might want several output files.


Another way of handling an argument list of variable length
is the variable "$#" which gives the number of arguments
and the command "shift" which deletes "$1" and shifts "$2"
to "$1", "$3" to "$2", and so on. It also counts down "$#".

So you always use "$1" and give it new values by "shift":

while test "$#" -ge "1"
do
  enscript --media=letter -2 --landscape --borders \
   --header='$n|A.D. $D{%Y.%m.%d}|$* gmt | Page $% of $=' "$1"
  shift 1
done


Have a nice day :)

Thomas



Re: bash script globbing

2015-09-20 Thread rlharris
On Sun, September 20, 2015 3:28 pm, Loïc Grenié wrote:
...
>> #!/bin/bash
>> enscript --media=letter -2 --landscape --borders \ --header='$n|A.D.
>> $D{%Y.%m.%d}|$* gmt | Page $% of $=' "$1"
...
> Here "$1" means "for the first argument"
> If enscript can work with several files together, you cn substitue "$1"
> simply by "$@" If however enscript can only work one file at a time,...

Thanks.  A week or so ago I asked for help, because enscript was not
seeing changes which I made to the configuration file in order to change
the margins and customize headings; that I why I ended up putting the
customization into a bash script "enscript+".

However, just now, when I executed "enscript *" on a directory of files,
to see whether the unmodified package could handle globs, all of the files
printed properly, together with the customized headers!  So now I am
confused, but at least I am able to use the glob "*" and have the headers
and margins which I desired.

Thanks.

RLH




Re: RAID 1 System Installation Question

2015-09-20 Thread Tim McDonough

Thank you! I will try this procedure this week.

Tim

On 9/18/2015 5:04 PM, linuxthefish wrote:

Tim,

>From what I remember it's best to set it up when you installing the
system, then you can install the bootloader to /boot in RAID 1.

https://blog.sleeplessbeastie.eu/2013/10/04/how-to-configure-software-raid1-during-installation-process/
is what I followed.

Thanks,
Edmund

On 18 September 2015 at 22:11, Tim McDonough  wrote:

I've used Debian Linux for a number of years but up until now always with a
single hard drive.

I want to build a new system that will have a pair of 1TB drives configured
as a RAID-1 mirror. In reading the mdadm Wiki the discussion begins with
installing mdadm.

My goal is to have a system where if either drive fails things will a)
continue to run from a single drive, and b) be able to replace the failed
drive with a new one of the same size and have the system rebuild into a
mirrored array again.

It is not clear to me how I need to begin the installation sequence.

My question: Do I install Debian to a single drive and will installing mdadm
then allow me to add the second disk and setup RAID? Do I need to configure
each drive in some way before installing Debian and then mdadm?

If there is an up-to-date "how to" that describes this please just point me
there. I have not found anything that seems to start at the point where I
just have bare metal.

Regards,

Tim







Re: problema con xrandr

2015-09-20 Thread Camaleón
El día 20 de septiembre de 2015, 16:20, Pablo Magé  
escribió:

(se lo zampó mi filtro, reenvío a la lista)

> El 20 de septiembre de 2015, 8:18, Camaleón 
> escribió:
>>
>> El Sat, 19 Sep 2015 19:33:19 -0500, Pablo Magé escribió:
>>
>> > Estoy usando Debian Wheezy en un DELL Inspiron 15R 5537. Necesito
>> > conectar otra pantalla para extender mi escritorio, pero no funciona.
>> > Este es el mensaje de error que emite cuando intento extender el
>> > escritorio con
>> > xrandr
>>
>> ¿Qué comando usas para extender el monitor?
>>
>> Por otra parte, no se si habrás probado con alguna utilidad de
>> escritorio como el applet de GNOME/KDE que permite manejar un monitor
>> externo fácilmente (Activarlo, definir la resolución...).
>>
>> > xrandr: Failed to get size of gamma for output default
>> > Screen 0: minimum 1366 x 768, current 1366 x 768, maximum 1366 x 768
>> > default connected 1366x768+0+0 0mm x 0mm
>> >1366x7680.0*
>> >
>> > La salida que emite lspci -v para el video es:
>>
>> > 00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT
>> > Integrated
>>
>> (...)
>>
>> Mejor manda la salida de "xrandr -q" con el segundo monitor conectado.
>>
>>
> Hola lista
> Después de estar probando y probando las opciones que provee xrandr,
> encontré la solución a mi problema en este página:
> http://www.esdebian.org/foro/50040/drivers-intel-hd-4400?page=2

Hum... lo siento pero a esa página no entro :-/

> En dicho enlace se dice que:
>
> "Creo que puede ser por la version de "i965-va-driver", en Whhezy es la
> 1.0, cuando en Ubuntu 14.04 es la 1.3, igual que en Jessie."
>
> Verifique en wheezy y efectivamente i915 tiene la versión 1.0, la cual 
> no tiene el soporte suficiente para tarjetas gráficas Haswell de Intel.
> En cambio en Jessie se cuenta ya con la versión 1.3 como lo tiene Ubuntu
> 14.04.

No sé a qué te refieres con "versión 1.x" (¿quizá el controlador upstream 
de Intel?), porque los paquetes del driver intel para Xorg que hay en 
Debian no siguen esa nomenclatura :-?

En cualquier caso, y si necesitabas actualizar el servidor gráfico podías 
haber instalado los paquetes del repositorio de backports que para eso 
están :-)

> Así que decidí migrar de Wheezy a Jessie y el escritorio extendido se
> realiza de manera automática.
>
> Esta es la salida de xrandr -q
> Screen 0: minimum 320 x 200, current 2732 x 768, maximum 8192 x 8192
> eDP1 connected primary 1366x768+0+0 (normal left inverted right x axis y
> axis) 344mm x 194mm
>1366x768  60.04*+  40.05
>1360x768  59.8059.96
>1024x768  60.00
>800x600   60.3256.25
>640x480   59.94
> HDMI1 connected 1366x768+1366+0 (normal left inverted right x axis y
> axis)
> 410mm x 230mm
>1366x768  59.79*+
>1920x1080 60.0059.94
>1280x1024 75.02
>1280x720  60.0059.94
>1024x768  75.0860.00
>800x600   75.0060.32
>640x480   75.0060.0059.94
>720x400   70.08
> DP1 disconnected (normal left inverted right x axis y axis)
> HDMI2 disconnected (normal left inverted right x axis y axis)

Saludos,

-- 
Camaleón



Re: apt-update error: la suma hash difiere

2015-09-20 Thread Camaleón
El día 15 de septiembre de 2015, 18:26, Billy Yeffry Fernández Rodríguez 
 escribió:

(reenvío a la lista, se lo zampó mi filtro...)

> El día 15 de septiembre de 2015, 12:17, Camaleón 
> escribió:
>> El Tue, 15 Sep 2015 11:58:02 -0400, Billy Yeffry Fernández Rodríguez
>> escribió:
>>
>>> Tengo el siguiente inconveniente para actualizar a debian 8.2:
>>>
>>> Tengo la desventaja de no poseer una conexion a internet a mi hogar,
>>> asi que dispongo de un repository offline mediante apt-mirror, al cual
>>> voy actualizando segun cada actualizacion de jessie. En la ultima
>>> actualizacion, apt-get update me retorna el siguiente error:
>>>
>>> sudo apt-get update Des:1 file: jessie InRelease [134 kB]
>>> W: Fallo al obtener
>>> file:/home/billy/Documentos/debian_jessie/jessie_repo/mirror/
>> ftp.us.debian.org/debian/dists/jessie/main/binary-i386/Packages
>>>  La suma hash difiere
>>
>> (...)
>>
>>> que me sugieren?
>>
>> Tendrás que actualizar/sincronizar tu mirror local con el remoto.
>>
>
> Lo he vuelto a hacer varias veces y sigo con el mismo problema.

Dinos exactamente qué es lo que has hecho. Se trata de sincronizar tu 
repositorio local con el repositorio online para que la suma de 
verificación de los paquetes sea la correcta.

> Incluso borre /var/lib/apt/lists y nada, sigo con el mismo
> inconceniente.

Tienes que actualizar el repo local ("apt-mirror -c apt-mirror") y 
después ya podrás actualizar los clientes ("apt-get update && apt-get -V 
upgrade").

Saludos,

-- 
Camaleón



Re: augmenetation taille /tmp

2015-09-20 Thread Daniel Huhardeaux

Le 20/09/2015 18:38, Jean-Michel OLTRA a écrit :

[...]
Au fait : personne en LVM et XFS sur la liste…? 


Si, sur plusieurs serveurs en wheezy et jessie, rien noté de spécial.

--
Daniel



Re: augmenetation taille /tmp

2015-09-20 Thread Sylvain L. Sauvage
Le dimanche 20 septembre 2015, 18:47:50 Francois Lafont a écrit 
:
> On 20/09/2015 10:44, Jean-Michel OLTRA wrote:
> > espinasse:~$ lsof /tmp
> 
> J'avais indiqué la commande « lsof | grep /tmp », pas la
> commande ci-dessus.

  Le résultat est le même quand /tmp est un point de montage, ce 
qui est le cas ici.

-- 
 Sylvain Sauvage



Re: Boxed W8/W10 PC; must anything be done, first, to enable dual-bootable later?

2015-09-20 Thread Lisi Reisz
On Sunday 20 September 2015 20:12:50 Andrew M.A. Cater wrote:
> I'm quite tempted to write up a detailed blog on how to get dual boot
> working with a preinstalled Windows installed using UEFI and the steps to
> install Debian in this situation
>
> All the very best,

That would be terrific.  Very helpful.

Lisi



Re: Detectar una antena por puerto de red modelo NexNet RSU-2510-VF

2015-09-20 Thread Carlos Alvarado
En el pc ejecuta el comando arp, esto te va a mostrar la MAC del equipo que 
tienes conectado y la IP del mismo (si es que la tiene)



Re: Reinicios aleatorios

2015-09-20 Thread Josu Lazkano
El día 20 de septiembre de 2015, 15:57, Camaleón  escribió:
> El Sun, 20 Sep 2015 10:14:36 +0200, Josu Lazkano escribió:
>
>> Buenas a todos,
>>
>> El viernes le quite la tapa al servidor y de golpe bajo casi 10 grados,
>> de momento no se me ha reiniciado.
>>
>> http://i59.tinypic.com/dcui5k.png http://i57.tinypic.com/vhdw89.png
>
> Yo es que sin ver los datos de la BIOS no te podría decir nada, como ya
> te he dicho antes esos valores que obtienes vía software no son fiables.
>
>> Estoy pensando que puede ser la grafica del servidor [GIGABYTE
>> GV-N210TC-1GI (REV 1.2)]:
>> http://www.gigabyte.com/products/product-page.aspx?pid=3331
>
> Las tarjetas gráficas tienen su propio sensor de temperatura, la cual
> podrás consultar desde el panel de control del driver de nvidia. Pero por
> el modelo de chipset te diría que su TDP es realmente bajo y que esas
> tarjetas de gama baja suelen venir con disipador sin ventilador del poco
> calor que generan.
>
>> No necesito ninguna grafica, ya que el servidor hace de backend y
>> despues tengo los frontends en las habitaciones y salon, pero la placa
>> viene sin ninguna salida de video, por eso le puse. la plca es esta
>> [GIGABYTE GA-P31-DS3L]:
>> http://www.gigabyte.com/products/product-page.aspx?pid=2615
>
> Los chipset de intel que llevan una "P" (en lugar de la "G") no suelen
> llevar subsistema gráfico integrado por lo que tienes que poner una
> tarjeta gráfica dedicada. Ahora bien, si quieres un sistema "headless" y
> la placa te permite iniciar sin tener una gráfica conectada, pues es otra
> opción a considerar.
>
>> Me he fijado y el disipador de la grafica esta muy caliente, ¿podria
>> quitar la grafica? o sino tendre que poner una grafica sencilla que no
>> se caliente mucho.
>
> ¿Más sencilla que esa gráfica? Además, lleva ventilador :-)
>
> Si la caja te lo permite (parece que es una placa ATX), monta todos los
> ventiladores que puedas, si son silenciosos mejor, así evitas ruidos
> innecesarios pero mantienes los componentes fresquitos.
>
> Saludos,
>
> --
> Camaleón
>

Gracias de nuevo por contestar.

Esta vez he pillado un reinicio al vuelo (con la terminal abierta).
Esto es lo que me ha salido:

Message from syslogd@server at Sep 20 21:54:51 ...
 kernel:[  138.854834] Kernel panic - not syncing: Timeout
synchronizing machine check over CPUs

Message from syslogd@server at Sep 20 21:54:51 ...
 kernel:[  138.854834] Kernel Offset: 0x0 from 0x8100
(relocation range: 0x8000-0x9fff)

La temperatura se habia subido a 80 grados (con la tapa abierta).
Parece que tengo algun problema con el calor. Asi que le pondre otro
ventilizar.

Sigo pendiente del tema, os mantengo informados.

Saludos.

-- 
Josu Lazkano



Re: Boxed W8/W10 PC; must anything be done, first, to enable dual-bootable later?

2015-09-20 Thread Pascal Hambourg
Andrew M.A. Cater a écrit :
> 
> Yes, but the original poster asked if there was anything he should do prior 
> to booting into
> Windows for the first time. It is entirely possbile to have installed Debian 
> before you boot
> into Windows

Is there any benefit to do so instead of completing the Windows
installation and then installing Debian ? I can't see any.



Re: bash script globbing

2015-09-20 Thread Loïc Grenié
2015-09-20 22:20 GMT+02:00 :

> I have been using the following script (named "enscript+") as a substitute
> for the package "a2ps":
>
> #!/bin/bash
> enscript --media=letter -2 --landscape --borders \
> --header='$n|A.D. $D{%Y.%m.%d}|$* gmt | Page $% of $=' "$1"
>

Here "$1" means "for the first argument"
   If enscript can work with several files together, you cn substitue "$1"
simply
  by "$@"
  If however enscript can only work one file at a time, you can do the
following:

for f in "$@"
do
  
done

 Hope this helps.

  Loïc


> The script works properly for a single file:
>
> enscript+ filename
>
> But when I execute
>
> enscript+ *
>
> in a directory containing several files, enscript prints only the first
> file in the directory.
>
> I googled "bash script globbing", but the discussions which I found are
> deep and confusing.  Is there not a simple solution?
>
> RLH
>
>
>


Re: Narrowing down problem source

2015-09-20 Thread Richard Owlett

Thomas Schmitt wrote:

Hi,


My later comments of run-to-run inconsistencies with dd and your recommended
tests were all using my home directory.


In this case any dd run with short result file should issue
some error message and/or there should be some hardware
error message in the system logs.



I captured a test run with the script command.
NOTE dd copies exactly same number of records for differently 
sized DVDs :{

Result was:

[snip]
]0;richard@debian-8: ~richard@debian-8:~$
]0;richard@debian-8: ~richard@debian-8:~$ N=0
]0;richard@debian-8: ~richard@debian-8:~$
]0;richard@debian-8: ~richard@debian-8:~$ F="JessieDVD"
]0;richard@debian-8: ~richard@debian-8:~$
]0;richard@debian-8: ~richard@debian-8:~$ E='.iso'
]0;richard@debian-8: ~richard@debian-8:~$
]0;richard@debian-8: ~richard@debian-8:~$ while true


  do

let N=N+1

 echo "Insert medium, wait until blinking ends, press Enter key (or Ctrl+C

 to end)"


read dummyvar

blocks=$(expr $(/sbin/isosize /dev/sr0) / 2048)

echo "Block count: "$blocks

echo "Byte count: $(expr $blocks '*' 2048)"

FILENAME=$F$N$E

echo "The output file will be $FILENAME"

echo ""

dd if=/dev/sr0 bs=2048 count=$blocks of=$FILENAME

echo ""

echo "next lines are output of ls and isosize commnds"

ls -l $FILENAME

/sbin/isosize $FILENAME

echo "about to repeat loop"

echo ""

  done
Insert medium, wait until blinking ends, press Enter key (or 
Ctrl+C to end)

Block count: 1941504
Byte count: 3976200192
The output file will be JessieDVD1.iso

1941504+0 records in
1941504+0 records out
3976200192 bytes (4.0 GB) copied, 876.109 s, 4.5 MB/s

next lines are output of ls and isosize commnds
-rw-r--r-- 1 richard richard 3976200192 Sep 20 13:39 JessieDVD1.iso
3976200192
about to repeat loop

Insert medium, wait until blinking ends, press Enter key (or 
Ctrl+C to end)


Block count: 2284052
Byte count: 4677738496
The output file will be JessieDVD2.iso

1941504+0 records in
1941504+0 records out
3976200192 bytes (4.0 GB) copied, 733.727 s, 5.4 MB/s

next lines are output of ls and isosize commnds
-rw-r--r-- 1 richard richard 3976200192 Sep 20 13:52 JessieDVD2.iso
4677738496
about to repeat loop

Insert medium, wait until blinking ends, press Enter key (or 
Ctrl+C to end)

^C
]0;richard@debian-8: ~richard@debian-8:~$ exit

Script done on Sat 20 Sep 2014 01:53:32 PM CDT



Re: augmenetation taille /tmp

2015-09-20 Thread Erwan David
Le 20/09/2015 18:47, Francois Lafont a écrit :
> On 20/09/2015 10:44, Jean-Michel OLTRA wrote:
>
>> espinasse:~$ lsof /tmp
> J'avais indiqué la commande « lsof | grep /tmp », pas la commande
> ci-dessus. Par ailleurs, et là par contre je ne l'ai pas indiqué,
> il faut mieux lancer la commande en tant que root.
>
>> COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
>> mysqld  1598mysql5u   REG  253,10  135 /tmp/ibQZHR5l 
>> (deleted)
>> mysqld  1598mysql6u   REG  253,1  101  136 /tmp/ibaQ1rC0 
>> (deleted)
>> mysqld  1598mysql7u   REG  253,10  137 /tmp/ibIoH28E 
>> (deleted)
>> mysqld  1598mysql8u   REG  253,10  138 /tmp/ibuX4pgY 
>> (deleted)
>> mysqld  1598mysql   12u   REG  253,10  139 /tmp/ibT8zJyG 
>> (deleted)
>> apache2 1712 root   10u   REG  253,10  132 /tmp/.ZendSem.AEtmFA 
>> (deleted)
>> apache2 6504 www-data   10u   REG  253,10  132 /tmp/.ZendSem.AEtmFA 
>> (deleted)
>> apache2 6505 www-data   10u   REG  253,10  132 /tmp/.ZendSem.AEtmFA 
>> (deleted)
>> apache2 6506 www-data   10u   REG  253,10  132 /tmp/.ZendSem.AEtmFA 
>> (deleted)
>> apache2 6507 www-data   10u   REG  253,10  132 /tmp/.ZendSem.AEtmFA 
>> (deleted)
>> apache2 6508 www-data   10u   REG  253,10  132 /tmp/.ZendSem.AEtmFA 
>> (deleted)
> Je suis très surpris que la commande « lsof /tmp » que tu as tapée
> t'indique des fichiers « deleted » dans /tmp vu que normalement la
> commande va faire une recherche dans les fichiers qui se trouvent
> dans l'arborescence de /tmp et donc des fichiers forcément non deleted.
> Du coup ta commande me semble incohérente. Ceci étant, on voit des
> fichiers deleted encore utilisés dans /tmp mais ils ne sont pas bien gros.
>
C'est au contraire tout à fait normal : lsof va regarder dans le kernel
les fichiers ouverts. Un fichier peut avoir été ouvert puis avoir été
supprimé, tant qu'il est ouvert il sera sur le disque mais pas
accessible. C'est très courant sur les fichiers temporaires qui n'ont
pas besoin de survivre à l'instance du programme de créer le fichier
puis immédiatement le supprimer. Ainsi on est sûr qu'il ne trainera pas
sur le disque quelle que soit la raison de la fermeture du programme.