Re: Fresh hidden bulb ip security camera- AJR

2016-02-18 Thread Jeff Chiang
Dear  Manager
 

This is Jeff from Shenzhen AJR ,11 years manufucture of security ip cameras.
We supply our own characteristic products and also OEM ODM  service.

Our new convert bulb camera may expand your business.

Feel free to ask me for catalogue, 
expect potential cooperation.

Best  regards
Jeff  Chiang




SHENZHEN ANJIERUI TECHNOLOGY CO.,LTD.
Room 409,Building 3,Block 30, Hi-tech Park,Nanshan District,Shenzhen,Guangdong 
Province 518057
​Tel:​ 86 755 36921469​   Fax:86 755 26722581 
Skype: ajrcam006





Re: SSH issue?

2016-02-18 Thread Reco
On Thu, Feb 18, 2016 at 10:13:48PM +0100, Chris wrote:
> Dear All,
> 
> after the following entry
> 
> Feb 18 17:48:05 jupiter sshd[30204]: pam_unix(sshd:auth): authentication
> failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=125.88.177.93 
> user=root
> ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^
> 
> my Jessie Server was down.
> 
> Has anyone seen this?

If you meant "failed ssh connections from CHINANET-GD IPs" - then yes.
Iptables works wonders for those - it's not that I plan visiting China
anytime soon :)
But if you meant "strange line of escape sequences in /var/log/auth.log"
- then no.


> Went it accidentally down?

Surely you know that auth.log is not the best place to search causes
of host reboots. I'd start with /var/log/kern.log. Maybe
/var/log/messages.


> Is this already an libc exploit?

Hardly. Recently patched CVE-2015-7547 (glibc getaddrinfo) could be used
for arbitrary code execution, but it would require crafted DNS records.
Of course, problematic DNS records could be served from whatever DNS
this host uses, but for me reverse DNS lookup for 125.88.177.93 ends
with NXDOMAIN.

Reco



Re: group membership activation

2016-02-18 Thread Celejar
On Thu, 18 Feb 2016 16:10:48 +
Bonno Bloksma  wrote:

> Hi,
> 
> Running a fresh Jessie install on a laptop with GNOME.
> Today I had to add a user (me) to a group (wireshark) for a program 
> (wireshark gui) to work. At first I thought I did something wrong but after a 
> reboot it did work, wireshark was able to see the interfaces.
> 
> So probably group membership is not determined at runtime but maybe at login 
> or some other moment. Where can I find more info about this? 
> Is this a problem specific to a desktop environment of can I run into this 
> with a straight CLI setup as well?
> 
> I know that in a Windows environment the group membership is added to the 
> user token at login. Changes in group membership have no effect untill the 
> user logs in again.

IIUC, Linux works the same way, although there are workarounds:

http://superuser.com/questions/272061/reload-a-linux-users-group-assignments-without-logging-out
https://arkaitzj.wordpress.com/2010/03/08/linux-add-user-to-a-group-without-logout/

> Bonno Bloksma

Celejar



Re : Faille de sécurité dans le GNU libc avec les requêtes DNS

2016-02-18 Thread merkedanke

 ou ici https://www.debian.org/ en bas de page !
[HS]le bug patché n'est que le pretexte à nous inciter à cliquer sur le 
lien où l'on voit que la lumière ne brille pas pour tout le monde.
bref, c'est pas une alerte , c'est de l'humour/ironie et c'est très 
drôle à mon sens.




Re: group membership activation

2016-02-18 Thread Seeker



On 2/18/2016 8:10 AM, Bonno Bloksma wrote:

Hi,

Running a fresh Jessie install on a laptop with GNOME.
Today I had to add a user (me) to a group (wireshark) for a program 
(wireshark gui) to work. At first I thought I did something wrong but 
after a reboot it did work, wireshark was able to see the interfaces.


So probably group membership is not determined at runtime but maybe at 
login or some other moment. Where can I find more info about this?
Is this a problem specific to a desktop environment of can I run into 
this with a straight CLI setup as well?


I know that in a Windows environment the group membership is added to 
the user token at login. Changes in group membership have no effect 
untill the user logs in again.


Bonno Bloksma

If you know enough to know that about Windows, I don't know why you 
would assume there was a problem

or that you did something wrong in Linux.

It's not a problem, it's by design.

Mysteriously the first things that come up for me on google don't 
mention it


https://www.pluralsight.com/blog/tutorials/linux-add-user-command

http://www.oreilly.com/openbook/debian/book/ch07_01.html

Probably easily overlooked, but the relevant Archwiki page does mention 
that if the user is logged in at the
time the change is made, they will need to log out and log in before 
they see the change.


https://wiki.archlinux.org/index.php/users_and_groups

Later, Seeker



Re: SSH issue?

2016-02-18 Thread Don Armstrong
On Thu, 18 Feb 2016, Chris wrote:
> after the following entry
> 
> Feb 18 17:48:05 jupiter sshd[30204]: pam_unix(sshd:auth): authentication
> failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=125.88.177.93 
> user=root
> ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^
> 
> my Jessie Server was down.
> 
> Has anyone seen this? Went it accidentally down? Is this already an
> libc exploit?

This just looks like the serial terminal line got screwed up (probably
due to the restart/failure) some time after that line was printed.

-- 
Don Armstrong  http://www.donarmstrong.com

First you take a drink,
then the drink takes a drink,
then the drink takes you.
 -- F. Scott Fitzgerald



Re: 5000 Folders in a directory

2016-02-18 Thread Don Armstrong
On Thu, 18 Feb 2016, SamuelOPH wrote:
> I'm not really sure how could I adapt your command to use '>' instead of
> touch, but shouldn't '>' be faster if using 3 processes too?

seq 0  | xargs touch; creates three processes, but only one process
is doing the touching.

% time dash -c 'for i in $(seq 0 ) ; do > $i ; done; '
dash -c 'for i in $(seq 0 ) ; do > $i ; done; '  0.02s user 0.05s system 
96% cpu 0.075 total
% time (seq 0  |xargs touch);   
( seq 0  | xargs touch; )  0.00s user 0.03s system 86% cpu 0.041 total


-- 
Don Armstrong  http://www.donarmstrong.com

If I had a letter, sealed it in a locked vault and hid the vault
somewhere in New York. Then told you to read the letter, thats not
security, thats obscurity. If I made a letter, sealed it in a vault,
gave you the blueprints of the vault, the combinations of 1000 other
vaults, access to the best lock smiths in the world, then told you to
read the letter, and you still can't, thats security.
 -- Bruce Schneier



RE: [OT] Saber nombre de equipo en red local (Era: red)

2016-02-18 Thread William Romero

>>>
>>>
>>> El 18 de febrero de 2016, 13:47, Camaleón escribió:

 El Thu, 18 Feb 2016 10:29:42 -0500, Jose escribió:

> lista una ayuda q me hace falta como yo puedo saber el nombre d e
> una PC que este en mi red les explico lo q quiero yo tengo un rango de
> ip lan 172.16.0.xx pero hay alguien q tiene implementado violando lo
> establecido y se que hay una red como esta 192.168.0.xx yo a esta ip
> le hago ping perfecto lo q no se cual es el comando desde la red de
> linux debian para saber el nombre de esa PC

 Podrás usar nmap (o herramientas de escaneo similares) pero el dato del
 nombre del equipo dependerá de varios factores (filtrado de paquetes o
 uso cortafuegos en los clientes, resolución de nombres vía DNS/NetBIOS,
 etc...).

 Saludos,

 --
 Camaleón

>>>
>>>
>>> Y volvemos a la situcion de siempre
>>> quien te dio el derecho a cambiar un mail de otro usuario
>>> eso es una falta total y absoluta de respeto
>>> alguna vez podes respetar a resto de los usuarios de la lista
>>>
>>> no sos ni moderador ni veedor ni nada mas que lo mismo que cualquiera de
>>> nosotros
>>>
>>> asi que queda en responsabilidad del usuario de la lista en corregir su
>>> error
>>>
>>>
>>
>> Me convencí, es "enfermita"
>>
>
> +1
>
>>
>
Tenes Dos segmentos distintos en la 172.16.x.x y 192.168.x.x , entonces agrega 
una direccion IP a tu eth del otro segmento para que puedas usar el Scanner  
nmap , te dara una lista de pC conectadas.

Salu2

WRC
  


Re: I need help

2016-02-18 Thread Gener Badenas
On Wed, Feb 17, 2016 at 9:37 PM, Adam Wilson  wrote:

> On Wed, 17 Feb 2016 15:51:58 +0800 Gener Badenas
>  wrote:
>
> > On Thu, Feb 11, 2016 at 8:01 AM, Ghaith Etaiwi
> >  wrote:
> >
> > > Hello, I'm starting in linux I used Ubuntu and didn't like it and I
> > > have read that many people that used Debian had a better
> > > experience, I have a MacBook Pro 4GB ram/ 500HDD/Intel HD 3000/ i5
> > > 2nd generation, can it run Debian?. Also, I want to know what
> > > version of Debian to download, I saw something about DVD1, DVD2...
> > >
> >
> > You can always choose net install so it is minimal.  Then you can
> > download everything else.  I assume internet is fast in your location.
>
> Depends on what you consider to be 'fast'. Is 120K/s fast?
>

That is true, speed is relative to a person's tolerance.




-- 
Java  and Groovy



Re: [Off Topic] Suporte para o navegador Iceweasel

2016-02-18 Thread Fabricio S. Paranhos

Iceweasel = Firefox

Basta procurar pela documentação do Firefox [1].

[1] https://developer.mozilla.org/en-US/docs/Web/CSS/Reference

On 02/18/2016 10:05 PM, Humberto A. Sousa wrote:

Pessoal,

Estou desenvolvendo algumas funções via web e gostaria que funcionasse no
Iceweasel, mas HTML5 e CSS3 tem alguns problemas.
Alguém pode me ajudar indicando algum material de suporte ou lista de
discussão sobre o assunto?

Desde já agradeço.


Humberto
humbe...@dontec.com.br



--
Fabrício S. Paranhos



Re: [OT] Saber nombre de equipo en red local (Era: red)

2016-02-18 Thread Angel Claudio Alvarez
El Thu, 18 Feb 2016 14:23:00 -0300
Felix Perez  escribió:

> El día 18 de febrero de 2016, 14:10, Cristian Mitchell
>  escribió:
> >
> >
> > El 18 de febrero de 2016, 13:47, Camaleón escribió:
> >>
> >> El Thu, 18 Feb 2016 10:29:42 -0500, Jose escribió:
> >>
> >> > lista  una ayuda  q me  hace   falta  como yo puedo saber el nombre d e
> >> > una  PC que este en  mi red les explico lo q quiero yo tengo un rango de
> >> >  ip lan 172.16.0.xx  pero hay alguien q  tiene implementado violando lo
> >> > establecido y se que  hay una  red como esta 192.168.0.xx yo a esta  ip
> >> > le hago ping perfecto lo q  no se cual es el comando desde  la red  de
> >> > linux debian  para  saber el nombre de esa PC
> >>
> >> Podrás usar nmap (o herramientas de escaneo similares) pero el dato del
> >> nombre del equipo dependerá de varios factores (filtrado de paquetes o
> >> uso cortafuegos en los clientes, resolución de nombres vía DNS/NetBIOS,
> >> etc...).
> >>
> >> Saludos,
> >>
> >> --
> >> Camaleón
> >>
> >
> >
> > Y volvemos a la situcion de siempre
> > quien te dio el derecho a cambiar un mail de otro usuario
> > eso es una falta total y absoluta de respeto
> > alguna vez podes respetar a resto de los usuarios de la lista
> >
> > no sos ni moderador ni veedor ni nada mas que lo mismo que cualquiera de
> > nosotros
> >
> > asi que queda en responsabilidad del usuario de la lista en corregir su
> > error
> >
> >
> 
> Me convencí, es "enfermita"
> 

+1

> 
> 
> 
> -- 
> usuario linux  #274354
> normas de la lista:  http://wiki.debian.org/es/NormasLista
> como hacer preguntas inteligentes:
> http://www.sindominio.net/ayuda/preguntas-inteligentes.html
> 


-- 
Angel Claudio Alvarez 



[Off Topic] Suporte para o navegador Iceweasel

2016-02-18 Thread Humberto A. Sousa
Pessoal,

Estou desenvolvendo algumas funções via web e gostaria que funcionasse no
Iceweasel, mas HTML5 e CSS3 tem alguns problemas.
Alguém pode me ajudar indicando algum material de suporte ou lista de
discussão sobre o assunto?

Desde já agradeço.


Humberto
humbe...@dontec.com.br


Re: Setting up HDRI in ImageMagick

2016-02-18 Thread Gary Roach

On 02/18/2016 12:42 PM, Thomas Schmitt wrote:

Hi,

Gary Roach wrote:

The instructions say to run ./configure --enable-hdri at the
command line.  On Debian Stretch with KDE desktop and bash konsole this
returns command not found.

You first need to go to the directory with the ./configure script.
Normally this is the top directory unpacked from a source tarball.

So the instruction
   ./configure --enable-hdri
in
   http://www.imagemagick.org/script/high-dynamic-range.php
is most probably a modification instruction for
   http://www.imagemagick.org/script/install-source.php
where you can see ./configure after the step
   cd ImageMagick-6.9.3

Well, the base instruction seems slightly outdated.
Currently the file
   http://www.imagemagick.org/download/ImageMagick.tar.gz
unpacks to directory
   ImageMagick-6.9.3-4

So my proposal for modified instructions is:

   cd $HOME
   mkdir image_magick_dir
   cd image_magick_dir
   wget http://www.imagemagick.org/download/ImageMagick.tar.gz
   tar xzf ImageMagick.tar.gz
   cd ImageMagick-6.9.3-4
   ./configure --enable-hdri
   make

(Be prepared that ImageMagick-6.9.3-5 or -6 emerges instead of -4.)

If this succeeds with no demotivating error message at the end, then
you should de-install the Debian binary version before you perform
the step

   sudo make install

After that, the command
   identify -version
should report HDRI. At least according to

I did not try out anything of this. Good luck to the trailblazers !


Have a nice day :)

Thomas


OOPS. I didn't notice that the instructions were assuming a tarball 
installation. I just used the debian aptitude install application. That 
answers one question but I still have a problem. The instructions say 
that after the installation that one can run the following to check the 
installation:

identify -version and get a Features list that includes HDRI
Unfortunately, the only feature that shows up is DCP Modules Open MP. No 
HDRI.
The ImageMagick installation must be there or identify wouldn't work at 
all. In addition I have used several convert functions successfully. Any 
suggestions.


Gary R.



Re: connect Ethernet to WiFi?

2016-02-18 Thread Thomas D Dial
A quick way to get a compatible USB WiFi would be to order one for a
Raspberry Pi from a store that sells the latter.  In the US I would use
Newark.com.

Tom

On 02/18/2016 01:49 AM, Staszek wrote:
> Hi
> 
> How do I connect an old laptop without WiFi (but with free USB ports and
> working wired Ethernet card) running Debian stable to a WiFi network,
> without installing non-free software on the laptop? What devices would
> you recommend?
> 



Re: sshuttle & 192.0.2.0

2016-02-18 Thread Richard Lucassen
On Thu, 18 Feb 2016 17:15:56 +0100
Jan Claeys  wrote:

> Richard Lucassen schreef op wo 17-02-2016 om 08:10 [+0100]:
> > Verschil is dat ik met m'n 192.0.2.0/24 geen slachtoffers maak. Ik 
> > zit er zelfs niemand mee in de weg.
> 
> Er is een kans dat bepaalde toestellen/software/routers/firewalls dat
> (eventueel na een upgrade) automatisch blokkeren natuurlijk:

Niet als ik het op de binnenkant van een tunnel toepas ;-)

-- 
richard lucassen
http://contact.xaq.nl/



Re: Aturar sense esperar un proces D (zombie)

2016-02-18 Thread Alex Muntada
Narcis Garcia:

> Algú sap d'una instrucció per forçar l'aturada inmediata del sistema,
> passant dels «zombies», que la pugui escriure en un programet (Bash)
> que controla la situació?

https://en.wikipedia.org/wiki/Magic_SysRq_key

Fixa't que pots enviar senyals al /proc/sysrq-trigger.

Salut,
Alex



Re: [OT] Saber nombre de equipo en red local (Era: red)

2016-02-18 Thread Cristian Mitchell
El 18 de febrero de 2016, 19:13, Felix Perez
escribió:

> El día 18 de febrero de 2016, 16:52, Cristian Mitchell
>  escribió:
> >
> >
> > El 18 de febrero de 2016, 14:23, Felix Perez >
> > escribió:
> >>
> >> El día 18 de febrero de 2016, 14:10, Cristian Mitchell
> >>  escribió:
> >> >
> >> >
> >> > El 18 de febrero de 2016, 13:47, Camaleón
> escribió:
> >> >>
> >> >> El Thu, 18 Feb 2016 10:29:42 -0500, Jose escribió:
> >> >>
> >> >> > lista  una ayuda  q me  hace   falta  como yo puedo saber el
> nombre d
> >> >> > e
> >> >> > una  PC que este en  mi red les explico lo q quiero yo tengo un
> rango
> >> >> > de
> >> >> >  ip lan 172.16.0.xx  pero hay alguien q  tiene implementado
> violando
> >> >> > lo
> >> >> > establecido y se que  hay una  red como esta 192.168.0.xx yo a esta
> >> >> > ip
> >> >> > le hago ping perfecto lo q  no se cual es el comando desde  la red
> >> >> > de
> >> >> > linux debian  para  saber el nombre de esa PC
> >> >>
> >> >> Podrás usar nmap (o herramientas de escaneo similares) pero el dato
> del
> >> >> nombre del equipo dependerá de varios factores (filtrado de paquetes
> o
> >> >> uso cortafuegos en los clientes, resolución de nombres vía
> DNS/NetBIOS,
> >> >> etc...).
> >> >>
> >> >> Saludos,
> >> >>
> >> >> --
> >> >> Camaleón
> >> >>
> >> >
> >> >
> >> > Y volvemos a la situcion de siempre
> >> > quien te dio el derecho a cambiar un mail de otro usuario
> >> > eso es una falta total y absoluta de respeto
> >> > alguna vez podes respetar a resto de los usuarios de la lista
> >> >
> >> > no sos ni moderador ni veedor ni nada mas que lo mismo que cualquiera
> de
> >> > nosotros
> >> >
> >> > asi que queda en responsabilidad del usuario de la lista en corregir
> su
> >> > error
> >> >
> >> >
> >>
> >> Me convencí, es "enfermita"
> >>
> >>
> >>
> >
> > Felix tampoco lo  hago por demostrar nada
> > por que por un lado esta bien las reglas
> > pero por el otro no es el método
> >
>
> Lo entendí, pero lo que digo lo digo a título personal. Estas
> conductas se replican y para las organizaciones o grupos son nefastas.
> Se ha convertido en tónica el cambiar los asuntos y demás.
>
> > yo nunca negué que camaleón ayudara
>
> Yo tampoco, pero su ayuda a la larga es peligrosa.
>
> > pero el comportamiento de un lugar con tanta gente tiene que ser
> civilizado
> > y esto implica respetuoso
> >
> Esta demostrado que no le interesa.
>
> > es tan importante el contenido como el modo en este caso
>
> Convengo, pero con ella no hay caso, además qué tú, yo y muchos otros
> estamos bloqueados y solo recibe los posts de los aduladores de
> siempre.  Insisto no le interesa el funcionamiento de la lista, sus
> intereses van por otro lado.
>
>


esto directamente ni me importa al contrario mejor aun
mi preocupación es por la gente que si necesita la ayuda

y si me tiene bloqueado mejor eso significa que si le importa lo que digo y
no lo puede afrontar

bye





>
> Saludos.
>
>
> --
> usuario linux  #274354
> normas de la lista:  http://wiki.debian.org/es/NormasLista
> como hacer preguntas inteligentes:
> http://www.sindominio.net/ayuda/preguntas-inteligentes.html
>
>


-- 
MrIX
Linux user number 412793.
http://counter.li.org/

las grandes obras,
las sueñan los santos locos,
las realizan los luchadores natos,
las aprovechan los felices cuerdo,
y las critican los inútiles crónicos,


intentando apturar trafico

2016-02-18 Thread juan carlos Rebate
que tl gente? vengo con otro problema, resulta que necesito saber por
que servidor pasa una aplicacion de windows y uso wireshark para
capturar, aqui tengo el primer problema, resulta que estando
habilidato el el ruteo en eth2 y ruteando el trfico a eth1 pero no lo
hace no rutea, instalo xplico  y subo una captura realizada con
wireshark para windows y no lo lee, no carga el archvo a pesar de que
solo pesa 100 kb, realizando pruebas le puse a capturr por la eth1, y
ya que el ruteo no funciona proble a navegar desde la maquina linux,
llendo a debian.org a google.es y eso, pero para mi sorpresa xplico no
carga es decir le pongo a capturar por la eth1 y no se queda marcado,
si capturo con wireshark le pongo en la eth1 y me captura el trafico
del router no de mi tarjeta, alguien tiene un metodo que funcione
realmente para rutear y capturar?



Re: Aturar sense esperar un proces D (zombie)

2016-02-18 Thread Oscar Osta Pueyo
Hola,
I fer un imatge amb clonezilla a un altre disc?

Salutacions,
El dia 18/02/2016 10:18 p. m., "Ernest Adrogué"  va
escriure:

> Hola,
>
> 2016-02-18, 20:49 (+0100); Narcis Garcia escriu:
> > Estic intentant recuperar dades d'un disc dur fet malbé.
> > D'entre milers de fitxers a copiar, cada vegada que em trobo amb un que
> > té blocs dolents, el disc esdevé illegible i el procés de lectura es
> > queda congelat sense manera de matar-lo (kill -15, kill -9).
> >
> > Per continuar haig d'aturar l'ordinador, i després s'inicia tot normal i
> > accessible.
> > El problema és que triga moltíssim en aturar-se perquè segueix esperant
> > aquell procés de lectura.
> >
> > Ja he llegit que per un procés en estat «D» no es pot ordenar la
> > finalització forçosa fins que el nucli Linux ho decideixi, però assumint
> > això també costa molt finalitzar-ho tot sense desendollar l'ordinador de
> > la corrent.
> >
> > Algú sap d'una instrucció per forçar l'aturada inmediata del sistema,
> > passant dels «zombies», que la pugui escriure en un programet (Bash) que
> > controla la situació?
>
> No, però has provat el ddrescue[1]?  És un programa que va fent passades
> fins que aconsegueix llegir totes les dades, i el procés es pot aturar i
> continuar a conveniència, si no recordo malament.
>
> [1] https://www.gnu.org/software/ddrescue/
>
>


Re: Debian security: need recipe for blocking root ssh access AND all ssh password access

2016-02-18 Thread Richard Hector
[Please don't cc me; I'm on the list]

On 19/02/16 11:05, Roman wrote:
> 2016-02-18 22:30 GMT+02:00 Richard Hector  >:
> 
> 
> 
> I think a better solution in the end is to generate a random password
> for each box, and leave it, on paper, in a safe or similar. It's very
> rare anyone needs to use it.
> 
> 
> Here is a hint (joke), how to secure root password for servers that are
> physically accessible.
> Just generate a random password during install long enough to be not
> able to remember it. Do not write it down, continue installation.

That's just a marginally less secure version of locking it :-)

> At any given time you need the root session, just get the disk drive
> from your server and connect it to another machine, then just replace
> the hash to one you know password for in /etc/shadow. Place your drive
> back and boot up. After you finish the work, change your root password
> again to some crazy piece of random.
> 

... or just boot from usb/cd/floppy/tape/whatever :-)

Richard



Re: [OT] Saber nombre de equipo en red local (Era: red)

2016-02-18 Thread Felix Perez
El día 18 de febrero de 2016, 16:52, Cristian Mitchell
 escribió:
>
>
> El 18 de febrero de 2016, 14:23, Felix Perez
> escribió:
>>
>> El día 18 de febrero de 2016, 14:10, Cristian Mitchell
>>  escribió:
>> >
>> >
>> > El 18 de febrero de 2016, 13:47, Camaleón escribió:
>> >>
>> >> El Thu, 18 Feb 2016 10:29:42 -0500, Jose escribió:
>> >>
>> >> > lista  una ayuda  q me  hace   falta  como yo puedo saber el nombre d
>> >> > e
>> >> > una  PC que este en  mi red les explico lo q quiero yo tengo un rango
>> >> > de
>> >> >  ip lan 172.16.0.xx  pero hay alguien q  tiene implementado violando
>> >> > lo
>> >> > establecido y se que  hay una  red como esta 192.168.0.xx yo a esta
>> >> > ip
>> >> > le hago ping perfecto lo q  no se cual es el comando desde  la red
>> >> > de
>> >> > linux debian  para  saber el nombre de esa PC
>> >>
>> >> Podrás usar nmap (o herramientas de escaneo similares) pero el dato del
>> >> nombre del equipo dependerá de varios factores (filtrado de paquetes o
>> >> uso cortafuegos en los clientes, resolución de nombres vía DNS/NetBIOS,
>> >> etc...).
>> >>
>> >> Saludos,
>> >>
>> >> --
>> >> Camaleón
>> >>
>> >
>> >
>> > Y volvemos a la situcion de siempre
>> > quien te dio el derecho a cambiar un mail de otro usuario
>> > eso es una falta total y absoluta de respeto
>> > alguna vez podes respetar a resto de los usuarios de la lista
>> >
>> > no sos ni moderador ni veedor ni nada mas que lo mismo que cualquiera de
>> > nosotros
>> >
>> > asi que queda en responsabilidad del usuario de la lista en corregir su
>> > error
>> >
>> >
>>
>> Me convencí, es "enfermita"
>>
>>
>>
>
> Felix tampoco lo  hago por demostrar nada
> por que por un lado esta bien las reglas
> pero por el otro no es el método
>

Lo entendí, pero lo que digo lo digo a título personal. Estas
conductas se replican y para las organizaciones o grupos son nefastas.
Se ha convertido en tónica el cambiar los asuntos y demás.

> yo nunca negué que camaleón ayudara

Yo tampoco, pero su ayuda a la larga es peligrosa.

> pero el comportamiento de un lugar con tanta gente tiene que ser civilizado
> y esto implica respetuoso
>
Esta demostrado que no le interesa.

> es tan importante el contenido como el modo en este caso

Convengo, pero con ella no hay caso, además qué tú, yo y muchos otros
estamos bloqueados y solo recibe los posts de los aduladores de
siempre.  Insisto no le interesa el funcionamiento de la lista, sus
intereses van por otro lado.


Saludos.


-- 
usuario linux  #274354
normas de la lista:  http://wiki.debian.org/es/NormasLista
como hacer preguntas inteligentes:
http://www.sindominio.net/ayuda/preguntas-inteligentes.html



Re: Debian security: need recipe for blocking root ssh access AND all ssh password access

2016-02-18 Thread Roman
2016-02-18 22:30 GMT+02:00 Richard Hector :

>
>
> I think a better solution in the end is to generate a random password
> for each box, and leave it, on paper, in a safe or similar. It's very
> rare anyone needs to use it.
>
>
> Here is a hint (joke), how to secure root password for servers that are
physically accessible.
Just generate a random password during install long enough to be not able
to remember it. Do not write it down, continue installation.
At any given time you need the root session, just get the disk drive from
your server and connect it to another machine, then just replace the hash
to one you know password for in /etc/shadow. Place your drive back and boot
up. After you finish the work, change your root password again to some
crazy piece of random.

;-)

Seriously, you have to trust someone to achieve goals. So accessing server
via ssh keys is pretty normal and secure + ldaps auth of course
(centralized account management), so if someone leaves, just disable his
account. sudo supports ldap auth, kind of on group level, so if user even
got into a server for some reason, he can't become root, because his
account was deleted and not in sudo enebled group anymore.

After you configure the ldap and sudo for this scenario,  just disable
password auth and  root login in ssh conf. Also setup firewall to enable
ssh from known IP addresses only (here comes VPN into the game, if needed)
and move SSH port to something else, but 22. You will be as safe as ldap
and ssh and ssl are (exploits, exploits.. they're everywhere, you can't be
100% secure unless you disconnect the network cable from your server,
remove the keyboard and USB ports)

So basically security is all about trusting. You HAVE to choose whom (and
what) you trust.
-- 
Best regards,
Roman.


Re: Aturar sense esperar un proces D (zombie)

2016-02-18 Thread Ernest Adrogué
Hola,

2016-02-18, 20:49 (+0100); Narcis Garcia escriu:
> Estic intentant recuperar dades d'un disc dur fet malbé.
> D'entre milers de fitxers a copiar, cada vegada que em trobo amb un que
> té blocs dolents, el disc esdevé illegible i el procés de lectura es
> queda congelat sense manera de matar-lo (kill -15, kill -9).
> 
> Per continuar haig d'aturar l'ordinador, i després s'inicia tot normal i
> accessible.
> El problema és que triga moltíssim en aturar-se perquè segueix esperant
> aquell procés de lectura.
> 
> Ja he llegit que per un procés en estat «D» no es pot ordenar la
> finalització forçosa fins que el nucli Linux ho decideixi, però assumint
> això també costa molt finalitzar-ho tot sense desendollar l'ordinador de
> la corrent.
> 
> Algú sap d'una instrucció per forçar l'aturada inmediata del sistema,
> passant dels «zombies», que la pugui escriure en un programet (Bash) que
> controla la situació?

No, però has provat el ddrescue[1]?  És un programa que va fent passades
fins que aconsegueix llegir totes les dades, i el procés es pot aturar i
continuar a conveniència, si no recordo malament.

[1] https://www.gnu.org/software/ddrescue/



Re: Aturar sense esperar un proces D (zombie)

2016-02-18 Thread Josep Lladonosa
2016-02-18 20:49 GMT+01:00 Narcis Garcia :

> Estic intentant recuperar dades d'un disc dur fet malbé.
> D'entre milers de fitxers a copiar, cada vegada que em trobo amb un que
> té blocs dolents, el disc esdevé illegible i el procés de lectura es
> queda congelat sense manera de matar-lo (kill -15, kill -9).
>

Hola Narcís,

Em vaig trobar amb un cas d'un disc amb errors i el que vaig fer per
recuperar el que es va poder,  substituint-lo va ser.

1. crear partició en el nou disc (Y).
2. copiar tota la partició que té errors (X) a (Y), no aturant-se en els
errors, i en cas de no poder llegir, omplir-los en la destinació amb zeros.

dd if=/dev/sd*X* of=/dev/sd*Y* bs=512 conv=noerror,sync

