Re: jessie: can't install that which found

2016-05-10 Thread Gavrilov Aleksey

https://packages.debian.org/search?suite=jessie=any=filename=contents=iceape

actually I have no such package.

с - it means that when the package is installed, but not purged from the 
system.


On 11.05.2016 04:25, Felix Miata wrote:

What? How can a package manager find a package yet refuse to find it
when directed to install it? Same problem with apt-get. ???


--

Sincerely, Gavrilov Aleksey
System Administrator
Ltd. "Hearst Shkulev Digital Rugion"
tel .: 8 (351) 729-94-90, ext. 345
mob. +7 999 581 7934
gavri...@info74.ru
Chelyabinsk, st. Melkombinat February 1st Precinct, 18, office 208
for TRC `Rodnik`



Re: Shell - escapes

2016-05-10 Thread David Christensen

On 05/10/2016 06:36 AM, Andy Smith wrote:

perl -e 'print q{$ and a} '


+1


David



Samba 4 DC

2016-05-10 Thread Fausto Disla
Hola amigos Listeros,

He estado tratando de instalar un controlador de dominio en Debian y no he
podido hacerlo bien, pero hoy finalmente lo logre hacer aunque no en debian
si no en ubuntu (que casi lo mismo).

Pero no fuen una version bajada desde los repositorios normales con
aptitude or apt-get install fue de git, que solo baja las fuentes.

La pregunta es si yo lo instalo con aptitude or apt-get podre hacer el
aprovisionamiento e instalar el controlador de dominio igual? Sin compilar?

Cuando complilo dura mucho y cuando lo instalo por apt-get es super rapido.
Me funcionaria igual?

Gracias desde ya.


Fausto A. Disla

P. 809.785.5260

P. 809.722.4284

faus...@gmail.com

Enviado desde mi Android.


Re: Samba4 + Bind9_DLZ

2016-05-10 Thread do...@hotmail.com
La respuesta esta en el log que has enviado...


Enviado desde Yahoo Mail para Android 
 
  El mar., may. 10, PM a 20:15, Lic. Manuel Salgado 
escribió:   Hola a todos:
Me he decidido a instalar Samba 4 desde los sources en su version
4.4.2 así como Bind9 en su version 9.10.3. Ya he logrado aprovisionar
mi dominio con soporte de DNS sobre Bind9_DLZ, pero al tratar de
arrancar el servicio de bind, veo en los logs lo siguiente: Alguna
ayuda por favor? ¿Donde debo revisar o hacer el ajuste?

named[28339]: couldn't mkdir '/usr/var/run/named': Permission denied
May 10 19:50:48 s4 named[28339]: generating session key for dynamic DNS
May 10 19:50:48 s4 named[28339]: couldn't mkdir '/usr/var/run/named':
Permission denied
May 10 19:50:48 s4 named[28339]: could not create
/usr/var/run/named/session.key
May 10 19:50:48 s4 named[28339]: failed to generate session key for
dynamic DNS: permission denied
May 10 19:50:48 s4 named[28339]: sizing zone task pool based on 5 zones
May 10 19:50:48 s4 named[28339]: zone 'localhost' allows updates by IP
address, which is insecure
May 10 19:50:48 s4 named[28339]: zone '127.in-addr.arpa' allows
updates by IP address, which is insecure
May 10 19:50:48 s4 named[28339]: zone '0.in-addr.arpa' allows updates
by IP address, which is insecure
May 10 19:50:48 s4 named[28339]: zone '255.in-addr.arpa' allows
updates by IP address, which is insecure
May 10 19:50:48 s4 named[28339]: Loading 'AD DNS Zone' using driver dlopen
May 10 19:50:48 s4 named[28339]: dlz_dlopen failed to open library
'/usr/local/samba/lib/bind9/dlz_bind9_10.so' -
/usr/local/samba/lib/bind9/dlz_bind9
_10.so: cannot open shared object file: Permission denied
May 10 19:50:48 s4 named[28339]: dlz_dlopen of 'AD DNS Zone' failed
May 10 19:50:48 s4 named[28339]: SDLZ driver failed to load.
May 10 19:50:48 s4 named[28339]: DLZ driver failed to load.
May 10 19:50:48 s4 named[28339]: loading configuration: failure
May 10 19:50:48 s4 named[28339]: exiting (due to fatal error)

Gracias por adelantado..
  


RE: Servidor vsftp lee todos los directorios.

2016-05-10 Thread Fausto Disla
Hola,

Gracias por tu soporte lo voy a probar mañana en la fabrica.

Yo logre hacer el enjaulamiento pero con ftppro, me funciono bien.

Una pregunta cual es mejor para Debian  vsftpd o pureftpd?

Gracias de anticipadas.
On May 10, 2016 2:43 PM, "Adiel Plasencia Herrera" 
wrote:

> Hola,
> Yo lo tengo funcional en Ubuntu 16..me apoye de estas 3 guias
> Espero te sirva igual en debian
> Saludos,
> Adiel
>
> https://help.ubuntu.com/lts/serverguide/ftp-server.html
>
> http://www.sigerr.org/linux/setup-vsftpd-custom-multiple-directories-users-accounts-ubuntu-step-by-step/
>
> http://www.liquidweb.com/kb/error-500-oops-vsftpd-refusing-to-run-with-writable-root-inside-chroot-solved/
>
>
>
>
> *
> "Hay que eliminar los errores de los hombres, porque si eliminamos los
> hombres con errores, nos quedamos sin hombres."
> Lic. Adiel Plasencia Herrera
> Administrador de Red
> Facultad de Ciencias Agropecuarias
> Universidad Central "Marta Abreu" de Las Villas
> Buzón de Voz: 281047  extensión  298480
> adi...@uclv.edu.cu
>
> 
> Date: Sun, 8 May 2016 19:05:46 -0400
> Subject: Servidor vsftp lee todos los directorios.
> From: faus...@gmail.com
> To: debian-user-spanish@lists.debian.org
>
> Saludos,
>
> Listeros,
>
> Tengo un server vsftp corriendo en Debian 7 y cuando un user entra al ftp
> con solo hacer cd / puede ver todos los archivos de / lo cual no es lo que
> quiero.
>
> Me gustaria que los usuarios solo puedan acceder a la carpeta /ftpuser.
>
>
>
> Gracias anticipada.
>
> --
>
> Gracias...
>
>
>
> Fausto A. Disla
> P. 809.785.5260
> P. 809.722.4284
> faus...@gmail.com
> Enviado desde mi Android, #cojeleelpeso
>
>


Samba4 + Bind9_DLZ

2016-05-10 Thread Lic. Manuel Salgado
Hola a todos:
Me he decidido a instalar Samba 4 desde los sources en su version
4.4.2 así como Bind9 en su version 9.10.3. Ya he logrado aprovisionar
mi dominio con soporte de DNS sobre Bind9_DLZ, pero al tratar de
arrancar el servicio de bind, veo en los logs lo siguiente: Alguna
ayuda por favor? ¿Donde debo revisar o hacer el ajuste?

named[28339]: couldn't mkdir '/usr/var/run/named': Permission denied
May 10 19:50:48 s4 named[28339]: generating session key for dynamic DNS
May 10 19:50:48 s4 named[28339]: couldn't mkdir '/usr/var/run/named':
Permission denied
May 10 19:50:48 s4 named[28339]: could not create
/usr/var/run/named/session.key
May 10 19:50:48 s4 named[28339]: failed to generate session key for
dynamic DNS: permission denied
May 10 19:50:48 s4 named[28339]: sizing zone task pool based on 5 zones
May 10 19:50:48 s4 named[28339]: zone 'localhost' allows updates by IP
address, which is insecure
May 10 19:50:48 s4 named[28339]: zone '127.in-addr.arpa' allows
updates by IP address, which is insecure
May 10 19:50:48 s4 named[28339]: zone '0.in-addr.arpa' allows updates
by IP address, which is insecure
May 10 19:50:48 s4 named[28339]: zone '255.in-addr.arpa' allows
updates by IP address, which is insecure
May 10 19:50:48 s4 named[28339]: Loading 'AD DNS Zone' using driver dlopen
May 10 19:50:48 s4 named[28339]: dlz_dlopen failed to open library
'/usr/local/samba/lib/bind9/dlz_bind9_10.so' -
/usr/local/samba/lib/bind9/dlz_bind9
_10.so: cannot open shared object file: Permission denied
May 10 19:50:48 s4 named[28339]: dlz_dlopen of 'AD DNS Zone' failed
May 10 19:50:48 s4 named[28339]: SDLZ driver failed to load.
May 10 19:50:48 s4 named[28339]: DLZ driver failed to load.
May 10 19:50:48 s4 named[28339]: loading configuration: failure
May 10 19:50:48 s4 named[28339]: exiting (due to fatal error)

Gracias por adelantado..



clamtk freetuxtv lxde-logout, rant for "essential user perspective"

2016-05-10 Thread H . E . Çitak
Dear fellow debian users,

I am grateful for the efforts that goes into debian gnu/linux.

One observation: In this list more users, less email traffic represent
scissors graphic and we are there. Let there be hope.

Freetuxtv can pass synching channels in jessie. Original support site says
it was fixed in version long-time-ago. Where is the log-jam?

ClamTK GUI auto-updates invent update ready message, yet never update. Is
there another option in the repository with GUI.

LXDE panel-logout launcher button on right end of the pannel is lost. Some
say because counsel-kit was bumped out by systemd?! As a discussion
concluded in a forum on the n-th take, elsewhere (May be some Lubuntu forum
on the web).

So, against the wonders of scientists this counter-balancing weight has to
be dropped on the other scale-pan and may count for users' perspective:
 "I like state of the art features, pray tell me how do I add again?" :)

Best wishes to you all,
 hec.


Re: Accents i caracters especials al LibreOffice

2016-05-10 Thread Xavi Drudis Ferran
El Tue, May 10, 2016 at 11:41:19PM +0200, Daniel deia:
> 
> Que dimonis es aixo del ca_ES@euro? No hauria de ser ca_ES UTF8?
>

@euro vol dir iso-8859-15, són sinònims. 
I iso-8859-15 és igual que iso-8859-1 (=latin1) però amb el signe de l'euro
per comptes d'un de moneda genèrica que mai he vist que fes servir ningú.

UTF-8 té moolts més caràcters que iso-8859-15.
 



dist-upgrade: Current status: 0 broken [~42], 0 updates [~880], 24238 new [~79]

2016-05-10 Thread Felix Miata
That's the last last line printed to screen as a result of a dist-upgrade 
from Wheezy to Jessie. What do the numbers actually refer to, particularly 
those within [ ]?


Space consumed on 19G / before starting was ~39%, after, ~71%. I actually did 
two dist-upgrades, doing Squeeze to Wheezy first.


The Squeeze installation featured TDE as primary DE. Jessie somehow was 
turned into Gnome, with both libreoffice and openoffice installed. Purging 
openoffice* and gnome* followed by autoremove brought / consumption down to ~60%.

--
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/



jessie: can't install that which found

2016-05-10 Thread Felix Miata
# aptitude search iceape
...
c   iceape-browser- Iceape Navigator (Internet 
browser) and Composer
c   iceape-chatzilla  - Iceape Chatzilla IRC client
v   iceape-dom-inspector  -
c   iceape-mailnews   - Iceape Mail & Newsgroups 
and Address Book
v   iceape-noscript   -
v   iceape-openinbrowser  -
...
# aptitude install iceape-browser
No candidate version found for iceape-browser
No candidate version found for iceape-browser
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

What? How can a package manager find a package yet refuse to find it
when directed to install it? Same problem with apt-get. ???
-- 
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/