3. un cop fet pots fer un fsck de la partició nova copiada (Y). Ja no ha de
tenir errors.

Crec que amb aquest procediment t'estalvies haver de matar processos. ;-)

Salutacions,
Josep


>
> Per continuar haig d'aturar l'ordinador, i després s'inicia tot normal i
> accessible.
> El problema és que triga moltíssim en aturar-se perquè segueix esperant
> aquell procés de lectura.
>
> Ja he llegit que per un procés en estat «D» no es pot ordenar la
> finalització forçosa fins que el nucli Linux ho decideixi, però assumint
> això també costa molt finalitzar-ho tot sense desendollar l'ordinador de
> la corrent.
>
> Algú sap d'una instrucció per forçar l'aturada inmediata del sistema,
> passant dels «zombies», que la pugui escriure en un programet (Bash) que
> controla la situació?
>
> Gràcies.
>
>


-- 
--
Salutacions...Josep
--


Re: I need help

2016-02-18 Thread Michael Fothergill
On 17 February 2016 at 13:37, Adam Wilson  wrote:

> On Wed, 17 Feb 2016 15:51:58 +0800 Gener Badenas
>  wrote:
>
> > On Thu, Feb 11, 2016 at 8:01 AM, Ghaith Etaiwi
> >  wrote:
> >
> > > Hello, I'm starting in linux I used Ubuntu and didn't like it and I
> > > have read that many people that used Debian had a better
> > > experience, I have a MacBook Pro 4GB ram/ 500HDD/Intel HD 3000/ i5
> > > 2nd generation, can it run Debian?. Also, I want to know what
> > > version of Debian to download, I saw something about DVD1, DVD2...
> > >
> >
> > You can always choose net install so it is minimal.  Then you can
> > download everything else.  I assume internet is fast in your location.
>
> Depends on what you consider to be 'fast'. Is 120K/s fast?
>
> ​Wouldn't a torrent file allow a a download that was quite a bit faster
than the 120 K/s​?

Regds

MF


Re: Setting up HDRI in ImageMagick

2016-02-18 Thread Thomas Schmitt
Hi,

Gary Roach wrote:
> The instructions say to run ./configure --enable-hdri at the
> command line.  On Debian Stretch with KDE desktop and bash konsole this
> returns command not found.

You first need to go to the directory with the ./configure script.
Normally this is the top directory unpacked from a source tarball.

So the instruction
  ./configure --enable-hdri
in
  http://www.imagemagick.org/script/high-dynamic-range.php
is most probably a modification instruction for
  http://www.imagemagick.org/script/install-source.php
where you can see ./configure after the step
  cd ImageMagick-6.9.3

Well, the base instruction seems slightly outdated.
Currently the file
  http://www.imagemagick.org/download/ImageMagick.tar.gz
unpacks to directory
  ImageMagick-6.9.3-4

So my proposal for modified instructions is:

  cd $HOME
  mkdir image_magick_dir
  cd image_magick_dir
  wget http://www.imagemagick.org/download/ImageMagick.tar.gz
  tar xzf ImageMagick.tar.gz
  cd ImageMagick-6.9.3-4
  ./configure --enable-hdri
  make

(Be prepared that ImageMagick-6.9.3-5 or -6 emerges instead of -4.)

If this succeeds with no demotivating error message at the end, then
you should de-install the Debian binary version before you perform
the step

  sudo make install

After that, the command
  identify -version
should report HDRI. At least according to

I did not try out anything of this. Good luck to the trailblazers !


Have a nice day :)

Thomas



Re: GNOME Shell can't unmount my USB key

2016-02-18 Thread Me Em
It's bug 814081 : http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=814081 .

Le lun. 15 févr. 2016 15:29, Sven Arvidsson  a écrit :

> On Mon, 2016-02-08 at 10:57 +0100, Me wrote:
> > Thanks for the reply, I reported it to the Debian GNOME maintainer.
> >
>
> Do you have a bug report number?
>
> I'm interested on following up on this as I experience the same thing
> (sometimes).
>
> There have been open bugs about this both upstream and in Ubuntu but it
> was resolved as a bug in a specific chipset, which doesn't seem to be
> the case here.
>
> --
> Cheers,
> Sven Arvidsson
> http://www.whiz.se
> PGP Key ID 6FAB5CD5
>
>


Re: Setting up HDRI in ImageMagick

2016-02-18 Thread Dan Ritter
On Thu, Feb 18, 2016 at 11:11:03AM -0800, Gary Roach wrote:
> Hi all,
> 
> Does anyone have experience with setting up High Dynamic Range
> Imaging with ImageMagick. The instructions say to run ./configure
> --enable-hdri at the command line. On Debian Stretch with KDE desktop
> and bash konsole this returns command not found. This is the only
> procedure that I have been able to find.

Running './configure' is almost always a step in building a
package from source. Is that what you are trying to do?

If so, the previous steps probably include:

- apt-get install build-essential  # if not previously installed
- downloading the source code for ImageMagick
- unpacking it in a work directory
- and then running the configure command.

All this is probably noted in a document called README or
INSTALL or similar in the ImageMagick source package.

-dsr-



Re: Debian security: need recipe for blocking root ssh access AND all ssh password access

2016-02-18 Thread Richard Hector
On 18/02/16 11:02, Jeremy T. Bouse wrote:
>>> I do agree locking the root password isn't advisable. As I use
>>> >> configuration management/automation to handle my servers I simply set the
>>> >> root password to generated password that only I know the algorithm to
>>> >> reproduce it when I need to,
>> > Can you give more details on the process (at least generally)?
> It's a technique I picked up from a past job... We took several pieces
> of information we'd know about a machine and concatenated it together
> with a delimiter character, then hashed it and cut it to length then
> used that as the password. So it was then encrypted with the appropriate
> password crypt routine for the host. If we needed the root password we
> could regenerate it from the information but rarely needed it outside of
> a DR situation.

That's essentially equivalent to having one root password for all hosts,
assuming all the info about the host is relatively easy to get. It just
means you need to remember the rules instead of the password.

That then means that you don't get to choose which people have root on
which boxes - anyone who gets the rule gets the lot. And that includes
anyone who leaves, of course.

I think a better solution in the end is to generate a random password
for each box, and leave it, on paper, in a safe or similar. It's very
rare anyone needs to use it.

Richard



Setting up HDRI in ImageMagick

2016-02-18 Thread Gary Roach

Hi all,

Does anyone have experience with setting up High Dynamic Range Imaging 
with ImageMagick. The instructions say to run ./configure --enable-hdri 
at the command line. On Debian Stretch with KDE desktop and bash konsole 
this returns command not found. This is the only procedure that I have 
been able to find.


Any help will be sincerely appreciated.

Gary R.



Aturar sense esperar un proces D (zombie)

2016-02-18 Thread Narcis Garcia
Estic intentant recuperar dades d'un disc dur fet malbé.
D'entre milers de fitxers a copiar, cada vegada que em trobo amb un que
té blocs dolents, el disc esdevé illegible i el procés de lectura es
queda congelat sense manera de matar-lo (kill -15, kill -9).

Per continuar haig d'aturar l'ordinador, i després s'inicia tot normal i
accessible.
El problema és que triga moltíssim en aturar-se perquè segueix esperant
aquell procés de lectura.

Ja he llegit que per un procés en estat «D» no es pot ordenar la
finalització forçosa fins que el nucli Linux ho decideixi, però assumint
això també costa molt finalitzar-ho tot sense desendollar l'ordinador de
la corrent.

Algú sap d'una instrucció per forçar l'aturada inmediata del sistema,
passant dels «zombies», que la pugui escriure en un programet (Bash) que
controla la situació?

Gràcies.



Re: I need help

2016-02-18 Thread Gary Roach

On 02/16/2016 09:53 PM, Chris Bannister wrote:

On Fri, Feb 12, 2016 at 10:46:08AM -0500, Ric Moore wrote:

It would be sweet if we didn't encourage people to post subject lines like
"I need help". It helps no one else but the OP. Ric

If only we had a list of psychiatrists or GPs for their area.

Hay guys, give the person a break. Sound like he has little experience 
with the open source community. Helpful comments instead of bashing 
would seem to be in order. Suggest they use a subject like "How to get 
Debian for Mack ..." or something. The first time on a new mailing list 
is usually confusing in it self.


Gary R.



Re: red

2016-02-18 Thread Cristian Mitchell
El 18 de febrero de 2016, 16:03, Omar Pacheco
escribió:

> Si están registrados en DNS con el comando nslookup lo puedes saber,
> pero como te mencionaron arriba puede ser cualquier otra cosa no
> unicamente un PC, un ip -r también podría funcionar. En realidad
> primero le preguntaría al admin de la red si tiene algún conocimiento
> de a qué cosa le asigno esa IP.
>
> El día 18 de febrero de 2016, 10:29, Jose 
> escribió:
> > lista  una ayuda  q me  hace   falta  como yo puedo saber el nombre d e
> una
> > PC que este en  mi red les explico lo q quiero
> > yo tengo un rango de  ip lan 172.16.0.xx  pero hay alguien q  tiene
> > implementado violando lo establecido y se que  hay una  red como esta
> > 192.168.0.xx yo a esta  ip le hago ping perfecto lo q  no se cual es el
> > comando desde  la red  de linux debian  para  saber el nombre de esa PC
> >
> > --
> > Este mensaje le ha llegado mediante el servicio de correo electronico que
> > ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema
> > Nacional de Salud. La persona que envia este correo asume el compromiso
> de
> > usar el servicio a tales fines y cumplir con las regulaciones
> establecidas
> >
> > Infomed: http://www.sld.cu/
> >
>
>
>
> --
> Saludos,
>
> Omar Daniel Pacheco Díaz.
>
>
Jose te voy a pedir un super favor

podrías cambiar el asunto con un OT
hay muchos con ganas de ayudarte pero conservemos las reglas, y las normas
de respeto


gracias

-- 
MrIX
Linux user number 412793.
http://counter.li.org/

las grandes obras,
las sueñan los santos locos,
las realizan los luchadores natos,
las aprovechan los felices cuerdo,
y las critican los inútiles crónicos,


Re: [OT] Saber nombre de equipo en red local (Era: red)

2016-02-18 Thread Cristian Mitchell
El 18 de febrero de 2016, 14:23, Felix Perez
escribió:

> El día 18 de febrero de 2016, 14:10, Cristian Mitchell
>  escribió:
> >
> >
> > El 18 de febrero de 2016, 13:47, Camaleón escribió:
> >>
> >> El Thu, 18 Feb 2016 10:29:42 -0500, Jose escribió:
> >>
> >> > lista  una ayuda  q me  hace   falta  como yo puedo saber el nombre d
> e
> >> > una  PC que este en  mi red les explico lo q quiero yo tengo un rango
> de
> >> >  ip lan 172.16.0.xx  pero hay alguien q  tiene implementado violando
> lo
> >> > establecido y se que  hay una  red como esta 192.168.0.xx yo a esta
> ip
> >> > le hago ping perfecto lo q  no se cual es el comando desde  la red  de
> >> > linux debian  para  saber el nombre de esa PC
> >>
> >> Podrás usar nmap (o herramientas de escaneo similares) pero el dato del
> >> nombre del equipo dependerá de varios factores (filtrado de paquetes o
> >> uso cortafuegos en los clientes, resolución de nombres vía DNS/NetBIOS,
> >> etc...).
> >>
> >> Saludos,
> >>
> >> --
> >> Camaleón
> >>
> >
> >
> > Y volvemos a la situcion de siempre
> > quien te dio el derecho a cambiar un mail de otro usuario
> > eso es una falta total y absoluta de respeto
> > alguna vez podes respetar a resto de los usuarios de la lista
> >
> > no sos ni moderador ni veedor ni nada mas que lo mismo que cualquiera de
> > nosotros
> >
> > asi que queda en responsabilidad del usuario de la lista en corregir su
> > error
> >
> >
>
> Me convencí, es "enfermita"
>
>
>
>
> --
> usuario linux  #274354
> normas de la lista:  http://wiki.debian.org/es/NormasLista
> como hacer preguntas inteligentes:
> http://www.sindominio.net/ayuda/preguntas-inteligentes.html
>
>
Felix tampoco lo  hago por demostrar nada
por que por un lado esta bien las reglas
pero por el otro no es el método

yo nunca negué que camaleón ayudara
pero el comportamiento de un lugar con tanta gente tiene que ser civilizado
y esto implica respetuoso

es tan importante el contenido como el modo en este caso





-- 
MrIX
Linux user number 412793.
http://counter.li.org/

las grandes obras,
las sueñan los santos locos,
las realizan los luchadores natos,
las aprovechan los felices cuerdo,
y las critican los inútiles crónicos,


Re: connect Ethernet to WiFi?

2016-02-18 Thread Jude DaShiell
I use a ralink adapter that came with an antenna I think about 4 inches 
long and it has no trouble communicating with a router two rooms away 
but I don't know far the router could be moved before the signal 
degraded.  The connector for the antenna is a screw on type.


On Thu, 18 Feb 2016, Sven Arvidsson wrote:


Date: Thu, 18 Feb 2016 14:34:10
From: Sven Arvidsson 
To: debian-user@lists.debian.org
Subject: Re: connect Ethernet to WiFi?

On Thu, 2016-02-18 at 14:00 -0500, doug wrote:

I looked at the first url shown above, and I see two usb adapters 
smaller than a matchbook, and one with an antenna. Recently I had to
spend some time in a rehab center, and I did not have a Linux driver
for 
my old Dell laptop, so I bought something like one of those
small adapters. _Do not!_  As I should have known (being a retired
RF 
engineer) they have no range! The gadget with the antenna may
work. (I was trying to hit a "hot spot" external to the facility. I 
finally found a driver--not easy!--using Windows-- which allowed the 
internal
wifi system to work.) OTOH, if you're only trying to connect across
a 
room, the little matchbook size gadget will probably be OK.


I very much agree, I always buy the ones that can take a large external
antenna. With one of those I have no problem getting reception in the
basement, with the router two floors up.




--



Re: connect Ethernet to WiFi?

2016-02-18 Thread Sven Arvidsson
On Thu, 2016-02-18 at 14:00 -0500, doug wrote:
> I looked at the first url shown above, and I see two usb adapters 
> smaller than a matchbook, and one with an antenna. Recently I had to
> spend some time in a rehab center, and I did not have a Linux driver
> for 
> my old Dell laptop, so I bought something like one of those
> small adapters. _Do not!_  As I should have known (being a retired
> RF 
> engineer) they have no range! The gadget with the antenna may
> work. (I was trying to hit a "hot spot" external to the facility. I 
> finally found a driver--not easy!--using Windows-- which allowed the 
> internal
> wifi system to work.) OTOH, if you're only trying to connect across
> a 
> room, the little matchbook size gadget will probably be OK.

I very much agree, I always buy the ones that can take a large external
antenna. With one of those I have no problem getting reception in the
basement, with the router two floors up.

-- 
Cheers,
Sven Arvidsson
http://www.whiz.se
PGP Key ID 6FAB5CD5



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


Re: Crear imagen del sistema y restaurarlo en una PC Virtual

2016-02-18 Thread Omar Pacheco
Mira hombre, te la pongo más facil.

1. Creas una máquina virtual con un sistema operativo igual al que
tienes en el servidor que quieras clonar(sistema base), haces toda la
instalación
2. Usas rsync para copiarte los File Systems del sistema operativo que
quieras copiarte a la máquina virtual, y listo tienes tu máquina
clonada.

Saludos,



El día 17 de febrero de 2016, 16:44, Ismael L. Donis Garcia
 escribió:
> Es posible crear una imagen del sistema y restaurarla en una maquina virtual
> con virtualbox dentro del mismo sistema?
>
> De ser posible que debo hacer?
>
> Gracias y disculpen por las preguntas talvez tan simples para ustedes.
> 
> | ISMAEL |
> 
>
>



-- 
Saludos,

Omar Daniel Pacheco Díaz.



Re: red

2016-02-18 Thread Omar Pacheco
Si están registrados en DNS con el comando nslookup lo puedes saber,
pero como te mencionaron arriba puede ser cualquier otra cosa no
unicamente un PC, un ip -r también podría funcionar. En realidad
primero le preguntaría al admin de la red si tiene algún conocimiento
de a qué cosa le asigno esa IP.

El día 18 de febrero de 2016, 10:29, Jose  escribió:
> lista  una ayuda  q me  hace   falta  como yo puedo saber el nombre d e una
> PC que este en  mi red les explico lo q quiero
> yo tengo un rango de  ip lan 172.16.0.xx  pero hay alguien q  tiene
> implementado violando lo establecido y se que  hay una  red como esta
> 192.168.0.xx yo a esta  ip le hago ping perfecto lo q  no se cual es el
> comando desde  la red  de linux debian  para  saber el nombre de esa PC
>
> --
> Este mensaje le ha llegado mediante el servicio de correo electronico que
> ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema
> Nacional de Salud. La persona que envia este correo asume el compromiso de
> usar el servicio a tales fines y cumplir con las regulaciones establecidas
>
> Infomed: http://www.sld.cu/
>



-- 
Saludos,

Omar Daniel Pacheco Díaz.



Re: connect Ethernet to WiFi?

2016-02-18 Thread doug


On 02/18/2016 03:48 AM, to...@tuxteam.de wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, Feb 18, 2016 at 10:20:25AM +0100, Sven Arvidsson wrote:

[...]

http://www.fsf.org/resources/hw/endorsement/respects-your-freedom
https://wiki.debian.org/WiFi

How could I have forgotten about those? Thanks, Sven!

- -- t
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlbFhVgACgkQBcgs9XrR2kbI2gCeLj79cEEK2Ubojv9+fmXnEwtb
f78An25+COi6kvdfvpVMtLiGpTVZoOt8
=EIq9
-END PGP SIGNATURE-


I looked at the first url shown above, and I see two usb adapters 
smaller than a matchbook, and one with an antenna. Recently I had to
spend some time in a rehab center, and I did not have a Linux driver for 
my old Dell laptop, so I bought something like one of those
small adapters. _Do not!_  As I should have known (being a retired RF 
engineer) they have no range! The gadget with the antenna may
work. (I was trying to hit a "hot spot" external to the facility. I 
finally found a driver--not easy!--using Windows-- which allowed the 
internal
wifi system to work.) OTOH, if you're only trying to connect across a 
room, the little matchbook size gadget will probably be OK.

--doug



Re: red

2016-02-18 Thread del tonos
Si es un windows, nbtscan te puede ayudar.

Saludos

El 18 de febrero de 2016, 11:50, Gonzalo Rivero
escribió:

> El jue, 18-02-2016 a las 10:29 -0500, Jose escribió:
> > lista  una ayuda  q me  hace   falta  como yo puedo saber el nombre d
> > e
> > una  PC que este en  mi red les explico lo q quiero
> > yo tengo un rango de  ip lan 172.16.0.xx  pero hay alguien q  tiene
> > implementado violando lo establecido y se que  hay una  red como
> > esta
> > 192.168.0.xx yo a esta  ip le hago ping perfecto lo q  no se cual es
> > el
> > comando desde  la red  de linux debian  para  saber el nombre de esa
> > PC
> >
> si el dns está bien hecho,
> host x.y.z.w
>
> > --
> > Este mensaje le ha llegado mediante el servicio de correo electronico
> > que ofrece Infomed para respaldar el cumplimiento de las misiones del
> > Sistema Nacional de Salud. La persona que envia este correo asume el
> > compromiso de usar el servicio a tales fines y cumplir con las
> > regulaciones establecidas
> >
> > Infomed: http://www.sld.cu/
> >
>
>


Re: Crear imagen del sistema y restaurarlo en una PC Virtual

2016-02-18 Thread del tonos
> A veces pienso que hablo un idioma distinto (klingon-camaleónico), menos
> mal que es la lista en español que si no... O:-)
>
> No,pero me he sentido como si leyera alguna de las ambiguas letras de
David Bowie :)








> 2/ Otra opción disponible (al menos en VirtualBox) es usar lo que ellos
> llaman "acceso en bruto al disco duro" que permite usar el sistema
> operativo instalado en un disco duro físico (o una partición) como una
> máquina virtual, directamente, por lo que los datos se ese disco duro
> físico se ven alterados según los cambios que hagas en la máquina
> virtual. Y esto es lo que es peligroso y puede conllevar pérdida de
> datos, algo que advierten en la documentación¹.
>
> ¹https://www.virtualbox.org/manual/ch09.html#rawdisk
>
> Ah ah ah ah OK, vale. Si lo entiendo y lo he usado alguna vez, no le
llamaba bruto si no en directo (lapsus!). Ok, y si, al menos yo tampoco
recomiendo esa opción , porque como truene el host que tiene el REAL y se
cuelgue, se puede ir a al carajo la maquina virtual (y los datos contenidos
en el disco real). Me ha pasado.
Gracias por el tip!


Como apunta más abajo Ismael no habia tenido en cuenta el tema de rsync
para tener sincronizados ambos.

Saludos










> Saludos,
>
> --
> Camaleón
>
>


Re: Crear imagen del sistema y restaurarlo en una PC Virtual

2016-02-18 Thread Ismael L. Donis Garcia
- Original Message - 
From: "Camaleón" 

To: 
Sent: Thursday, February 18, 2016 10:49 AM
Subject: Re: Crear imagen del sistema y restaurarlo en una PC Virtual



El Thu, 18 Feb 2016 09:08:25 -0600, del tonos escribió:

(ese formato html...)


Hola, aunque llegues tarde...

El 18 de febrero de 2016, 08:48, Camaleón escribió:


El Wed, 17 Feb 2016 16:44:18 -0500, Ismael L. Donis Garcia escribió:

> Es posible crear una imagen del sistema y restaurarla en una maquina
virtual
> con virtualbox dentro del mismo sistema?

Sí, claro. Pero no hay sincronización, serían dos sistemas
independientes con distintas derivas. Cosa aparte sería usar el sistema
actual "en bruto" (tal cual) dentro de una VM pero eso ya no te lo
recomendaría con VirtualBox, es peligroso.



¿Porque es peligroso? No entiendo tu respuesta, comienzas hablando de
sincronización (cuando se hablaba de clonado) y usar "el sistema actual
en bruto" dentro de una VM? Si eso es lo que el amigo pretende,
virtualizar un sistema REAL, eso es peligroso? :) cuentame que quiero
saber más!


A veces pienso que hablo un idioma distinto (klingon-camaleónico), menos
mal que es la lista en español que si no... O:-)

Yo he enfocado el problema de dos formas:

1/ Sistema 1 con Debian instalado en el equipo, se saca una imagen en
bruto y esta imagen se usa como disco virtual en VirtualBox, por lo que
tendrías un Sistema 2 Debian (virtualizado) dentro del Sistema Debian 1.
En este caso Sistema Debian 1 y Sistema Debian 2 son dos sistemas
distintos con aplicaciones y configuraciones diferentes. Esto es lo que
entiendo que busca Ismael y no hay peligro alguno.

2/ Otra opción disponible (al menos en VirtualBox) es usar lo que ellos
llaman "acceso en bruto al disco duro" que permite usar el sistema
operativo instalado en un disco duro físico (o una partición) como una
máquina virtual, directamente, por lo que los datos se ese disco duro
físico se ven alterados según los cambios que hagas en la máquina
virtual. Y esto es lo que es peligroso y puede conllevar pérdida de
datos, algo que advierten en la documentación¹.

¹https://www.virtualbox.org/manual/ch09.html#rawdisk

Saludos,

--
Camaleón



Si la opción 1 es la que busco. Se me olvido decir que tengo 4 particiones y 
solo quería o me interesan 3 en la PC virtual


La PC virtual correría dentro de la original.

Las particiones que tengo ahora son.
- Una primaria dende esta el sistema
- Las demás extendidas
  - Una de los /var/log
  - Una de /home

Las demás no me interesan
- la Swap
- la de datos que esta en /mnt/datos

Quiero montar el sistema que tengo para probar cosas sin que se me rompa el 
sistema principal, pero partiendo de todo lo que ya tengo montado. Necesito 
partir de mi sistema real y no de uno nuevo, ya que tendría con instalar 
muchas cosas


Saludos Reiterados

| ISMAEL |





Re: High CPU load, but nothing consuming it...

2016-02-18 Thread Gary Roach

On 02/18/2016 08:43 AM, Florent B wrote:


On 02/18/2016 05:31 PM, Erick Ocrospoma wrote:

Hi,

On 18 February 2016 at 10:26, Florent B  wrote:

Hi everyone,

Today I have a little problem with a server on Jessie.

It acts as a load balancer with IPVS+Keepalived.

It is clustered with another server as failover, both servers have the
same problem. Even if one of them is "slave", without charge.

Sometime CPU load jump over 15 (1min average) and goes down to near zero
a few minutes later. In the meantime, all CPU stats are "normal" (stable
iowait, etc.).

Here you can see my monitoring graphs for CPU Load :
http://oi65.tinypic.com/kccu9.jpg

And there for CPU utilization : http://oi66.tinypic.com/2w6sz9s.jpg

You can see CPU is always idle...

Both servers are virtualized with kvm last version.

I have other servers like this, configured the same way, which does not
have the problem.

Does someone have an idea on how to explain this ?

Thank you a lot.

Florent


When I/O is high but cpu is not comsumed at all, it could be network
who is generating load. Do you have any network graph or stat ?




Hi and thank you for your answer.

Here are network graphs for the period :
http://oi67.tinypic.com/macbvp.jpg & http://oi67.tinypic.com/2h7i15j.jpg

Network is not included in I/O ? As you can see there is no extra load
on network at this specific time...


Try using KsysGuard. I keep it in the bottom right of my screen at all 
times. The process table will tell you which process is soaking up your 
cpu time. This may give you a better chance of finding the problem. You 
could also use ps but KsysGuard is way easier to use.


Gary R.



Re: debian8 - nfs

2016-02-18 Thread Camaleón
El día 18 de febrero de 2016, 15:45, Alberto Cabrejas Pérez
 escribió:

Se te fue al privado, reenvío a la lista.

> El 18/02/16 a las 09:40, Camaleón escribió:
>>
>> El Wed, 17 Feb 2016 12:51:10 -0500, Alberto Cabrejas Pérez escribió:

(...)

>>> root@ftp:/# modprobe nfs
>>> modprobe: ERROR: ../libkmod/libkmod.c:508
>>> kmod_lookup_alias_from_builtin_file() could not open builtin file
>>> '/lib/modules/2.6.32-37-pve/modules.builtin.bin'
>>> modprobe: FATAL: Module nfs not found.
>>> root@ftp:/# lsmod | grep nfs
>>
>> Hum... ¿qué kernel tienes (uname -r)? Parece una máquina virtual.
>>
>> Manda a la lista el resultado de este comando, interesa ver qué versiones
>> del kernel y de los headers tienes instalados:
>>
>> dpkg -l | grep -i linux-*
>>
>>
> si es una virtual sobre proxmox:
> root@ftp:/# uname -r
> 2.6.32-37-pve

Okay...

No te olvides de revisar el listado de los paquetes del kernel con el
comando que te he puesto más arriba.

Saludos,

-- 
Camaleón



Re: Crear imagen del sistema y restaurarlo en una PC Virtual

2016-02-18 Thread Omar Pacheco
Veo que les gusta compliacarse, para mí la forma más sencilla de hacer
esto es usando el comando dd.

1. Saca una imagen del disco duro o partición donde tienes instalado
el SO que quieres clonar

# dd if=/dev/sda of=/system_images/sda.img, reemplazas sda por el
disco o partición donde está el SO
o si lo quieres comprimido, # dd if=/dev/sda | gzip -c >
/system_images/sda.img.gz

2. Arrancas la máquina virtual con un live CD o ejecutas algúna opción
en el disco de instalación que te pertina tener una shell y red para
que puedas copiar el archivo a tu máquina virtual mediante scp o
carpeta compartida o lo que sea.

3. para restaurar el backup de tu sistema en la máquina virtual

# dd if=/system_images/sda.img of=/dev/sda, reemplazas sda por el
nombre de tu disco virtual, vda por ejempol

si usaste la opción de comprimir el archivo entonces tiens que ejecutar
# gzip -dc /system_images/sda.img.gz | dd of=/dev/sda

Con eso deberías tener tú sistema clonado.

Este método tiene la desventaja de que clona todo el disco, es decir
si tienes una partición con datos también se lo va llevar a la imágen,
funciona bien si el disco es exclusivo para el SO o si lo tienes
montado en una sola partición y no tienes estructuras de File Systems
independietes para el SO.

Otra forma de hacerlo es con el comando rsync, este ultimo es el que
yo utilizo para clonar servidores en mi lugar de trabajo.
# rsync -av source_directory destination directory, por ejemplo