Re: all at a sudden Firefox

2016-05-10 Thread Lisi Reisz
On Tuesday 10 May 2016 20:16:30 John L. Ries wrote:
> traditionally hanged on Guy Fawkes Day.

No, traditionally burned on Guy Fawkes Day.

Lisi



Re: mutt attachment error

2016-05-10 Thread Mark Fletcher
On Wed, 11 May 2016 at 04:43, Brian  wrote:

> On Tue 10 May 2016 at 12:56:47 -0600, Charlie Kravetz wrote:
>
> > On Tue, 10 May 2016 17:03:47 +0100
> > Brian  wrote:
> > >
> > >Didn't spot that; exim's .confs can be confusing. What file is used for
> > >non-split configuration?
> > >
> >
> > Not meaning to send this to you, Brian, but I lost the previous message.
> >
> > I would like to know that, too. Since /etc/exim4/update-exim4.conf.conf
> > has the following at the beginning:
>
> >From a previous Sven Hartge post
>
>   https://lists.debian.org/debian-user/2016/05/msg00426.html
>
> you need to use "a file called "/etc/exim4/exim4.conf.localmacros",
> which will then get included in the autogenerated config file". I've
> not tried it but the advice looks kosher.
>
> > # /etc/exim4/update-exim4.conf.conf
> > #
> > # Edit this file and /etc/mailname by hand and execute update-exim4.conf
> > # yourself or use 'dpkg-reconfigure exim4-config'
> >
> > That would seem to me to be the way to make it work.
>
> /etc/exim4/update-exim4.conf.conf is for configuring how Debian's exim4
> basically works for sending or receiving mail, not for setting exim4
> specific parameters which modify the sending or receiving.
>
> So where would you advocate putting, say, the IP address exim should
listen on?

Mark


Re: Accents i caracters especials al LibreOffice

2016-05-10 Thread Daniel
Buscant he trobat a la pagina 
http://www.webtutoriales.com/articulos/configurar-variables-de-entorno-en-linux 
una nota sobre el fitxer .bashrc. El copio a continuacio:


root@Daniel-Debian:/home/daniel# pg .bashrc
#  language-env DON'T MODIFY THIS LINE!
# valors per a usuaris catalanoparlants
# settings for catalan speaking users
#

LANG=ca_ES@euro
export LANG

#LC_MESSAGES=ca_ES@euro
#LC_CTYPE=ca_ES@euro
#export LC_MESSAGES LC_CTYPE

if [ -d /usr/X11R6/lib/X11/nls ]; then
XNLSPATH=/usr/X11R6/lib/X11/nls
export XNLSPATH
fi

LESSCHARSET=latin1

# Obtingut de http://members.xoom.com/sromero/linux/castell.html
export MM_CHARSET=ISO-8859-15# per a usar latin1 en els mails
#  language-env end DON'T MODIFY THIS LINE!
root@Daniel-Debian:/home/daniel#


Que dimonis es aixo del ca_ES@euro? No hauria de ser ca_ES UTF8?



El 10/05/16 a las 23:31, Eloi escribió:

El 10/05/16 a les 23:13, Daniel ha escrit:

Gracies, Narcis i Josep: Adjunto la finestra del terminal que em
demanava el Narcis i les variables que em demanava el Josep. Ara
resulta que tampoc em surten els accents a l'escriure l'e-mail...

hmm, prova a fer "locale -a" i mira si surt a la llista el ca_ES.UTF-8

si no surt, sel·lecciona'l amb sudo dpkg-reconfigure locales



--
Daniel Elias
Usuari de Linux nº 461584



Re: Accents i caracters especials al LibreOffice

2016-05-10 Thread Xavi Drudis Ferran
El Tue, May 10, 2016 at 11:13:08PM +0200, Daniel deia:

> root@Daniel-Debian:/home/daniel# env | grep -ie lang
> LANG=ca_ES.UTF-8
> root@Daniel-Debian:/home/daniel# echo $LANG
> ca_ES.UTF-8
> root@Daniel-Debian:/home/daniel# echo $LANGUAGE
> 
> root@Daniel-Debian:/home/daniel# echo $GDM_LANG
> 
> root@Daniel-Debian:/home/daniel# 


I has provat un 
dpkg-reconfigure locales 
i marcar 
el ca_ES.UTF-8 i els que vulguis ? 



Re: Accents i caracters especials al LibreOffice

2016-05-10 Thread Eloi
El 10/05/16 a les 23:13, Daniel ha escrit:
> Gracies, Narcis i Josep: Adjunto la finestra del terminal que em
> demanava el Narcis i les variables que em demanava el Josep. Ara
> resulta que tampoc em surten els accents a l'escriure l'e-mail...

hmm, prova a fer "locale -a" i mira si surt a la llista el ca_ES.UTF-8

si no surt, sel·lecciona'l amb sudo dpkg-reconfigure locales



Re: Accents i caracters especials al LibreOffice

2016-05-10 Thread Daniel
Gracies, Narcis i Josep: Adjunto la finestra del terminal que em 
demanava el Narcis i les variables que em demanava el Josep. Ara resulta 
que tampoc em surten els accents a l'escriure l'e-mail...


El 09/05/16 a las 09:02, Narcis Garcia escribió:

D'una finestra de terminal també estaria bé que obtinguessis el resultat
d'aquestes comandes:
echo $LANG
echo $LANGUAGE
echo $GDM_LANG

O si pots copiar in enganxar del correu, una de sola:
env | grep -ie lang


El 09/05/16 a les 00:00, Daniel ha escrit:

Hola:

Vaig actualitzar el Debian a Jessie, i el LibreOffice va quedar a la
versió 4.3.3.2. I des d'aquell moment, que tant en el Writer com en el
Calc no em funcionen els accents i caracters especials. M'explico:
intento posar música i m'apareix msica, és a dir, la lletra accentuada
em desapareix. El LibreOffice està configurat en català, amb els seus
diccionaris, i les lletres especials em funcionen en altres programes
(com aquest). Us envio un text fet amb el Writer perquè ho vegeu.

Envio també una captura de la finestra que obre el LibreOffice per obrir
fitxers i desar-los: els caracters accentuats i especials no apareixen
correctament i quan cliques per obrir-los no els troba. Has d'arreglar a
mà el caracter accentuat perquè funcioni.

En canvi, altres programes com el Gimp mostren els caracters accentuats
correctament, tant al propi document com al nom del fitxer.

Em podeu ajudar?



--
Daniel Elias
Usuari de Linux nº 461584

daniel@Daniel-Debian:~$ libreoffice

(process:7361): Gdk-WARNING **: locale not supported by C library

(soffice:7361): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
daniel@Daniel-Debian:~$
root@Daniel-Debian:/home/daniel# env | grep -ie lang
LANG=ca_ES.UTF-8
root@Daniel-Debian:/home/daniel# echo $LANG
ca_ES.UTF-8
root@Daniel-Debian:/home/daniel# echo $LANGUAGE

root@Daniel-Debian:/home/daniel# echo $GDM_LANG

root@Daniel-Debian:/home/daniel# 


Re: pastebinning (was: Posts don't show on list)

2016-05-10 Thread Michael Fothergill
On 10 May 2016 at 21:03, Eike Lantzsch  wrote:

> On Tuesday 10 May 2016 19:42:41 Michael Fothergill wrote:
> > On 10 May 2016 at 19:18,  wrote:
> > > > Gary Roach composed on 2016-04-30 12:08 (UTC-0700):
> > > > >Someone said that I need to use a pastebin for images. I've never
> used
> > > > >one before so another Fxx Learning Experience.
> > >
> > > No, it's not necessary, in fact its preferable to not use pastebin.
> > > There's been other threads where this has been fleshed out.
> >
> > ​I think we need a pastebin for OCD tidy types to post their gripes and
> > exhortations and another sep​arate one for Finnegan's Wake type OT
> > discussions and rants.
> >
> > Both need to have really long and complex learning curves and be
> encrypted.
> >
> > Regards
> >
> > MF
>
> Were you referring to the ballad or the book?
>

​I meant the book.  It is hard going but if it was posted up in a really
tough mark up language and you had to run your own decryption algorithm to
hack in and ​upload it that would that would make it the ultimate pesky
pastebin neat freak purity test.

MF



> If the book then the steep learning curve and encryption is already there,
> not
> so?
>
> Eike
>
>


-- 
Climostat Ltd

Rm 5169
The Heath Business & Technical Park
The Heath
Runcorn
Cheshire
WA7 4QX

Tel. 01 928 515 015


Re: pastebinning (was: Posts don't show on list)

2016-05-10 Thread Eike Lantzsch
On Tuesday 10 May 2016 19:42:41 Michael Fothergill wrote:
> On 10 May 2016 at 19:18,  wrote:
> > > Gary Roach composed on 2016-04-30 12:08 (UTC-0700):
> > > >Someone said that I need to use a pastebin for images. I've never used
> > > >one before so another Fxx Learning Experience.
> > 
> > No, it's not necessary, in fact its preferable to not use pastebin.
> > There's been other threads where this has been fleshed out.
> 
> ​I think we need a pastebin for OCD tidy types to post their gripes and
> exhortations and another sep​arate one for Finnegan's Wake type OT
> discussions and rants.
> 
> Both need to have really long and complex learning curves and be encrypted.
> 
> Regards
> 
> MF

Were you referring to the ballad or the book?
If the book then the steep learning curve and encryption is already there, not 
so?

Eike



Re: mutt attachment error

2016-05-10 Thread Brian
On Tue 10 May 2016 at 12:56:47 -0600, Charlie Kravetz wrote:

> On Tue, 10 May 2016 17:03:47 +0100
> Brian  wrote:
> >
> >Didn't spot that; exim's .confs can be confusing. What file is used for
> >non-split configuration?
> >
> 
> Not meaning to send this to you, Brian, but I lost the previous message.
> 
> I would like to know that, too. Since /etc/exim4/update-exim4.conf.conf
> has the following at the beginning:

>From a previous Sven Hartge post

  https://lists.debian.org/debian-user/2016/05/msg00426.html

you need to use "a file called "/etc/exim4/exim4.conf.localmacros",
which will then get included in the autogenerated config file". I've
not tried it but the advice looks kosher.

> # /etc/exim4/update-exim4.conf.conf
> #
> # Edit this file and /etc/mailname by hand and execute update-exim4.conf
> # yourself or use 'dpkg-reconfigure exim4-config'
> 
> That would seem to me to be the way to make it work.

/etc/exim4/update-exim4.conf.conf is for configuring how Debian's exim4
basically works for sending or receiving mail, not for setting exim4
specific parameters which modify the sending or receiving.



Re: all at a sudden Firefox

2016-05-10 Thread Joe
On Tue, 10 May 2016 19:16:30 +
"John L. Ries"  wrote:


> > gender, and it is "man"kind.  But I object to "Sirs"!!!  
> 
> Me too! I definitely haven't been knighted.
> 

None of my male teachers had, either, but...

-- 
Joe



Re: mutt attachment error

2016-05-10 Thread Charlie Kravetz
On Tue, 10 May 2016 17:03:47 +0100
Brian  wrote:

>On Tue 10 May 2016 at 17:43:03 +0200, Sven Hartge wrote:
>
>> David Wright  wrote:  
>> > On Tue 10 May 2016 at 11:07:47 (-0400), Haines Brown wrote:  
>>   
>> >> I tried to use mutt to send someone a zip file of about 50 Mb and got
>> >> the error: "Error sending message, child exited 1 (). Could not send
>> >> message."
>> >> 
>> >> I assumed the attachment was too large and so went to
>> >> /etc/exim4/conf.d/main/02*/ and altered the configuration to be:
>> >> 
>> >>   # Message size limit. The default (used when MESSAGE_SIZE_LIMIT
>> >>   # is unset) is 50 MB
>> >>   .ifdef MESSAGE_SIZE_LIMIT
>> >>   # message_size_limit = MESSAGE_SIZE_LIMIT # I commented this line
>> >>   message_size_limit = 200 MB   # I added this line
>> >>   .endif
>> >> 
>> >> I restarted exim, but it had no effect.   
>>   
>> > Isn't the Debian way to put  
>>   
>> > MESSAGE_SIZE_LIMIT=foo  
>>   
>> > into /etc/exim4/update-exim4.conf.conf and then run
>> > # dpkg-reconfigure exim4-config  
>> 
>> No, that won't work. You cannot just put stuff into
>> /etc/exim4/update-exim4.conf.conf and hope it will make it into the
>> configuration.  
>
>Didn't spot that; exim's .confs can be confusing. What file is used for
>non-split configuration?
>

Not meaning to send this to you, Brian, but I lost the previous message.

I would like to know that, too. Since /etc/exim4/update-exim4.conf.conf
has the following at the beginning:

# /etc/exim4/update-exim4.conf.conf
#
# Edit this file and /etc/mailname by hand and execute update-exim4.conf
# yourself or use 'dpkg-reconfigure exim4-config'

That would seem to me to be the way to make it work.

-- 
Charlie Kravetz
Linux Registered User Number 425914
[http://linuxcounter.net/user/425914.html]
Never let anyone steal your DREAM.   [http://keepingdreams.com]



Re: all at a sudden Firefox

2016-05-10 Thread John L. Ries
While I agree with the general principle, "guys" doesn't really work in mixed 
company (most women definitely do not want to be "one of the guys").   "People" 
probably works better.

But it might give one second thoughts about using the word "guy" at all if one 
knew the origin of the word: It comes from Guy Fawkes and originally referred 
to his effigy traditionally hanged on Guy Fawkes Day.

John L. Ries
Salford Systems
Phone: (619)543-8880 x107
or (435)867-8885

From: cbannis...@slingshot.co.nz 
Sent: Tuesday, May 10, 2016 2:05 PM
To: debian-user@lists.debian.org
Subject: Re: all at a sudden Firefox

On Sun, May 01, 2016 at 08:39:58PM +0100, Lisi Reisz wrote:
> On Sunday 01 May 2016 19:43:37 Curt wrote:
> > As far as here goes, in mixed company, the masculine form takes
> > precedence (which may or may not have anything to do with anything).
>
> Depending.  "Guys" can indeed sometimes be used as the common gender, and it
> is "man"kind.  But I object to "Sirs"!!!

Me too! I definitely haven't been knighted.

--
The media's the most powerful entity on earth.
They have the power to make the innocent guilty
and to make the guilty innocent, and that's power.
 -- Malcolm X




Re: all at a sudden Firefox

2016-05-10 Thread cbannister
On Sun, May 01, 2016 at 08:39:58PM +0100, Lisi Reisz wrote:
> On Sunday 01 May 2016 19:43:37 Curt wrote:
> > As far as here goes, in mixed company, the masculine form takes
> > precedence (which may or may not have anything to do with anything).
> 
> Depending.  "Guys" can indeed sometimes be used as the common gender, and it 
> is "man"kind.  But I object to "Sirs"!!!

Me too! I definitely haven't been knighted.

-- 
The media's the most powerful entity on earth. 
They have the power to make the innocent guilty 
and to make the guilty innocent, and that's power.
 -- Malcolm X



Re: Posting picture files

2016-05-10 Thread Brian
On Wed 11 May 2016 at 06:36:43 +1200, cbannis...@slingshot.co.nz wrote:

> On Sun, May 01, 2016 at 11:57:34AM -0400, Gene Heskett wrote:
> > On Sunday 01 May 2016 11:07:39 Sven Arvidsson wrote:
> > >
> > > "Do not submit an attachment larger than 10 KiB. Consider using
> > > paste.debian.net and including a link in your post."
> > >
> > > From https://wiki.debian.org/DebianMailingLists#Posting_Rules.2C_Guide
> > >lines.2C_and_Tips
> > 
> > Thanks Sven.  But it does seem rather archaic today, 100k would be a lot 
> > more useful as attaching a well smunched screenshot is a lot less 
> 
> Well, it is a wiki. :)

Which anyone, including you, can contribute to. :)



Re: mutt attachment error

2016-05-10 Thread Brian
On Tue 10 May 2016 at 19:58:36 +0200, Sven Hartge wrote:

> Brian  wrote:
> > On Tue 10 May 2016 at 17:43:03 +0200, Sven Hartge wrote:
> >> David Wright  wrote:
> >>> Isn't the Debian way to put
>  
> >>> MESSAGE_SIZE_LIMIT=foo
>  
> >>> into /etc/exim4/update-exim4.conf.conf and then run
> >>> # dpkg-reconfigure exim4-config
> >> 
> >> No, that won't work. You cannot just put stuff into
> >> /etc/exim4/update-exim4.conf.conf and hope it will make it into the
> >> configuration.
> 
> > Didn't spot that; exim's .confs can be confusing.
> 
> The file /etc/exim4/update-exim4.conf.conf is the configuration file for
> the configuration generator, not Exim4 itself.
> 
> > What file is used for non-split configuration?
> 
> Have a look at /usr/share/doc/exim4/README.Debian.gz, Section 2.1.3
> "Using Exim Macros to control the configuration"

  /usr/share/doc/exim4-config/README.Debian.gz

or

  /usr/share/doc/exim4-base/README.Debian.gz

on my system. (the "light" version of exim4).

> Everything is documented there and the following sections, on how to
> expand or override the configuration system provided by the Exim4
> maintainers.

You have jogged my memory as to why I have 00_custom_macros with my
split configuration of many years.



Re: pastebinning (was: Posts don't show on list)

2016-05-10 Thread Michael Fothergill
On 10 May 2016 at 19:18,  wrote:

> > Gary Roach composed on 2016-04-30 12:08 (UTC-0700):
> >
> > >Someone said that I need to use a pastebin for images. I've never used
> > >one before so another Fxx Learning Experience.
>
> No, it's not necessary, in fact its preferable to not use pastebin.
> There's been other threads where this has been fleshed out.
>

​I think we need a pastebin for OCD tidy types to post their gripes and
exhortations and another sep​arate one for Finnegan's Wake type OT
discussions and rants.

Both need to have really long and complex learning curves and be encrypted.

Regards

MF




> --
> The media's the most powerful entity on earth.
> They have the power to make the innocent guilty
> and to make the guilty innocent, and that's power.
>  -- Malcolm X
>
>


-- 
Climostat Ltd

Rm 5169
The Heath Business & Technical Park
The Heath
Runcorn
Cheshire
WA7 4QX

Tel. 01 928 515 015


RE: Servidor vsftp lee todos los directorios.

2016-05-10 Thread Adiel Plasencia Herrera
Hola,
Yo lo tengo funcional en Ubuntu 16..me apoye de estas 3 guias
Espero te sirva igual en debian
Saludos,
Adiel

https://help.ubuntu.com/lts/serverguide/ftp-server.html
http://www.sigerr.org/linux/setup-vsftpd-custom-multiple-directories-users-accounts-ubuntu-step-by-step/
http://www.liquidweb.com/kb/error-500-oops-vsftpd-refusing-to-run-with-writable-root-inside-chroot-solved/



*
"Hay que eliminar los errores de los hombres, porque si eliminamos los hombres 
con errores, nos quedamos sin hombres."
Lic. Adiel Plasencia Herrera
Administrador de Red
Facultad de Ciencias Agropecuarias
Universidad Central "Marta Abreu" de Las Villas
Buzón de Voz: 281047  extensión  298480
adi...@uclv.edu.cu


Date: Sun, 8 May 2016 19:05:46 -0400
Subject: Servidor vsftp lee todos los directorios.
From: faus...@gmail.com
To: debian-user-spanish@lists.debian.org

Saludos,

Listeros,

Tengo un server vsftp corriendo en Debian 7 y cuando un user entra al ftp con 
solo hacer cd / puede ver todos los archivos de / lo cual no es lo que quiero.

Me gustaria que los usuarios solo puedan acceder a la carpeta /ftpuser.



Gracias anticipada.

--

Gracias...



Fausto A. Disla
P. 809.785.5260
P. 809.722.4284
faus...@gmail.com
Enviado desde mi Android, #cojeleelpeso



Re: Posting picture files

2016-05-10 Thread cbannister
On Sun, May 01, 2016 at 11:57:34AM -0400, Gene Heskett wrote:
> On Sunday 01 May 2016 11:07:39 Sven Arvidsson wrote:
> >
> > "Do not submit an attachment larger than 10 KiB. Consider using
> > paste.debian.net and including a link in your post."
> >
> > From https://wiki.debian.org/DebianMailingLists#Posting_Rules.2C_Guide
> >lines.2C_and_Tips
> 
> Thanks Sven.  But it does seem rather archaic today, 100k would be a lot 
> more useful as attaching a well smunched screenshot is a lot less 

Well, it is a wiki. :)

That certaily seems like a random joe blogs post, considering pastebin
is not good for a user suport mailing list that archives its posts.

-- 
The media's the most powerful entity on earth. 
They have the power to make the innocent guilty 
and to make the guilty innocent, and that's power.
 -- Malcolm X



Re: Posting picture files

2016-05-10 Thread cbannister
On Tue, May 03, 2016 at 12:41:10PM -0700, Gary Roach wrote:
> >
> You know, I thought I had tried switching themes with out success. I just
> tried it again and the Oxygen theme cleared up the problem.

So this is the solution to a problem in another thread? :/

-- 
The media's the most powerful entity on earth. 
They have the power to make the innocent guilty 
and to make the guilty innocent, and that's power.
 -- Malcolm X



Re: pastebinning (was: Posts don't show on list)

2016-05-10 Thread cbannister
> Gary Roach composed on 2016-04-30 12:08 (UTC-0700):
> 
> >Someone said that I need to use a pastebin for images. I've never used
> >one before so another Fxx Learning Experience.

No, it's not necessary, in fact its preferable to not use pastebin.
There's been other threads where this has been fleshed out.

-- 
The media's the most powerful entity on earth. 
They have the power to make the innocent guilty 
and to make the guilty innocent, and that's power.
 -- Malcolm X



Re: mutt attachment error

2016-05-10 Thread Sven Hartge
Haines Brown  wrote:

> I tried to use mutt to send someone a zip file of about 50 Mb and got
> the error: "Error sending message, child exited 1 (). Could not send
> message."

> I assumed the attachment was too large and so went to
> /etc/exim4/conf.d/main/02*/ and altered the configuration to be:

>   # Message size limit. The default (used when MESSAGE_SIZE_LIMIT
>   # is unset) is 50 MB
>   .ifdef MESSAGE_SIZE_LIMIT
>   # message_size_limit = MESSAGE_SIZE_LIMIT # I commented this line
>   message_size_limit = 200 MB   # I added this line
>   .endif

> I restarted exim, but it had no effect. 

Of course it had no effect.

The code snippet above (before your edit) does the following:

If the Macro MESSAGE_SIZE_LIMIT is defined
  set the config option message_size_limit to the contents of MESSAGE_SIZE_LIMIT

What you did was

If the Macro MESSAGE_SIZE_LIMIT is defined
   set the config option message_size_limit to 200MB

Since MESSAGE_SIZE_LIMIT is normally undefined, the code does nothing in
both cases.

What you need to do is to revert you changes and define
MESSAGE_SIZE_LIMIT in a file called "/etc/exim4/exim4.conf.localmacros",
which will then get included in the autogenerated config file.

Please read /usr/share/doc/exim4/README.Debian.gz as everything is
documented in there. 

Grüße,
Sven.

-- 
Sigmentation fault. Core dumped.



Re: mutt attachment error

2016-05-10 Thread Sven Hartge
Brian  wrote:
> On Tue 10 May 2016 at 17:43:03 +0200, Sven Hartge wrote:
>> David Wright  wrote:
>> > On Tue 10 May 2016 at 11:07:47 (-0400), Haines Brown wrote:

 I tried to use mutt to send someone a zip file of about 50 Mb and got
 the error: "Error sending message, child exited 1 (). Could not send
 message."
 
 I assumed the attachment was too large and so went to
 /etc/exim4/conf.d/main/02*/ and altered the configuration to be:
 
   # Message size limit. The default (used when MESSAGE_SIZE_LIMIT
   # is unset) is 50 MB
   .ifdef MESSAGE_SIZE_LIMIT
   # message_size_limit = MESSAGE_SIZE_LIMIT # I commented this line
   message_size_limit = 200 MB   # I added this line
   .endif
 
 I restarted exim, but it had no effect. 
 
>>> Isn't the Debian way to put
 
>>> MESSAGE_SIZE_LIMIT=foo
 
>>> into /etc/exim4/update-exim4.conf.conf and then run
>>> # dpkg-reconfigure exim4-config
>> 
>> No, that won't work. You cannot just put stuff into
>> /etc/exim4/update-exim4.conf.conf and hope it will make it into the
>> configuration.

> Didn't spot that; exim's .confs can be confusing.

The file /etc/exim4/update-exim4.conf.conf is the configuration file for
the configuration generator, not Exim4 itself.

> What file is used for non-split configuration?

Have a look at /usr/share/doc/exim4/README.Debian.gz, Section 2.1.3
"Using Exim Macros to control the configuration"

Everything is documented there and the following sections, on how to
expand or override the configuration system provided by the Exim4
maintainers.

Grüße,
Sven.

-- 
Sigmentation fault. Core dumped.



Lancer une commande en console au démarrage de la session cinnamon

2016-05-10 Thread Daniel Caillibaud
Bonjour,

J'ai besoin de lancer une commande interactive (monter un container veracrypt, 
donc je dois
fournir la passphrase) au démarrage de ma session X (cinnamon).

Ça marchait très bien en wheezy avec truecrypt, marche toujours sous une 
machine jessie qui a
toujours son truecrypt de l'époque wheezy, mais j'y arrive pas avec une autre 
jessie et
veracrypt.

Dans préférences / application au démarrage, y'a plus la case à cocher "lancer 
dans un
terminal", on fait comment ?

J'ai essayé 
  sudo veracrypt …
  /home/bin/veramount.sh  (qui contient ma commande), 
  roxterm --execute /home/bin/veramount.sh

mais il ne se passe jamais rien…

Une idée ?

(le lancement auto marche pour des applis graphique)

-- 
Daniel

Dites-moi de quoi vous avez besoin, je vous expliquerais comment vous en passer
Coluche



Re: rdiff-backup - conseils

2016-05-10 Thread Daniel Caillibaud
Le 05/05/16 à 01:15, Sébastien Dinot  a écrit :

SD> J'utilise le compte root. Je sais, c'est mal mais cela me simplifie la
SD> tâche sachant que je n'autorise que les connexions par clés SSH et que
SD> je blinde particulièrement cet accès octroyé au serveur de sauvegarde
SD> qui est lui-même aussi durci que je le peux.

C'est pas forcément mal, ça dépend de ce que tu veux faire.

Si c'est pour tout backuper (clés privées de la machine comprises par ex), 
c'est indispensable
(ou un user ayant autant de droits que root, donc ça revient au même).

Si c'est pour backup de data, un user dédié est plus fiable (on est sûr qu'il 
aura pas accès à
certaines données sensibles qu'on ne veut pas voir dans ce backup "courant", 
comme des clés
privées).

-- 
Daniel

Plus les galets ont roulés, plus ils sont polis. 
Pour les cochers, c'est le contraire.
Alphonse Allais



Re: mutt attachment error

2016-05-10 Thread Brian
On Tue 10 May 2016 at 17:43:03 +0200, Sven Hartge wrote:

> David Wright  wrote:
> > On Tue 10 May 2016 at 11:07:47 (-0400), Haines Brown wrote:
> 
> >> I tried to use mutt to send someone a zip file of about 50 Mb and got
> >> the error: "Error sending message, child exited 1 (). Could not send
> >> message."
> >> 
> >> I assumed the attachment was too large and so went to
> >> /etc/exim4/conf.d/main/02*/ and altered the configuration to be:
> >> 
> >>   # Message size limit. The default (used when MESSAGE_SIZE_LIMIT
> >>   # is unset) is 50 MB
> >>   .ifdef MESSAGE_SIZE_LIMIT
> >>   # message_size_limit = MESSAGE_SIZE_LIMIT # I commented this line
> >>   message_size_limit = 200 MB   # I added this line
> >>   .endif
> >> 
> >> I restarted exim, but it had no effect. 
> 
> > Isn't the Debian way to put
> 
> > MESSAGE_SIZE_LIMIT=foo
> 
> > into /etc/exim4/update-exim4.conf.conf and then run
> > # dpkg-reconfigure exim4-config
> 
> No, that won't work. You cannot just put stuff into
> /etc/exim4/update-exim4.conf.conf and hope it will make it into the
> configuration.

Didn't spot that; exim's .confs can be confusing. What file is used for
non-split configuration?



Re: mutt attachment error

2016-05-10 Thread Sven Hartge
David Wright  wrote:
> On Tue 10 May 2016 at 11:07:47 (-0400), Haines Brown wrote:

>> I tried to use mutt to send someone a zip file of about 50 Mb and got
>> the error: "Error sending message, child exited 1 (). Could not send
>> message."
>> 
>> I assumed the attachment was too large and so went to
>> /etc/exim4/conf.d/main/02*/ and altered the configuration to be:
>> 
>>   # Message size limit. The default (used when MESSAGE_SIZE_LIMIT
>>   # is unset) is 50 MB
>>   .ifdef MESSAGE_SIZE_LIMIT
>>   # message_size_limit = MESSAGE_SIZE_LIMIT # I commented this line
>>   message_size_limit = 200 MB   # I added this line
>>   .endif
>> 
>> I restarted exim, but it had no effect. 

> Isn't the Debian way to put

> MESSAGE_SIZE_LIMIT=foo

> into /etc/exim4/update-exim4.conf.conf and then run
> # dpkg-reconfigure exim4-config

No, that won't work. You cannot just put stuff into
/etc/exim4/update-exim4.conf.conf and hope it will make it into the
configuration.

Grüße,
Sven.

-- 
Sigmentation fault. Core dumped.



Re: mutt attachment error

2016-05-10 Thread Brian
On Tue 10 May 2016 at 10:28:24 -0500, David Wright wrote:

> On Tue 10 May 2016 at 11:07:47 (-0400), Haines Brown wrote:
> > I tried to use mutt to send someone a zip file of about 50 Mb and got
> > the error: "Error sending message, child exited 1 (). Could not send
> > message."
> > 
> > I assumed the attachment was too large and so went to
> > /etc/exim4/conf.d/main/02*/ and altered the configuration to be:
> > 
> >   # Message size limit. The default (used when MESSAGE_SIZE_LIMIT
> >   # is unset) is 50 MB
> >   .ifdef MESSAGE_SIZE_LIMIT
> >   # message_size_limit = MESSAGE_SIZE_LIMIT # I commented this line
> >   message_size_limit = 200 MB   # I added this line
> >   .endif
> > 
> > I restarted exim, but it had no effect. 
> 
> Isn't the Debian way to put
> 
> MESSAGE_SIZE_LIMIT=foo
> 
> into /etc/exim4/update-exim4.conf.conf and then run
> # dpkg-reconfigure exim4-config

I think it is  necessary only to restart exim after altering the
file.

I use the split configuration and put directives in my own file
/etc/exim4/conf.d/main/00_custom_macros.



Re: mutt attachment error

2016-05-10 Thread David Wright
On Tue 10 May 2016 at 11:07:47 (-0400), Haines Brown wrote:
> I tried to use mutt to send someone a zip file of about 50 Mb and got
> the error: "Error sending message, child exited 1 (). Could not send
> message."
> 
> I assumed the attachment was too large and so went to
> /etc/exim4/conf.d/main/02*/ and altered the configuration to be:
> 
>   # Message size limit. The default (used when MESSAGE_SIZE_LIMIT
>   # is unset) is 50 MB
>   .ifdef MESSAGE_SIZE_LIMIT
>   # message_size_limit = MESSAGE_SIZE_LIMIT # I commented this line
>   message_size_limit = 200 MB   # I added this line
>   .endif
> 
> I restarted exim, but it had no effect. 

Isn't the Debian way to put

MESSAGE_SIZE_LIMIT=foo

into /etc/exim4/update-exim4.conf.conf and then run
# dpkg-reconfigure exim4-config

where foo should be, perhaps, 200M or why not just
2

You've obviously remembered the overhead for mime.
Pity your ISP! If your someone runs linux, you might try
man split.

Cheers,
David.



Re: How to find reason for sporadic chime from computer?

2016-05-10 Thread Jude DaShiell
Find computer's hardware manual and see if chiming is something your 
hardware will do no matter which operating system is in use to warn 
about impending undesireable hardware events.  You may find a table with 
the different chime codes and may then find out why this now happens and 
what to do about it.


On Tue, 10 May 2016, Kynn Jones wrote:


Date: Tue, 10 May 2016 09:45:52
From: Kynn Jones 
To: Debian User 
Subject: How to find reason for sporadic chime from computer?
Resent-Date: Tue, 10 May 2016 13:46:12 + (UTC)
Resent-From: debian-user@lists.debian.org

Suddenly, my computer has started emitting a chime sound at random
times.  (Roughly every 30 minutes or so, but with high variance.)  I
have found nothing else that correlates with this chiming.  In
particular, nothing changes on the screen (i.e., no pop-ups, dialogs,
etc. show up).

I normally disable all beeps and sound notifications on my system, so
I find this behavior pretty disconcerting.

How can I troubleshoot this?

TIA!

kj




--



dpkg: error: error executing hook

2016-05-10 Thread Curt
I just now installed several fresh security updates for Wheezy LTS and received
the following error from dpkg (and I quote):

 dpkg: error: error executing hook 'if [ -x 
/usr/share/debian-security-support/check-support-status.hook ] ; then 
/usr/share/debian-security-support/check-support-status.hook ; fi', exit code 
2560
 E: Sub-process /usr/bin/dpkg returned an error code (2)