# rsync -av  /bin /boot /etc /home /lib /lib64 /opt /tmp /root /usr
/var /srv /sbin  root@IP_destino:/mnt/so --exclude=/var/lib/ntp/proc/*
donde se supone que bajo /mnt/so tienes creada toda la estructura de
directorios del SO que puede ser igual a la máquina original o la
estructura que tu quieras montar ya sea usando solo la raíz / o
dividiendo la estructura en varios File systems

Luego de esos tendras que crear el ramdisk y hacer algunos ajustes
para instalar el cargador de arranque(menu.lst, grub.cfg, device.map o
cualquier otro archivo de cunfiguración del cargador). Espero te
funcione.













El día 17 de febrero de 2016, 16:44, Ismael L. Donis Garcia
 escribió:
> Es posible crear una imagen del sistema y restaurarla en una maquina virtual
> con virtualbox dentro del mismo sistema?
>
> De ser posible que debo hacer?
>
> Gracias y disculpen por las preguntas talvez tan simples para ustedes.
> 
> | ISMAEL |
> 
>
>



-- 
Saludos,

Omar Daniel Pacheco Díaz.



Re: 5000 Folders in a directory

2016-02-18 Thread SamuelOPH
I'm not really sure how could I adapt your command to use '>' instead of
touch, but shouldn't '>' be faster if using 3 processes too?

I mean, comparing one single execution of touch with ">", ">" is faster.
Thanks for the answer people, Tomas is right about the touch process.

Samuel Henrique O. P. [samueloph]
Técnico em Informática - UTFPR [2012].
Estudante de Engenharia de Computação - UTFPR.

2016-02-18 16:05 GMT-02:00 Jean-Baptiste Thomas 
:

> > *samueloph@teste:~/foo$ time ( for i in $(seq 0 ) ; do touch $i ;
> done
> > )real0m10.245suser0m3.332ssys0m1.576s*
> > Using shell built-in ">" to create 1 files:
> ​>
> > *samueloph@teste:~/foo$ time ( for i in $(seq 0 ) ; do > $i ; done
> > )real0m0.742suser0m0.064ssys0m0.120s​*
> >
> > ​">" is at least 10x faster than touch.​
>
> Your spirit of healthy scepticism is admirable but what these
> tests compare is not so much the time it takes to create a file
> with ">" vs touch(1) than the time it takes to create a process
> relative to the time it takes for the shell to iterate through
> a for() loop.
>
> Try "seq 0  | xargs touch" (3 process creations instead of
> 10,001). It will almost certainly be even faster than the ">"
> version.
>
>


Re: 5000 Folders in a directory

2016-02-18 Thread Jean-Baptiste Thomas
> *samueloph@teste:~/foo$ time ( for i in $(seq 0 ) ; do touch $i ; done
> )real0m10.245suser0m3.332ssys0m1.576s*
> Using shell built-in ">" to create 1 files:
​>
> *samueloph@teste:~/foo$ time ( for i in $(seq 0 ) ; do > $i ; done
> )real0m0.742suser0m0.064ssys0m0.120s​*
>
> ​">" is at least 10x faster than touch.​

Your spirit of healthy scepticism is admirable but what these
tests compare is not so much the time it takes to create a file
with ">" vs touch(1) than the time it takes to create a process
relative to the time it takes for the shell to iterate through
a for() loop.

Try "seq 0  | xargs touch" (3 process creations instead of
10,001). It will almost certainly be even faster than the ">"
version.



Re: red

2016-02-18 Thread Gonzalo Rivero
El jue, 18-02-2016 a las 10:29 -0500, Jose escribió:
> lista  una ayuda  q me  hace   falta  como yo puedo saber el nombre d
> e 
> una  PC que este en  mi red les explico lo q quiero
> yo tengo un rango de  ip lan 172.16.0.xx  pero hay alguien q  tiene 
> implementado violando lo establecido y se que  hay una  red como
> esta  
> 192.168.0.xx yo a esta  ip le hago ping perfecto lo q  no se cual es
> el 
> comando desde  la red  de linux debian  para  saber el nombre de esa
> PC
> 
si el dns está bien hecho, 
host x.y.z.w

> --
> Este mensaje le ha llegado mediante el servicio de correo electronico
> que ofrece Infomed para respaldar el cumplimiento de las misiones del
> Sistema Nacional de Salud. La persona que envia este correo asume el
> compromiso de usar el servicio a tales fines y cumplir con las
> regulaciones establecidas
> 
> Infomed: http://www.sld.cu/
> 



Re: [OT] Saber nombre de equipo en red local (Era: red)

2016-02-18 Thread Felix Perez
El día 18 de febrero de 2016, 14:10, Cristian Mitchell
 escribió:
>
>
> El 18 de febrero de 2016, 13:47, Camaleón escribió:
>>
>> El Thu, 18 Feb 2016 10:29:42 -0500, Jose escribió:
>>
>> > lista  una ayuda  q me  hace   falta  como yo puedo saber el nombre d e
>> > una  PC que este en  mi red les explico lo q quiero yo tengo un rango de
>> >  ip lan 172.16.0.xx  pero hay alguien q  tiene implementado violando lo
>> > establecido y se que  hay una  red como esta 192.168.0.xx yo a esta  ip
>> > le hago ping perfecto lo q  no se cual es el comando desde  la red  de
>> > linux debian  para  saber el nombre de esa PC
>>
>> Podrás usar nmap (o herramientas de escaneo similares) pero el dato del
>> nombre del equipo dependerá de varios factores (filtrado de paquetes o
>> uso cortafuegos en los clientes, resolución de nombres vía DNS/NetBIOS,
>> etc...).
>>
>> Saludos,
>>
>> --
>> Camaleón
>>
>
>
> Y volvemos a la situcion de siempre
> quien te dio el derecho a cambiar un mail de otro usuario
> eso es una falta total y absoluta de respeto
> alguna vez podes respetar a resto de los usuarios de la lista
>
> no sos ni moderador ni veedor ni nada mas que lo mismo que cualquiera de
> nosotros
>
> asi que queda en responsabilidad del usuario de la lista en corregir su
> error
>
>

Me convencí, es "enfermita"




-- 
usuario linux  #274354
normas de la lista:  http://wiki.debian.org/es/NormasLista
como hacer preguntas inteligentes:
http://www.sindominio.net/ayuda/preguntas-inteligentes.html



Re: I need help

2016-02-18 Thread Ric Moore

On 02/17/2016 03:07 PM, Richard Owlett wrote:

On 2/17/2016 7:37 AM, Adam Wilson wrote:

On Wed, 17 Feb 2016 15:51:58 +0800 Gener Badenas
 wrote:


On Thu, Feb 11, 2016 at 8:01 AM, Ghaith Etaiwi
 wrote:


Hello, I'm starting in linux I used Ubuntu and didn't like it and I
have read that many people that used Debian had a better
experience, I have a MacBook Pro 4GB ram/ 500HDD/Intel HD 3000/ i5
2nd generation, can it run Debian?. Also, I want to know what
version of Debian to download, I saw something about DVD1, DVD2...



You can always choose net install so it is minimal.  Then you can
download everything else.  I assume internet is fast in your location.


Depends on what you consider to be 'fast'. Is 120K/s fast?


Compared to what?
I recall loading the OS from paper tape. We *DID* have a high speed
reader after all 

More seriously use https://www.debian.org/CD/vendors/ to select an
appropriate vendor. I originally did that because all the connectivity I
had was a 56k dial-up line. I'm now have selected a cell network based
service with low data cap. For my peculiar personal usage I find it
reasonable to pay for the convenience of a complete set of DVD's once
per major release (will order Jessie soon ;)


While I was on hughesnet, I ordered DVD's from vendors. If you get the 
three DVD set you'll have all you could want. Ric



--
My father, Victor Moore (Vic) used to say:
"There are two Great Sins in the world...
..the Sin of Ignorance, and the Sin of Stupidity.
Only the former may be overcome." R.I.P. Dad.
http://linuxcounter.net/user/44256.html



Re: I need help

2016-02-18 Thread Ric Moore

On 02/17/2016 12:56 AM, Chris Bannister wrote:

On Fri, Feb 12, 2016 at 06:29:06PM +, Michael Fothergill wrote:


​If you want to do that I think you need to have some examples of sensible
posts and silly ones for new subscribers to scan through before they become
debian debutantes

Perhaps we could use popular song titles e.g. the Beatles "Help" song and
the Rolling Stones ​"You Can't Always Get What You Want" etc.


or even "Satisfaction" :)


I tend towards "Jesus built my hotrod". :) Ric


--
My father, Victor Moore (Vic) used to say:
"There are two Great Sins in the world...
..the Sin of Ignorance, and the Sin of Stupidity.
Only the former may be overcome." R.I.P. Dad.
http://linuxcounter.net/user/44256.html



Re: [OT] Saber nombre de equipo en red local (Era: red)

2016-02-18 Thread Cristian Mitchell
El 18 de febrero de 2016, 13:47, Camaleón escribió:

> El Thu, 18 Feb 2016 10:29:42 -0500, Jose escribió:
>
> > lista  una ayuda  q me  hace   falta  como yo puedo saber el nombre d e
> > una  PC que este en  mi red les explico lo q quiero yo tengo un rango de
> >  ip lan 172.16.0.xx  pero hay alguien q  tiene implementado violando lo
> > establecido y se que  hay una  red como esta 192.168.0.xx yo a esta  ip
> > le hago ping perfecto lo q  no se cual es el comando desde  la red  de
> > linux debian  para  saber el nombre de esa PC
>
> Podrás usar nmap (o herramientas de escaneo similares) pero el dato del
> nombre del equipo dependerá de varios factores (filtrado de paquetes o
> uso cortafuegos en los clientes, resolución de nombres vía DNS/NetBIOS,
> etc...).
>
> Saludos,
>
> --
> Camaleón
>
>

Y volvemos a la situcion de siempre
quien te dio el derecho a cambiar un mail de otro usuario
eso es una falta total y absoluta de respeto
alguna vez podes respetar a resto de los usuarios de la lista

no sos ni moderador ni veedor ni nada mas que lo mismo que cualquiera de
nosotros

asi que queda en responsabilidad del usuario de la lista en corregir su
error


-- 
MrIX
Linux user number 412793.
http://counter.li.org/

las grandes obras,
las sueñan los santos locos,
las realizan los luchadores natos,
las aprovechan los felices cuerdo,
y las critican los inútiles crónicos,


Re: crear repositorio

2016-02-18 Thread Camaleón
El Thu, 18 Feb 2016 11:29:44 -0500, merlinva2012 escribió:

> Buenas,
> Logré descargar una buena parte del repositorio de debian en un disco
> duro externo, pero no pude terminar de descargarlo todo. ¿Hay alguna
> forma de poder hacer un repositorio en mi disco duro externo solo con
> los paquetes descargados?, preguntándolo de otra forma ¿Existe algún
> programa que me reorganice los paquetes descargados y me haga un
> repositorio? Yo tengo los tres primeros DVD del repositorio oficial de
> debian 8. Uso debian 8 64bit. 

Aquí tienes instrucciones para eso mismo:

How to quickly create a local apt repository for random packages using a 
Debian based linux distribution?
http://unix.stackexchange.com/questions/87130/how-to-quickly-create-a-local-apt-repository-for-random-packages-using-a-debian

Si no tienes acceso a Internet me dices y te lo mando al correo privado.

> Otra pregunta mi pc soporta 32 y 64 bit,
> tiene un procesador dual core a 3.2 G y 2G de RAM DDR2. ¿Cuál debian es
> más conveniente el de 32 o el de 64bit?. Tengo que trabajar con software
> que realizan un gran procesamiento matemático (Octave, R ... etc). Me es
> dificil llegar a conseguir  más memoria RAM, es decir creo que no puedo
> aumentar la memoria RAM.

Si no vas a ampliar la RAM usa la versión 32 bits pura (no PAE). Espera, 
creo que Debian ya sólo tiene versiones i686 con PAE habilitado, tendrías 
que usar esa ;-(

Saludos,

-- 
Camaleón



[OT] Saber nombre de equipo en red local (Era: red)

2016-02-18 Thread Camaleón
El Thu, 18 Feb 2016 10:29:42 -0500, Jose escribió:

> lista  una ayuda  q me  hace   falta  como yo puedo saber el nombre d e
> una  PC que este en  mi red les explico lo q quiero yo tengo un rango de
>  ip lan 172.16.0.xx  pero hay alguien q  tiene implementado violando lo
> establecido y se que  hay una  red como esta 192.168.0.xx yo a esta  ip
> le hago ping perfecto lo q  no se cual es el comando desde  la red  de
> linux debian  para  saber el nombre de esa PC

Podrás usar nmap (o herramientas de escaneo similares) pero el dato del 
nombre del equipo dependerá de varios factores (filtrado de paquetes o 
uso cortafuegos en los clientes, resolución de nombres vía DNS/NetBIOS, 
etc...).

Saludos,

-- 
Camaleón



Re: crear repositorio

2016-02-18 Thread Erick Ocrospoma
Hola,

2016-02-18 11:29 GMT-05:00  :
> Buenas,
> Logré descargar una buena parte del repositorio de debian en un disco duro
> externo, pero no pude terminar de descargarlo todo. ¿Hay alguna forma de
> poder hacer un repositorio en mi disco duro externo solo con los paquetes
> descargados?, preguntándolo de otra forma ¿Existe algún programa que me
> reorganice los paquetes descargados y me haga un repositorio? Yo tengo los
> tres primeros DVD del repositorio oficial de debian 8. Uso debian 8 64bit.
> Otra pregunta mi pc soporta 32 y 64 bit, tiene un procesador dual core a
> 3.2 G y 2G de RAM DDR2. ¿Cuál debian es más conveniente el de 32 o el de
> 64bit?. Tengo que trabajar con software que realizan un gran procesamiento
> matemático (Octave, R ... etc). Me es dificil llegar a conseguir  más
> memoria RAM, es decir creo que no puedo aumentar la memoria RAM.
> saludos y gracias anticipadas,
> merlin
>
>
> --
> Este mensaje le ha llegado mediante el servicio de correo electronico que 
> ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema 
> Nacional de Salud. La persona que envia este correo asume el compromiso de 
> usar el servicio a tales fines y cumplir con las regulaciones establecidas
>
> Infomed: http://www.sld.cu/
>

Usa apt-cacher-ng, actua como repositorio, solo almacena los paquetes
que sean descargados a traves de este.


-- 


Erick.

---

IRC :   zerick
Blog: http://zerick.me
About :  http://about.me/zerick
Linux User ID :  549567



Re: connect Ethernet to WiFi?

2016-02-18 Thread Andrew M.A. Cater
On Thu, Feb 18, 2016 at 10:27:28AM -0500, Jude DaShiell wrote:
> Look up asus: ea-n66 on the internet, one of those entries ought to be an
> wifi to ethernet adapter.  Unfortunately windows will probably be required
> with a modern browser to set it up.  I have one of these and couldn't do it
> using command line utilities even with javascript enabled.
> 
> On Thu, 18 Feb 2016, Staszek wrote:
> 
> >Date: Thu, 18 Feb 2016 03:49:48
> >From: Staszek 
> >To: Debian users mailing list 
> >Subject: connect Ethernet to WiFi?
> >Resent-Date: Thu, 18 Feb 2016 08:58:14 + (UTC)
> >Resent-From: debian-user@lists.debian.org
> >
> >Hi
> >
> >How do I connect an old laptop without WiFi (but with free USB ports and
> >working wired Ethernet card) running Debian stable to a WiFi network,
> >without installing non-free software on the laptop? What devices would
> >you recommend?
> >
> >
> 
> -- 

USB-WiFi dongle - Edimax UW-7811N or some such. Most of the Edimax devices
just work.

Raspberry Pi official dongle would probably also work.

Anything on the FSF free hardware list - what do they suggest?

HTH,

AndyC



Re: High CPU load, but nothing consuming it...

2016-02-18 Thread Erick Ocrospoma
Hi,

On 18 February 2016 at 10:26, Florent B  wrote:
> Hi everyone,
>
> Today I have a little problem with a server on Jessie.
>
> It acts as a load balancer with IPVS+Keepalived.
>
> It is clustered with another server as failover, both servers have the
> same problem. Even if one of them is "slave", without charge.
>
> Sometime CPU load jump over 15 (1min average) and goes down to near zero
> a few minutes later. In the meantime, all CPU stats are "normal" (stable
> iowait, etc.).
>
> Here you can see my monitoring graphs for CPU Load :
> http://oi65.tinypic.com/kccu9.jpg
>
> And there for CPU utilization : http://oi66.tinypic.com/2w6sz9s.jpg
>
> You can see CPU is always idle...
>
> Both servers are virtualized with kvm last version.
>
> I have other servers like this, configured the same way, which does not
> have the problem.
>
> Does someone have an idea on how to explain this ?
>
> Thank you a lot.
>
> Florent
>

When I/O is high but cpu is not comsumed at all, it could be network
who is generating load. Do you have any network graph or stat ?



Erick.

---

IRC :   zerick
Blog: http://zerick.me
About :  http://about.me/zerick
Linux User ID :  549567



crear repositorio

2016-02-18 Thread merlinva2012
Buenas,
Logré descargar una buena parte del repositorio de debian en un disco duro
externo, pero no pude terminar de descargarlo todo. ¿Hay alguna forma de
poder hacer un repositorio en mi disco duro externo solo con los paquetes
descargados?, preguntándolo de otra forma ¿Existe algún programa que me
reorganice los paquetes descargados y me haga un repositorio? Yo tengo los
tres primeros DVD del repositorio oficial de debian 8. Uso debian 8 64bit.
Otra pregunta mi pc soporta 32 y 64 bit, tiene un procesador dual core a
3.2 G y 2G de RAM DDR2. ¿Cuál debian es más conveniente el de 32 o el de
64bit?. Tengo que trabajar con software que realizan un gran procesamiento
matemático (Octave, R ... etc). Me es dificil llegar a conseguir  más
memoria RAM, es decir creo que no puedo aumentar la memoria RAM.
saludos y gracias anticipadas,
merlin


--
Este mensaje le ha llegado mediante el servicio de correo electronico que 
ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema 
Nacional de Salud. La persona que envia este correo asume el compromiso de usar 
el servicio a tales fines y cumplir con las regulaciones establecidas

Infomed: http://www.sld.cu/



Re: red

2016-02-18 Thread Cristian Mitchell
El 18 de febrero de 2016, 12:29, Jose escribió:

> lista  una ayuda  q me  hace   falta  como yo puedo saber el nombre d e
> una  PC que este en  mi red les explico lo q quiero
> yo tengo un rango de  ip lan 172.16.0.xx  pero hay alguien q  tiene
> implementado violando lo establecido y se que  hay una  red como esta
> 192.168.0.xx yo a esta  ip le hago ping perfecto lo q  no se cual es el
> comando desde  la red  de linux debian  para  saber el nombre de esa PC
>
> --
> Este mensaje le ha llegado mediante el servicio de correo electronico que
> ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema
> Nacional de Salud. La persona que envia este correo asume el compromiso de
> usar el servicio a tales fines y cumplir con las regulaciones establecidas
>
> Infomed: http://www.sld.cu/
>
>
hay una pila de preguntas para  tu planteo
primero deberías ponerle OT por que no es un problema de SO linux debian
como estas seguro que es una pc?
por el rango podría ser un periférico tipo router etc
solo hay una ip de ese rango?
hay mas de una puerta de enlace?
como la detectaste
la escaneaste?
si la escaneaste que puertos tiene escuchando?
que mac address tiene?
cuando hablas de nombre? que nombre te referís uno de DNS ol que usa
windows para hacer brodcast?
cuantos equipos tenes en la red?



-- 
MrIX
Linux user number 412793.
http://counter.li.org/

las grandes obras,
las sueñan los santos locos,
las realizan los luchadores natos,
las aprovechan los felices cuerdo,
y las critican los inútiles crónicos,


Re: sshuttle & 192.0.2.0

2016-02-18 Thread Jan Claeys
Richard Lucassen schreef op wo 17-02-2016 om 08:10 [+0100]:
> Verschil is dat ik met m'n 192.0.2.0/24 geen slachtoffers maak. Ik 
> zit er zelfs niemand mee in de weg.

Er is een kans dat bepaalde toestellen/software/routers/firewalls dat
(eventueel na een upgrade) automatisch blokkeren natuurlijk:

> Network operators should add these address blocks to the list of non
> -routable address space, and if packet filters are deployed, then
> these address blocks should be added to packet filters.  These blocks
> are not for local use, and the filters may be used in both local and
> public contexts.



-- 
Jan Claeys




red

2016-02-18 Thread Jose
lista  una ayuda  q me  hace   falta  como yo puedo saber el nombre d e 
una  PC que este en  mi red les explico lo q quiero
yo tengo un rango de  ip lan 172.16.0.xx  pero hay alguien q  tiene 
implementado violando lo establecido y se que  hay una  red como esta  
192.168.0.xx yo a esta  ip le hago ping perfecto lo q  no se cual es el 
comando desde  la red  de linux debian  para  saber el nombre de esa PC


--
Este mensaje le ha llegado mediante el servicio de correo electronico que 
ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema 
Nacional de Salud. La persona que envia este correo asume el compromiso de usar 
el servicio a tales fines y cumplir con las regulaciones establecidas

Infomed: http://www.sld.cu/



group membership activation

2016-02-18 Thread Bonno Bloksma
Hi,

Running a fresh Jessie install on a laptop with GNOME.
Today I had to add a user (me) to a group (wireshark) for a program (wireshark 
gui) to work. At first I thought I did something wrong but after a reboot it 
did work, wireshark was able to see the interfaces.

So probably group membership is not determined at runtime but maybe at login or 
some other moment. Where can I find more info about this? 
Is this a problem specific to a desktop environment of can I run into this with 
a straight CLI setup as well?

I know that in a Windows environment the group membership is added to the user 
token at login. Changes in group membership have no effect untill the user logs 
in again.

Bonno Bloksma



Re: 5000 Folders in a directory

2016-02-18 Thread Jonathan Dowland
On Wed, Feb 17, 2016 at 08:13:23PM +0100, Chris wrote:
> Would it be better to use "real" subfolders with / as separator?

I prefer to do so, not so much for when imapd is reading/writing to them, but
for when I am poking about myself. "ls" etc. are going to be painful with that
many sub-folders.



Re: Crear imagen del sistema y restaurarlo en una PC Virtual

2016-02-18 Thread Camaleón
El Thu, 18 Feb 2016 09:08:25 -0600, del tonos escribió:

(ese formato html...)

> Hola, aunque llegues tarde...
> 
> El 18 de febrero de 2016, 08:48, Camaleón escribió:
> 
>> El Wed, 17 Feb 2016 16:44:18 -0500, Ismael L. Donis Garcia escribió:
>>
>> > Es posible crear una imagen del sistema y restaurarla en una maquina
>> virtual
>> > con virtualbox dentro del mismo sistema?
>>
>> Sí, claro. Pero no hay sincronización, serían dos sistemas
>> independientes con distintas derivas. Cosa aparte sería usar el sistema
>> actual "en bruto" (tal cual) dentro de una VM pero eso ya no te lo
>> recomendaría con VirtualBox, es peligroso.
>>
>>
> ¿Porque es peligroso? No entiendo tu respuesta, comienzas hablando de
> sincronización (cuando se hablaba de clonado) y usar "el sistema actual
> en bruto" dentro de una VM? Si eso es lo que el amigo pretende,
> virtualizar un sistema REAL, eso es peligroso? :) cuentame que quiero
> saber más!

A veces pienso que hablo un idioma distinto (klingon-camaleónico), menos 
mal que es la lista en español que si no... O:-)

Yo he enfocado el problema de dos formas:

1/ Sistema 1 con Debian instalado en el equipo, se saca una imagen en 
bruto y esta imagen se usa como disco virtual en VirtualBox, por lo que 
tendrías un Sistema 2 Debian (virtualizado) dentro del Sistema Debian 1. 
En este caso Sistema Debian 1 y Sistema Debian 2 son dos sistemas 
distintos con aplicaciones y configuraciones diferentes. Esto es lo que 
entiendo que busca Ismael y no hay peligro alguno.

2/ Otra opción disponible (al menos en VirtualBox) es usar lo que ellos 
llaman "acceso en bruto al disco duro" que permite usar el sistema 
operativo instalado en un disco duro físico (o una partición) como una 
máquina virtual, directamente, por lo que los datos se ese disco duro 
físico se ven alterados según los cambios que hagas en la máquina 
virtual. Y esto es lo que es peligroso y puede conllevar pérdida de 
datos, algo que advierten en la documentación¹.

¹https://www.virtualbox.org/manual/ch09.html#rawdisk

Saludos,

-- 
Camaleón



Re: connect Ethernet to WiFi?

2016-02-18 Thread Jude DaShiell
Look up asus: ea-n66 on the internet, one of those entries ought to be 
an wifi to ethernet adapter.  Unfortunately windows will probably be 
required with a modern browser to set it up.  I have one of these and 
couldn't do it using command line utilities even with javascript 
enabled.


On Thu, 18 Feb 2016, Staszek wrote:


Date: Thu, 18 Feb 2016 03:49:48
From: Staszek 
To: Debian users mailing list 
Subject: connect Ethernet to WiFi?
Resent-Date: Thu, 18 Feb 2016 08:58:14 + (UTC)
Resent-From: debian-user@lists.debian.org

Hi

How do I connect an old laptop without WiFi (but with free USB ports and
working wired Ethernet card) running Debian stable to a WiFi network,
without installing non-free software on the laptop? What devices would
you recommend?




--



Re: Crear imagen del sistema y restaurarlo en una PC Virtual

2016-02-18 Thread del tonos
Hola, aunque llegues tarde...

El 18 de febrero de 2016, 08:48, Camaleón escribió:

> El Wed, 17 Feb 2016 16:44:18 -0500, Ismael L. Donis Garcia escribió:
>
> > Es posible crear una imagen del sistema y restaurarla en una maquina
> virtual
> > con virtualbox dentro del mismo sistema?
>
> Sí, claro. Pero no hay sincronización, serían dos sistemas independientes
> con distintas derivas. Cosa aparte sería usar el sistema actual "en bruto"
> (tal cual) dentro de una VM pero eso ya no te lo recomendaría con
> VirtualBox, es peligroso.
>

¿Porque es peligroso? No entiendo tu respuesta, comienzas hablando de
sincronización (cuando se hablaba de clonado) y usar "el sistema actual en
bruto" dentro de una VM? Si eso es lo que el amigo pretende, virtualizar un
sistema REAL, eso es peligroso? :) cuentame que quiero saber más!

Saludos


Re: Crear imagen del sistema y restaurarlo en una PC Virtual

2016-02-18 Thread Camaleón
El Wed, 17 Feb 2016 16:44:18 -0500, Ismael L. Donis Garcia escribió:

> Es posible crear una imagen del sistema y restaurarla en una maquina virtual 
> con virtualbox dentro del mismo sistema?

Sí, claro. Pero no hay sincronización, serían dos sistemas independientes 
con distintas derivas. Cosa aparte sería usar el sistema actual "en bruto" 
(tal cual) dentro de una VM pero eso ya no te lo recomendaría con 
VirtualBox, es peligroso.
 
> De ser posible que debo hacer?

Pues tienes varias opciones pero seguramente la más rápida y sencilla sea 
ésta que indican aquí:

Creating a virtual machine in VirtualBox from a physical one
http://serverfault.com/questions/33603/creating-a-virtual-machine-in-virtualbox-from-a-physical-one

Lo único que te puede dar problemas es el cargador de arranque o la 
identificación de las particiones (esto último fácilmente modificable 
desde el archivo "/etc/fstab"). Si no funciona lo vuelves a reinstalar 
en la máquina virtual y listo.

Saludos,

-- 
Camaleón



Re: debian8 - nfs

2016-02-18 Thread Camaleón
El Wed, 17 Feb 2016 12:51:10 -0500, Alberto Cabrejas Pérez escribió:

> root@ftp:/# showmount -e 172.28.1.8
> Export list for 172.28.1.8:
> /mnt/FTP/ftp 10.28.1.0,172.28.1.0
> /mnt/STORAGE 172.28.1.0
> root@ftp:/# mount -t nfs 172.28.1.8:/mnt/FTP/ftp/ /var/storage/FTP/
> mount.nfs: No such device
> root@ftp:/# modprobe nfs
> modprobe: ERROR: ../libkmod/libkmod.c:508 
> kmod_lookup_alias_from_builtin_file() could not open builtin file 
> '/lib/modules/2.6.32-37-pve/modules.builtin.bin'
> modprobe: FATAL: Module nfs not found.
> root@ftp:/# lsmod | grep nfs

Hum... ¿qué kernel tienes (uname -r)? Parece una máquina virtual.

Manda a la lista el resultado de este comando, interesa ver qué versiones 
del kernel y de los headers tienes instalados:

dpkg -l | grep -i linux-*

Saludos,

-- 
Camaleón



Re: 5000 Folders in a directory

2016-02-18 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, Feb 18, 2016 at 12:12:50PM -0200, SamuelOPH wrote:
> Sorry about forgetting to reply to the list.

No worries :-)

> I don't understand why touch is the right thing, it doesn't create
> directories either, just files.

It creates empty files under the directory under study. 5000 of them.
At the end I have a directory with 5000 entries, and that was my
goal.

> Care to explain why did you chose touch instead of ">"?

Because this would add the time of opening each of those files and
closing them, which has nothing to do with the original question
(that is, how does the OS handle a directory with 5000 entries?).

> Using the external binary touch to create 1 files:
> 
> 
> 
> 
> *samueloph@teste:~/foo$ time ( for i in $(seq 0 ) ; do touch $i ; done
> )real0m10.245suser0m3.332ssys0m1.576s*
> Using shell built-in ">" to create 1 files:
> 
> *samueloph@teste:~/foo$ time ( for i in $(seq 0 ) ; do > $i ; done
> )real0m0.742suser0m0.064ssys0m0.120s*
> 
> >" is at least 10x faster than touch.

Thanks for posting your results.

This is really surprising to me. Have you thought of dropping the caches
(the dentry cache especially) between runs?

> But anyways, OP asked for 5000 directories, not files, shouldn't the tests
> be made with mkdir instead of touch or ">"?

Perhaps my memory is rusty (quite probably, actually ;-) but I remember the
question being about a directory with so many entries.

> Not a big deal tough.

No, but that's the way I learn new things. Your results, for example, made
me think. Whenever I've the time, I'll tinker a bit.

regards
- -- tomás
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlbFzn4ACgkQBcgs9XrR2kZVlACaAxyq9TuNxXP+5xkAW2fPLxcd
goMAn0ty1aiV0DHuBxURUQv3UAC3wF9w
=Jal/
-END PGP SIGNATURE-



dumb question about ocelot and cuda

2016-02-18 Thread Michael Fothergill
Dear Folks,

I have noticed that some molecular dynamics programs are making use of GPU
computing power these days. E.g. openmm which I think can be compiled and
run in debian:

https://simtk.org/home/openmm/

​It uses CUDA which I thought only ran on Nvidia graphics cards.

But I have discovered something called ocelot that seems to be able to
allow amd cards to run CUDA programs in some way or other..

Has anyone tried ocelot?

Does it work, ie are the execution times similar to native CUDA
compilations etc?

Comments appreciated

Regards

Michael Fothergill









​


Re: debian8 - nfs

2016-02-18 Thread fernando sainz
2016-02-17 18:51 GMT+01:00 Alberto Cabrejas Pérez :
> root@ftp:/# showmount -e 172.28.1.8
> Export list for 172.28.1.8:
> /mnt/FTP/ftp 10.28.1.0,172.28.1.0
> /mnt/STORAGE 172.28.1.0
> root@ftp:/# mount -t nfs 172.28.1.8:/mnt/FTP/ftp/ /var/storage/FTP/
> mount.nfs: No such device
> root@ftp:/# modprobe nfs
> modprobe: ERROR: ../libkmod/libkmod.c:508
> kmod_lookup_alias_from_builtin_file() could not open builtin file
> '/lib/modules/2.6.32-37-pve/modules.builtin.bin'
> modprobe: FATAL: Module nfs not found.
> root@ftp:/# lsmod | grep nfs
>
> --
>
> Saludos, Alberto Cabrejas Pérez
> Administrador de Redes Informáticas


Empieza por asegurarte de que no está:

En nfs.ko debería estar en la ruta:

/lib/modules/VERSIÓN_DE_TU_KERNEL/kernel/fs/nfs/nfs.ko

Si no está, entonces tienes un paquete del kernel mal instalado/compilado.




S2.



Re: 5000 Folders in a directory

2016-02-18 Thread SamuelOPH
​​
​Sorry about forgetting to reply to the list.​

I don't understand why touch is the right thing, it doesn't create
directories either, just files.
Care to explain why did you chose touch instead of ">"?
​
​Using the external binary touch to create 1 files:
​




*samueloph@teste:~/foo$ time ( for i in $(seq 0 ) ; do touch $i ; done
)real0m10.245suser0m3.332ssys0m1.576s*
Using shell built-in ">" to create 1 files:
​


*samueloph@teste:~/foo$ time ( for i in $(seq 0 ) ; do > $i ; done
)real0m0.742suser0m0.064ssys0m0.120s​*

​">" is at least 10x faster than touch.​

​But anyways, OP asked for 5000 directories, not files, shouldn't the tests
be made with mkdir instead of touch or ">"?
Not a big deal tough.

Samuel Henrique O. P. [samueloph]
Técnico em Informática - UTFPR [2012].
Estudante de Engenharia de Computação - UTFPR.


Re: Port réversible USB 3.0 Type C

2016-02-18 Thread Bernard Schoenacker
Le Thu, 18 Feb 2016 13:42:40 +0100 (CET),
rannou.p...@laposte.net a écrit :

> Bonjour, 
> Votre distribution Debian 8.0 Jessie prend-elle en compte la
> compatibilité avec les ports réversibles USB 3.0 Type C ?
> Cordialement 

bonjour,

serait il possible de voir ce que vous souhaitez faire ?

et pour éclairer la lanterne desautres co-listiers :

http://www.clubic.com/materiel-informatique/connectique/actualite-758521-usb-type-confusions-eviter.html

slt
bernard



Re: Crear imagen del sistema y restaurarlo en una PC Virtual

2016-02-18 Thread Ismael L. Donis Garcia
- Original Message - 
From: "Maykel Franco" 

To: "debian-user-spanish" 
Sent: Thursday, February 18, 2016 6:05 AM
Subject: Re: Crear imagen del sistema y restaurarlo en una PC Virtual



El día 17 de febrero de 2016, 23:12, del tonos  
escribió:

*Hola
**El comando recomendado era dc3dd

Se me olvidaba una ultima cosa, no he probado a hacer un redimensionado 
del

tamaño del HD (fué mi problema en ese caso).
Lo que hice, es una vez que hice la imagen de la particion:

1) Cree una maquina virtual y cree un disco con el nuevo tamaño deseado
2) Arranque esa maquina con una ISO en modo live
3) Desde el USB externo, volqué la imagen raw con dc3dd , al no tener las
virtualbox extensions se llevó restaurar desde USB un buen rato.
4) Una vez creada la imagen, inicio la maquina virtual para ver que todo 
OK
5) Vuelvo a reiniciar la maquina virtual, otra vez con el livecd, y 
mediante

qtparted redimensiono la particion y listo

Espero te ayude, saludos

El 17 de febrero de 2016, 16:07, del tonos 
escribió:


ola.
Yo lo hice bastante tiempo, debes arrancar desde un cd con una Linux 
Live,
conectar un disco USB externo y utilizar DD (te recomiendo dd3c, viene 
en la
backtrack si mal no recuerdo y la ventaja que tienes que te va mostrando 
el
progreso). Haces la imagen en tu HD externo. Con esto tienes una imagen 
tipo

RAW

Arrancas nuevamente tu sistema a migrar, te recomiendo que tenga
virtualbox instalado. Ahora conviertes de RAW a VDI


https://blog.sleeplessbeastie.eu/2012/04/29/virtualbox-convert-raw-image-to-vdi-and-otherwise/
(Por si no te carga la web, aqui va resumido:

VirtualBox command-line interface (VBoxManage) provides an easy way to
convert raw disk image to the VDI/VMDK format and otherwise.

Let's assume that we have raw image of the sdb device:

$ sudo dd if=/dev/sdb of=./sdb.raw

To use it with VirtualBox we need to convert it to the VDI format:

$ VBoxManage convertdd sdb.raw sdb.vdi --format VDI

)


Ahora ya tienes tu imagen de HD convertida a VDI, ya puedes en 
virtualbox

crear una maquina nueva y decirle que vas a usar una unidad de disco ya
creada.

Saludos

El 17 de febrero de 2016, 15:44, Ismael L. Donis
Garcia escribió:


Es posible crear una imagen del sistema y restaurarla en una maquina
virtual con virtualbox dentro del mismo sistema?

De ser posible que debo hacer?

Gracias y disculpen por las preguntas talvez tan simples para ustedes.

| ISMAEL |




Para que quedará fino y no tengas que estar redimensionando yo usaría
otra forma:

- Usas fsarchiver para hacer un backup de las particiones que quieras
o de todo, vas a copiar solo datos. Es aconsejable, evidentemente, que
lances fsarchiver desde un livecd pero también puedes hacerlo con el
sistema arrancado.

- Una vez tengas la copia, creas una VM con virtualbox y le das el
espacio que quieras al disco duro (siempre y cuando ese tamaño te
quepa tu backup, obviamente).

- Arrancas systemrescuecd, por ejemplo, realizas el particionado que
quieras con gparted, parted, fdisk...etc.

- Vuelcas la copia con fsarchiver.

- Revisa fstab, no sé si usas uuidd o el nombre del dispositivo.

- Haces un chroot desde el livecd Instalas el grub y listo... Ya lo
tienes. La mejor manera que nunca me ha fallado.

Muchas gracias a ambos "Maykel y del tonos" me pongo en función de buscar el 
live cd para ver que resulta.


Gracias reiteradas por su ayuda.

| ISMAEL |





debian8 - nfs

2016-02-18 Thread Alberto Cabrejas Pérez

root@ftp:/# showmount -e 172.28.1.8
Export list for 172.28.1.8:
/mnt/FTP/ftp 10.28.1.0,172.28.1.0
/mnt/STORAGE 172.28.1.0
root@ftp:/# mount -t nfs 172.28.1.8:/mnt/FTP/ftp/ /var/storage/FTP/
mount.nfs: No such device
root@ftp:/# modprobe nfs
modprobe: ERROR: ../libkmod/libkmod.c:508 
kmod_lookup_alias_from_builtin_file() could not open builtin file 
'/lib/modules/2.6.32-37-pve/modules.builtin.bin'

modprobe: FATAL: Module nfs not found.
root@ftp:/# lsmod | grep nfs

--

Saludos, *Alberto Cabrejas Pérez*
Administrador de Redes Informáticas
ARTex S.A. Sucursal Granma
http://www.artexsa.com
http://www.scgra.artex.sa
Linux Usuario Registrado # 31 666
Teléf.+53(023) 48-1912 48-1934 48-1956 Ext 115
Jabber: albe...@scgr.artex.cu
"BE FREE BE LINUX!!!"



Port réversible USB 3.0 Type C

2016-02-18 Thread rannou . paul
Bonjour, 
Votre distribution Debian 8.0 Jessie prend-elle en compte la compatibilité avec 
les ports réversibles USB 3.0 Type C ? 
Cordialement 


Re: Bug report - ext4: Unknown symbol __getblk_gfp (err 0)

2016-02-18 Thread Ian Campbell
On Thu, 2016-02-18 at 13:18 +0100, Miroslav Svoboda wrote:
> [...]
> Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt7-1 (2015-03-01) x86_64 GNU/Linux
> 
> [...]
> Any idea what is the problem? 

Your local vmlinux and initrd binaries are out of sync with the kernel
modules in the mirror network, due to the kernel update in the latest point
release. i.e. you need to update the binaries on your PXE server to deb8u2.

The current Jessie kernel is now 3.16.7-ckt20-1+deb8u2.

Ian.



Re: Bug report - ext4: Unknown symbol __getblk_gfp (err 0)

2016-02-18 Thread Ben Hutchings
On Thu, 2016-02-18 at 13:18 +0100, Miroslav Svoboda wrote:
> Dear Debian team, 
> 
> I have problem with debian Jessie PXE installation with preseed. I'm
> trying to install Debian Jessie on amd64 server. The installation goes
> fine until partitionning and fails right after when trying to mount the
> newly created partitions with ext4 filesystem. Dmesg give us an idea
> about the error that seems related to filesystem module:
> 
> ext4: Unknown symbol __bread_gfp (err 0)
> ext4: Unknown symbol __getblk_gfp (err 0)
>
> uname -a:
> Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt7-1 (2015-03-01) x86_64
> GNU/Linux
[...]

This is the original kernel image for jessie (from 8.0).  Not all the kernel 
modules from current jessie (8.3) will work with it.
You must update your netboot images after each point release.

Ben.

-- 
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.

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


Bug report - ext4: Unknown symbol __getblk_gfp (err 0)

2016-02-18 Thread Miroslav Svoboda
Dear Debian team, 

I have problem with debian Jessie PXE installation with preseed. I'm
trying to install Debian Jessie on amd64 server. The installation goes
fine until partitionning and fails right after when trying to mount the
newly created partitions with ext4 filesystem. Dmesg give us an idea
about the error that seems related to filesystem module:

ext4: Unknown symbol __bread_gfp (err 0)
ext4: Unknown symbol __getblk_gfp (err 0)

uname -a:
Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt7-1 (2015-03-01) x86_64
GNU/Linux

modinfo ext4:
filename:   /lib/modules/3.16.0-4-amd64/kernel/fs/ext4/ext4.ko
license:GPL
description:Fourth Extended Filesystem
author: Remy Card, Stephen Tweedie, Andrew Morton, Andreas
Dilger, Theodore Ts'o and others
alias:  fs-ext4
alias:  ext3
alias:  fs-ext3
alias:  ext2
alias:  fs-ext2
depends:mbcache,jbd2,crc16
intree: Y
vermagic:   3.16.0-4-amd64 SMP mod_unload modversions


Preseed:
# Localization
d-i debian-installer/locale string en_US
d-i console-keymaps-at/keymap select us
d-i console-setup/ask_detect boolean false
d-i console-setup/layoutcode string us

# Network configuration
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string netinstall
d-i netcfg/get_domain string


### Mirror settings
d-i mirror/country string manual
d-i mirror/http/hostname string debian.ignum.cz
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string

# Suite to install.
d-i mirror/suite string jessie

### Account setup
d-i passwd/root-login boolean true
d-i passwd/make-user boolean false

### our default password`
d-i passwd/root-password-crypted password "somepassword"

### Clock and time zone setup
d-i clock-setup/utc boolean true

d-i time/zone string Europe/Prague
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string ntp.ignum.cz

### Base system installation
tasksel tasksel/first multiselect standard
d-i pkgsel/include string openssh-server
d-i pkgsel/upgrade select full-upgrade
popularity-contest popularity-contest/participate boolean false
d-i pkgsel/update-policy select none

# Individual additional packages to install
d-i grub-installer/only_debian boolean true

### Allow non-free firmware
d-i hw-detect/load_firmware boolean true

### Finishing up the installation
d-i finish-install/reboot_in_progress note

d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-auto/choose_recipe select boot-root

d-i mdadm/boot_degraded boolean false
d-i partman-md/confirm boolean true
d-i partman-md/confirm_nooverwrite  boolean true
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman/choose_partition select Finish partitioning and write
changes to disk

d-i partman-auto/disk string /dev/sda /dev/sdb
d-i partman-auto/method string raid
d-i partman-auto-lvm/no_boot boolean true
d-i partman-auto-lvm/new_vg_name string vg0
d-i partman-lvm/confirm boolean true
d-i partman-auto/expert_recipe string\
   boot-root ::  \
 1000 35 1 raid  \
$lvmignore{ }\
$primary{ } method{ raid }   \
 .   \
2048 50 2048 ext4 \
$defaultignore{ }\
$lvmok{ }\
lv_name{ root }  \
method{ format } \
format{ }\
use_filesystem{ }\
filesystem{ ext4 }   \
mountpoint{ / }  \
 .   \
1024 51 1024 ext4 \
$defaultignore{ }\
$lvmok{ }\
lv_name{ tmp }  \
method{ format } \
format{ }\
use_filesystem{ }\
filesystem{ ext4 }   \
mountpoint{ /tmp }  \
 .   \
10240 52 10240 ext4 \
$defaultignore{ }\
$lvmok{ }\
lv_name{ var }  \
method{ format } \
format{ }\
use_filesystem{ }\
filesystem{ ext4 }   \
mountpoint{ /var }  \
 .  

Re: Stretch color scheme problems

2016-02-18 Thread Petter Adsen
On Tue, 16 Feb 2016 09:22:10 -0800
Gary Roach  wrote:

> On 02/15/2016 09:59 PM, Adam Wilson wrote:
> > On Mon, 15 Feb 2016 17:39:26 -0800 Gary Roach
> >  wrote:
> >  
> >> Ever since I switch to Stretch I have been having a problem with
> >> the color scheme of various applications. I get a lot of black
> >> lettering on a black background, white on white and dark blue on
> >> black background (impossible to read). I've tried to fiddle with
> >> the colors at the kde desktop level and also at the individual
> >> application level. There doesn't seem to be a consistent pattern
> >> to the problem. Any suggestions would be sincerely appreciated.  
> > It would be useful to know your theme settings.
> >
> >  
> KDE Apperance
> 
> Workspace Theme
>  Look And Feel - Oxygen
>  Desktop Theme - Breeze Dark
>  Cursor Theme - Oxygen Red Argentina
>  Splash Screen - Oxygen
> 
> I hope this helps

Is this a problem with GTK+ applications or Qt applications? The
settings above should only apply to Qt, AFAIK. If you want to fiddle
with GTK+ themes you can use lxappearance if KDE has no options for it.

Qt can mimic your GTK+ theme, but I don't think the opposite is
possible.

Petter

-- 
"I'm ionized"
"Are you sure?"
"I'm positive."



Re: tomcat

2016-02-18 Thread Jean-Michel OLTRA

Bonjour,


Le jeudi 18 février 2016, Eric Degenetais a écrit...


> Oui, quand il est activé le mode sécurité bloque le déploiement
> automatique, il faut créer un fichier de contexte qui référence le
> WAR. Le nom n'est pas complètement indifférent par défaut il
> conditionne le path. bimserver.xml sera déployé comme
> http://localhost:8080/bimserver par défaut.

Il me semble que, dans le fichier de contexte, on peut définir un
attribut path, qui pointe vers le véritable répertoire de la webapp. Par
exemple, pour le fichier bimserver.xml



Bon, c'est un peu vicieux peut-être, mais j'ai déjà du l'employer.

-- 
jm



Re: Crear imagen del sistema y restaurarlo en una PC Virtual

2016-02-18 Thread Maykel Franco
El día 17 de febrero de 2016, 23:12, del tonos  escribió:
> *Hola
> **El comando recomendado era dc3dd
>
> Se me olvidaba una ultima cosa, no he probado a hacer un redimensionado del
> tamaño del HD (fué mi problema en ese caso).
> Lo que hice, es una vez que hice la imagen de la particion:
>
> 1) Cree una maquina virtual y cree un disco con el nuevo tamaño deseado
> 2) Arranque esa maquina con una ISO en modo live
> 3) Desde el USB externo, volqué la imagen raw con dc3dd , al no tener las
> virtualbox extensions se llevó restaurar desde USB un buen rato.
> 4) Una vez creada la imagen, inicio la maquina virtual para ver que todo OK
> 5) Vuelvo a reiniciar la maquina virtual, otra vez con el livecd, y mediante
> qtparted redimensiono la particion y listo
>
> Espero te ayude, saludos
>
> El 17 de febrero de 2016, 16:07, del tonos escribió:
>>
>> ola.
>> Yo lo hice bastante tiempo, debes arrancar desde un cd con una Linux Live,
>> conectar un disco USB externo y utilizar DD (te recomiendo dd3c, viene en la
>> backtrack si mal no recuerdo y la ventaja que tienes que te va mostrando el
>> progreso). Haces la imagen en tu HD externo. Con esto tienes una imagen tipo
>> RAW
>>
>> Arrancas nuevamente tu sistema a migrar, te recomiendo que tenga
>> virtualbox instalado. Ahora conviertes de RAW a VDI
>>
>>
>> https://blog.sleeplessbeastie.eu/2012/04/29/virtualbox-convert-raw-image-to-vdi-and-otherwise/
>> (Por si no te carga la web, aqui va resumido:
>>
>> VirtualBox command-line interface (VBoxManage) provides an easy way to
>> convert raw disk image to the VDI/VMDK format and otherwise.
>>
>> Let's assume that we have raw image of the sdb device:
>>
>> $ sudo dd if=/dev/sdb of=./sdb.raw
>>
>> To use it with VirtualBox we need to convert it to the VDI format:
>>
>> $ VBoxManage convertdd sdb.raw sdb.vdi --format VDI
>>
>> )
>>
>>
>> Ahora ya tienes tu imagen de HD convertida a VDI, ya puedes en virtualbox
>> crear una maquina nueva y decirle que vas a usar una unidad de disco ya
>> creada.
>>
>> Saludos
>>
>> El 17 de febrero de 2016, 15:44, Ismael L. Donis
>> Garcia escribió:
>>>
>>> Es posible crear una imagen del sistema y restaurarla en una maquina
>>> virtual con virtualbox dentro del mismo sistema?
>>>
>>> De ser posible que debo hacer?
>>>
>>> Gracias y disculpen por las preguntas talvez tan simples para ustedes.
>>> 
>>> | ISMAEL |
>>> 
>>>
>>>
>>
>

Para que quedará fino y no tengas que estar redimensionando yo usaría
otra forma:

- Usas fsarchiver para hacer un backup de las particiones que quieras
o de todo, vas a copiar solo datos. Es aconsejable, evidentemente, que
lances fsarchiver desde un livecd pero también puedes hacerlo con el
sistema arrancado.

- Una vez tengas la copia, creas una VM con virtualbox y le das el
espacio que quieras al disco duro (siempre y cuando ese tamaño te
quepa tu backup, obviamente).

- Arrancas systemrescuecd, por ejemplo, realizas el particionado que
quieras con gparted, parted, fdisk...etc.

- Vuelcas la copia con fsarchiver.

- Revisa fstab, no sé si usas uuidd o el nombre del dispositivo.

- Haces un chroot desde el livecd Instalas el grub y listo... Ya lo
tienes. La mejor manera que nunca me ha fallado.



Re: Server terminated with error (1)

2016-02-18 Thread Gerard ROBIN
On Thu, Feb 18, 2016 at 09:38:02AM +, Darac Marjal wrote:
> Date: Thu, 18 Feb 2016 09:38:02 +
> From: Darac Marjal 
> To: debian-user@lists.debian.org
> Subject: Re: Server terminated with error (1)
> User-Agent: Mutt/1.5.24 (2015-08-30)
> 
> On Wed, Feb 17, 2016 at 08:41:29PM +0100, gerard ROBIN wrote:
> >Hello,
> >I am using a laptop clevo W950JU with intel i5-6200U processor.
> >
> >If I run jessie with the kernel 4.2.0-0.bpo.1-amd64  it works fine,
> >but when I use the kernel 4.3.0-0.bpo.1-amd64  X11 fails :
 
> This would appear to be the issue. The intel driver doesn't recognise your
> chipset, so refuses to load. As you have no other suitable drivers, the
> server fails to start.
> 
> So, my guess would be that your chipset is either too new, or too old.  The
> output of lspci ("Intel Corporation Device 1916") suggests to me that it's
> too new (that looks like a placeholder name rather than a real name). So, in
> that case, try fetching the latest xserver-xorg-video-intel from unstable
> and see if that helps.

I installed the xserver-xorg-video-intel of the jessie-backports and
this did the trick :-)

Thank you very much.

-- 
Gerard
___
***
*  Created with "mutt 1.5.23" *
*  under Debian Linux JESSIE version 8.3  *
*  Registered Linux User #388243  *
*  https://Linuxcounter.net   *
***



Re: tomcat

2016-02-18 Thread Eric Degenetais
Le 17 février 2016 à 21:30, Jean-Michel OLTRA
 a écrit :
>
> Possible qu'il faille également un fichier de contexte
> /var/lib/tomcat8/conf/Catalina/localhost/bimserver.xml (le nom importe
> peu).


Oui, quand il est activé le mode sécurité bloque le déploiement
automatique, il faut créer un fichier de contexte qui référence le
WAR. Le nom n'est pas complètement indifférent par défaut il
conditionne le path. bimserver.xml sera déployé comme
http://localhost:8080/bimserver par défaut.

bonne journée
__
Éric Dégenètais
Henix



http://www.henix.com
http://www.squashtest.org



Re: Server terminated with error (1)

2016-02-18 Thread Darac Marjal

On Wed, Feb 17, 2016 at 08:41:29PM +0100, gerard ROBIN wrote:

Hello,
I am using a laptop clevo W950JU with intel i5-6200U processor.

If I run jessie with the kernel 4.2.0-0.bpo.1-amd64  it works fine,
but when I use the kernel 4.3.0-0.bpo.1-amd64  X11 fails :

---8<---
[   209.705] (--) controlling tty is VT number 2, auto-enabling KeepTty
[   209.706] (WW) Falling back to old probe method for modesetting
[   209.706] (WW) Falling back to old probe method for fbdev
[   209.706] (II) Loading sub module "fbdevhw"
[   209.706] (II) LoadModule: "fbdevhw"
[   209.706] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[   209.706] (II) Module fbdevhw: vendor="X.Org Foundation"
[   209.706]compiled for 1.16.4, module version = 0.0.2
[   209.706]ABI class: X.Org Video Driver, version 18.0
[   209.706] (WW) Falling back to old probe method for vesa
[   209.707] (II) intel(0): Creating default Display subsection in Screen 
section
"Default Screen Section" for depth/fbbpp 24/32
[   209.707] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[   209.707] (==) intel(0): RGB weight 888
[   209.707] (==) intel(0): Default visual is TrueColor
[   209.707] (WW) intel(0): Unknown chipset


This would appear to be the issue. The intel driver doesn't recognise 
your chipset, so refuses to load. As you have no other suitable drivers, 
the server fails to start.


So, my guess would be that your chipset is either too new, or too old.  
The output of lspci ("Intel Corporation Device 1916") suggests to me 
that it's too new (that looks like a placeholder name rather than a real 
name). So, in that case, try fetching the latest 
xserver-xorg-video-intel from unstable and see if that helps.



[   209.707] (II) UnloadModule: "intel"
[   209.707] (EE) Screen(s) found, but none have a usable configuration.
[   209.707] (EE)
Fatal server error:
[   209.707] (EE) no screens found(EE)
[   209.707] (EE)
Please consult the The X.Org Foundation support
 at http://wiki.x.org
for help.
[   209.707] (EE) Please also check the log file at "/var/log/Xorg.0.log" for 
additional information.
[   209.707] (EE)
[   209.710] (EE) Server terminated with error (1). Closing log file.


lspci -v | grep VGA
VGA compatible controller: Intel Corporation Device 1916 (rev 07) (prog-if 00 
[VGA controller])

I have not found anything on google that has to do with this problem.
anyone know how to solve the problem ?

TIA
--
Gerard
___
***
*  Created with "mutt 1.5.23"   *
*  under Debian Linux JESSIE version 8.3  *
*  Registered Linux User #388243  *
*  https://Linuxcounter.net   *
***



--
For more information, please reread.


signature.asc
Description: PGP signature


Re: connect Ethernet to WiFi?

2016-02-18 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, Feb 18, 2016 at 10:20:25AM +0100, Sven Arvidsson wrote:

[...]
> http://www.fsf.org/resources/hw/endorsement/respects-your-freedom
> https://wiki.debian.org/WiFi

How could I have forgotten about those? Thanks, Sven!

- -- t
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlbFhVgACgkQBcgs9XrR2kbI2gCeLj79cEEK2Ubojv9+fmXnEwtb
f78An25+COi6kvdfvpVMtLiGpTVZoOt8
=EIq9
-END PGP SIGNATURE-



Re: 5000 Folders in a directory

2016-02-18 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, Feb 18, 2016 at 06:54:33AM -0200, SamuelOPH wrote:
> 2016-02-17 19:01 GMT-02:00 :
> 
> > tomas@rasputin:~/foo$ time ( for i in $(seq 0 4999) ; do touch $i ; done )
> 
> 
> I know its offtopic, but please don't use touch when you just wanna create
> files.
> use ">" instead
> 
> Try a *$time ( for i in $(seq 0 4999) ; do > $i ; done )* and see the
> difference yourself.

(Please, reply to list, as this might interest others)

I think it's on-topic.

Actually I thought about that, and no, I think "touch" is the right thing
here, since the question was the behaviour of directories, and not that
of the whole file system machinery.

Still, a comparison would be interesting. Care to share some numbers?

regards
- -- tomás
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlbFhJcACgkQBcgs9XrR2kYiAQCePlWu4FX72tHc5fsOBa4c6/9Y
ZEoAoIHlIRxpjeDEN7AszcelrMjjMXNG
=VuTD
-END PGP SIGNATURE-



Re: connect Ethernet to WiFi?

2016-02-18 Thread Sven Arvidsson
On Thu, 2016-02-18 at 09:49 +0100, Staszek wrote:
> How do I connect an old laptop without WiFi (but with free USB ports
> and
> working wired Ethernet card) running Debian stable to a WiFi network,
> without installing non-free software on the laptop? What devices
> would
> you recommend?

Either a WiFi to Ethernet adapter, or a USB WiFi adapter. This is a
good start for alternatives:
http://www.fsf.org/resources/hw/endorsement/respects-your-freedom

You can also check the drivers listed here, some of them mentions if
non-free firmware is required or not: 
https://wiki.debian.org/WiFi


-- 
Cheers,
Sven Arvidsson
http://www.whiz.se
PGP Key ID 6FAB5CD5



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


Re: connect Ethernet to WiFi?

2016-02-18 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, Feb 18, 2016 at 09:49:48AM +0100, Staszek wrote:
> Hi
> 
> How do I connect an old laptop without WiFi (but with free USB ports and
> working wired Ethernet card) running Debian stable to a WiFi network,
> without installing non-free software on the laptop? What devices would
> you recommend?

You need an USB WiFi adapter. Most relevant wrt compatibility with free
drivers is the WiFi chipset inside the thing. In [1] you find a small
list, probably there are more.

I have little experience in the last years, I'm sure there is some
hardware list out there. I've made good experience with Atheros
chipsets, but that's ~10 years ago and those things change quickly.

Regards

[1] 
http://www.wirelesshack.org/top-kali-linux-compatible-usb-adapters-dongles-2015.html

- -- t
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlbFg4sACgkQBcgs9XrR2kafcgCfRkiifmPiMyYg+oE25z1Uyhsf
IZMAn0fLQMTVZ8XHF9IubBoUOiBtCRj2
=zbko
-END PGP SIGNATURE-



connect Ethernet to WiFi?

2016-02-18 Thread Staszek
Hi

How do I connect an old laptop without WiFi (but with free USB ports and
working wired Ethernet card) running Debian stable to a WiFi network,
without installing non-free software on the laptop? What devices would
you recommend?

-- 
http://people.eisenbits.com/~stf/
http://www.eisenbits.com/

OpenPGP: 9EC2 5620 2355 B1DC 4A8F  8C79 0EC7 C214 E5AE 3B4E



Re: bash-completion, tab and ambiguous globs

2016-02-18 Thread Curt
On 2016-02-18, The Wanderer  wrote:
>
> I'm not sure I understand. How is this different from basic tab
> completion, as opposed to the programmable completion which is provided
> via the bash-completion package and is being discussed in this thread?
>
> I wouldn't want to get by without tab completion either, but
> programmable completion as I've seen it implemented in packages provided
> by Debian seems to break some behaviors in the built-in tab completion
> on which I had come to rely, so I always turn it off on my machines.
>

I think we're confused. I don't know what "programmable completion" is
and kind of thought you were discussing what I call "tab completion,"
although I had some nagging doubts (which prevented me from chiming in
to say that I liked "it"--meaning tab completion).

So what is the difference, because a cursory examination of the web yields
no light on the matter? 

Oh, I get it now:

curty@einstein:~$ apt-cache search bash-completion


 Description: programmable completion for the bash shell
 bash completion extends bash's standard completion behavior to achieve
 complex command lines with just a few keystrokes.  This project was
 conceived to produce programmable completion routines for the most
 common Linux/UNIX commands, reducing the amount of typing sysadmins
 and programmers need to do on a daily basis.


-- 
Hypertext--or should I say the ideology of hypertext?--is ultrademocratic and
so entirely in harmony with the demagogic appeals to cultural democracy that
accompany (and distract one’s attention from) the ever-tightening grip of 
plutocratic 
capitalism. - Susan Sontag



Re: 5000 Folders in a directory

2016-02-18 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, Feb 17, 2016 at 02:03:25PM -0800, David Christensen wrote:
> On 02/17/2016 11:13 AM, Chris wrote:
> >is it possible to save 5000 folders in the same directory (ext4 FS)
> >without any performance issues?
> >
> >It's a Maildir structure with a .-separator, e.g.
> >
> >/var/vmail/public/folder1
> >/var/vmail/public/folder1.subfolder1a
> >/var/vmail/public/folder1.subfolder1b
> >...
> >
> >Would it be better to use "real" subfolders with / as separator?
> 
> The Wikipedia ext4 article indicates that 5,000 subdirectories
> should be possible:
> 
> https://en.wikipedia.org/wiki/Ext4
> 
> Increasing the 32,000 subdirectory limit
> 
> In ext3 a directory can have at most 32,000 subdirectories.
> Ext4 allows an unlimited number of subdirectories.[16] To allow for
> larger directories and continued performance, ext4 turns on HTree
> indexes (a specialized version of a B-tree) by default. ...
> 
> 
> As for performance, my WAG is that file system directory accesses
> are a tiny fraction of the overall workload for normal mail server
> operations, so you could pick either directory structure and
> performance will be essentially the same.  If you need to quantify
> performance, then you'll have to find or devise meaningful
> benchmarks.

Of course (and this goes also for my other post) don't expect an
"ls -l" on such a monster directory to be fast. And be prepared
for shell globbing (e.g. "rm *.bat") to go haywire from time to
time. But that's not the file system's problem. Thats not how you
use such monster dirs :-)

regards
- -- t
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlbFeksACgkQBcgs9XrR2kZKPgCeP/qSsuG9qL0UDJlOJv+8AsrB
RgkAnA2e9akML/l7AF4/ypB2cqJG9LNw
=jrY0
-END PGP SIGNATURE-