I guess it won't kill me but is there anything I should do (apart from filing a 
bug
report)?

-- 
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



mutt attachment error

2016-05-10 Thread Haines Brown
I tried to use mutt to send someone a zip file of about 50 Mb and got
the error: "Error sending message, child exited 1 (). Could not send
message."

I assumed the attachment was too large and so went to
/etc/exim4/conf.d/main/02*/ and altered the configuration to be:

  # Message size limit. The default (used when MESSAGE_SIZE_LIMIT
  # is unset) is 50 MB
  .ifdef MESSAGE_SIZE_LIMIT
  # message_size_limit = MESSAGE_SIZE_LIMIT # I commented this line
  message_size_limit = 200 MB   # I added this line
  .endif

I restarted exim, but it had no effect. 

Haines



Re: Shell - escapes

2016-05-10 Thread Thomas Schmitt
Hi,

i wrote:
> > So this is not a way to express arbitrary literal text.

David Wright wrote:
> $ wc -c <<"x"

Indeed. One more way to reach the goal.
At least with bash and dash.


Have a nice day :)

Thomas



Re: Shell - escapes

2016-05-10 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, May 10, 2016 at 04:19:10PM +0200, Thomas Schmitt wrote:

> Regrettably, Here Documents let the shell fiddle with their text.
> 
>   $ wc -c <   $(echo hello)
>   x
>   6
> 
> So this is not a way to express arbitrary literal text.

Not if you quote the delimiter cookie in single quotes (in bash,
at least):

  | cat < the current shell is /bin/bash, I think

but:

  | cat <<'EOT'
  | the current shell is $SHELL, I think
  | EOT
  | 
  | => the current shell is $SHELL, I think

A bit like Perl (or was it the other way 'round? ;-)

> > Would it be useful / possible to change
> 
> One can switch from one shell to the other, one can even program an
> own shell. But i see very few chance that bash or dash upstream would
> accept any change or addition attempt about quoting. It is just too
> fundamental and there are viable ways to express a literal string.

That's my take too. And I think the decision to move slowly, if ever
does make a ton of sense in this context.

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

iEYEARECAAYFAlcx8MgACgkQBcgs9XrR2kZ3LwCdHCYhbwBUo5KlgsZJoxPOfuXO
p58AnR+iq50k4Hk61RY59/0Fn4boEs64
=IIYV
-END PGP SIGNATURE-



Lượt khách truy cập rất nhiều...

2016-05-10 Thread Tran Tai
Chào bạn listn, hôm bữa mình có liên hệ đến bạn mà ko thấy bạn trả lời.. mình 
thấy trang web của bạn có nhiều lượt người truy cập, nhưng trang web chưa có 
gắn hộp chat uhchat .net

Hộp chát sẽ giúp khách truy cập nhắn tin với bạn ngay tại trang web và bạn cũng 
biết được số điện thoại của họ để liên lạc với họ sau này.

Có gì bạn cứ vào trang uhchat .net mình sẽ gắn cho bạn dùng thử hộp chat này 
luôn bạn nhé.




Re: Shell - escapes

2016-05-10 Thread David Wright
On Tue 10 May 2016 at 16:19:10 (+0200), Thomas Schmitt wrote:

> Regrettably, Here Documents let the shell fiddle with their text.
> 
>   $ wc -c <   $(echo hello)
>   x
>   6
> 
> So this is not a way to express arbitrary literal text.

$ wc -c <<"x"
$(echo hello)
x

14
$ 

Cheers,
David.



Re: Shell - escapes

2016-05-10 Thread Thomas Schmitt
Hi,

> I think it would be useful to have a (new, meta) quote, which fully hides
> contents from bash-interpretion

The '' quote does this. It's simply impossible that an end quotation mark
can be distinguished from a literal quotation mark.
If there would be escaping of literal string end marks, then you get even
more interpretation and conversion.

So the solution with two kinds of quotation marks is the most simple,
if you do not want to go to FORTRAN strings with length number and
Hollerith constant:  5Hhello

Unambiguous, ingenious, uncomfortable.


The best alternative i know of would be an adjustable end mark.
Before the string begins, one would adjust the environment to a character
or string which surely is not part of the literal text.

The Here Documents of the shell are an example of this design pattern.
Get some unlikely text:

  $ uuidgen
  2bf661c8-b400-43f3-addc-d2d75f018013

Announce and use it as delimiter:

  $ wc <<2bf661c8-b400-43f3-addc-d2d75f018013
  ... text ...
  2bf661c8-b400-43f3-addc-d2d75f018013

Regrettably, Here Documents let the shell fiddle with their text.

  $ wc -c < Would it be useful / possible to change

One can switch from one shell to the other, one can even program an
own shell. But i see very few chance that bash or dash upstream would
accept any change or addition attempt about quoting. It is just too
fundamental and there are viable ways to express a literal string.


Have a nice day :)

Thomas



Re: How to find reason for sporadic chime from computer?

2016-05-10 Thread David Wright
On Tue 10 May 2016 at 09:45:52 (-0400), Kynn Jones wrote:
> Suddenly, my computer has started emitting a chime sound at random
> times.  (Roughly every 30 minutes or so, but with high variance.)  I
> have found nothing else that correlates with this chiming.  In
> particular, nothing changes on the screen (i.e., no pop-ups, dialogs,
> etc. show up).
> 
> I normally disable all beeps and sound notifications on my system, so
> I find this behavior pretty disconcerting.
> 
> How can I troubleshoot this?

AFAICT xclock chimes on my desktop (non-randomly) even though I don't
specify -chime when it starts.

On my laptop (used in silent environments) I have this file:

$ cat /etc/modprobe.d/whatever-you-like-to-name-it.conf
# blacklist PC Speaker, particularly on the
# laptop where it is far too strident
blacklist pcspkr
blacklist snd_pcsp
#
$ 

That should allow you to eliminate the beeper as the source.

Cheers,
David.



Re: Shell - escapes

2016-05-10 Thread David Wright
On Tue 10 May 2016 at 13:16:27 (+), Mark Fletcher wrote:
> On Tue, May 10, 2016 at 9:20 PM  wrote:
> > If you are embedding longer scripts in your shell, consider using
> > "here documents", which are more flexible wrt. embedded quotes.
> > For one-liners, Thomas' solution works nicely.
> >
> Except that it does what the OP clearly said he does NOT want to do -- it
> uses double quotes.

It appears to me that the OP included that condition in order to
persuade us that:
(a) a new quoting mechanism is needed for building perl strings in shell:
https://lists.debian.org/debian-user/2016/05/msg00403.html
and (b) an old quoting mechanism should be changed:
https://lists.debian.org/debian-user/2016/05/msg00388.html

You can call me cynical if you wish.

Cheers,
David.



Re: Shell - escapes

2016-05-10 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, May 10, 2016 at 01:36:22PM +, Andy Smith wrote:
> Hello,
> 
> On Tue, May 10, 2016 at 11:18:06AM +0200, Die Optimisten wrote:
> > How can I escape a ' inside '...'
> > e.g. perl -e 'print '$ and a' '# I don't want to use "
> 
> You can't, so if it were me I would use one of perl's alternatives
> for single-quoted strings, such as:
> 
> perl -e 'print q{$ and a} '
> 
> http://perldoc.perl.org/perlop.html#Quote-and-Quote-like-Operators

"There Is More Than a Way To Do It" :-)

By the way, this is recommended reading (back to the shell and
especially bash):

  http://wiki.bash-hackers.org/

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

iEYEARECAAYFAlcx538ACgkQBcgs9XrR2ka7GgCfd2N8PaoE2ng7i4hPuASpH+up
/6IAmwSHaxmQVI9f9s3DhJAmARPHoPVw
=k8A/
-END PGP SIGNATURE-



How to find reason for sporadic chime from computer?

2016-05-10 Thread Kynn Jones
Suddenly, my computer has started emitting a chime sound at random
times.  (Roughly every 30 minutes or so, but with high variance.)  I
have found nothing else that correlates with this chiming.  In
particular, nothing changes on the screen (i.e., no pop-ups, dialogs,
etc. show up).

I normally disable all beeps and sound notifications on my system, so
I find this behavior pretty disconcerting.

How can I troubleshoot this?

TIA!

kj



Re: Shell - escapes

2016-05-10 Thread Andy Smith
Hello,

On Tue, May 10, 2016 at 11:18:06AM +0200, Die Optimisten wrote:
> How can I escape a ' inside '...'
> e.g. perl -e 'print '$ and a' '# I don't want to use "

You can't, so if it were me I would use one of perl's alternatives
for single-quoted strings, such as:

perl -e 'print q{$ and a} '

http://perldoc.perl.org/perlop.html#Quote-and-Quote-like-Operators

Cheers,
Andy

-- 
http://bitfolk.com/ -- No-nonsense VPS hosting

> The optimum programming team size is 1.
Has Jurassic Park taught us nothing? — pfilandr


signature.asc
Description: Digital signature


Re: Instalar o Debian em um cartão de memória

2016-05-10 Thread Sinval Júnior
Fiz usando este wiki e funcionou[1]. Agora tem disponível também o Raspbian
Lite.





1 - https://wiki.debian.org/RaspberryPi
2 - https://www.raspberrypi.org/downloads/raspbian/

Ao encaminhar esta mensagem, por favor:
1 - Apague meu endereço eletrônico;
2 - Encaminhe como Cópia Oculta (Cco ou BCc) aos seus destinatários.
Dificulte assim a disseminação de vírus, spams e banners.

#=+
#!/usr/bin/env python
nome = 'Sinval Júnior'
email = 'sinvalju arroba gmail ponto com'
print nome
print email
#==+

Em 10 de maio de 2016 10:14, Leandro Moreira 
escreveu:

> Prezados, bom dia!
>
> Estou iniciando um projeto usando o raspeberry PI, ele vem por default com
> o raspibian que é uma variante do Debian, gostaria de instalar o Debian
> nele já segui vários tutoriais e nenhum funcionou, por acaso alguém pode me
> indicar alguma documentação ou já tenha feito esse tipo de instalação e
> possa me indicar algum tipo de documentação que me oriente a realizar essa
> instalação.
>
> Desde já agradeço a todos pela atenção.
>
> Att.
>
> __
> Leandro Moreira
> Network Administrator
> LPIC1 - Linux Professional Institute Certified
> e-mail/msn: lean...@leandromoreira.eti.br
> Tel.: + 55(32) 9906-5713
>


Re: Shell - escapes

2016-05-10 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, May 10, 2016 at 01:14:57PM +, Mark Fletcher wrote:
> On Tue, May 10, 2016 at 9:20 PM  wrote:
> 
> >
> > If you are embedding longer scripts in your shell, consider using
> > "here documents", which are more flexible wrt. embedded quotes.
> > For one-liners, Thomas' solution works nicely.
> >
> >
> Except that it does what the OP clearly said he does NOT want to do -- it
> uses double quotes.

I think in the thread it's explained nicely why it can't work with
single quotes alone. For the non-single-quoted stretches you can
of course do without double quotes (use backslash), but I think
we are splitting hairs at this point.


Thomas and me just guessed at the OP's intentions: (s)he didn't
want double quotes to protect the $ in there. I think we guessed
right :-)

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

iEYEARECAAYFAlcx4JQACgkQBcgs9XrR2kZpjQCffzfOP5OuC771S28FItQjFus0
3ecAmgMIILeAmt1TdBuhVnXJHhDOMrjL
=I5y2
-END PGP SIGNATURE-



Re: Shell - escapes

2016-05-10 Thread Mark Fletcher
On Tue, May 10, 2016 at 9:20 PM  wrote:

>
> If you are embedding longer scripts in your shell, consider using
> "here documents", which are more flexible wrt. embedded quotes.
> For one-liners, Thomas' solution works nicely.
>
> Except that it does what the OP clearly said he does NOT want to do -- it
uses double quotes.


Instalar o Debian em um cartão de memória

2016-05-10 Thread Leandro Moreira
Prezados, bom dia!

Estou iniciando um projeto usando o raspeberry PI, ele vem por default com o 
raspibian que é uma variante do Debian, gostaria de instalar o Debian nele já 
segui vários tutoriais e nenhum funcionou, por acaso alguém pode me indicar 
alguma documentação ou já tenha feito esse tipo de instalação e  possa me 
indicar algum tipo de documentação que me oriente a realizar essa instalação.

Desde já agradeço a todos pela atenção.

Att.

__
Leandro Moreira
Network Administrator
LPIC1 - Linux Professional Institute Certified
e-mail/msn: lean...@leandromoreira.eti.br
Tel.: + 55(32) 9906-5713 
  

Re: Microfono funciona pero no puede grabar en editores o grabadores

2016-05-10 Thread Camaleón
El Mon, 09 May 2016 17:22:20 -0500, Debianero escribió:

> On Sun, May 08, 2016 at 01:25:56PM +, Camaleón wrote:
>> El Sat, 07 May 2016 17:15:28 -0500, debianero escribió:
>> 
>> (...)
>> 
>> > Al revisar la configuracion de Audacity verifique nuevamente que este
>> > activada la tarjeta y si, esta activada. Tambien el dispositivo de
>> > entrada y es el mismo que es el siguiente:
>> > 
>> > Reproduccion: HDA Intel PCH: ALC233 Analog (hw:0,0)
>> > Grabacion: HDA Intel PCH: ALC233 Analog (hw:0,0)
>> > 
>> > Como podran darse cuenta, es el mismo ¿Sera ese el error?. Supongo
>> > que quizas deberia haber una pequeña diferencia en el apartado hw
>> > quizas en grabacion deberia decir hw:0,1 o quizas este bien.
>> 
>> (...)
>> 
>> Sobre esto, un apunte. Las tarjetas de sonido (tanto las integradas
>> como las dedicadas) tienen varias entradas (micro trasero, micro
>> frontal) y salidas (analógica, digital...). En fin, que un único
>> dispositivo puede reproducir y grabar por lo tanto es normal que el
>> mismo chipset aparezca en los dos campos.
> 
> Claro, pero ahora como elijo que grabe la frontal o la digital?.

(...)

Pues seleccionado la entrada de audio que quieres usar como 
predeterminada desde el aplicativo de control de sonido que utilices.

Saludos,

-- 
Camaleón



Re: Problemas con kernel.

2016-05-10 Thread Camaleón
El Mon, 09 May 2016 22:32:22 +, alparkom . escribió:

> Buenas chicos, tengo un problema con el kernel de Debian Jessie.
> 
> El fallo surge cuando quito al portatil de suspención, y comienza a
> sonar el DD como si estuviera haciendo corto circuito (y se pegó, dejó
> de responder) por lo que apago el sistema y reinstalo el disco duro a su
> posición original. 

¿Suspensión o hibernación? Lo primero tira de RAM, lo segundo del disco 
duro por lo que si el disco duro tiene algún problema o está a punto de 
morir la operación de volcado y la posterior restauración del contenido 
de la memoria al disco puede ser fatal.

> Ahí todo funciona bién pero el sistema arranca con el mensaje:

Bueno, escuchar un "clan, clan" cuando restauras el sistema yo no diría 
que es ir "todo bien" :-)

> "The root filesystem on /dev/sda6 requires a manual fsck Modprobe:
> module ehci-orion not found in modules.dep"
> 
> Y un poco mas abajo:
> 
> "/bin/sh: can't access tty; job control turned off"
> 
> Luego, como ahí decía, procedí a analizar la partición "sda6" (de paso
> analicé todas del mismo disco duro). Todo bien.

¿Es la partición donde tienes del sistema raíz?

> Intento iniciar el sistema y aparece un nuevo error:
> 
> "end kernel panic - not syncing to kill init! Exit code 0x7f00"
> 
> Leí por internet que era un problema de permisos en las particiones,
> que ocurría luego de jugar con "chmod" pero antes de suspenderlo
> funcionaba correctamente por lo que imagino es un problema del disco
> duro (o lo fue hasta que lo analicé con fsck).

O puede ser que el análisis con fsck se deba a que el dsico está fallando, 
pero de verdad. Pasa el test SMART desde el disco LiveCD del fabricante 
del disco duro.

> Otro que leí fué desmontar y volver a montar. Tampoco funcionó y despues
> del reinicio se deberían automontar, no?

Debería de intentar iniciar con normalidad pero si no tiene acceso a 
componentes básicos del sistema, casca (kernel panic y traza al canto).

> Ahora, con el último error, supongo que es un problema del kernel que se
> dañó. Alguna solución que se les ocurra?
> 
> Estaba pensando en instalar otra versión del kernel y utilizar esta...
> el problema está que no tengo como llegar a línea de comandos.
> 
> Y si inicio con la opción "init=/bin/sh", que dicen?
> Vale!

Lo primero sería analizar el disco duro y sacar todos los datos que 
puedas, sólo por si acaso. Después ya te puedes poner a intentar 
resucitarlo, con más tranquilidad, por ejemplo, buscar en Google por 
los mensajes que recibes sería una opción:

https://www.google.com/webhp?complete=0=en_rd=cr,ssl#complete=0=en=end+kernel+panic+-+not+syncing+to+kill+init!+Exit+code+0x7f00+%2Fbin%2Fsh:+can%27t+access+tty%3B+job+control+turned+off=Google+Search

Saludos,

-- 
Camaleón



Re: kvm | shared san storage

2016-05-10 Thread Germ van Ek | AppBakkers BV
Ik had tot zeer recent een ontwikkel/test datacenter omgeving draaien op 
Xencenter met storage op een antiek iSCSI san. Om precies te zijn hebben we ons 
rack afgebroken/uitbesteed naar 'de cloud' en heb ik een tijdje wat 
test/ontwikkel servers gedraaid op servers die al uit de productie waren 
gehaald, tot alles uit productie was en het rack kon worden opgezegd. Het 
nadeel is dat de beheeromgeving op Windows draait, maar het dagelijks beheer 
gaat wel erg prettig ten opzichte van command-line KVM vind ik. Dan met name 
als je je er niet dagelijks mee bezig hoeft te houden en de command line dingen 
dan betekent dat je alles mag gaan zoeken op internet.
Xencenter ondersteund oa live migratie, en dat werkte zelfs met het antieke SAN 
prima met antieke servers, en als het niet werkt, geeft hij dat ook aan voordat 
hij er aan begint.

Daarnaast hebben we 2 klanten draaien met KVM + LVM met libvirt, en 
Fedora/Redhat Virt-Manager als schil. Werkt ook wel prettig. Veel meer basic 
dan Xencenter, maar als je een MKB omgeving hebt voldoet dat prima. En de 
communicatie verloopt over een SSH tunnel, dus dat maakt het standaard al 
redelijk veilig.

Verder hebben we nu bij 2 locaties Proxmox draaien. In ons geval hebben we nog 
wel eens wat hulpjes / losse krachten / studenten die niet zo erg handig zijn, 
en dan is zo'n webbased omgeving wel practisch. Je gaat gewoon naar de URL toe, 
en kan zonder plugins oid alle dagelijkse beheertaken doen, met een 
Javascript/HTML based console viewer. En de installatie is ook gewoon in een 
handomdraai, dus wat dat betreft wel goede concurrentie voor Xencenter.

Met storage weinig ervaring, behalve dat je de Openfiler 'open source edition' 
als de pest moet mijden. Exacte details kwijt, maar als je OSS gebruikt, wat in 
ons geval zo was, dan krijg je alleen een rare userspace iSCSI implementatie, 
als je betaald dan 'mag je' de kernel based iSCSI gebruiken. Het rare aan dit 
model vind ik vooral dat beide iSCSI implementaties niet van de makers van 
Openfiler zijn, dus het is wat apart naar mijn mening om daar de grens te maken.

Met vriendelijke groet, 

App b akkers 
g...@appbakkers.nl

- Original Message -
> From: "Wouter Verhelst" 
> To: "Paul van der Vlis" 
> Cc: debian-user-dutch@lists.debian.org
> Sent: Maandag 9 mei 2016 08:55:16
> Subject: Re: kvm | shared san storage

> On Wed, May 04, 2016 at 09:57:34AM +0200, Paul van der Vlis wrote:
>> Op 04-05-16 om 07:21 schreef Wouter Verhelst:
>> > Omdat je er expliciet naar vraagt (en omdat ik zelf de
>> > reference-implementatie ervan beheer): nbd wordt meer en meer het
>> > "standaard" protocol voor virtualisatie-storage onder Linux. Dit heeft
>> > te maken met het feit dat qemu tegenwoordig goede builtin ondersteuning
>> > heeft voor nbd (zowel client als server); libvirt is dan ook zinnens om
>> > bv live-migratie via nbd te laten lopen. Sinds een jaar ofzo is er ook
>> > een spec voor STARTTLS binnen NBD, die in de soon-to-be-released qemu
>> > 2.6 geïmplementeerd is en beschikbaar zal zijn als eerste implementatie.
>> 
>> Heel fraai!
>> 
>> > Ik heb, puur uit interesse, afgelopen weekend ook eens een paar
>> > benchmarks gedraaid (AoE vs iSCSI vs NBD, alles over 1GigE tussen
>> > dezelfde client en server), en daaruit had ik het gevoel dat NBD niet
>> > hoeft onder te doen (qua performance) tov de andere twee. Details zet ik
>> > later nog op mijn blog.
>> 
>> Ik vond in het verleden wel dat NBD traag was, of kon zijn.
>> Weet je ook wanneer die problemen zijn opgelost?
> 
> "Traag" is, uiteraard, subjectief.
> 
> Ik heb voor nbd 3.13 (de meest recente release, zit nog niet in stable)
> een thread pool toegevoegd, waardoor requests nu in parallel afgehandeld
> kunnen worden. Voordien was dat sequentiëel. Dat heeft er mogelijk mee
> te maken.
> 
> Het protocol an sich is echter altijd in staat geweest om parallel te
> werken, en andere implementaties (o.a. qemu) hebben dat lang gedaan.
> 
>> > Qua configuratie is iSCSI wel een ramp. Veel complexer dan noodzakelijk;
>> > duidelijk een geval van "design by committee".
>> 
>> Als je weet hoe het moet, is (bijna) alles simpel ;-)
> 
> Mja, maar zelfs dan nog is iSCSI overdreven.
> 
> Je maakt eerst een target aan met een naam die (als je het volgens de
> regels van de kunst doet) ofwel belachelijk verbose is (IQN), ofwel
> belachelijk onleesbaar (EUI).
> 
> Dan maak je een LUN aan, waarbij de grootte van het device *verplicht*
> een veelvoud van de block size moet zijn (anders werkt de boel niet)
> 
> Dan moet je client-side eerst discovery doen op de host waarmee je wilt
> verbinden, de target kiezen op die host, en dan de LUN. En als je tussen
> de discovery van de beschikbare targets een wijziging doet target-side,
> dan wordt de discovery ook niet automatisch geüpdated enzo.
> 
> Beetje belachelijk allemaal, IMO.
> 
> NBD daarentegen is "maak export aan, HUP server, done". Client-side heb
> je (optioneel) nbd-client -l 

Re: cups (sharing network printer)

2016-05-10 Thread Brian
On Tue 10 May 2016 at 12:58:13 +0200, Pol Hallen wrote:

> >>try lpstat -a
> 
> T640 accepting requests since Mon 09 May 2016 07:29:09 PM CEST

Please test from your client with

  lp -d T640 ~/.profile

Does the file print?



Re: Shell - escapes

2016-05-10 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, May 10, 2016 at 01:54:35PM +0200, Die Optimisten wrote:
> > If there was no $ in the text, one could do it more simply by
> packing the whole text into double quotes:
> perl -e "print '$ and a' "
> > Have a nice day :) Thomas
> 
> That's why I constructed that example :)
> 
> I think it would be useful to have a (new, meta) quote, which fully
> hides contents from bash-interpretion
> so that (perl-)strings can be built without thinking of quoting/escaping.
> Would it be useful / possible to change '...' so that nothing
> _except_ \'  ist interpreted, I think that would be a nice solution
> --- or use a new (unused???) character.
> - Is it worth to forward it to the bash-experts (perhaps sb of them
> reading this...)

You can try that, but be warned that shell (Unix) syntax in general and
bash syntax in particular is a rather mature affair, result of many
shaping forces (esp. compatibility to other shells and backward compatibility
considerations). At this point in history it has achieved an exquisite
equilibrium and there's a huge body of scripts to cater for.

So motivation to change syntax at such a basic level is probably
pretty low (and with a reason).

If you are embedding longer scripts in your shell, consider using
"here documents", which are more flexible wrt. embedded quotes.
For one-liners, Thomas' solution works nicely.

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

iEYEARECAAYFAlcx0gwACgkQBcgs9XrR2kb6TACfYgdtxEWKUq63xrKc8E53Gd/b
QHoAn0/3IB0YTKnmSKVV6LDx6sFwR97A
=KOjh
-END PGP SIGNATURE-



Re: Shell - escapes

2016-05-10 Thread Die Optimisten
> If there was no $ in the text, one could do it more simply by packing 
the whole text into double quotes:

perl -e "print '$ and a' "
> Have a nice day :) Thomas

That's why I constructed that example :)

I think it would be useful to have a (new, meta) quote, which fully 
hides contents from bash-interpretion

so that (perl-)strings can be built without thinking of quoting/escaping.
Would it be useful / possible to change '...' so that nothing _except_ 
\'  ist interpreted, I think that would be a nice solution --- or use a 
new (unused???) character.
- Is it worth to forward it to the bash-experts (perhaps sb of them 
reading this...)


Thanks for that many answers!
Andrew




Re: cups (sharing network printer)

2016-05-10 Thread Brian
On Tue 10 May 2016 at 13:12:14 +0200, Pol Hallen wrote:

> >Please post the outputs of 'lpstat -t' on the server and a client.
> 
> scheduler is running
> system default destination: T640
> device for PDF: cups-pdf:/
> device for T640: socket://192.168.1.220:9100
> PDF accepting requests since Mon 09 May 2016 07:25:03 PM CEST
> T640 accepting requests since Tue 10 May 2016 01:00:30 PM CEST
> printer PDF is idle.  enabled since Mon 09 May 2016 07:25:03 PM CEST
> printer T640 is idle.  enabled since Tue 10 May 2016 01:00:30 PM CEST

Two outputs were asked for. Would you post the one for a client.



Re: Shell - escapes

2016-05-10 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, May 10, 2016 at 01:08:04PM +0200, Thomas Schmitt wrote:
> Hi,
> 
> to...@tuxteam.de wrote:
> >perl -e 'print '"'"'$ and a'"'"' '# I don't want to use "
> 
> You were faster than me. :))
> 
> 
> > I.e. just use the '' where you need 'em
> 
> I actually do it vice versa:
> If purely literal text is intended, i use '' where possible and
> escape only '.
> 
> That's most safe because i do not have to ponder which character
> is interpreted and converted inside "" and which will stay as is.
> So it is also easy to program in C.

Good insight. This was my first cut as well, but I came from a
slightly different angle: starting from '...', what would an
automatic transformation look like?

> Have a nice day :)

same to you :-)

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

iEYEARECAAYFAlcxxbQACgkQBcgs9XrR2kb7cACfXYcRaA+YSDCLzaQCL6S8sJFw
b4wAni2zG9YVvh0LoCyn/GyWJ8xs6LgI
=/y2Z
-END PGP SIGNATURE-



Re: cups (sharing network printer)

2016-05-10 Thread Pol Hallen

Please post the outputs of 'lpstat -t' on the server and a client.


scheduler is running
system default destination: T640
device for PDF: cups-pdf:/
device for T640: socket://192.168.1.220:9100
PDF accepting requests since Mon 09 May 2016 07:25:03 PM CEST
T640 accepting requests since Tue 10 May 2016 01:00:30 PM CEST
printer PDF is idle.  enabled since Mon 09 May 2016 07:25:03 PM CEST
printer T640 is idle.  enabled since Tue 10 May 2016 01:00:30 PM CEST


Pol



Re: Shell - escapes

2016-05-10 Thread Thomas Schmitt
Hi,

to...@tuxteam.de wrote:
>perl -e 'print '"'"'$ and a'"'"' '# I don't want to use "

You were faster than me. :))


> I.e. just use the '' where you need 'em

I actually do it vice versa:
If purely literal text is intended, i use '' where possible and
escape only '.

That's most safe because i do not have to ponder which character
is interpreted and converted inside "" and which will stay as is.
So it is also easy to program in C.


Have a nice day :)

Thomas



Re: cups (sharing network printer)

2016-05-10 Thread Pol Hallen

try lpstat -a


T640 accepting requests since Mon 09 May 2016 07:29:09 PM CEST

Pol



Re: Shell - escapes

2016-05-10 Thread Thomas Schmitt
Hi,

Die Optimisten wrote:
> > How can I escape a ' inside '...'
> > e.g. perl -e 'print '$ and a' '

Mark Fletcher wrote:
> perl -e 'print '\''$ and a'\'' '

Or by ending the range of ' and packing the literal ' into
double quotes:

  perl -e 'print '"'"'$ and a'"'"' '

consisting of these quotation pieces

  'print '
  "'"
  '$ and a'
  "'"
  ' '

If there was no $ in the text, one could do it more simply by
packing the whole text into double quotes:

  perl -e "print '$ and a' "


Have a nice day :)

Thomas



Re: cups (sharing network printer)

2016-05-10 Thread Brian
On Mon 09 May 2016 at 20:01:28 -0500, David Wright wrote:

> On Mon 09 May 2016 at 23:22:44 (+0100), Brian wrote:
> > On Mon 09 May 2016 at 23:45:18 +0200, deloptes wrote:
> > > Pol Hallen wrote:
> > > >> Unless I am misunderstanding the question,
> > > > I need to print using 192.168.1.10 (server) not directly by network 
> > > > printer
> 
> > > In /etc/cups/client.conf
> > > 
> > > set the ServerName
> > > 
> > > ServerName 192.168.1.10
> > > 
> > > try lpstat -a
> > > 
> > > $  lpstat -a
> > > HP_LaserJet_5L accepting requests since Wed 04 May 2016 10:31:02 PM CEST
> > 
> > The OP talks about *"clients"*. Would your advice stay the same if there
> > was a 1000 of them?
> 
> Your first and last comments were too terse for me to understand. I
> think you might be implying here that the solution doesn't scale well.

The advice is fine as far as it goes and should work. It is a technique
I use myself on a machine or two when I do not want a local cupsd or
prefer not to have avahi-daemon on a print server with limited
resources.

Scaling is an issue and I do not know how one efficiently adopts to
adding large number of clients or a change in the server's IP. The
assumption is also being made that the server is online and available.

Visitors on a network would have to be informed of the IP; this may be a
hassle for them, particularly if they are unfamiliar with the device
they are using or not comfortable with altering its settings. Visiting
Big Company Boss would likely not be amused having to take a lesson in
network configuration just to print.

The reality is that mobile devices (laptops, phones etc) are probably
more numerous than desktops. Linking them with a single infrastructure
and pointing to a single server negates the advantages they have for
printing. Devices using AirPrint should immediately be at home with
Debian CUPS and really have no need of a client.conf.

Also, if the network is down or there are network errors or the server
is not available, the application may not retry and printing will be
prevented. A user closing the lid on a laptop before an application has
finished submitting a job is to be avoided; the job isn't going
anywhere.

> Can you explain the difference between the purported solution above
> and your earlier "Set up the clients to discover the server. Print.",
> ie how "Set up"?

With a local cupsd a job can be queued and recovery from temporary
issues is much easier. The local cupsd can coordinate with the OS to
keep the system (and network stack) up long enough to send the job
remotely. The client software can adapt to the network/location more
easily (for example, when roaming). What is displayed in print
dialogues of applications is what is actually online, not what may
have disappeared a week ago and which you now have to re-locate.

The "Set up" on a Jessie client consists of

  apt-get install cups

The default for the installation is for print queues on a remote server
to be offered by applications or displayed by 'lpstat -a'. Immediate
printing capability, in other words.



Re: bash - shell events "!"

2016-05-10 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, May 10, 2016 at 11:32:47AM +0200, Die Optimisten wrote:
> Hello
> 
> echo hello!# displays that, BUT:
> echo "Hello!" # tells:
> -su: !": event not found# this worked years before without problem!
> Is that intended? These leads to errors in many scripts (including
> installig package dkms)
> How can this be turned off? For me this behaviou should be changed,
>  for example: Events should contain whitespace before or after it,
> or only work outside quoting...

Note that this is only a problem in interactive mode. In batch mode
the ! passes through undamaged. You can disable ! completely (look
up the shell man page under 'HISTORY EXPANSION' to learn what it's
good for), as has been said in this thread, or you can just escape
a single ! with a backslash: \!

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

iEYEARECAAYFAlcxtpMACgkQBcgs9XrR2kZ/EQCdFxlrN2Qi4FVkl+9PrsW2aWFo
0PoAn3z+03JhPj2u07aHAqQDogTCIXe9
=0Mp1
-END PGP SIGNATURE-



Re: gros problème pour lancer darktable sur un CPU P4

2016-05-10 Thread francois
On Sat, May 07, 2016 at 08:48:36PM +0200, Bernard Schoenacker wrote:
> je n'arrive pas à lancer darktable sur un ordi portable du fait qu'il
> est demandé une instruction sse3 ...
> 
> lscpu
> Architecture :i686
>[...]
> Nom de modèle :  Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz
> Flags: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge
> mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe pebs
> bts cid xtpr
>[...]
> 
> pourtant dans la FAQ de Darktable, figure sse2 ...
> 
> https://www.darktable.org/about/faq/
> 
> un patch est dispo pour slackware, comment faire pour le faire
> transposer à debian ?

Ouvrir un bug (en anglais) avec "reportbug darktable" et y joindre le
patch en question parait la bonne procédure à appliquer pour demander
au mainteneur l'application du patch.

François



Re: Shell - escapes

2016-05-10 Thread Frédéric Marchal
On Tuesday 10 May 2016 11:18:06 Die Optimisten wrote:
> Hi,
> 
> How can I escape a ' inside '...'
> e.g. perl -e 'print '$ and a' '# I don't want to use "

This seems to work:

perl -e 'print '\''$ and a'\'

It must be understood as the concatenation of these strings:

* literal string: 'print '
* escaped \'
* literal string: '$ and a'
* escaped \'

Frederic



Re: bash Shell - escapes

2016-05-10 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, May 10, 2016 at 11:20:23AM +0200, Die Optimisten wrote:
> On 2016-05-10 11:18, Die Optimisten wrote:
> >Hi,
> >
> >How can I escape a ' inside '...'
> >e.g. perl -e 'print '$ and a' '# I don't want to use "

The short answer is... you can't. Quoting from the bash man page:

  "Enclosing characters in single quotes preserves the  literal  value  of
   each character within the quotes.  A single quote may not occur between
   single quotes, even when preceded by a backslash"

The long answer is... this woldn't be a shell if there were no useful
workarounds.

The trick in this situation is just to break up the string. Be aware
that to a shell, everything is text, so foo, "foo" and 'foo' are all
(in some way) equivalent.

This would work:

   perl -e 'print '"'"'$ and a'"'"' '# I don't want to use "

That is, you glue your string out of several parts, here separated
by spaces; only the embedded ' are quoted by "":

   'print '  "'"  '$ and a'  "'"  ' '

Of course, in practice you wouldn't do that blind transform, but
optimize it a bit, e.g.:

   "print '"'$'" and ax ' "

I.e. just use the '' where you need 'em

Then, you can escape the $ whithin the "" with a \

Lots of ways, use whatever is most readable.

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

iEYEARECAAYFAlcxtVcACgkQBcgs9XrR2kZmlgCffAw1D1VN5+S6M9QlMtzb+egm
9FcAn1VzNSS8Y0R+APMmc8r0fKUkIeV8
=F9uz
-END PGP SIGNATURE-



Re: Shell - escapes

2016-05-10 Thread shawn wilson
'...'  doesn't interpolate.
push @f, '$ and a';
push @f, "'";
print join '', @f;
If you want. I have a feeling YDIW and need to step back and present the
actual problem.
On May 10, 2016 05:36, "Die Optimisten"  wrote:

> Hi,
>
> How can I escape a ' inside '...'
> e.g. perl -e 'print '$ and a' '# I don't want to use "
>
> thank you
> Andrew
>
>


Re: paquet pour enregistrer une zone de l'écran

2016-05-10 Thread francois
On Thu, May 05, 2016 at 05:43:02PM +, Alex PADOLY wrote:
> Dans le but de créer des tuto sous forme de vidéo au format avi ou
> mpeg4, je recherche un paquet Debian qui me permet d'enregistrer une
> zone de mon écran.

J'utilise kazam malgré les problèmes sur la sélection de zone ou de
fenêtres. Même bug avec Stretch que celui-ci :
https://bugs.launchpad.net/kazam/+bug/1263419

À part ce petit problème il fait bien le boulot.

François



Re: Shell - escapes

2016-05-10 Thread Mark Fletcher
On Tue, 10 May 2016 at 18:36, Die Optimisten 
wrote:

> Hi,
>
> How can I escape a ' inside '...'
> e.g. perl -e 'print '$ and a' '# I don't want to use "
>
> thank you
> Andrew
>
> perl -e 'print '\''$ and a'\'' '

The things that might look like double quotes in the above depending on
your font are actually two single quotes side by side.

Mark


Re: Re: "lvmetad is not active yet"

2016-05-10 Thread Javier Carreño
this solved to me https://forum.dug.net.pl/viewtopic.php?pid=292809


Re: bash - shell events "!"

2016-05-10 Thread Jonathan bartoua Schneider
Hi,

It is the historical part of C shell, you can disable it typing or adding
it to your profile :
set +H

Regards,
Jonathan
Le 10 mai 2016 11:48 AM, "Die Optimisten"  a
écrit :

Hello

echo hello!# displays that, BUT:
echo "Hello!" # tells:
-su: !": event not found# this worked years before without problem!
Is that intended? These leads to errors in many scripts (including
installig package dkms)
How can this be turned off? For me this behaviou should be changed,
 for example: Events should contain whitespace before or after it, or only
work outside quoting...

using GNU bash, version 4.2.37(1)-release (x86_64-pc-linux-gnu)


bash - shell events "!"

2016-05-10 Thread Die Optimisten

Hello

echo hello!# displays that, BUT:
echo "Hello!" # tells:
-su: !": event not found# this worked years before without problem!
Is that intended? These leads to errors in many scripts (including 
installig package dkms)

How can this be turned off? For me this behaviou should be changed,
 for example: Events should contain whitespace before or after it, or 
only work outside quoting...


using GNU bash, version 4.2.37(1)-release (x86_64-pc-linux-gnu)



Shell - escapes

2016-05-10 Thread Die Optimisten

Hi,

How can I escape a ' inside '...'
e.g. perl -e 'print '$ and a' '# I don't want to use "

thank you
Andrew



bash Shell - escapes

2016-05-10 Thread Die Optimisten

On 2016-05-10 11:18, Die Optimisten wrote:

Hi,

How can I escape a ' inside '...'
e.g. perl -e 'print '$ and a' '# I don't want to use "

thank you
Andrew


I have to add, its bash - specific
and PLEASE also CC: me using  inform (AT) die-optimisten.net
I'm not subscribed here
THANKs


Re: laptop Acer Nvidia optimus

2016-05-10 Thread Pascal Obry
Salut,

> J'ai aussi un Acer avec Nvidia optimus.
>
> J'utilise "bumblebee", qui me permet de désactiver la carte nvidia (gain
> d'autonomie énorme!). Jpeux toujours l'activer avec "optirun" mais je le
> fais quasiment jamais.

Je pensais que bumblebee n'était plus maintenu?

> Si je branche un écran externe, mes deux écran sont bien détectés.

L'écran externe est connecté en HDMI? J'avais eu des problèmes avec
l'HDMI lorsque j'avais essayé sur un Dell 4800. Il m'était impossible
d'obtenir une image sur l'écran externe!

Cordialement,

-- 
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://photos.obry.net
  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B



Re: laptop Acer Nvidia optimus

2016-05-10 Thread Simon P
Le 10/05/2016 10:31, Pascal Obry a écrit :
> Je pensais que bumblebee n'était plus maintenu?

Je sais pas ce qu'il en ai mais le paquet debian évolue en tout cas:

wheezy-backports 3.2.1-4~bpo70+1
jessie (stable) 3.2.1-7
jessie-backports 3.2.1-10~bpo8+1
stretch (testing) 3.2.1-10
sid (unstable) (utils): 3.2.1-11

J'utilise le paquet de Jessie (stable). Ca marchait bien aussi sous
wheezy avec le paquet du backport.

> L'écran externe est connecté en HDMI? J'avais eu des problèmes avec
> l'HDMI lorsque j'avais essayé sur un Dell 4800. Il m'était impossible
> d'obtenir une image sur l'écran externe!

Je suis pas sur d'avoir déjà essayé en HDMI. Mais en VGA ça marche
parfaitement.

Simon.



Re: cups (sharing network printer)

2016-05-10 Thread deloptes
Brian wrote:

> On Mon 09 May 2016 at 23:45:18 +0200, deloptes wrote:
> 
>> Pol Hallen wrote:
>> 
>> >> Unless I am misunderstanding the question,
>> > 
>> > I need to print using 192.168.1.10 (server) not directly by network
>> > printer
>> > 
>> > thanks!
>> > 
>> > 
>> > Pol
>> 
>> Hi
>> 
>> In /etc/cups/client.conf
>> 
>> set the ServerName
>> 
>> ServerName 192.168.1.10
>> 
>> try lpstat -a
>> 
>> $  lpstat -a
>> HP_LaserJet_5L accepting requests since Wed 04 May 2016 10:31:02 PM CEST
> 
> The OP talks about *"clients"*. Would your advice stay the same if there
> was a 1000 of them?

I do not have any better solution - this autodiscovery did not work for me
and setting the ServerName in client.conf works.
If he has 1000 - he has to manage them automatically anyway - or what do you
do in such a case?
Anyway I'll be glad to have better solution

regards




Re: laptop Acer Nvidia optimus

2016-05-10 Thread Simon P
Salut,

J'ai aussi un Acer avec Nvidia optimus.

J'utilise "bumblebee", qui me permet de désactiver la carte nvidia (gain
d'autonomie énorme!). Jpeux toujours l'activer avec "optirun" mais je le
fais quasiment jamais.

Si je branche un écran externe, mes deux écran sont bien détectés.

Simon.

Le 09/05/2016 20:17, Grégory Reinbold a écrit :
> Salut,
> 
> Tu dis que pour l'instant ça tourne avec le driver Intel, as-tu déjà
> essayé d'installer les paquets nvidia non-free ?
> 
> https://packages.debian.org/search?keywords=nvidia=names=all=all=mozilla-search
> 
> 
> Cordialement
> 
> Le 09/05/2016 19:58, e Lpe a écrit :
>> Chalut,
>>
>> Je finis d'installer Debian Jessie x64 sur un Acer V3 nvidia optimus
>> gtx760m/intel 4600
>>
>> 1°) j'ai jeté un oeil à la configuration nvidia via nvidia setting.
>> Une chose m'a surpris. Sur les deux écrans branchés (laptop+externe),
>> un seul écran apparaît ce qui ne me plait pas plus que ça.
>>
>> 2°) la résolution affichée dans l'onglet idoine est des plus basique :
>> 640x480
>>
>> Pour l'instant, je n'ai touché à rien.
>> Visiblement je tourne actuellement avec  le pilote Intel.
>>
>> J'ai beau chercher dans divers site, il en ressort le bilan. La
>> plupart des sites donnent une documentation obsolète ou/et incomplète.
>> Les canaux IRC doivent sûrement être habité par des administrateurs
>> réseaux ou autre car dès que l'on touche aux domaines qui intéressent
>> les portables : bouche cousue.
>>
>> Décevant ! Y aurait-il un autre utilisateur de Jessie x64 qui soit
>> allé un peu plus loin qu'une installation basique ?
>>
>> Merci d'avance.
>>
> 



Re: Nautilus et taille des fichiers en binaires

2016-05-10 Thread Eric Degenetais
enfin cette histoire de Kib/Kb est surtout née de la malhonnêteté de
certains fabricants qui nous ont vendu des mégas d'un million d'octets au
lieu de 1024*1024 parce qu'ils trouvaient profitable de nous faire passer
des vessies pour des lanternes...

__
Éric Dégenètais
Henix



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


Le 23 avril 2016 à 22:06,  a écrit :

> On Saturday 23 April 2016 20:08:37 nicolas.patr...@gmail.com wrote:
> > Le 23/04/2016 19:46:42, andre_deb...@numericable.fr a écrit :
>
> > > En informatique 1K = 1.024,
> > > et pour ne pas mélanger avec les maths purs : 1K = 1.000,
> > > on écrit : 1 Ki = 1024 bits, 1kiO = 1.024 Octets, 1kiB = 1024
> > > Bytes...
>
> > Non non, ceci n’a plus cours maintenant.
> > 1k bidules = 1000 bidules.
> > 1Ki bidules = 1024 bidules :
>
> Et oui, allez savoir qui met le souk :
>
> Non, c'est en fait 1 kibi (Kio) bidules = 1024
>
> > Et ce, quels que soient les bidules.
> > Bon, certains utilisent encore le 1K pour dire 1000.
> > Quel souk…
>
> > Dans les maths purs 1K n'existe pas. C'est 1k ...
> > Gaëtan
>
> C'est bien "K" (Kio) et non k => 1 kibioctet (Kio)
>
>
> www.google.fr/search?q=kio+bits=utf-8=utf-8_rd=cr=_dIbV_ClOuWCgAbBiIqQBQ
>
> https://fr.wikipedia.org/wiki/Octet
>
> En résumé :
> kibi pour « kilo binaire » ;
> mébi pour « méga binaire » ;
> gibi pour « giga binaire » ;
> tébi pour « téra binaire » ;
> et ainsi de suite.
>
> Concernant les multiples de l'octet, cela donne :
> 1 kibioctet (Kio) = 210 octets  = 1 024 octets
> 1 mébioctet (Mio) = 220 octets = 1 024 Kio = 1 048 576 octets
> 1 gibioctet (Gio) = 230 octets = 1 024 Mio = 1 073 741 824 octets
> 1 tébioctet (Tio) = 240 octets = 1 024 Gio = 1 099 511 627 776 octets
> 1 pébioctet (Pio) = 250 octets = 1 024 Tio = 1 125 899 906 842 624 octets
> 1 exbioctet (Eio) = 260 octets = 1 024 Pio = 1 152 921 504 606 846 976
> octets
> 1 zébioctet (Zio) = 270 octets = 1 024 Eio = 1 180 591 620 717 411 303 424
> octets
> 1 yobioctet (Yio) = 280 octets  = 1 024 Zio = 1 208 925 819 614 629 174 706
> 176 octets
>
> André
>
>
>
>