debian reinicio constante

2017-03-27 Thread franiortiz hotmail
Hola a todos pues algo muy raro, sintoma : cuando arranco mi particion 
debian de 3 años de uso en lenovo m55, se apaga-reinicia constantemente.
causa: en este orden cambios hechos :
1- instalar psensor
2- redimensionar y mover particion / (un disco, 2 particiones:xp+linux/)
3- actualizar
Al ppio pense que seria por temperatura, asi que limpie bien el pc, 
apenas sucio.
luego pense por discos o ram, asi que pase memtest, satisfactoriamente, 
los discos los miro con crystaldiskinfo y estan perfectos, por cierto el 
viejo xp y los livecd van perfecto, asi que descarto hardware.
4- supuse que al mover la particion (/) algo salio mal, algo que ni fsck 
encontro, que tambien probe. asi que reinstale 
debian-live-8.7.1-i386-standard-non-free.iso con lxde-core, lightdm y 
nada mas, todo actualizado y sorpresa la mia se vuelve a reiniciar solo 
con apenas paquetes en version stable.
5- empiezo a pensar que el fallo fue actualizar, voy a probar con la 
version 
https://cdimage.debian.org/cdimage/archive/8.6.0-live/i386/iso-hybrid/debian-live-8.6.0-i386-standard.iso
 
, a ver si consigo instalarla sin actualizar y que no se reinicie, pero 
si es asi, me las veo mal sin poder actualizar.
6- Esto es un bug?
Alguna idea? necesito volver a tener mi debian en este pc, que me estoy 
viendo obligado a usar mocosoft
Gracias, un saludo



Re: Anyone know what this means when running aptitude update?

2017-03-27 Thread Frank

Op 28-03-17 om 00:57 schreef Mark Fletcher:

Right, for the key issue, that has taken me right back to where I started:

W: There is no public key available for the following key IDs:
1397BC53640DB551


Odd. If you do a web search with that number, you'll find a lot of posts 
mentioning this issue and all of them point to the same fix: get 
google's new key (file).



Possibly stupid question -- this is Jessie, does this mechanism of
dropping the files in trusted.gpg.d work properly in Jessie or is it
new?


Good question. Sven said it worked. I can't confirm that. It may be 
worth to try to import that key directly from a keyserver, like I 
suggested in my first reply:


sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 1397BC53640DB551

Regards,
Frank



Re: Una de hostapd en debian 7...

2017-03-27 Thread luisededios
On Mon, 27 Mar 2017 03:18:21 -0400, Antonio Trujillo Carmona  
 wrote:



El 22/03/17 a las 12:49, JAP escribió:

El 22/03/17 a las 00:16, luisededios escribió:

Saludos a todos,

Estoy retomando un tema que tengo pendiente desde hace algún tiempo
porque aun no lo he logrado poner en marcha. Me refiero a la
implementación de un AP wifi en una laptop DELL a la cual le he
instalado dos mini tarjetas wifi, wlan0 y wlan2.

Hasta donde he llegado he logrado que el AP montado sobre wlan0 conecte
a otros dispositivos móviles y también que la laptop se conecte a la
red(un móvil con zona wifi y datos móviles activados) mediante wlan2,
pero parece que tengo problemas con el enrutamiento ip desde wlan0 y
wlan2 en la propia laptop pues los móviles que se conectan al AP de la
laptop no logran navegar. Desde la laptop si puedo navegar, pero desde
los móviles conectados al AP de la laptop no logro navegar.

La ip del móvil con zona wifi y datos móviles activados es 192.168.43.1,
y la laptop toma la 192.168.43.156. Luego, el AP de la laptop tiene la
ip fija 192.168.42.1 y asigna bien ips al resto de móviles que se  
conectan.


Repito. Desde la laptop puedo navegar correctamente pero desde los
móviles conectados a ella no logro navegar.


(...)

Te estás complicando la vida en extremo, y estás cargando cosara "raras"  
en las

direcciones de red

Si no tienes una restricción de acceso a la red en wlan2, ya sea por  
MAC, nombre
de dominio o alguna otra cosa, y que pueda servir como servidora DNS y  
DHCP a
cualquier conexión, lo que debes hacer es un puente:  
https://wiki.debian.org/es/Compartir_red_fisica_con_WiFi


Ahora bien, si el proveedor de red te ha puesto trabas, debes  
configurarte como

servidor y enmascarar todo a través de tu computadora.

#/etc/network/interfaces
allow-hostplug wlan0
iface wlan0 inet static
address 192.168.42.1
netmask 255.255.255.0
network 192.168.42.0
broadcast 192.168.42.255
post-up /etc/init.d/hostapd force-reload --> ES NECESARIO REINICIAR  
HOSTAPD

LUEGO DE CONFIGURAR EL AP

#/etc/dhcp/dhcpd.conf
ddns-update-style none;
option domain-name "local";
option domain-name-servers 192.168.42.1;
authoritative;
log-facility local7;

subnet 192.168.42.0 netmask 255.255.255.0 {
range 192.168.42.10 192.168.42.20;---> ACÁ VA EL LÍMITE DE CONEXIONES QUE
QUIERAS PONER
option routers 192.168.42.1;
}


#/etc/default/isc-dhcp-server
INTERFACES="wlan0"


hostapd está bien.

Ahora, no te embrolles tanto con iptables.

Edita (o crea) el archivo /etc/rc.local

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Configuración IPTables
# Eliminar todas las reglas
iptables -F
iptables -t nat -F
iptables -t mangle -F

# Configurar NAT
iptables -t nat -A POSTROUTING -o wlan2 -j MASQUERADE
iptables -A FORWARD -i wlan2 -o wlan0 -m state --state  
RELATED,ESTABLISHED -j

ACCEPT
iptables -A FORWARD -i wlan0 -o wlan2 -j ACCEPT

# Mensaje de ejecución
echo "OK - rc.local ejecutado."

exit 0


Suerte

JAP



Yo tengo creado un puente sin problemas, no es con debian, si no con  
openwrt (es

por temas de hardware), pero viene a ser lo mismo.
Creo que uno de los problemas que te puedes encontrar es con la tarjeta  
wifi que
uses, creo recordar que había tarjetas que no soportaban hacer puentes y  
había

que montar un pseudo-puente.
De todas maneras, no creo que un puente sirva en tu problema, si lo he  
entendido
bien tu tienes un móvil que conectas a un ordenador por una wifi y de  
este

conectas otros equipos por otra wifi, en este caso no sirve el puente.
Vista por lo alto tu configuración del primer correo parece correcta,  
por lo que

deberemos depurarla.
1º con iptables límpialo y deja solo el enmarascamiento, cuando funcione  
ya

habrá tiempo de poner reglas de filtrado si quieres seguridad:
iptables -F
iptables -t nat -F
iptables -t mangle -F
iptables -t nat -A POSTROUTING -o wlan2 -j MASQUERADE

2º Comprueba que no tienes reglas extrañas:
$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

$ sudo iptables -L -t nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination

$ sudo iptables -L -t mangle
Chain PREROUTING (policy ACCEPT)
target prot opt source destination

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source 

Re: An INCOMPLETE solution - was [Re: Where is data stored when Synaptic scans DVDs?]

2017-03-27 Thread David Wright
On Sun 26 Mar 2017 at 11:31:57 (+), Curt wrote:
> On 2017-03-25, David Wright  wrote:
> > On Sat 25 Mar 2017 at 10:50:50 (+), Curt wrote:
> >> Actually, srcpkgcache.bin includes the information contained in the files
> >> in /var/lib/apt/lists; that is, all the info you obtain from the internet
> >> via your deb and deb-src lines -- this information changes only on
> >> apt-get update.
> >> 
> >> pkgcache.bin caches the information in srcpkgcache.bin + the information
> >> extracted from the apt and dpkg status files. This info changes on every
> >> install/remove done by apt or directly by dpkg.
> >> 
> >> The above scandalously pilfered from David Kalnischkies here:
> >> 
> >> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566275
> >
> > Thanks for the useful reference. Whether it ties in to what apt-cdrom
> > does, I don't know and have no way of testing.
> 
> It ties in to the context that you snipped; i.e. "the two .bin files in
> /var/cache/apt" and how you found it "tricky to check what's actually
> in them."
> 
> Well, maybe it is tricky to "check" but not to know what's in those two
> files (if we can depend on the other David), a distinction that may not
> be of much use or significance.
> 
> >> You can run 'strings' on pkgcache.bin BTW.
> >> 
> >> curty@einstein:/var/cache/apt$ strings pkgcache.bin | less
[...]
> >> It doesn't appear that tricky.
> >
> > What doesn't?
> >
> > Getting a ¼million-line output file is straightforward, but
> > have you tried to interpret it? What do you think it shows?
> >
> 
> Package names, versions, 'Description-md5' as far as I can tell is what
> is "actually" and obviously contained in the file, verifiable with very
> little effort via 'strings',

Yes, one might expect items like this in a file maintained by apt!
You can also see from the head of the file that the most of the
"versions" are not the versions of the packages but are actually
constraints, ie dependencies/replacements/breakages etc. all just
jumbled up.

Within this jumble, I think it would be difficult to unambiguously
locate information that was specific to apt-cdrom or synaptic, were
either of these to add information not covered by your reference.

$ ls -l /var/cache/apt/srcpkgcache.bin 
... 22531192 Mar 27 21:00 /var/cache/apt/srcpkgcache.bin
$ strings /var/cache/apt/srcpkgcache.bin | wc -c
3655511
$ 
so the output of strings amounts to about 16% which means that
84% could be "hiding" other information from our eyes.

I've never looked at (let alone examined) these files after scanning
CDs with synaptic (assuming these same filenames are used), so I have
no idea whether they contain the same information as apt-get update
writes, or more. And as for what   man apt-cdrom   means by
"correcting for several possible mis-burns", I have no idea.

> beyond that I ain't gonna go because I have
> other things to do. Sorry I'm writing the story of my life and there are
> many many chapters.

I'm sorry too. And for causing a disturbance.

Cheers,
David.



Re: zenity --text-info autoscrolling?

2017-03-27 Thread Jason


On Sun, 26 Mar 2017 12:10:02 +0200
 wrote:

>-BEGIN PGP SIGNED MESSAGE-
>Hash: SHA1
>
>On Sat, Mar 25, 2017 at 06:51:06PM -0500, Jason wrote:
>> Okay, if no one knows how to make zenity --text-info auto-scroll, what other
>> suggestions would you have for displaying output of a shell script that is 
>> able to
>> show the output of the current operation but with the option to scroll up to 
>> see
>> previous lines?
>> 
>> As an example of what I have in mind, I use rsync to make file backups and 
>> pipe the
>> output into zenity (--text-info) to show what is being done. The only 
>> problem is that
>> you have to keep scrolling down manually to see the last entry, which is not 
>> very
>> convenient.
>
>I gave up zenity since long, and whenever I've to cobble up a small
>GUI I went back to... Tcl/Tk.
>
>If you are interested, I could improvise something to get you started,
>but perhaps it leads you too far away from your comfort zone.

I am interested, but my free time is limited and I'm not sure where my position 
would be
on the learning curve. If you would be willing to give me an example of what is 
involved,
I might play with it a little to see if I think it is something I could learn 
how to use
without too many sleepless nights. :)

If you don't want to take the time, though, that's fine too as this is not of 
high
importance.
>
>Let me know.
>
>Regards
>- -- tomás
>-BEGIN PGP SIGNATURE-
>Version: GnuPG v1.4.12 (GNU/Linux)
>
>iEYEARECAAYFAljXk3oACgkQBcgs9XrR2kZIdQCePE4sFmCLNqjM73wI+76tTvCG
>4ScAnRg4je5XkeDXHJsh+QSLlQ39CTil
>=4Fmv
>-END PGP SIGNATURE-

Thanks,
Jason



Re: zenity --text-info autoscrolling?

2017-03-27 Thread Jason


On Sun, 26 Mar 2017 22:03:33 +0200
Floris  wrote:

>Op Fri, 24 Mar 2017 23:33:06 +0100 schreef Jason :
>
>> In interactive shell scripts I like piping output into zenity  
>> --text-info for display. If
>> the output is more than fits in the zenity window, any additional lines  
>> will be too far
>> down to display unless the user manually scrolls down to the bottom of  
>> the text.
>>
>> Does anyone know if there is a way to tell zenity to automatically  
>> scroll down as lines
>> are added so that the last lines are always visible? This way the output  
>> of the current
>> action would be displaying at the bottom of the zenity dialog box,  
>> instead of not being
>> visible.
>>
>> Using zenity 3.4.0-2 on Debian 8.1.
>>
>> --
>> Thanks.
>> Jason
>>
>
>perhaps you can use yad, a fork of zenity, with the tail option:
>https://packages.debian.org/sid/yad
>
>$ yad --help-text
>Usage:
>   yad [OPTION...] - Yet another dialoging program
>
>Text information options
>   --text-infoDisplay text information  
>dialog
>   --fore=COLOR   Use specified color for  
>text
>   --back=COLOR   Use specified color for  
>background
>   --wrap Enable text wrapping
>   --justify=TYPE Set justification (left,  
>right, center or fill)
>   --margins=SIZE Set text margins
>   --tail Autoscroll to end of text
>   --show-cursor  Show cursor in read-only  
>mode
>   --show-uri Make URI clickable
>   --uri-color=COLOR  Use specified color for  
>links
>
>
>success,
>
>floris

Thanks for the suggestion; it sounds like something that would work. 
Unfortunately, I
must work with something that already exists on my target systems (zenity does 
but not
yad) as it is not an option to add programs on some of these systems. Of 
course, you
could not know that as I had not stated it in my original post.

Thanks for your reply!
Jason



Re: zenity --text-info autoscrolling?

2017-03-27 Thread Jason


On Sun, 26 Mar 2017 07:47:15 -0400
rhkra...@gmail.com wrote:

>On Sunday, March 26, 2017 06:10:02 AM to...@tuxteam.de wrote:
>> On Sat, Mar 25, 2017 at 06:51:06PM -0500, Jason wrote:
>> > Okay, if no one knows how to make zenity --text-info auto-scroll, what
>> > other suggestions would you have for displaying output of a shell script
>> > that is able to show the output of the current operation but with the
>> > option to scroll up to see previous lines?
>> > 
>> > As an example of what I have in mind, I use rsync to make file backups
>> > and pipe the output into zenity (--text-info) to show what is being
>> > done. The only problem is that you have to keep scrolling down manually
>> > to see the last entry, which is not very convenient.
>> 
>> I gave up zenity since long, and whenever I've to cobble up a small
>> GUI I went back to... Tcl/Tk.
>> 
>> If you are interested, I could improvise something to get you started,
>> but perhaps it leads you too far away from your comfort zone.
>
>Jason,
>
>I don't know what you're doing exactly, but I'm tempted to suggest you simply 
>use the non-GUI command line within something like a KDE konsole with tools 
>like tail -f.  Yoiu could open (at least) two tabs, one to display the output 
>(with tail -f or not--you can scroll within a konsole tab) and the 2nd to 
>enter commands.
>
>If that sounds interesting, tell us more about what you're trying to do and 
>I'm sure I or someone else can give you useful (that might come from someone 
>else ;-) advice.


I have several different applications in mind, one of them is an automated 
backup of a
user's files using rsync in a shell script. The user triggers the script 
(possibly
using a desktop icon; no terminal or CLI involved) and is given the option to 
select which
external drive to use as the backup destination, and then rsync runs and dumps 
its output
into the zenity dialog, giving the user feedback of which files are being 
copied.

This is not a high priority problem, I just thought it would be nice to always 
have the
last lines visible instead of needing to manually scroll to the bottom.

Thanks for your reply.
Jason



Re: libjasper in Stretch

2017-03-27 Thread David Griffith

On Mon, 27 Mar 2017, Sven Hartge wrote:


David Griffith  wrote:


I also saw this
https://packages.qa.debian.org/j/jasper/news/20170212T221713Z.html, which
suggests that the original maintainer has stepped back up.  In any case, I
should perhaps convert my code from using Jasper to using OpenJPEG. But
then I notice that there is no libopenjpeg5-dev in Stretch to go along
with libopenjpeg5.  Is this just temporary?


Umm, openjpeg has also been removed from Stretch/Testing and Unstable

See https://tracker.debian.org/pkg/openjpeg and 
https://tracker.debian.org/news/791076

It has been replaced by openjpeg2:

https://tracker.debian.org/pkg/openjpeg2


Okay, now I see it.  Why is the package named "openjp2-7" instead of 
"openjpeg2-7"?  It seems to me that the latter would be easier to find.


Why is/was there a "libopenjpeg5" package?

--
David Griffith
d...@661.org

A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: When specifying path to file - confused about ./ and ~/

2017-03-27 Thread David Wright
On Mon 27 Mar 2017 at 21:48:00 (+), kAt wrote:
> PS  off-topic rant
> I just updated and a package named busybox came up.  Since I didn't know
> what it was I went into the page and its most recent revision of 1/2017
> seemed to be 3 years ahead of the testing/unstable version that we just
> updated now!  And this is very basic common stuff like cp and fdisk
> ..  How conservative is our system?  Wowww!

Type the following:

$ mkdir /tmp/foo
$ cd /tmp/foo
$ zcat /initrd.img | cpio --extract --no-absolute-filenames
$ ls -i bin sbin | sort -nr | more

and you will see that the overwhelming majority of commands, over
180 of them, are all in the one busybox binary of a little over ½MB.
Were you to run a shell in the debian-installer (Alt-F2), you'd see
that all those commands are much less well-endowed than the versions
you know and love.

Cheers,
David.



Nova mensagem

2017-03-27 Thread DropBox
 
  
   
 
 
   
 
  Olá,
 
 Seu (debian-user@lists.debian.org) Tem duas novas mensagens criptografadas no 
Dropbox.
 
  Visualizar arquivo
 Apreciar!
 A equipe do Dropbox 
 
 
  
 
   
 © 2017 Dropbox  
 
 
 

Re: When specifying path to file - confused about ./ and ~/

2017-03-27 Thread Mark Fletcher
On Mon, Mar 27, 2017 at 09:48:00PM +, kAt wrote:
> 
> PS  off-topic rant
> I just updated and a package named busybox came up.  Since I didn't know
> what it was I went into the page and its most recent revision of 1/2017
> seemed to be 3 years ahead of the testing/unstable version that we just
> updated now!  And this is very basic common stuff like cp and fdisk
> ..  How conservative is our system?  Wowww!
> 
I think that has less to do with conservatism and more to do with busy, 
unpaid maintainers doing what they can when they can, and probably 
getting narked off with it after a while especially if there is no 
evidence of appreciation from the community.

(I don't know any specifics of the busybox package, but what I describe 
wouldn't be atypical)

Mark



Re: Anyone know what this means when running aptitude update?

2017-03-27 Thread Mark Fletcher
On Mon, Mar 27, 2017 at 06:06:05PM +0200, Frank wrote:
> Op 27-03-17 om 17:14 schreef Mark Fletcher:
> >Well, switching from http.debian.net to deb.debian.org seems to have
> >fixed that one. The error relating to that has gone away.
> 
> Don't be surprised if it comes back. I think it may just have selected a
> different mirror now, but you can't be certain it will always pick that one.

Right. So far it hasn't but I get what you are saying. I don't believe, 
however, that I ran for weeks getting redirected to the same mirror and 
getting the same error and then at the moment I switched my settings the 
mirror changed and solved the problem by coincidence. Clearly the change 
had an impact. So that's good.

> 
> >>>wget -qO- https://dl.google.com/linux/linux_signing_key.pub | sudo
> >>>apt-key add -
> >>
> >>No, please do NOT use "apt-key add" but instead download the key and put
> >>it as a file with the suffix ".gpg" into the directory
> >>/etc/apt/trusted.gpg.d/
> >>
> >I downloaded the file from the above URL, and copied it as root to
> >/etc/apt/trusted.gpg.d as instructed. Since all the other files in that
> >directory were owned by root I made sure this one was too. And I renamed
> >it to add .gpg on the end.
> 
> That's for binary key files. This one is ascii armoured, so it needs an .asc
> 'extension'.
> 

Right, for the key issue, that has taken me right back to where I started:

W: There is no public key available for the following key IDs:
1397BC53640DB551

Now that is the only complaint, which is a significant improvement on 
where I started thanks to the fixed mirror, but the key ID issue isn't 
solved.

I tried naming the file linux_signing_key.pub.asc and 
linux_signing_key.pub.gpg.asc .

Neither worked (in the sense that the warning above appeared). Since 
this is the warning I was getting to start with, it almost feels like 
this file is either not being read (although naming it ending .gpg 
causes mayhem so I guess it is) or it doesn't contain what I need. I 
downloaded it using the wget command above except without the -qO- 
because I wanted to see what wget was doing and I didn't want the 
downloaded result going to standard output.

Possibly stupid question -- this is Jessie, does this mechanism of 
dropping the files in trusted.gpg.d work properly in Jessie or is it 
new?

Mark



[COLABORACAO] Utilizando o Twitter no terminal do Linux

2017-03-27 Thread Henrique Fagundes
Prezados colegas,

Gostaria de colaborar com a comunidade com esse artigo:
Contém vídeo aula e documentação de comandos!

Segue o link:
https://www.aprendendolinux.com/utilizando-o-twitter-no-terminal-do-linux

Espero que seja útil para alguém.

Atenciosamente,

Henrique Fagundes
henri...@linuxadmin.com.br
Skype: magnata-br-rj
Linux User: 475399

http://www.aprendendolinux.com/
http://www.facebook.com/PortalAprendendoLinux
http://youtube.com/aprendendolinux/
http://twitter.com/aprendendolinux/
__
Participe do Grupo Aprendendo Linux
https://groups.google.com/forum/#!forum/portal-aprendendo-linux

Ou envie um e-mail para:
portal-aprendendo-linux+subscr...@googlegroups.com



Re: When specifying path to file - confused about ./ and ~/

2017-03-27 Thread Ben Caradoc-Davies

On 28/03/17 10:48, kAt wrote:

PS  off-topic rant
I just updated and a package named busybox came up.  Since I didn't know
what it was I went into the page and its most recent revision of 1/2017
seemed to be 3 years ahead of the testing/unstable version that we just
updated now!  And this is very basic common stuff like cp and fdisk
..  How conservative is our system?  Wowww!



busybox is a suite of tiny cut-down programs packed into a single 
executable to save space. Most Debian installations get their cp from 
coreutils and their fdisk from util-linux.


Kind regards,

--
Ben Caradoc-Davies 
Director
Transient Software Limited 
New Zealand



Re: [off topic] Re: Encrypted flash drives

2017-03-27 Thread kAt


Thomas Schmitt:
> Hi,
> 
> tomás wrote:
>> Beware of the Sun!
> 
> Says the Oracle ...
> 
>> You often *make* my day, Thomas :-)
> 
> Just wait until you read my alternative facts about the raison d'être
> of systemd.

I want to read it
Except for the last two lines

> Have a nice day :)
> Thomas

U2



Palestra Suprema Corte e Visita a onu

2017-03-27 Thread Best Brazil Tour
Para visualizar esta mensagem, use um programa de
e-mail compativel com html!



Re: openvpn - Não consigo acessar maquinas clientes

2017-03-27 Thread Rafhaeu Benedicto
Não consegui entender muito bem seu cenário seria esse:

Rede 10.10.1.0/24 => servidor OpenVPN 10.99.99.1=> internet => Cliente
OpenVPN 10.99.99.2 => rede 10.10.2.0/24
Seria isso ?
Pois dá forma,a.b.c , d.y.z está atrapalhando um pouco a minha compreensão.

Em 27 de mar de 2017 6:21 PM, "Mauricio Neto"  escreveu:

> Leandro boa tarde.
>
> Minha maquina na matriz esta na mesma rede do servidor vpn. Meu ip é
> x.y.z.10.
>
> o IP x.y.z.219 é o do servidor com o serviço openvpn meu endereço publico
> é Vivo (179.x.y.6)
>
> Minha comunicação com as maquinas remotas é via openvpn rede 10.a.b.0/24 e
> funciona se eu utilizar qualquer maquina que tenha o openvpn instalado
>
> Eu tenho um notebook que esta na minha rede interna mas via wifi com uma
> rede diferente da x.y.z.0/24, recebendo um ip tipo x.y.*0*.10/24 e neste
> notebook como uso o openvpn client comunico com as lojas sem problema. O
> mesmo acontece da minha própria maquina. Se eu ativar o openvpn client
> consigo comunicar com as lojas. Ou seja o túnel vpn funciona, o que não
> consigo fazer é uma maquina na mesma rede do servidor openvpn, com a rota
> estática para o servidor openvpn rotear para a rede 10.a.b.0
>
> Isso que esta me deixando louco, não consigo atinar para essa logica de
> roteamento. :-) :-) :-)
>
> Atenciosamente
>
> Mauricio Neto
>
>
>
>
> Em 27-03-2017 08:21, Leandro de Lima Camargo escreveu:
>
> E a sua máquina na matriz, está nessa rede “atrás” da VPN (x.y.z.201)?
> O IP x.y.z.219 no servidor é o IP público? Ou IP que faz comunicação com a
> rede interna?
>
> Como eu te falei, se o traceroute para no servidor, o próximo salto já
> seria o micro destino que está na rede VPN.
> Parece que o servidor encaminha o pacote a ele mas não tem retorno, e por
> isso não aparece no traceroute.
> Como isso aconteceu após o reboot, pode ser que o servidor estava
> configurado para entregar rotas às máquinas clientes e perdeu essa
> configuração agora.
>
>
>
> Atenciosamente,
> *Leandro de Lima Camargo*
>
> On Mar 262017, at 1:33 PM, Mauricio Neto  wrote:
>
> Leandro boa tarde.
>
> Vou tentar explicar melhor
> Servidor na matriz com openvpn IP x.y.z.219/24
> Rede vpn 10.a.b.0/24
> lojas IP da vpn fixo configurado via o arquivo /etc/openvpn/ccd no
> servidor. (10.a.b.1,10.a.b.2,10.a.b.3,...)
>
> Matriz um servidor openvpn (x.y.z.219/24) utilizando ip
> publico<---vpn> Lojas - Cliente openvpn instalado conexão internet
> Velox - Acesso sem problemas todas as lojas.
>
> Minha maquina na matriz com uma rota para o servidor openvpn  x.y.z.219 (*add
> route  <10.a.b.0> 255.255.255.0 x.y.z.219*)  acesso o x.y.z.219 mas não
> as maquinas nas lojas (via vpn rede 10.a.b.0)
> Se efetuo um traceroute da minha maquina para um ip da rede vpn (exemplo
> 10.a.b.1)  o primeiro salto é o servidor openvpn (x.y.z.219) como esperado
> mas não roteia para as maquinas na loja rede.
>
> Minha casa com um cliente openvpn internet Virtua <--> matriz. Acesso
> todas as lojas (rede vpn 10.a.b.0), a maquina x.y.z.219 na matriz, mas não
> a rede interna, "atrás" da vpn (x.y.z.200, x.y.z.201, x.y.z.202, etc)
>
> Ficou claro?
> O que mais me intriga é que estava funcionando, depois que tive que
> reiniciar o servidor openvpn (x.y.z.219) parou de funcionar.
> Acredito que eu esteja esquecendo de alguma rota estática  ou nat.
> OBS: neste cenário ainda não tenho firewall configurado.
>
> Obrigado
> Mauricio Neto
>
>
>
>
> Em 24/03/2017 08:31, Leandro de Lima Camargo escreveu:
>
> Mauricio,
>
> Eu não entendi muito bem a parte da sua máquina estar na mesma rede do
> servidor.
> Teria algum diagrama da rede?
>
>
>
>
> Atenciosamente,
> *Leandro de Lima Camargo*
>
>
> On Mar 232017, at 3:25 PM, Mauricio Neto  wrote:
>
> Leandro boa tarde.
>
> Qualquer maquina onde tenha instalado o openvpn eu consigo acessar sem
> problemas. Como teste tenho um notebook aqui na matriz via wifi para ficar
> em uma rede diferente e acesso qualquer maquina clientes nas loja inclusive
> uso o vnc para acesso remoto.
>
> Meu problema esta na minha maquina na própria rede do servidor vpn que não
> consigo acessar as maquinas clientes.
>
> Eu sei que é um problema de rota estática, ou nat (ou ambos) mas estou
> perdido.
> Atenciosamente
> Mauricio Neto
>
> Em 23-03-2017 13:32, Leandro de Lima Camargo escreveu:
>
> E um traceroute reverso? A partir de uma máquina nas lojas?
> O traceroute aparenta faltar gateway nas máquinas das lojas. O pacote
> chega no servidor e vai pra máquina, mas não tem rota pra retornar.
>
>
>
> Atenciosamente,
> *Leandro de Lima Camargo*
>
>
> On Mar 232017, at 11:58 AM, Mauricio Neto  wrote:
>
> Amigos bom dia.
> Estou com um problema que sei que estou esquecendo de algo, mas não
> consigo identificar a bobagem.
>
> Instalei o openvpn em um servidor na matriz e openvpn nas lojas e tudo
> funciona sem problema, ou seja como instalei client-to-client e ip fixo
> usando o diretório ccd as maquinas 

Re: When specifying path to file - confused about ./ and ~/

2017-03-27 Thread kAt
Richard Owlett:
> 
> SEE https://lists.debian.org/debian-user/2017/03/msg01167.html
> 
> Where I said "I was not aware that search engines accepted
> non-alphanumeric strings as legitimate search terms. Previous experience
> had suggested otherwise.
> 
> Thank you, this old dog has learned a new trick.
> 
> P.S. Fourth hit of https://www.google.com/search?q=~/+tutorial was
> David's first link ;/

I have an example where this might be useful or then I am not
understanding the difference.

Let's say you have an executable package in the system and let's call it
pkgX
If you type pkgX in any prompt then /usr/bin/pkgX will be executed
But let's say you want to download and run a variation of this package,
edit its source and modify it, or just want to run separately a
standalone package in /xyz/packageX/pkgX
If you $cd /xyz/packageX and then $ ./pkgX the standalone would run,
right?  While pkgX will run the /usr/bin/pkgX
Alternatively in creating a local web-page set the ./index.html as the
site's root directory can easily be implemented in domain.net/index.html
and all links ./.html will work on the remote site.

PS  off-topic rant
I just updated and a package named busybox came up.  Since I didn't know
what it was I went into the page and its most recent revision of 1/2017
seemed to be 3 years ahead of the testing/unstable version that we just
updated now!  And this is very basic common stuff like cp and fdisk
..  How conservative is our system?  Wowww!



Re: Upgrading Jessie to Stretch

2017-03-27 Thread Michael Lange
Hi,

On Mon, 27 Mar 2017 21:12:00 +
kAt  wrote:

> Is there a reason to update the current system and/or reboot with the
> updated kernel before jumping to a new system, or is everything set up
> in a way that once updated and upgraded into the target system the
> reboot will take you "up" there?
> 
> My experience has only been with various stages of Jessie into Stretch
> and I thought I risked doing this, I've had one failure which was
> probably due to an incorrect gfx-resolution adjustment, but in general
> it worked.  Like going from 8.2 or 8.5 disk installation straight into
> updated Stretch or Sid.  Let's say someone has a Debian 6 that hasn't
> been updated for a while, can they switch to testing or sid and update?

I believe that it is probably a good idea to dist-upgrade Jessie into an
up-to-date state before starting the upgrade to Stretch, but it is
certainly a good idea to do the intermediate steps of upgrading Squeeze
to Wheezy first and then to Jessie before starting the upgrade to Stretch;
with a direct upgrade Squeeze -> Stretch it is very likely (if not
dead-sure) that you won't get far.

Regards

Michael

.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

Humans do claim a great deal for that particular emotion (love).
-- Spock, "The Lights of Zetar", stardate 5725.6



Re: DD bs=4M option on USB mem-stick creates false format

2017-03-27 Thread Pascal Hambourg

Le 27/03/2017 à 20:11, David Christensen a écrit :


For example, here is an ADATA 4 marketing-GB USB flash drive:

(...)

Burning 10 MB using 'bs=1M':

2017-03-27 11:01:23 root@jesse ~
# time dd if=/dev/urandom of=/dev/sdb seek=3000 count=10 bs=1M && sync
10+0 records in
10+0 records out
10485760 bytes (10 MB) copied, 2.93679 s, 3.6 MB/s

real0m2.941s
user0m0.000s
sys0m1.020s


Burning 10 MB using default bs:

2017-03-27 11:01:57 root@jesse ~
# time dd if=/dev/urandom of=/dev/sdb seek=6144000 count=20480 && sync
20480+0 records in
20480+0 records out
10485760 bytes (10 MB) copied, 5.38085 s, 1.9 MB/s

real0m5.385s
user0m0.012s
sys0m1.388s


This is not specific to write operation on flash devices.
Default 512-byte block size has also consistently shown degraded 
performance in read and write operation on hard disk drives.




NetSuite Clients

2017-03-27 Thread lucia . lindsey



Hi,

Trust my email discovers you well

Would you be interested in all *NetSuite* *Clients* list for your deals and
advertising efforts?

We can give you Database from North America, Latin America, EMEA, and APAC.

*Qualities: Global Business Applications, SaaS, Cloud Computing, On-demand,
Platform, ERP, CRM, Marketing Automation, PSA, Financial Software, SaaS
Business Software, and Ecommerce.*

We can likewise gain organizations utilizing *JD Edwards, Intacct,
Acumatica, SAP, PeopleSoft, Epicor, Deltek et cetera.*

It would be ideal if you survey and let me know whether you are intrigued
and I will hit you up with more data for the same.

*Respects, *

*Lucia Lindsey*

To Opt Out, please react “Disregard" in the Subject line.


Re: Upgrading Jessie to Stretch

2017-03-27 Thread kAt
Is there a reason to update the current system and/or reboot with the
updated kernel before jumping to a new system, or is everything set up
in a way that once updated and upgraded into the target system the
reboot will take you "up" there?

My experience has only been with various stages of Jessie into Stretch
and I thought I risked doing this, I've had one failure which was
probably due to an incorrect gfx-resolution adjustment, but in general
it worked.  Like going from 8.2 or 8.5 disk installation straight into
updated Stretch or Sid.  Let's say someone has a Debian 6 that hasn't
been updated for a while, can they switch to testing or sid and update?

cbannis...@slingshot.co.nz:
> On Sun, Mar 05, 2017 at 09:07:45AM -0500, songbird wrote:
>>   because i keep a second bootable partition a
>> few versions back i am a bit more brave/stupid
>> at times and just do the usual routine:
>>
>> =
>>
>>   $ apt-get update
>>   $ apt-get upgrade
>>
>>   # and then see what is held back before doing the
> 
> I suggest doing:
> 
> apt-get upgrade --with-new-pkgs
> 
> just before:
> 
>>   $ apt-get dist-upgrade
> 
> See:
> https://lists.debian.org/debian-user/2015/10/msg00279.html
> 
> :)
> 



Re: openvpn - Não consigo acessar maquinas clientes

2017-03-27 Thread Mauricio Neto

Leandro boa tarde.

Minha maquina na matriz esta na mesma rede do servidor vpn. Meu ip é 
x.y.z.10.


o IP x.y.z.219 é o do servidor com o serviço openvpn meu endereço 
publico é Vivo (179.x.y.6)


Minha comunicação com as maquinas remotas é via openvpn rede 10.a.b.0/24 
e funciona se eu utilizar qualquer maquina que tenha o openvpn instalado


Eu tenho um notebook que esta na minha rede interna mas via wifi com uma 
rede diferente da x.y.z.0/24, recebendo um ip tipo x.y.*0*.10/24 e neste 
notebook como uso o openvpn client comunico com as lojas sem problema. O 
mesmo acontece da minha própria maquina. Se eu ativar o openvpn client 
consigo comunicar com as lojas. Ou seja o túnel vpn funciona, o que não 
consigo fazer é uma maquina na mesma rede do servidor openvpn, com a 
rota estática para o servidor openvpn rotear para a rede 10.a.b.0


Isso que esta me deixando louco, não consigo atinar para essa logica de 
roteamento. :-) :-) :-)


Atenciosamente

Mauricio Neto




Em 27-03-2017 08:21, Leandro de Lima Camargo escreveu:

E a sua máquina na matriz, está nessa rede “atrás” da VPN (x.y.z.201)?
O IP x.y.z.219 no servidor é o IP público? Ou IP que faz comunicação 
com a rede interna?


Como eu te falei, se o traceroute para no servidor, o próximo salto já 
seria o micro destino que está na rede VPN.
Parece que o servidor encaminha o pacote a ele mas não tem retorno, e 
por isso não aparece no traceroute.
Como isso aconteceu após o reboot, pode ser que o servidor estava 
configurado para entregar rotas às máquinas clientes e perdeu essa 
configuração agora.




Atenciosamente,
*Leandro de Lima Camargo*

On Mar 262017, at 1:33 PM, Mauricio Neto > wrote:


Leandro boa tarde.

Vou tentar explicar melhor

Servidor na matriz com openvpn IP x.y.z.219/24
Rede vpn 10.a.b.0/24
lojas IP da vpn fixo configurado via o arquivo /etc/openvpn/ccd no 
servidor. (10.a.b.1,10.a.b.2,10.a.b.3,...)


Matriz um servidor openvpn (x.y.z.219/24) utilizando ip 
publico<---vpn> Lojas - Cliente openvpn instalado conexão 
internet Velox - Acesso sem problemas todas as lojas.


Minha maquina na matriz com uma rota para o servidor openvpn  
x.y.z.219 (/add route <10.a.b.0> 255.255.255.0 x.y.z.219/) acesso o 
x.y.z.219 mas não as maquinas nas lojas (via vpn rede 10.a.b.0)
Se efetuo um traceroute da minha maquina para um ip da rede vpn 
(exemplo 10.a.b.1)  o primeiro salto é o servidor openvpn (x.y.z.219) 
como esperado mas não roteia para as maquinas na loja rede.


Minha casa com um cliente openvpn internet Virtua <--> matriz. 
Acesso todas as lojas (rede vpn 10.a.b.0), a maquina x.y.z.219 na 
matriz, mas não a rede interna, "atrás" da vpn (x.y.z.200, x.y.z.201, 
x.y.z.202, etc)


Ficou claro?
O que mais me intriga é que estava funcionando, depois que tive que 
reiniciar o servidor openvpn (x.y.z.219) parou de funcionar.

Acredito que eu esteja esquecendo de alguma rota estática  ou nat.
OBS: neste cenário ainda não tenho firewall configurado.

Obrigado
Mauricio Neto




Em 24/03/2017 08:31, Leandro de Lima Camargo escreveu:

Mauricio,

Eu não entendi muito bem a parte da sua máquina estar na mesma rede 
do servidor.

Teria algum diagrama da rede?




Atenciosamente,
*Leandro de Lima Camargo*


On Mar 232017, at 3:25 PM, Mauricio Neto > wrote:


Leandro boa tarde.

Qualquer maquina onde tenha instalado o openvpn eu consigo acessar 
sem problemas. Como teste tenho um notebook aqui na matriz via wifi 
para ficar em uma rede diferente e acesso qualquer maquina clientes 
nas loja inclusive uso o vnc para acesso remoto.


Meu problema esta na minha maquina na própria rede do servidor vpn 
que não consigo acessar as maquinas clientes.


Eu sei que é um problema de rota estática, ou nat (ou ambos) mas 
estou perdido.


Atenciosamente
Mauricio Neto

Em 23-03-2017 13:32, Leandro de Lima Camargo escreveu:

E um traceroute reverso? A partir de uma máquina nas lojas?
O traceroute aparenta faltar gateway nas máquinas das lojas. O 
pacote chega no servidor e vai pra máquina, mas não tem rota pra 
retornar.




Atenciosamente,
*Leandro de Lima Camargo*


On Mar 232017, at 11:58 AM, Mauricio Neto > wrote:


Amigos bom dia.
Estou com um problema que sei que estou esquecendo de algo, mas 
não consigo identificar a bobagem.


Instalei o openvpn em um servidor na matriz e openvpn nas lojas e 
tudo funciona sem problema, ou seja como instalei 
client-to-client e ip fixo usando o diretório ccd as maquinas que 
tem o openvpn instalado se comunicam sem problemas.


Na minha maquina na matriz (dentro da rede onde esta instalado o 
servidor openvpn) crio a rota para o servidor (route add -net 


Re: When specifying path to file - confused about ./ and ~/

2017-03-27 Thread Brian
On Mon 27 Mar 2017 at 14:51:08 -0500, Richard Owlett wrote:

> On 03/27/2017 02:25 PM, Brian wrote:
> >
> >Not only do you want a web page but you want one with particular
> >characteristics. That's a tall order but we will try. Any particular
> >colours it has to be in?
> >
> 
> SEE https://lists.debian.org/debian-user/2017/03/msg01167.html
> 
> Where I said "I was not aware that search engines accepted non-alphanumeric
> strings as legitimate search terms. Previous experience had suggested
> otherwise.
> 
> Thank you, this old dog has learned a new trick.
> 
> P.S. Fourth hit of https://www.google.com/search?q=~/+tutorial was David's
> first link ;/
> "

Debian caters for old dogs and insolent puppies. On the other hand, we
would rather they are house-trained and didn't savage the visitors here.

-- 
Brian.



Re: [1/2 HS] syntaxe qui ne va plus depuis upgrade MySQL : RÉSOLU

2017-03-27 Thread andre_debian
On Monday 27 March 2017 16:03:29 Christian Quentin wrote:
> le total pour chaque logo devrait apparaître dans le champ "total", non ?

Oui, impeccable.

J'ai décidé finalement de ne pas multiplier les lignes,
en réorganisant la table avec juste les lignes pour chaque image logo
et d'incrémenter le contenu d'un nouveau champ = "nbrevoix".

Peu importe, j'ai beaucoup appris sur les options de la commande SELECT
et particulièrement SELECT champ1, champ2, count(... )   GROUP BY...

Merci encore.

André
 



Re: [1/2 HS] syntaxe qui ne va plus depuis upgrade MySQL

2017-03-27 Thread Christian Quentin

le total pour chaque logo devrait apparaître dans le champ "total", non ?

Christian


Le 27/03/2017 à 13:13, andre_deb...@numericable.fr a écrit :

On Sunday 26 March 2017 23:14:01 Christian Quentin wrote:

OK. Donc tu veux obtenir un cumul des votes pour chaque logo.
Tu souhaites également les trier pour avoir les logos les plus
populaires en tête de liste
La requête est donc :
SELECT images, logos, COUNT(logos) AS total
FROM tablelogo
GROUP BY images, logos
ORDER BY total DESC
(quasi identique à ta requête initiale sauf pour le GROUP BY)

C'est presque gagné,

je reçois bien les contenus du champ "images"'
mais comment récupérer la valeur de "total" du champ "logos",
c'est à dire le nombre de voix par ligne ?

Merci, @+

André





Re: When specifying path to file - confused about ./ and ~/

2017-03-27 Thread Richard Owlett

On 03/27/2017 02:25 PM, Brian wrote:


Not only do you want a web page but you want one with particular
characteristics. That's a tall order but we will try. Any particular
colours it has to be in?



SEE https://lists.debian.org/debian-user/2017/03/msg01167.html

Where I said "I was not aware that search engines accepted 
non-alphanumeric strings as legitimate search terms. Previous experience 
had suggested otherwise.


Thank you, this old dog has learned a new trick.

P.S. Fourth hit of https://www.google.com/search?q=~/+tutorial was 
David's first link ;/

"

!









Re: DD bs=4M option on USB mem-stick creates false format

2017-03-27 Thread Thomas Schmitt
Hi,

i wrote:
> > - APM partition table with block size 2048 (look here for a suspect !)

Pascal Hambourg wrote:
> For whatever reason, libarted-based tools choose to consider that bogus
> Apple partition table.
> Bottom line : libparted-based tools do not handle ISO-hybrid images
> correctly. Do not use them with such images.

But why on the first hand does debian-cd instruct xorriso to create APM ?
(By option -isohybrid-apm-hfsplus)

I understand from Matthew Garrett's blog and from discussions with
GRUB developer Vladimir Serbinenko that Macs which expect APM also
expect HFS+ with "blessed" files and not FAT with EFI files.

The Fedora ISOs have HFS+ images. grub-mkrescue ISOs can have HFS+.
But Debian and Ubuntu ISOs only have the EFI FAT filessystem image
in their APM. Is there any Mac known which boots only by this APM ?


Have a nice day :)

Thomas



Re: Encrypted flash drives

2017-03-27 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Mar 27, 2017 at 11:58:51PM +0900, Mark Fletcher wrote:
> On Mon, Mar 27, 2017 at 10:02:27AM +0200, to...@tuxteam.de wrote:
> > On Mon, Mar 27, 2017 at 08:31:45AM +0900, Mark Fletcher wrote:
> > 
> > [...]
> > 
> > > Tomas has tried to give me pointers on that but I'm afraid I don't 
> > > understand where to take that. Is there any chance someone who isn't a 
> > > self-proclaimed "desktop luddite" could comment?
> > 
> > There *must* be some place in your shiny desktop environment "disks"
> > or something like that where you configure media "known" to your
> > desktop environment.
> > 
> 
> Update -- it *almost* worked [...]

This looks bizarre. I think I must leave that to the DE gurus. I guess
it has to do with udisks (I think in its current incarnation it's
called "udisks2"), but it's beyond my depth.

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

iEYEARECAAYFAljZaNEACgkQBcgs9XrR2kZp+ACfcmZDwTnVrWYQZQMd4k2Bl8jI
L/AAn3eE86fTZ/VybNOscLRQ9APoGMT7
=9sJM
-END PGP SIGNATURE-



Re: When specifying path to file - confused about ./ and ~/

2017-03-27 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Mar 27, 2017 at 10:39:41AM -0500, Richard Owlett wrote:
> On 03/27/2017 09:37 AM, to...@tuxteam.de wrote:

[...]

> >[give us examples]
> 
> Thought I did ;/

I was just paraphrasing your paragraph, which I snipped out ;-)

> >FWIW I studied physics. Theoretical physics. I loved math (still
> >do). I *always* learnt by examples [...]
> >let's call it a theory's skeleton).
> 
> Careful you're agreeing with me.

I thought thas wat obvious :)

> [...] The rumor at semester's end
> was that the engineering professors students' grade distribution was
> a very normal bell curve. The math professor's distribution was
> doubled humped. The engineering students average being ~10 points
> lower.

I think there are good pairs of (teacher,student), and that depends
on many more factors than on whether the teacher is math/engineer.

> >If you're less terminant next time, I'll provide again examples ;-)

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

iEYEARECAAYFAljZaCcACgkQBcgs9XrR2kZkRQCeJv0ZQIb3jVOxIGth38De3DMq
aXIAn0ujLYXNOOLZnd1oJ7LBDxvXblno
=VtNp
-END PGP SIGNATURE-



Re: When specifying path to file - confused about ./ and ~/

2017-03-27 Thread Brian
On Mon 27 Mar 2017 at 06:39:49 -0500, Richard Owlett wrote:

> > On 03/27/2017 01:14 PM, Richard Owlett wrote:
>  *Please avoid trying to briefly explain.*

Its hard - but we will try.

>  *_Please refer me to a good web page._

Deconstruction: Please do my searching for me.

>  I *KNOW* I'm missing something fundamental.

Like good manners and an appreciation that people give their time to
answer here in an endeavour to help?

>  A web page will either have links to whatever my underlying problem is.
>  Or it will inherently use keywords for which I can search.
>  Thank you.

Not only do you want a web page but you want one with particular
characteristics. That's a tall order but we will try. Any particular
colours it has to be in?
 
> On 03/27/2017 06:20 AM, Peter Ludikovsky wrote without useful content:

He probably thought he was writing for a reasonably experienced user. Or
one who thinks, mulls things over for more than a minute and is capable
of exploring instead of reacting.

> >./ - the current director, usually used when running a script from it
> >and it not being in the search path for executables
> >~/ - the current users home directory
> >
> >Trying to get through an interview?
> >
> >Regards,
> >/peter

A succinct and accurate response. A user who had two brain cells and a
desire to learn could have used this as jumping off point.

-- 
Brian.



Re: Issue with notebook (maybe the battery?)

2017-03-27 Thread Joe
On Mon, 27 Mar 2017 14:54:25 -0300
Daniel Bareiro  wrote:

> Hi, Joe.
> 
>  Checking the purchase invoices, I bought the notebook on
>  September 19, 2013, and then changed the battery on November 2,
>  2015. So less than two years ago I have this battery.
> 
>  The notebook I use it practically every day and I leave it
>  sleeping from one day to the next so I do not have to open every
>  application every time. I'm not sure if that impacts so much on
>  the battery life.
> 
> >>> If it was a long term degradation, possibly. With some battery
> >>> technology/technologies(?) there is a "memory" effect. If there
> >>> is a repeated "shallow discharge"/recharge cycle ( sleep overnight
> >>> followed by running during day with charger plugged in) the
> >>> effective battery capacity will decrease. IIRC that applies to
> >>> only one technology but can't remember which.
> 
> >> I remember that when I bought this battery, I was advised to leave
> >> the charger plugged in for a little more than an hour after the
> >> charging level reaches 100%. And for the subsequent times, try to
> >> avoid having the charger plugged in when the battery charge level
> >> reaches 100%. So I was following that criteria. What do you think
> >> about that?  
> 
> > I would hesitate to contradict a supplier, but a lithium battery
> > charger should not permit overcharging. It *must* not, as there is a
> > serious risk of fire or explosion, not just a reduction of life as
> > will occur with other types. The maximum charge voltage must be a
> > fairly precise 4.20V per cell, and really the only practical way to
> > charge these batteries is to use one of many specialised integrated
> > circuits designed to do just that.  
> 
> I think he made that recommendation about disconnecting the charger
> when the charge reaches 100% because he thought otherwise would
> affect the battery life.

As I say, it shouldn't. Lithium chargers don't provide a continuous
trickle charge. Various sources on the Net claim that life will be
longer if you never fully-charge the battery, but with a laptop, you're
always going to be looking for maximum running time. Supposedly it's
best to store the battery for long periods half-charged, but then
whenever you need to use the laptop, you have about an hour to wait for
full charge. You can't win.
> 

> 
> Very interesting what you mention in these paragraphs. So in this
> case a measurement on the battery would have to give a voltage
> between 3.0V and 4.1V per cell if the battery works correctly?

Pretty much. The discharge protection should come in about 3V, but
might allow discharge a bit further. There is little energy left in the
cell at 3V. Here's a set of discharge curves at various currents:

http://www.richtek.com/battery-management/img/battery-discharge.png

> 
>  But in any case, in all this time, whenever the battery was
>  charged, the charge level was up to 100%. So just since yesterday
>  I suddenly saw that the load stayed at 38% and I started to
>  experience this issue.
> 
> >>> That makes me think of a component failure. Likely the battery,
> >>> but conceivably something in the laptop.  
> 
> > Yes. The problem is that it's not possible to rig up a quick
> > charging test for lithium, or a dummy battery load to check the
> > charger. With other technologies, a current source powered from a
> > higher voltage, with a voltmeter, would give some idea of the
> > battery state.   
> 
> Do you think the problem might be in the charger?

Yes, certainly. That's why I said it's difficult to know what's going
on without either a known good battery or a known good charger. You'd
better hope it's the battery, as that is easy to fix...

> At the beginning I
> had thought that maybe not since the notebook works when it is
> connected. Although perhaps it could be that if the electronics that
> manages the phases that you mentioned before is physically in the
> charger, the problem is in the charger.

The external power for the laptop is separate from the charger
electronics. The charger must supply a defined current, and if some of
this were diverted to run the laptop, it would be difficult for the
charger to monitor the state of the battery. So the external power is
supplied to two paths, to the laptop electronics and to the charger,
with laptop power being taken from the battery when the external power
is not present.

> 
> >> Perhaps the ultimate test is going to a business where they have
> >> original Lenovo components, ask them for a new battery to test it
> >> at the moment with the notebook and, if all goes well, then buy
> >> it.  
> 
> > Sadly, that's the only real test.  
> 
> Earlier I telephoned the supplier where I bought this battery and he
> offered to test (without cost) my notebook with a new battery for a
> full charge cycle to make sure the problem was in the battery.

You are lucky. Many suppliers 

Re: DD bs=4M option on USB mem-stick creates false format

2017-03-27 Thread Pascal Hambourg

Le 27/03/2017 à 14:11, Thomas Schmitt a écrit :


- APM partition table with block size 2048 (look here for a suspect !)


Right.
For whatever reason, libarted-based tools choose to consider that bogus 
Apple partition table. Unlike fdisk, you cannot force it to use another 
format.


Bottom line : libparted-based tools do not handle ISO-hybrid images 
correctly. Do not use them with such images.




Re: Upgrading Jessie to Stretch

2017-03-27 Thread Patrick Bartek
On Tue, 28 Mar 2017 04:54:17 +1300 cbannis...@slingshot.co.nz wrote:

> On Sun, Mar 05, 2017 at 09:07:45AM -0500, songbird wrote:
> >   because i keep a second bootable partition a
> > few versions back i am a bit more brave/stupid
> > at times and just do the usual routine:
> > 
> > =
> > 
> >   $ apt-get update
> >   $ apt-get upgrade
> > 
> >   # and then see what is held back before doing the
> 
> I suggest doing:
> 
> apt-get upgrade --with-new-pkgs
> 
> just before:
> 
> >   $ apt-get dist-upgrade
> 
> See:
> https://lists.debian.org/debian-user/2015/10/msg00279.html

I'd read the "Upgrades from Debian 8 (Jessie)" section in the Stretch
Release Notes first.  It's never as simple as changing to the new repos
and doing a dist-upgrade.

https://www.debian.org/releases/stretch/amd64/release-notes/

B



Re: Samsung ML-1915 printer

2017-03-27 Thread Brian
On Mon 27 Mar 2017 at 18:38:25 +0100, Rodolfo Medina wrote:

> Brian  writes:
> 
> > The HOWTO looks fine for 2010. In 2017 CUPS has changed but, more
> > importantly for this thread and its sister one at
> >
> >  https://lists.debian.org/debian-user/2017/03/msg00100.html ,
> >
> > Samsung has made changes to its Unified Linux Driver package.
> >
> > rastertosamsungspl doesn't exist anymore. It is now rastertospl; the
> > PPDS are altered to reflect this.
> >
> > It is a good object lesson in not using outdated proprietry software.
> 
> >From Samsung web site I downloaded the latest version of Unified Linux Driver
> package and tried to use rastertospl in place of rastertosamsungspl, but it
> won't work either...  I also accordingly changed the ppd file...  But, isn't 
> it
> strange that on another machine of mine, witht new version of CUPS, the 
> printer
> works with the old Samsung files?

Curious indeed. rastertospl has to be executable and owned by root.

 chown root.root rastertospl

-- 
Brian.



Re: [1/2 HS] syntaxe qui ne va plus depuis upgrade MySQL : RÉSOLU

2017-03-27 Thread andre_debian
On Monday 27 March 2017 15:19:24Éric Dégenètais wrote:
> si tu veux que le compte soit donné dans la même requête il faut que ce
> soit une sous-requête qui fasse le compte.
> Au passage (même s'il est probablement trop tard) pour moi c'est un petit
> souci de modélisation: les votes devraient être des lignes d'une autre
> table avec une clef vers ton image. De cette façon, tu pourrais faire une
> requête simple donnant les deux informations (image ET compte) sur la base
> d'une jointure, et ça éviterait de stocker l'image une fois par vote (je ne
> sais pas quelle est la taille de tes images, ni le nombre moyen de votes
> par image, mais avec des images moyennes et beaucoup de votes tu peux avoir
> un gonflement de volume non-négligeable...)

Si, ça marche bien comme ceci :

SELECT...
$res = mysql_query($query_string);
while ( $DATA = mysql_fetch_array($REQUETE_RECH)) {
$ROW = mysql_fetch_array($res);
$IMG = $DATA['images'];
$total = $ROW['total'];
print(" image : $total $IMG");

Le nombre de voix est affiché + l'image (logo) correspondante.

> > On Sunday 26 March 2017 23:14:01 Christian Quentin wrote:
> > > La requête est donc :
> > > SELECT images, logos, COUNT(logos) AS total FROM tablelogo
> > > GROUP BY images, logos ORDER BY total DESC
> > > (quasi identique à ta requête initiale sauf pour le GROUP BY)

Merci beaucoup pour votre aide !

André




Re: `Filter failed' no print error message

2017-03-27 Thread Brian
On Mon 27 Mar 2017 at 18:22:04 +0100, Rodolfo Medina wrote:

> Brian  writes:
> 
> > How about
> >
> >  cupsfilter /etc/nsswitch > out.prn ?
> >
> > That should give more than one line of output.
> >
> > (Unable to determine MIME type of "/etc/nsswitch" is perturbing).
> 
> In this case, the output is:
> 
>  cupsfilter: Unable to determine MIME type of "/etc/nsswitch".
> 
> on both machines...

I chose /etc/nsswitch because it is a *small* ASCII text file and any
output would not be too large to send here.

Try the cupsfilter commands with /etc/services or any other text file.
Also try PDFs.

-- 
Brian.



Re: DD bs=4M option on USB mem-stick creates false format

2017-03-27 Thread David Christensen

On 03/27/2017 05:38 AM, Greg Wooledge wrote:

... the bs= option in dd.  All that does is make the dd command run a
tiny bit faster or slower.


As I understand it, writes smaller than a flash page size cause the 
flash drive firmware to fetch or erase an available page of flash, 
combine the unmodified bytes from the existing page with the new bytes, 
and then burn the page (and internal meta-data).  So, if flash pages are 
8K, burning in 512 blocks could cause 16 such operations, taking longer 
and eating up the life of your flash cells.  That said, RAM buffering by 
the operating system, RAM buffering by the USB flash drive, and firmware 
that anticipates serial writes should mitigate these effects.



For example, here is an ADATA 4 marketing-GB USB flash drive:

2017-03-27 10:50:16 root@jesse ~
# dmesg | tail -n 17
[ 2794.868073] usb 3-3: new high-speed USB device number 3 using ehci-pci
[ 2795.003837] usb 3-3: New USB device found, idVendor=125f, idProduct=c08a
[ 2795.003845] usb 3-3: New USB device strings: Mfr=1, Product=2, 
SerialNumber=3

[ 2795.003851] usb 3-3: Product: ADATA USB Flash Drive
[ 2795.003856] usb 3-3: Manufacturer: ADATA
[ 2795.003861] usb 3-3: SerialNumber: 1392303332110024
[ 2795.026206] usb-storage 3-3:1.0: USB Mass Storage device detected
[ 2795.026718] scsi2 : usb-storage 3-3:1.0
[ 2795.026845] usbcore: registered new interface driver usb-storage
[ 2796.025404] scsi 2:0:0:0: Direct-Access ADATAUSB Flash Drive 
0.00 PQ: 0 ANSI: 4

[ 2796.027040] sd 2:0:0:0: Attached scsi generic sg2 type 0
[ 2796.028370] sd 2:0:0:0: [sdb] 7592960 512-byte logical blocks: (3.88 
GB/3.62 GiB)

[ 2796.031242] sd 2:0:0:0: [sdb] Write Protect is off
[ 2796.031251] sd 2:0:0:0: [sdb] Mode Sense: 23 00 00 00
[ 2796.032626] sd 2:0:0:0: [sdb] Write cache: disabled, read cache: 
enabled, doesn't support DPO or FUA

[ 2796.041663]  sdb: sdb1 sdb2
[ 2796.072615] sd 2:0:0:0: [sdb] Attached SCSI removable disk


Burning 10 MB using 'bs=1M':

2017-03-27 11:01:23 root@jesse ~
# time dd if=/dev/urandom of=/dev/sdb seek=3000 count=10 bs=1M && sync
10+0 records in
10+0 records out
10485760 bytes (10 MB) copied, 2.93679 s, 3.6 MB/s

real0m2.941s
user0m0.000s
sys 0m1.020s


Burning 10 MB using default bs:

2017-03-27 11:01:57 root@jesse ~
# time dd if=/dev/urandom of=/dev/sdb seek=6144000 count=20480 && sync
20480+0 records in
20480+0 records out
10485760 bytes (10 MB) copied, 5.38085 s, 1.9 MB/s

real0m5.385s
user0m0.012s
sys 0m1.388s


David



Re: Una de hostapd en debian 7...

2017-03-27 Thread luisededios
On Mon, 27 Mar 2017 09:53:56 -0400, JAP   
wrote:



El 27/03/17 a las 10:27, luisededios escribió:

On Mon, 27 Mar 2017 07:42:40 -0400, JAP 
wrote:


El 25/03/17 a las 11:20, luisededios escribió:

Buen día amigo, y agradezco mucho que me hayas respondido.

Respondiendo tus preguntas te digo que todo lo que pretendo hacer es
crear un AP en mi laptop DELL con debian 7 para compartir la internet
'pública' que existe acá en el parque de mi pueblo.

La conexión es abierta, bueno hasta el punto de acceso wifi. Puedes
traer cualquier laptop o móvil y basta con seleccionar el AP de la
empresa de telefonía, ahora para navegar, tienes que levantar el
navegador y entrar un usuario/contraseña de una cuenta ya sea  
permanente

o temporal pero hay que autentificarse.

Y para configurar mi sistema en casa estoy empleando un móvil samsung
con un zona wifi(AP) y datos móviles activados que imita lared wifi  
del

parque. Luego mi laptop DELL donde estoy implementando mi AP wifi para
compartir la internet del parque, y... otra laptop Acer que actúa como
cliente para disfrutar de la conexión que quiero compartir.

Esta es mi configuración. Por qué hago esto? Bueno, cada cliente que
viene al parque para conectarse a internet tiene que tener una cuenta,
ya sea permanente o temporal, y con mi sistema podríamos conectar a
varios clientes, a través de mi AP y con una única cuenta.

Me entiendes ahora?  :)

--
Saludos,
Luis


Ahora entiendo.
Estás entrando mediante un Portal Cautivo.


Bueno, al final... conectaré mi AP a un portal cautivo -que es donde
existe internet, en el parque del pueblo- y obviamente tendré que
hacerle ajustes pero ahora estoy trabajando en mi casa y para emular el
entorno y poner a punto el sistema tengo:

- Un móvil con zona wifi y conexión por datos móviles con salida
internacional solo para email. Este emula, en parte, el AP que brinda
internet en el parque de mi poblado.
- Una laptop DELL con dos mini tarjetas wifi, en la cual estoy
implementando mi AP con hostapd, dhcp y dns. Al final se conectará al
portal cautivo que ya mencioné pero por ahora solo al móvil de arriba
para compartir la conexión para email a modo de prueba, y así comprobar
que está trabajando ok.
- Una laptop Acer la cual actúa como cliente y que disfrutará de esa
conexión para email, y así comprobar que mi AP está trabajando bien.



Bien con la arquitectura para la prueba.
Si eso te funciona, bárbaro.
El tema, es que no sé cómo se comportará luego el portal cautivo.
Porque si está configurado por un "BOFH", el hijo de su madre podría  
haberlo configurado para que no entregue paquetes si el requerimiento de  
los mismos no proceden del mismo navegador identificado en el portal a  
través de "cookies".


Bueno, y debo agregar que esto muchos acá lo hemos hecho en windows con  
software como: connectify, my wifi router, etc




Eso, es harina de otro costal.
Es lo más complicado para saltear en cuanto a restricciones.
No podés hacer un puente (bridging).


Si he podido lograr un puente entre eth0 y wlan0 pero no entre wlan0 y
wlan2 pero... la conexión no la recibo por cable sino mediante wifi.


Eso debería ser transparente al tipo de placa que se use.
Una placa es una placa, en forma independiente de si es ethernet, wifi o  
telefónica.




Tendrás que, y en orden:
1) Tomar la señal, e identificar tu máquina en el portal, mediante
"algo" que la mantenga enlazada a nivel de "root".
2) Crear un punto de acceso con hostapd (eso ya lo tienes hecho).
3) Crear un servidor DNS en tu máquina (eso también lo tienes más o
menos hecho).
4) Crear reglas de iptables que enmascaren el tráfico (eso te lo  
mandé).


La pregunta del millón: ¿cuál es el portal cautivo?


Primero quiero lograr que mi AP trabaje en el entorno que tengo en casa,
es más cómodo y más sencillo y después deberé hacer los cambios para
conectarlo a ese portal cautivo.


Buen plan de trabajo.




Yo únicamente en mi vida me tuve que liar con ZeroShell, y para ese,
tengo respuesta.
Los otros, veo cómo darte una mano.

http://www.zeroshell.net/




JAP





--
Saludos,
Luis



Re: Issue with notebook (maybe the battery?)

2017-03-27 Thread Daniel Bareiro
Hi, Joe.

 Checking the purchase invoices, I bought the notebook on September
 19, 2013, and then changed the battery on November 2, 2015. So
 less than two years ago I have this battery.

 The notebook I use it practically every day and I leave it
 sleeping from one day to the next so I do not have to open every
 application every time. I'm not sure if that impacts so much on
 the battery life.  

>>> If it was a long term degradation, possibly. With some battery
>>> technology/technologies(?) there is a "memory" effect. If there is a
>>> repeated "shallow discharge"/recharge cycle ( sleep overnight
>>> followed by running during day with charger plugged in) the
>>> effective battery capacity will decrease. IIRC that applies to only
>>> one technology but can't remember which.  

>> I remember that when I bought this battery, I was advised to leave the
>> charger plugged in for a little more than an hour after the charging
>> level reaches 100%. And for the subsequent times, try to avoid having
>> the charger plugged in when the battery charge level reaches 100%. So
>> I was following that criteria. What do you think about that?

> I would hesitate to contradict a supplier, but a lithium battery
> charger should not permit overcharging. It *must* not, as there is a
> serious risk of fire or explosion, not just a reduction of life as
> will occur with other types. The maximum charge voltage must be a fairly
> precise 4.20V per cell, and really the only practical way to charge
> these batteries is to use one of many specialised integrated circuits
> designed to do just that.

I think he made that recommendation about disconnecting the charger when
the charge reaches 100% because he thought otherwise would affect the
battery life.

> There's a time sequence: first, with a completely discharged battery,
> which will have been disconnected by its own internal electronics, a
> significant current charge is given and the cell voltage monitored
> (calculated for a multi-cell battery). If it does not exceed 3.0V
> within a few minutes, the charger gives up and produce an error signal,
> the battery is faulty. If all is well, the recommended charge current
> for the cells, normally about half the capacity i.e. about a two-hour
> charge, is applied until the voltage reaches about 4.1V/cell, when the
> charger switches to a third mode to bring the output voltage to
> precisely 4.2V. During this mode, as the cell reaches full charge, the
> current drops away and when a particular value is reached, the charger
> cuts off. No further charge will be applied until usage or
> self-discharge of the cell reduces the voltage to below about 4.1V. If
> a charger is connected to a battery that is already charged to between
> 3.0V and 4.1V per cell, phase two is immediately started, and if the
> cell voltage is already between 4.1V and 4.2V, nothing will happen.
> There is no continuous trickle-charge mode. Assuming, of course, the
> charger is designed properly, and with a specialised IC, this is pretty
> much guaranteed.
>
> So a lot of warnings about overcharging, memory effect, about removing
> the battery when external power is used, and suchlike, are hangovers
> from the days of nickel battery technologies, and don't apply to
> lithium. Conversely, the charger has to be matched to the battery
> capacity, and there's no way to charge lithium batteries with any kind
> of general-purpose charger, you need the supplier's own charger, which
> may be built-in to the appliance.

Very interesting what you mention in these paragraphs. So in this case a
measurement on the battery would have to give a voltage between 3.0V and
4.1V per cell if the battery works correctly?

 But in any case, in all this time, whenever the battery was
 charged, the charge level was up to 100%. So just since yesterday
 I suddenly saw that the load stayed at 38% and I started to
 experience this issue.  

>>> That makes me think of a component failure. Likely the battery, but
>>> conceivably something in the laptop.

> Yes. The problem is that it's not possible to rig up a quick charging
> test for lithium, or a dummy battery load to check the charger. With
> other technologies, a current source powered from a higher voltage,
> with a voltmeter, would give some idea of the battery state. 

Do you think the problem might be in the charger? At the beginning I had
thought that maybe not since the notebook works when it is connected.
Although perhaps it could be that if the electronics that manages the
phases that you mentioned before is physically in the charger, the
problem is in the charger.

>> Perhaps the ultimate test is going to a business where they have
>> original Lenovo components, ask them for a new battery to test it at
>> the moment with the notebook and, if all goes well, then buy it.

> Sadly, that's the only real test.

Earlier I telephoned the supplier where I bought this battery and he
offered 

Re: Samsung ML-1915 printer

2017-03-27 Thread Rodolfo Medina
Brian  writes:

> On Mon 27 Mar 2017 at 17:18:12 +0100, Rodolfo Medina wrote:
>
>> kAt  writes:
>> 
>> > Brian:
>> >> On Sun 26 Mar 2017 at 14:45:04 -0400, Doug wrote:
>> >> 
>> >>>
>> >>> On 03/26/2017 10:55 AM, Rodolfo Medina wrote:
>>  I'm still stuck with my problem, so I'm posting it again hoping for
>>  some help: I alone don't manage to have my printer work, a Samsung
>>  ML-1915.  I installed cups but the printer does not respond.  Printing
>>  jobs are stopped because of "Filter failed" issue.  I also got no
>>  answer from cups mailing list.
>> 
>>  Thanks for any help,
>> 
>>  Rodolfo
>> >
>> >
>> > Howto: Samsung ML-1915 with Debian Lenny
>> > Postby Rodolfo Medina » 2010-11-15 11:12
>> >
>> > http://forums.debian.net/viewtopic.php?f=16=57364#p332331
>> 
>> 
>> Yes...  But now on my brand new desktop PC it won't go...
>
> The HOWTO looks fine for 2010. In 2017 CUPS has changed but, more
> importantly for this thread and its sister one at
>
>  https://lists.debian.org/debian-user/2017/03/msg00100.html ,
>
> Samsung has made changes to its Unified Linux Driver package.
>
> rastertosamsungspl doesn't exist anymore. It is now rastertospl; the
> PPDS are altered to reflect this.
>
> It is a good object lesson in not using outdated proprietry software.

>From Samsung web site I downloaded the latest version of Unified Linux Driver
package and tried to use rastertospl in place of rastertosamsungspl, but it
won't work either...  I also accordingly changed the ppd file...  But, isn't it
strange that on another machine of mine, witht new version of CUPS, the printer
works with the old Samsung files?

Rodolfo



Re: DD bs=4M option on USB mem-stick creates false format

2017-03-27 Thread David Christensen

On 03/27/2017 04:45 AM, kAt wrote:

David Christensen:

Understand that many memstick images change once they have been
booted, so you must checksum them immediately after burning.
(Thankfully, debian-8.7.1-i386-xfce-CD-1.iso doesn't, so I can verify
my USB flash drive at any time.)


I have done this 3 times bs=4M bs=1M and without a bs= tag, no difference!


Without seeing the command and output, we cannot check it.  But, if 
you're happy with the image on the USB flash drive, then okay.




Once you are confident your USB flash drive has a good image, try
booting it in your newest x86 computer.  If that fails, try other x86
computers.  If none of them boot, contact your vendor.


No, the image works, it has a problem bringing up the full graphical
part on a an old pc with very little RAM and video memory on its 586
option (it has both a 64 and 32b live parts) and are both jessie based.
The debian 32bit 8,7,1 works fine on the sane machine


Okay.



1.  Burn the ISO image to optical media and boot that.


Tough luck, the one machine has no such thing, the ill box has its cd
player jammed shut with a CD in it from 13 years ago that plays fine on
live jessie


Many optical drives have a small hole in the front door that you can 
insert an unbent paper clip into to manually open the drawer.




2.  Download a memstick.img file that is meant to be burned to a USB
drive, burn it to a USB drive, and boot that.  (If your vendor doesn't
offer such, you might need to find a different tool.)


Again the question is not so much at the vendor's magic system but why
would a 0.6G image rent the rest of the disk useless for copying stuff
in and out, which I have done with many live systems.


isohybrid images have non-standard on-disk data structures to get them 
to boot when burned to CD and when burned to USB; basically, they are 
hacks that "mostly work".  You're not going to get meaningful results 
with gparted, fdisk, parted, or the others.



David



Re: `Filter failed' no print error message

2017-03-27 Thread Rodolfo Medina
Brian  writes:

> On Mon 27 Mar 2017 at 16:04:31 +0100, Rodolfo Medina wrote:
>
>> Brian  writes:
>> 
>> > Please would you repeat the command
>> >
>> >  cupsfilter -p /etc/cups/ppd/Samsung_ML-191x_252x_Series.ppd -m printer/foo
>> > /etc/nsswitch -e > out.prn 2> log
>> >
>> > and post again.
>> 
>> Now they are both:
>> 
>> cupsfilter: File "/usr/lib/cups/filter/rastertosamsungspl" permissions OK
>> (040755/uid=0/gid=0).
>> cupsfilter: File "/usr/lib/cups/filter/commandtops" permissions OK
>> (040755/uid=0/gid=0).
>> cupsfilter: Unable to determine MIME type of "/etc/nsswitch".
>
> The output should be at least a screenful of text. Do you still get your
> previous output with
>
>  cupsfilter -p /etc/cups/ppd/Samsung_ML-191x_252x_Series.ppd -m printer/foo
> /etc/nsswitch -e > out.prn ?
>
> That is, don't direct the error output to a file but to the screen.

Yes, same as previous...


> How about
>
>  cupsfilter /etc/nsswitch > out.prn ?
>
> That should give more than one line of output.
>
> (Unable to determine MIME type of "/etc/nsswitch" is perturbing).

In this case, the output is:

 cupsfilter: Unable to determine MIME type of "/etc/nsswitch".

on both machines...

Thanks,

Rodolfo



Re: Samsung ML-1915 printer

2017-03-27 Thread Brian
On Mon 27 Mar 2017 at 17:18:12 +0100, Rodolfo Medina wrote:

> kAt  writes:
> 
> > Brian:
> >> On Sun 26 Mar 2017 at 14:45:04 -0400, Doug wrote:
> >> 
> >>>
> >>> On 03/26/2017 10:55 AM, Rodolfo Medina wrote:
>  I'm still stuck with my problem, so I'm posting it again hoping for some
>  help: I alone don't manage to have my printer work, a Samsung ML-1915.  I
>  installed cups but the printer does not respond.  Printing jobs are
>  stopped because of "Filter failed" issue.  I also got no answer from cups
>  mailing list.
> 
>  Thanks for any help,
> 
>  Rodolfo
> >
> >
> > Howto: Samsung ML-1915 with Debian Lenny
> > Postby Rodolfo Medina » 2010-11-15 11:12
> >
> > http://forums.debian.net/viewtopic.php?f=16=57364#p332331
> 
> 
> Yes...  But now on my brand new desktop PC it won't go...

The HOWTO looks fine for 2010. In 2017 CUPS has changed but, more
importantly for this thread and its sister one at

 https://lists.debian.org/debian-user/2017/03/msg00100.html ,

Samsung has made changes to its Unified Linux Driver package.

rastertosamsungspl doesn't exist anymore. It is now rastertospl; the
PPDS are altered to reflect this.

It is a good object lesson in not using outdated proprietry software.

-- 
Brian.






Re: Samsung ML-1915 printer

2017-03-27 Thread Rodolfo Medina
kAt  writes:

> Brian:
>> On Sun 26 Mar 2017 at 14:45:04 -0400, Doug wrote:
>> 
>>>
>>> On 03/26/2017 10:55 AM, Rodolfo Medina wrote:
 I'm still stuck with my problem, so I'm posting it again hoping for some
 help: I alone don't manage to have my printer work, a Samsung ML-1915.  I
 installed cups but the printer does not respond.  Printing jobs are
 stopped because of "Filter failed" issue.  I also got no answer from cups
 mailing list.

 Thanks for any help,

 Rodolfo
>
>
> Howto: Samsung ML-1915 with Debian Lenny
> Postby Rodolfo Medina » 2010-11-15 11:12
>
> http://forums.debian.net/viewtopic.php?f=16=57364#p332331


Yes...  But now on my brand new desktop PC it won't go...

Rodolfo



Re: `Filter failed' no print error message

2017-03-27 Thread Brian
On Mon 27 Mar 2017 at 16:04:31 +0100, Rodolfo Medina wrote:

> Brian  writes:
> 
> > Please would you repeat the command
> >
> >  cupsfilter -p /etc/cups/ppd/Samsung_ML-191x_252x_Series.ppd -m printer/foo
> > /etc/nsswitch -e > out.prn 2> log
> >
> > and post again.
> 
> Now they are both:
> 
> cupsfilter: File "/usr/lib/cups/filter/rastertosamsungspl" permissions OK
> (040755/uid=0/gid=0).
> cupsfilter: File "/usr/lib/cups/filter/commandtops" permissions OK
> (040755/uid=0/gid=0).
> cupsfilter: Unable to determine MIME type of "/etc/nsswitch".

The output should be at least a screenful of text. Do you still get your
previous output with

 cupsfilter -p /etc/cups/ppd/Samsung_ML-191x_252x_Series.ppd -m printer/foo 
/etc/nsswitch -e > out.prn ?

That is, don't direct the error output to a file but to the screen.

How about

 cupsfilter /etc/nsswitch > out.prn ?

That should give more than one line of output.

(Unable to determine MIME type of "/etc/nsswitch" is perturbing).

-- 
Brian.



Re: Anyone know what this means when running aptitude update?

2017-03-27 Thread Frank

Op 27-03-17 om 17:14 schreef Mark Fletcher:

Well, switching from http.debian.net to deb.debian.org seems to have
fixed that one. The error relating to that has gone away.


Don't be surprised if it comes back. I think it may just have selected a 
different mirror now, but you can't be certain it will always pick that one.



wget -qO- https://dl.google.com/linux/linux_signing_key.pub | sudo
apt-key add -


No, please do NOT use "apt-key add" but instead download the key and put
it as a file with the suffix ".gpg" into the directory
/etc/apt/trusted.gpg.d/


I downloaded the file from the above URL, and copied it as root to
/etc/apt/trusted.gpg.d as instructed. Since all the other files in that
directory were owned by root I made sure this one was too. And I renamed
it to add .gpg on the end.


That's for binary key files. This one is ascii armoured, so it needs an 
.asc 'extension'.



Which is worse than it was before, it is now complaining about more keys.


Let's try the proper extension first and see what that fixes.

Regards,
Frank



Re: Upgrading Jessie to Stretch

2017-03-27 Thread cbannister
On Sun, Mar 05, 2017 at 09:07:45AM -0500, songbird wrote:
>   because i keep a second bootable partition a
> few versions back i am a bit more brave/stupid
> at times and just do the usual routine:
> 
> =
> 
>   $ apt-get update
>   $ apt-get upgrade
> 
>   # and then see what is held back before doing the

I suggest doing:

apt-get upgrade --with-new-pkgs

just before:

>   $ apt-get dist-upgrade

See:
https://lists.debian.org/debian-user/2015/10/msg00279.html

:)

-- 
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: Samsung ML-1915 printer

2017-03-27 Thread kAt


Brian:
> On Sun 26 Mar 2017 at 14:45:04 -0400, Doug wrote:
> 
>>
>> On 03/26/2017 10:55 AM, Rodolfo Medina wrote:
>>> I'm still stuck with my problem, so I'm posting it again hoping for some 
>>> help:
>>> I alone don't manage to have my printer work, a Samsung ML-1915.  I 
>>> installed
>>> cups but the printer does not respond.  Printing jobs are stopped because of
>>> "Filter failed" issue.  I also got no answer from cups mailing list.
>>>
>>> Thanks for any help,
>>>
>>> Rodolfo


Howto: Samsung ML-1915 with Debian Lenny
Postby Rodolfo Medina » 2010-11-15 11:12

http://forums.debian.net/viewtopic.php?f=16=57364#p332331



Re: No sound-inputs but sound recording FMIT

2017-03-27 Thread kAt


cbannis...@slingshot.co.nz:
> On Sun, Mar 05, 2017 at 07:13:22PM -0500, Gene Heskett wrote:
> 
> In other words Back EMF?
> 
> I know a chap who found about that the hard way when he tried to get
> something from nothing by charging a battery from a generator which he
> turned by having a fan connected to it. :)

What do you mean?  A generator or an alternator?  Given enough power
from mechanical source (wind) to overpower the resistance of the
generator it would produce current.  Most of them, except for brush
dynamos, will produce AC which needs to be rectified back to DC and
regulated at a current a little above that of the battery.  Whether it
is a bicycle or wind generator or your auto/moto charging circuit, isn't
it how it all works?
Now if you put a 3' fan in a truck alternator and a 100Amph battery I
suspect it would take a hurricane to get it moving.

> He didn't get electrocuted or anything, the fan abruptly stops turning.

This all started from the OP stating that FMIT (on all debian main
rep's) records sound without any audio inputs in the system.

Thread cannibals!  ;)



Re: When specifying path to file - confused about ./ and ~/

2017-03-27 Thread Richard Owlett

On 03/27/2017 09:37 AM, to...@tuxteam.de wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Mar 27, 2017 at 09:26:58AM -0500, Richard Owlett wrote:

On 03/27/2017 07:47 AM, to...@tuxteam.de wrote:


On Mon, Mar 27, 2017 at 11:25:30PM +1100, David wrote:

On 27 March 2017 at 22:39, Richard Owlett  wrote:

On 03/27/2017 01:14 PM, Richard Owlett wrote:

*Please avoid trying to briefly explain.*
*_Please refer me to a good web page._


Sorry, richard: no web page, but perhaps something to start:

 ./ means "HERE"
 ~/ means "HOME"


True, but 
my learning style is often dependent on examples more than definitions.


[give us examples]


Thought I did ;/



FWIW I studied physics. Theoretical physics. I loved math (still
do). I *always* learnt by examples. Or better even: by alternating
layers of theory and examples. To the point that I'm convinced that
maths is a craft, like pottery or carpentry. You need *practice*.
No practice without examples. But that's just me?

That said, you were so terminant that I just dared to provide
something minimal (not even a theory but just a kind of refcard,
let's call it a theory's skeleton).


Careful you're agreeing with me.
I and my classmates actually learned 1st semester calculus in 2nd 
semester physics - ie springs and pendulums.
There was Part II of my story. Second semester sophomore year all 
engineers and some math majors took a specific Differential Equations 
course. It was taught in a different format - 3 lectures and 1 
recitation each week. As the number of students required two lecturers 
and the students were equally divided, one lecture was from engineering 
and one from the math faculty. Students were randomly assigned, the 
lectures being in the same hour. The math professor was a pure 
mathematician {found out later that math grad students competed to take 
his classes}. The rumor at semester's end was that the engineering 
professors students' grade distribution was a very normal bell curve. 
The math professor's distribution was doubled humped. The engineering 
students average being ~10 points lower.





If you're less terminant next time, I'll provide again examples ;-)

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

iEYEARECAAYFAljZI8IACgkQBcgs9XrR2kbvcQCeMAGuhO9OxpPkP0BV0T/13cxH
syUAnjMIgIpVXpHLUHPBPHhvvX0IL7qm
=QDL3
-END PGP SIGNATURE-








Re: Anyone know what this means when running aptitude update?

2017-03-27 Thread Mark Fletcher
On Sun, Mar 26, 2017 at 08:51:55PM +0200, Sven Hartge wrote:
> Frank  wrote:
> 
> > The hash sum mismatch is usually a passing issue: updating while the 
> > repository/mirror itself is in the process of updating. If it keeps 
> > showing up, that mirror is probably borked. Try deb.debian.org instead 
> > of http.debian.net.
> 
> deb.debian.org, http.debian.net and httpredir.debian.org are the same.
> The old service behind http.debian.net and httpredir.debian.org were
> switched off in February and the hostnames now point to the same system
> backing deb.debian.org
> 

Well, switching from http.debian.net to deb.debian.org seems to have 
fixed that one. The error relating to that has gone away.


> > wget -qO- https://dl.google.com/linux/linux_signing_key.pub | sudo 
> > apt-key add -
> 
> No, please do NOT use "apt-key add" but instead download the key and put
> it as a file with the suffix ".gpg" into the directory
> /etc/apt/trusted.gpg.d/
> 
I downloaded the file from the above URL, and copied it as root to 
/etc/apt/trusted.gpg.d as instructed. Since all the other files in that 
directory were owned by root I made sure this one was too. And I renamed 
it to add .gpg on the end. It seems to have made the problem noticeably 
worse. On doing an aptitude update I now get:

W: GPG error: http://dl.google.com stable Release: The following 
signatures couldn't be verified because the public key is not available: 
NO_PUBKEY A040830F7FAC5991 NO_PUBKEY 1397BC53640DB551 
W: There is no public key available for the following key IDs: 
CBF8D6FD518E17E1

Which is worse than it was before, it is now complaining about more keys.

Help...

Mark



Re: When specifying path to file - confused about ./ and ~/

2017-03-27 Thread Richard Owlett

On 03/27/2017 08:27 AM, Mark Fletcher wrote:

On Mon, Mar 27, 2017 at 08:38:08AM -0400, The Wanderer wrote:

On 2017-03-27 at 07:14, Richard Owlett wrote:


Please avoid trying to briefly explain.
Please refer me to a good web page.
I *KNOW* I'm missing something fundamental.
A web page will either have links to whatever my underlying problem is.
Or it will inherently use keywords for which I can search.
Thank you.


Can you explain what your question is?

. and ~ are sufficiently distinct that I'm not sure what the nature of
your confusion could be, so I'm not sure what to potentially link you
to.

--

I was thinking the same. Essentially posted "I have a basic
misunderstanding. For God's sake don't help me! Instead I want to use
this list as a human search engine"



Not true.
I was not aware that search engines accepted non-alphanumeric strings as 
legitimate search terms. Previous experience had suggested otherwise.

Thank you, this old dog has learned a new trick.
P.S. Fourth hit of https://www.google.com/search?q=~/+tutorial was 
David's first link ;/




Takes all sorts I suppose...

Mark







Re: `Filter failed' no print error message

2017-03-27 Thread Rodolfo Medina
Brian  writes:

> On Mon 27 Mar 2017 at 14:29:31 +0100, Rodolfo Medina wrote:
>
>> Brian  writes:
>> 
>> > I suppose this is the printer:
>> >
>> >  http://www.samsung.com/uk/support/model/ML-1910/SEE
>> 
>> Rather this:
>> 
>>  http://www.samsung.com/uk/support/model/ML-1915/SEE
>
> It doesn't matter. You'll gat the same uld file for both.
>
>> > There is a "Downloads" section. Click "SEE MORE". You want to download
>> > "Printing & Scan Driver ver V1.00.06, Linux".
>> 
>> Thanks, I will.
>> 
>> 
>> >> > Please run
>> >> >
>> >> >  cupsfilter --list-filters -p /etc/cups/ppd/ -m printer/foo
>> >> >  -e > out.prn 2> log
>> >> >
>> >> > on both machines. A PDF or a text file would do for . Post the
>> >> > two logs you get.
>> >> 
>> >> I suppose you mean something like:
>> >> 
>> >>  # cupsfilter --list-filters -p
>> >> /etc/cups/ppd/Samsung_ML-191x_252x_Series.ppd -m printer/foo  -e >
>> >> out.prn 2> log
>> >
>> > That's fine, but do not use the --list-filters option. In other words:
>> >
>> > cupsfilter -p /etc/cups/ppd/Samsung_ML-191x_252x_Series.ppd -m printer/foo
>> > /etc/nsswitch -e > out.prn 2> log
>> >
>> > and post the logs.
>> >
>> >> , but what in place of `printer/foo' and ?
>> >
>> > printer/foo is ok. Use /etc/nsswitch for .
>> 
>> >From the non-working machine:
>> 
>> cupsfilter: File "/usr/lib/cups/filter/rastertosamsungspl" permissions OK
>> (040755/uid=0/gid=0).
>> cupsfilter: Unable to determine MIME type of "/etc/nsswitch".
>> 
>> 
>> , and from the working:
>> 
>> cupsfilter: File "/usr/lib/cups/filter/rastertosamsungspl" permissions OK
>> (040755/uid=0/gid=0).
>> cupsfilter: File "/usr/lib/cups/filter/commandtops" permissions OK
>> (040755/uid=0/gid=0).
>> cupsfilter: Unable to determine MIME type of "/etc/nsswitch".
>
> You were particlarly asked not to use the --list-filters switch.

In fact I didn't use it at all.


> Please would you repeat the command
>
>  cupsfilter -p /etc/cups/ppd/Samsung_ML-191x_252x_Series.ppd -m printer/foo
> /etc/nsswitch -e > out.prn 2> log
>
> and post again.


Now they are both:

cupsfilter: File "/usr/lib/cups/filter/rastertosamsungspl" permissions OK
(040755/uid=0/gid=0).
cupsfilter: File "/usr/lib/cups/filter/commandtops" permissions OK
(040755/uid=0/gid=0).
cupsfilter: Unable to determine MIME type of "/etc/nsswitch".

Thanks,

Rodolfo



Re: When specifying path to file - confused about ./ and ~/

2017-03-27 Thread Jochen Spieker
Richard Owlett:
> On 03/27/2017 07:38 AM, The Wanderer wrote:
>> 
>> Can you explain what your question is?
> 
> No, not even after having having had an explanation that alleviated the
> problem.

I think you could have posed your question as simply:

"What do ./ and ~/ mean? What is the difference between the two?"

J.
-- 
I like my Toyota RAV4 because of the commanding view of the traffic
jams.
[Agree]   [Disagree]
 


signature.asc
Description: Digital signature


Re: Encrypted flash drives

2017-03-27 Thread Mark Fletcher
On Mon, Mar 27, 2017 at 10:02:27AM +0200, to...@tuxteam.de wrote:
> On Mon, Mar 27, 2017 at 08:31:45AM +0900, Mark Fletcher wrote:
> 
> [...]
> 
> > Tomas has tried to give me pointers on that but I'm afraid I don't 
> > understand where to take that. Is there any chance someone who isn't a 
> > self-proclaimed "desktop luddite" could comment?
> 
> There *must* be some place in your shiny desktop environment "disks"
> or something like that where you configure media "known" to your
> desktop environment.
> 

Update -- it *almost* worked. I now have a clean flash drive with the 
right partition type and file system, which I get the right permissions 
to everywhere, including in Files, when it is mounted. BUT it still is 
not auto-detecting when I plug it in.

In Disks, I notice the following:

Even before I do anything, when neither working nor almost-working 
drives are plugged in, Disks shows me an entry for one of the USB flash 
drives.

If I plug in the almost-working one, it occupies that entry and 
populates it with information. If I plug in the working one, a new item 
is created for it. If I unmount and remove both usb drives, one of the 
two entries disappears and the other one doesn't.

Comparing the two with the drives plugged in and mounted, they look 
extremely similar, except for the following. In the working one: 

Model: hp v250x (1100)
Size: 8.1GB (8,103,395,328 bytes)
Partitioning: Master Boot Record
Serial Number: 

In the almost-working one:

Model: hp v250w (1100)
Media: --
Size: --
Partitioning: Master Boot Record
Serial Number: 

Re: When specifying path to file - confused about ./ and ~/

2017-03-27 Thread David Wright
On Mon 27 Mar 2017 at 22:27:05 (+0900), Mark Fletcher wrote:
> On Mon, Mar 27, 2017 at 08:38:08AM -0400, The Wanderer wrote:
> > On 2017-03-27 at 07:14, Richard Owlett wrote:
> > 
> > > Please avoid trying to briefly explain.
> > > Please refer me to a good web page.
> > > I *KNOW* I'm missing something fundamental.
> > > A web page will either have links to whatever my underlying problem is.
> > > Or it will inherently use keywords for which I can search.
> > > Thank you.
> > 
> > Can you explain what your question is?
> > 
> > . and ~ are sufficiently distinct that I'm not sure what the nature of
> > your confusion could be, so I'm not sure what to potentially link you
> > to.
> > 
> > -- 
> I was thinking the same. Essentially posted "I have a basic 
> misunderstanding. For God's sake don't help me!

No, the question is posed in such a way that the OP can slap you down
when you answer it in your way as opposed to the OP's required way.
It took 6 minutes for Peter Ludikovsky to fall into the trap, and
a further 19 minutes for the rude response, "Peter Ludikovsky wrote
without useful content:".

> Instead I want to use 
> this list as a human search engine"

Or, as Curt wrote in
https://lists.debian.org/debian-user/2017/03/msg00694.html
"And anyway, it's obvious Dick Owlett is crowdsourcing his retirement,
and although it's smart and modern, where's the fun in that?"

I liked this, from the same person earlier on the same day:

"Maybe not what you're asking. But if you would be kind enough to tailor your
questions to my answers, it would be much more pleasant for the both of us."

> Takes all sorts I suppose...

Cheers,
David.



Re: When specifying path to file - confused about ./ and ~/

2017-03-27 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Mar 27, 2017 at 09:26:58AM -0500, Richard Owlett wrote:
> On 03/27/2017 07:47 AM, to...@tuxteam.de wrote:
> >
> >On Mon, Mar 27, 2017 at 11:25:30PM +1100, David wrote:
> >>On 27 March 2017 at 22:39, Richard Owlett  wrote:
> On 03/27/2017 01:14 PM, Richard Owlett wrote:
> >>> *Please avoid trying to briefly explain.*
> >>> *_Please refer me to a good web page._
> >
> >Sorry, richard: no web page, but perhaps something to start:
> >
> >  ./ means "HERE"
> >  ~/ means "HOME"
> 
> True, but 
> my learning style is often dependent on examples more than definitions.

[give us examples]

FWIW I studied physics. Theoretical physics. I loved math (still
do). I *always* learnt by examples. Or better even: by alternating
layers of theory and examples. To the point that I'm convinced that
maths is a craft, like pottery or carpentry. You need *practice*.
No practice without examples. But that's just me?

That said, you were so terminant that I just dared to provide
something minimal (not even a theory but just a kind of refcard,
let's call it a theory's skeleton).

If you're less terminant next time, I'll provide again examples ;-)

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

iEYEARECAAYFAljZI8IACgkQBcgs9XrR2kbvcQCeMAGuhO9OxpPkP0BV0T/13cxH
syUAnjMIgIpVXpHLUHPBPHhvvX0IL7qm
=QDL3
-END PGP SIGNATURE-



Re: Paquete para adaptador usb wireless

2017-03-27 Thread Luis Eduardo Silva Isturiz
Muchas gracias JAP,

Lo aplico y comento resultados.

Saludos,

El 27 de marzo de 2017, 10:16, JAP  escribió:
> El 27/03/17 a las 11:01, Luis Eduardo Silva Isturiz escribió:
>>
>> Pues hasta el momento me ha funcionado sin problemas a excepción de la
>> poca señal que capta el adaptador. Sin embargo, estoy seguro que es
>> por la ubicación de la pc con respecto al router. Si en lo sucesivo me
>> aparecen errores parecidos al que refieres lo comento.
>
>
> Si es un adaptador USB, con un cable y una lata de gaseosas, puedes
> convertirlo en una antena direccional.
> http://www.taringa.net/posts/hazlo-tu-mismo/14200298/Crear-Antena-Wi-Fi-con-Lata-de-cerveza.html
>
> JAP
>



-- 
Luis Silva
Frontend Developer
IESA Programmer
Linux User #620650
Email: ios...@gmail.com



Re: When specifying path to file - confused about ./ and ~/

2017-03-27 Thread Richard Owlett

On 03/27/2017 07:38 AM, The Wanderer wrote:

On 2017-03-27 at 07:14, Richard Owlett wrote:


Please avoid trying to briefly explain.
Please refer me to a good web page.
I *KNOW* I'm missing something fundamental.
A web page will either have links to whatever my underlying problem is.
Or it will inherently use keywords for which I can search.
Thank you.


Can you explain what your question is?


No, not even after having having had an explanation that alleviated the 
problem.





. and ~ are sufficiently distinct that I'm not sure what the nature of
your confusion could be, so I'm not sure what to potentially link you
to.



I knew my problem was fundamental enough that I needed an explanation by 
someone who was writing for an unknowable audience.







Re: `Filter failed' no print error message

2017-03-27 Thread Brian
On Mon 27 Mar 2017 at 14:29:31 +0100, Rodolfo Medina wrote:

> Brian  writes:
> 
> > I suppose this is the printer:
> >
> >  http://www.samsung.com/uk/support/model/ML-1910/SEE
> 
> Rather this:
> 
>  http://www.samsung.com/uk/support/model/ML-1915/SEE

It doesn't matter. You'll gat the same uld file for both.

> > There is a "Downloads" section. Click "SEE MORE". You want to download
> > "Printing & Scan Driver ver V1.00.06, Linux".
> 
> Thanks, I will.
> 
> 
> >> > Please run
> >> >
> >> >  cupsfilter --list-filters -p /etc/cups/ppd/ -m printer/foo
> >> >  -e > out.prn 2> log
> >> >
> >> > on both machines. A PDF or a text file would do for . Post the
> >> > two logs you get.
> >> 
> >> I suppose you mean something like:
> >> 
> >>  # cupsfilter --list-filters -p 
> >> /etc/cups/ppd/Samsung_ML-191x_252x_Series.ppd -m printer/foo  -e > 
> >> out.prn 2> log
> >
> > That's fine, but do not use the --list-filters option. In other words:
> >
> > cupsfilter -p /etc/cups/ppd/Samsung_ML-191x_252x_Series.ppd -m printer/foo
> > /etc/nsswitch -e > out.prn 2> log
> >
> > and post the logs.
> >
> >> , but what in place of `printer/foo' and ?
> >
> > printer/foo is ok. Use /etc/nsswitch for .
> 
> >From the non-working machine:
> 
> cupsfilter: File "/usr/lib/cups/filter/rastertosamsungspl" permissions OK 
> (040755/uid=0/gid=0).
> cupsfilter: Unable to determine MIME type of "/etc/nsswitch".
> 
> 
> , and from the working:
> 
> cupsfilter: File "/usr/lib/cups/filter/rastertosamsungspl" permissions OK 
> (040755/uid=0/gid=0).
> cupsfilter: File "/usr/lib/cups/filter/commandtops" permissions OK 
> (040755/uid=0/gid=0).
> cupsfilter: Unable to determine MIME type of "/etc/nsswitch".

You were particlarly asked not to use the --list-filters switch. Please
would you repeat the command

 cupsfilter -p /etc/cups/ppd/Samsung_ML-191x_252x_Series.ppd -m printer/foo 
/etc/nsswitch -e > out.prn 2> log

and post again.

-- 
Brian.



Re: Encrypted flash drives

2017-03-27 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Mar 27, 2017 at 11:01:57PM +0900, Mark Fletcher wrote:
> On Mon, Mar 27, 2017 at 10:02:27AM +0200, to...@tuxteam.de wrote:
> > On Mon, Mar 27, 2017 at 08:31:45AM +0900, Mark Fletcher wrote:
> > 
> > [...]
> > 
> > > Tomas has tried to give me pointers on that but I'm afraid I don't 
> > > understand where to take that. Is there any chance someone who isn't a 
> > > self-proclaimed "desktop luddite" could comment?
> > 
> > There *must* be some place in your shiny desktop environment "disks"
> > or something like that where you configure media "known" to your
> > desktop environment.
> > 
> > Insert your "semi-correct" disk and try to enter the labyrinth
> > through "properties".
> > 
> > Don't forget Ariadne and the yarn, and give my greetings to the
> > Minotaur ;-)
> > 
> I honked my mouse up into the top left corner of the screen, as you do 
> in Gnome, and typed "disks" in the search box. And, to quote General 
> Melchett, "Well bugger me with a fishfork" if there wasn't an application 
> called Disks just waiting for me.
> 
> (there was, so no need to... anyway)
> 
> It reports that my correctly working disk has a partition type of 83 
> (linux) while the partly-broken one reports a partition type of W95 
> FAT32 (LBA) -- suggesting it really is in a bit of an old mess after my 
> half-assed initial format. I've seen enough -- I'll wipe and re-format 
> it, and have patience this time (doing that now).

Note that you can change the partition type with a partition editor.
It's just the value of a specific byte in the partition table with
no further effects whatsoever (excluding some gullible desktop
environments, but those believe in file endings too, snark, snark ;)

So no need to reformat (not telling you what to do, but if you're
still in investigative mood, this would be a candidate).

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

iEYEARECAAYFAljZIiUACgkQBcgs9XrR2kZ30wCfZPljNBzi3J4C/X/IkdB5QoIy
LNAAn1RJwDfpM1f1/zVb/ESwtfLe1VSn
=raQP
-END PGP SIGNATURE-



Re: When specifying path to file - confused about ./ and ~/

2017-03-27 Thread Richard Owlett

On 03/27/2017 07:47 AM, to...@tuxteam.de wrote:


On Mon, Mar 27, 2017 at 11:25:30PM +1100, David wrote:

On 27 March 2017 at 22:39, Richard Owlett  wrote:

On 03/27/2017 01:14 PM, Richard Owlett wrote:

 *Please avoid trying to briefly explain.*
 *_Please refer me to a good web page._


Sorry, richard: no web page, but perhaps something to start:

  ./ means "HERE"
  ~/ means "HOME"


True, but 
my learning style is often dependent on examples more than definitions.

I learned that as a freshman engineering student in Fall 1961.
Only engineers and declared math majors took a specific calculus 
sequence. Our Teaching Assistant was a first semester grad student. His 
specialization was *PURE* mathematics. Our section [one of > 20] had 20 
engineers and 2 math majors. He lectured rigorously on the theory. On 
the first of 3 course-wide exams we set some sort of record for the 
lowest class average [even the 2 math majors acing the exam didn't 
help;]. During a post-mortem, he asked for suggestions. The engineers 
replied "Give us examples!" He replied that's now to teach math, you 
need theory. We all but chanted "Give us examples!" He partially 
partially caved saying "Till the next exam. Then we'll go back to the 
right way [implication of lots of remedial homework]."

The next exam had us not at the top, but having a respectable class average.





You can move to other places with "cd" and ask where you
are currently with "pwd" or "echo $CWD", but your home
stays at "/home/richard" -- or wherever it is.


http://www.ee.surrey.ac.uk/Teaching/Unix/unix1.html
http://www.ee.surrey.ac.uk/Teaching/Unix/unix2.html

Sections 1.4, 1.6 part 2, and 2.1 demonstrate use of '.' and '~' to
represent directory names.

To the best of my knowledge, '.' is intrinsic to the filesystem


Yes and no (see below)


design, whereas expansion of '~' is handled by your shell.


Yes. The shell expands ~ to your current *home* directory (and it
expands ~foo to foo's home directory).

Now to the "yes and no": yes: every directory has two entries: ".",
which resolves to the directory itself, and "..", which resolves
to the directory's parent. This is the "intrinsic" part, i.e.
the "yes" part.

To the "no" part: in the shell, names of files are often resolved
using some default mechanism. If you invoke a command, then (unless
it's a shell builtin), the shell looks for this command as an
executable in one of the directories listed in the shell environment
variable PATH. Unless you give an explicit directory, as in
"foo/command", where the shell would look in directory foo (relative
to the current working directory, CWD [1]). Thus, ./command would
look in the current working directory.


I hope someone else here will correct or elaborate that statement if necessary.


So yes, correct, but some further explanation might help in
understanding how to use it in a shell.

regards

[1] Of course, if you start your path with /, it's an absolute
   path, like /usr/local/bin/foo/command.

- -- tomás






Re: Paquete para adaptador usb wireless

2017-03-27 Thread JAP

El 27/03/17 a las 11:01, Luis Eduardo Silva Isturiz escribió:

Pues hasta el momento me ha funcionado sin problemas a excepción de la
poca señal que capta el adaptador. Sin embargo, estoy seguro que es
por la ubicación de la pc con respecto al router. Si en lo sucesivo me
aparecen errores parecidos al que refieres lo comento.


Si es un adaptador USB, con un cable y una lata de gaseosas, puedes 
convertirlo en una antena direccional.

http://www.taringa.net/posts/hazlo-tu-mismo/14200298/Crear-Antena-Wi-Fi-con-Lata-de-cerveza.html

JAP



Re: libjasper in Stretch

2017-03-27 Thread Sven Hartge
David Griffith  wrote:

> I also saw this 
> https://packages.qa.debian.org/j/jasper/news/20170212T221713Z.html, which 
> suggests that the original maintainer has stepped back up.  In any case, I 
> should perhaps convert my code from using Jasper to using OpenJPEG. But 
> then I notice that there is no libopenjpeg5-dev in Stretch to go along 
> with libopenjpeg5.  Is this just temporary?

Umm, openjpeg has also been removed from Stretch/Testing and Unstable

See https://tracker.debian.org/pkg/openjpeg and 
https://tracker.debian.org/news/791076

It has been replaced by openjpeg2:

https://tracker.debian.org/pkg/openjpeg2

Grüße,
Sven.


-- 
Sigmentation fault. Core dumped.



Multimedia problem (Qt5)

2017-03-27 Thread Edward Park
I have Debian Jessie 8.7 installed. I can play audio and video files fine
with the default GNOME MPlayer. However, when trying to use
*QMediaPlayer* class
with Qt, the moment I run my resulting program it logs me out! As in my
account I used to login on startup. On the Qt forum I have asked for help
and tried many ways. In the end it was determined it wasn't a Qt problem.
It is a Debian problem. I also tried playing a video file with the
command *gst-play-1.0
name.mp4*. Same thing: logged me out. I tried everything I could with Qt
with tons of people's help. So, I am here asking you Debian folks.

Output from *sudo dmesg* 

Also, if anyone is wondering where I asked for help for Qt, *here*
.

Thanks a lot!


Re: Encrypted flash drives

2017-03-27 Thread Mark Fletcher
On Mon, Mar 27, 2017 at 10:02:27AM +0200, to...@tuxteam.de wrote:
> On Mon, Mar 27, 2017 at 08:31:45AM +0900, Mark Fletcher wrote:
> 
> [...]
> 
> > Tomas has tried to give me pointers on that but I'm afraid I don't 
> > understand where to take that. Is there any chance someone who isn't a 
> > self-proclaimed "desktop luddite" could comment?
> 
> There *must* be some place in your shiny desktop environment "disks"
> or something like that where you configure media "known" to your
> desktop environment.
> 
> Insert your "semi-correct" disk and try to enter the labyrinth
> through "properties".
> 
> Don't forget Ariadne and the yarn, and give my greetings to the
> Minotaur ;-)
> 
I honked my mouse up into the top left corner of the screen, as you do 
in Gnome, and typed "disks" in the search box. And, to quote General 
Melchett, "Well bugger me with a fishfork" if there wasn't an application 
called Disks just waiting for me.

(there was, so no need to... anyway)

It reports that my correctly working disk has a partition type of 83 
(linux) while the partly-broken one reports a partition type of W95 
FAT32 (LBA) -- suggesting it really is in a bit of an old mess after my 
half-assed initial format. I've seen enough -- I'll wipe and re-format 
it, and have patience this time (doing that now).

Mark



Re: Paquete para adaptador usb wireless

2017-03-27 Thread Luis Eduardo Silva Isturiz
Hola Agustin,

Pues hasta el momento me ha funcionado sin problemas a excepción de la
poca señal que capta el adaptador. Sin embargo, estoy seguro que es
por la ubicación de la pc con respecto al router. Si en lo sucesivo me
aparecen errores parecidos al que refieres lo comento.

Saludos.

El 25 de marzo de 2017, 08:39, Agustin Martin
 escribió:
> El día 25 de marzo de 2017, 1:05, Luis Eduardo Silva Isturiz
>  escribió:
>> Muchas gracias Cristian :-) Efectivamente funcionó como indicaste.
>> Paso a detallar el proceso realizado vía terminal:
>>
>> Paso 1:
>>
>> lsilva84@debmac-1:~$ lsusb
>> Bus 002 Device 007: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU
>> 802.11n WLAN Adapter
> ...
>>
>> Paso 3:
>>
>> root@debmac-1:/home/lsilva84# aptitude install firmware-realtek
>>
>
> Hola,
>
> ¿Te funciona bien? Siempre que he intentado usar el módulo del kernel
> con ese chip me falla intermitentemente con los síntomas de
>
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1365844
>
> --
> Agustin
>



-- 
Luis Silva
Frontend Developer
IESA Programmer
Linux User #620650
Email: ios...@gmail.com



Re: Una de hostapd en debian 7...

2017-03-27 Thread JAP

El 27/03/17 a las 10:27, luisededios escribió:

On Mon, 27 Mar 2017 07:42:40 -0400, JAP 
wrote:


El 25/03/17 a las 11:20, luisededios escribió:

Buen día amigo, y agradezco mucho que me hayas respondido.

Respondiendo tus preguntas te digo que todo lo que pretendo hacer es
crear un AP en mi laptop DELL con debian 7 para compartir la internet
'pública' que existe acá en el parque de mi pueblo.

La conexión es abierta, bueno hasta el punto de acceso wifi. Puedes
traer cualquier laptop o móvil y basta con seleccionar el AP de la
empresa de telefonía, ahora para navegar, tienes que levantar el
navegador y entrar un usuario/contraseña de una cuenta ya sea permanente
o temporal pero hay que autentificarse.

Y para configurar mi sistema en casa estoy empleando un móvil samsung
con un zona wifi(AP) y datos móviles activados que imita lared wifi del
parque. Luego mi laptop DELL donde estoy implementando mi AP wifi para
compartir la internet del parque, y... otra laptop Acer que actúa como
cliente para disfrutar de la conexión que quiero compartir.

Esta es mi configuración. Por qué hago esto? Bueno, cada cliente que
viene al parque para conectarse a internet tiene que tener una cuenta,
ya sea permanente o temporal, y con mi sistema podríamos conectar a
varios clientes, a través de mi AP y con una única cuenta.

Me entiendes ahora?  :)

--
Saludos,
Luis


Ahora entiendo.
Estás entrando mediante un Portal Cautivo.


Bueno, al final... conectaré mi AP a un portal cautivo -que es donde
existe internet, en el parque del pueblo- y obviamente tendré que
hacerle ajustes pero ahora estoy trabajando en mi casa y para emular el
entorno y poner a punto el sistema tengo:

- Un móvil con zona wifi y conexión por datos móviles con salida
internacional solo para email. Este emula, en parte, el AP que brinda
internet en el parque de mi poblado.
- Una laptop DELL con dos mini tarjetas wifi, en la cual estoy
implementando mi AP con hostapd, dhcp y dns. Al final se conectará al
portal cautivo que ya mencioné pero por ahora solo al móvil de arriba
para compartir la conexión para email a modo de prueba, y así comprobar
que está trabajando ok.
- Una laptop Acer la cual actúa como cliente y que disfrutará de esa
conexión para email, y así comprobar que mi AP está trabajando bien.



Bien con la arquitectura para la prueba.
Si eso te funciona, bárbaro.
El tema, es que no sé cómo se comportará luego el portal cautivo.
Porque si está configurado por un "BOFH", el hijo de su madre podría 
haberlo configurado para que no entregue paquetes si el requerimiento de 
los mismos no proceden del mismo navegador identificado en el portal a 
través de "cookies".




Eso, es harina de otro costal.
Es lo más complicado para saltear en cuanto a restricciones.
No podés hacer un puente (bridging).


Si he podido lograr un puente entre eth0 y wlan0 pero no entre wlan0 y
wlan2 pero... la conexión no la recibo por cable sino mediante wifi.


Eso debería ser transparente al tipo de placa que se use.
Una placa es una placa, en forma independiente de si es ethernet, wifi o 
telefónica.




Tendrás que, y en orden:
1) Tomar la señal, e identificar tu máquina en el portal, mediante
"algo" que la mantenga enlazada a nivel de "root".
2) Crear un punto de acceso con hostapd (eso ya lo tienes hecho).
3) Crear un servidor DNS en tu máquina (eso también lo tienes más o
menos hecho).
4) Crear reglas de iptables que enmascaren el tráfico (eso te lo mandé).

La pregunta del millón: ¿cuál es el portal cautivo?


Primero quiero lograr que mi AP trabaje en el entorno que tengo en casa,
es más cómodo y más sencillo y después deberé hacer los cambios para
conectarlo a ese portal cautivo.


Buen plan de trabajo.




Yo únicamente en mi vida me tuve que liar con ZeroShell, y para ese,
tengo respuesta.
Los otros, veo cómo darte una mano.

http://www.zeroshell.net/




JAP



Re: When specifying path to file - confused about ./ and ~/

2017-03-27 Thread Richard Owlett

On 03/27/2017 07:25 AM, David wrote:

On 27 March 2017 at 22:39, Richard Owlett  wrote:

On 03/27/2017 01:14 PM, Richard Owlett wrote:

 *Please avoid trying to briefly explain.*
 *_Please refer me to a good web page._


http://www.ee.surrey.ac.uk/Teaching/Unix/unix1.html
http://www.ee.surrey.ac.uk/Teaching/Unix/unix2.html

Sections 1.4, 1.6 part 2, and 2.1 demonstrate use of '.' and '~' to
represent directory names.

To the best of my knowledge, '.' is intrinsic to the filesystem
design, whereas expansion of '~' is handled by your shell.
I hope someone else here will correct or elaborate that statement if necessary.




Thank you, the first reference was the key.
I also is a useful illustration of why my original post said:
"
Please avoid trying to briefly explain.
Please refer me to a good web page.
"
The author of that page made only *3* assumptions:
   1. that the reader was interested.
   2. that the reader's literacy level was adequate.
   3. that the author knew he knew *nothing* about the reader's
  background.

It wasn't so much the author's descriptions, but his use of a 
progressive series of illustrative examples.






Re: Printing packages

2017-03-27 Thread Rodolfo Medina
cbannis...@slingshot.co.nz writes:

> On Sat, Mar 04, 2017 at 07:53:39PM +, Rodolfo Medina wrote:
>> > On 3/4/17, Brian  wrote:
>> >>> I install in place of those above?  I'm running Sid.
>
> What? You shouldn't even need to ask this question if you are
> running sid. You are expected to know how to solve basic questions
> like this before even venturing into the problems of sid.
>
>> >> cupsys disappeared many, many moons ago. You want
>> >>
>> >>   apt-get install cups
>
>
>> Well, he only answered to my first question... ;-)
>
> LOL, I think you're lucky he even answered that!


... But I've been running Sid for years now nor have I ever had any sort of
problems...  never.

Thanks,

Rodolfo



Re: Una de hostapd en debian 7...

2017-03-27 Thread luisededios
On Mon, 27 Mar 2017 03:18:21 -0400, Antonio Trujillo Carmona  
 wrote:



El 22/03/17 a las 12:49, JAP escribió:

El 22/03/17 a las 00:16, luisededios escribió:

Saludos a todos,

Estoy retomando un tema que tengo pendiente desde hace algún tiempo
porque aun no lo he logrado poner en marcha. Me refiero a la
implementación de un AP wifi en una laptop DELL a la cual le he
instalado dos mini tarjetas wifi, wlan0 y wlan2.

Hasta donde he llegado he logrado que el AP montado sobre wlan0 conecte
a otros dispositivos móviles y también que la laptop se conecte a la
red(un móvil con zona wifi y datos móviles activados) mediante wlan2,
pero parece que tengo problemas con el enrutamiento ip desde wlan0 y
wlan2 en la propia laptop pues los móviles que se conectan al AP de la
laptop no logran navegar. Desde la laptop si puedo navegar, pero desde
los móviles conectados al AP de la laptop no logro navegar.

La ip del móvil con zona wifi y datos móviles activados es 192.168.43.1,
y la laptop toma la 192.168.43.156. Luego, el AP de la laptop tiene la
ip fija 192.168.42.1 y asigna bien ips al resto de móviles que se  
conectan.


Repito. Desde la laptop puedo navegar correctamente pero desde los
móviles conectados a ella no logro navegar.

Muestro la condiguración que he heco por si algún experto pueda
mostrarme el error que estoy comentiendo.

1) Configurando el adaptador wifi(wlan0) con ip estática.

/etc/network/interfaces
allow-hostplug wlan0
iface wlan0 inet static
address 192.168.42.1
netmask 255.255.255.1

2) Instalación y conf del server DHCP.

apt-get install isc-dhcp-server

/etc/dhcp/dhcpd.conf
# option domain-name
# option domain-name-server
authoritative;

subnet 192.168.42.0 netmask 255.255.255.0 {
range 192.168.42.10 192.168.42.50;
option broadcast-address 192.168.42.255;
option routers 192.168.42.1;
default-lease-time 600;
max-lease-time 7200;
option domain-name "local";
option domain-name-servers 8.8.8.8, 8.8.4.4;
}

En /etc/default/isc-dhcp-server
DHCP_CONF=/etc/dhcp/dhcpd.conf
INTERFACES="wlan0"

3) Instalar y conf de hostapd.

interfaces=wlan0
driver=nl80211
ssid=test
hw_mode=g
channel=6
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
#wpa=2 #todo lo que sigue si pongo contraseña al AP
#wpa_passphrase=secret
#wpa_key_mgmt=WPA-PSK
#wpa_pairwise=TKIP
#rsn_pairwise=CCMP

En /etc/default/hostapd
DAEMON_CONF="/etc/hostapd/hostapd.conf"

4) Configurando el enrutamiento IP entre wlan0 y wlan2.

En /etc/sysctl.conf
net.ipv4.ip_forward=1

ejecutar,

sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"

Para implementar un router en el AP, ejecutar,

iptables -t nat -A POSTROUTING -o wlan2 -j MASQUERADE
iptables -A FORWARD -i wlan2 -o wlan0 -m state --state
RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i wlan0 -o wlan2 -j ACCEPT

Para salvar las tablas de ruteo en /etc/iptables.ipv4.nat, ejecutar,

sh -c "iptables-save > /etc/iptables.ipv4.nat"

Adicionar, al final del fichero /etc/network/interfaces, lo siguiente
para restaurar las tablas de ruteo cuando se inicia el AP.

pre-up iptables-restore < /etc/iptables.ipv4.nat

HASTA AQUI

A mi juicio, el problema lo tengo en las sentencias de iptables.

Este procedimiento lo he tomado desde un tutorial que encontré, en cual
se enrutaba desde eth0 hasta wlan0 y yo lo ajusté sustituyendo eth0 por
wlan2 pues tengo dos mini tarjeta wifi instaladas.

Anticipadamente, reciban mis agradecimientos.


Te estás complicando la vida en extremo, y estás cargando cosara "raras"  
en las

direcciones de red

Si no tienes una restricción de acceso a la red en wlan2, ya sea por  
MAC, nombre
de dominio o alguna otra cosa, y que pueda servir como servidora DNS y  
DHCP a
cualquier conexión, lo que debes hacer es un puente:  
https://wiki.debian.org/es/Compartir_red_fisica_con_WiFi


Ahora bien, si el proveedor de red te ha puesto trabas, debes  
configurarte como

servidor y enmascarar todo a través de tu computadora.

#/etc/network/interfaces
allow-hostplug wlan0
iface wlan0 inet static
address 192.168.42.1
netmask 255.255.255.0
network 192.168.42.0
broadcast 192.168.42.255
post-up /etc/init.d/hostapd force-reload --> ES NECESARIO REINICIAR  
HOSTAPD

LUEGO DE CONFIGURAR EL AP

#/etc/dhcp/dhcpd.conf
ddns-update-style none;
option domain-name "local";
option domain-name-servers 192.168.42.1;
authoritative;
log-facility local7;

subnet 192.168.42.0 netmask 255.255.255.0 {
range 192.168.42.10 192.168.42.20;---> ACÁ VA EL LÍMITE DE CONEXIONES QUE
QUIERAS PONER
option routers 192.168.42.1;
}


#/etc/default/isc-dhcp-server
INTERFACES="wlan0"


hostapd está bien.

Ahora, no te embrolles tanto con iptables.

Edita (o crea) el archivo /etc/rc.local

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# 

Re: `Filter failed' no print error message

2017-03-27 Thread Rodolfo Medina
Brian  writes:

> I suppose this is the printer:
>
>  http://www.samsung.com/uk/support/model/ML-1910/SEE

Rather this:

 http://www.samsung.com/uk/support/model/ML-1915/SEE


> There is a "Downloads" section. Click "SEE MORE". You want to download
> "Printing & Scan Driver ver V1.00.06, Linux".

Thanks, I will.


>> > Please run
>> >
>> >  cupsfilter --list-filters -p /etc/cups/ppd/ -m printer/foo
>> >  -e > out.prn 2> log
>> >
>> > on both machines. A PDF or a text file would do for . Post the
>> > two logs you get.
>> 
>> I suppose you mean something like:
>> 
>>  # cupsfilter --list-filters -p 
>> /etc/cups/ppd/Samsung_ML-191x_252x_Series.ppd -m printer/foo  -e > 
>> out.prn 2> log
>
> That's fine, but do not use the --list-filters option. In other words:
>
> cupsfilter -p /etc/cups/ppd/Samsung_ML-191x_252x_Series.ppd -m printer/foo
> /etc/nsswitch -e > out.prn 2> log
>
> and post the logs.
>
>> , but what in place of `printer/foo' and ?
>
> printer/foo is ok. Use /etc/nsswitch for .

>From the non-working machine:

cupsfilter: File "/usr/lib/cups/filter/rastertosamsungspl" permissions OK 
(040755/uid=0/gid=0).
cupsfilter: Unable to determine MIME type of "/etc/nsswitch".


, and from the working:

cupsfilter: File "/usr/lib/cups/filter/rastertosamsungspl" permissions OK 
(040755/uid=0/gid=0).
cupsfilter: File "/usr/lib/cups/filter/commandtops" permissions OK 
(040755/uid=0/gid=0).
cupsfilter: Unable to determine MIME type of "/etc/nsswitch".


Thanks,

Rodolfo



Re: [Stable] Trouble with openvpn

2017-03-27 Thread Leandro Noferini
Leandro Noferini  writes:

> If I start openvpn with systemd (with "service openvpn start" command)
> or with the gnome panel command the route configured is only for the
> server and not the subnet for the vpn. This is the routing table usgin
> these commands:
>
> default via 10.150.29.1 dev eth0  proto static  metric 1024 
> 10.150.29.0/24 dev eth0  proto kernel  scope link  src 10.150.29.101 
> 169.254.0.0/16 dev eth0  scope link  metric 1000 
> 192.168.73.1 dev tun0  proto kernel  scope link  src 192.168.73.5 
> (192.168.73.X is the subnet for the vpn).
>
> But, if I start openvpn directly with the command
>
> openvpn --config server.conf
>
> the resulting route is correct:
>
> default via 10.150.29.1 dev eth0  proto static  metric 1024 
> 10.150.29.0/24 dev eth0  proto kernel  scope link  src 10.150.29.101 
> 169.254.0.0/16 dev eth0  scope link  metric 1000 
> 192.168.73.0/24 via 192.168.73.1 dev tun0 
> 192.168.73.1 dev tun0  proto kernel  scope link  src 192.168.73.5 
> With the same configuration, changing only the authentication, it works
> perfectly on a sid with every command I use.

Paul Wise  writes:

> Try looking at the openvpn logs or systemd journal while you start
> openvpn via the three different methods. If you compare the logs, you
> might get a hint about what is happening.

I made some tries with different configurations and I found it works
normally removing the lines "user" and "groups" from the configuration
file.

Is it right/normal?

-- 
leandro
1A0B 125B 2E4D 2DAE 4E26  4551 88FB BBCC 7A29 640B
https://bbs.cybervalley.org/ChiaveLeandro/gpg.html
http://6xukrlqedfabdjrb.onion
La caratteritica principale dei miracoli è che non accadono


signature.asc
Description: PGP signature


Re: Una de hostapd en debian 7...

2017-03-27 Thread luisededios
On Mon, 27 Mar 2017 07:42:40 -0400, JAP   
wrote:



El 25/03/17 a las 11:20, luisededios escribió:

Buen día amigo, y agradezco mucho que me hayas respondido.

Respondiendo tus preguntas te digo que todo lo que pretendo hacer es
crear un AP en mi laptop DELL con debian 7 para compartir la internet
'pública' que existe acá en el parque de mi pueblo.

La conexión es abierta, bueno hasta el punto de acceso wifi. Puedes
traer cualquier laptop o móvil y basta con seleccionar el AP de la
empresa de telefonía, ahora para navegar, tienes que levantar el
navegador y entrar un usuario/contraseña de una cuenta ya sea permanente
o temporal pero hay que autentificarse.

Y para configurar mi sistema en casa estoy empleando un móvil samsung
con un zona wifi(AP) y datos móviles activados que imita lared wifi del
parque. Luego mi laptop DELL donde estoy implementando mi AP wifi para
compartir la internet del parque, y... otra laptop Acer que actúa como
cliente para disfrutar de la conexión que quiero compartir.

Esta es mi configuración. Por qué hago esto? Bueno, cada cliente que
viene al parque para conectarse a internet tiene que tener una cuenta,
ya sea permanente o temporal, y con mi sistema podríamos conectar a
varios clientes, a través de mi AP y con una única cuenta.

Me entiendes ahora?  :)

--
Saludos,
Luis


Ahora entiendo.
Estás entrando mediante un Portal Cautivo.


Bueno, al final... conectaré mi AP a un portal cautivo -que es donde  
existe internet, en el parque del pueblo- y obviamente tendré que hacerle  
ajustes pero ahora estoy trabajando en mi casa y para emular el entorno y  
poner a punto el sistema tengo:


- Un móvil con zona wifi y conexión por datos móviles con salida  
internacional solo para email. Este emula, en parte, el AP que brinda  
internet en el parque de mi poblado.
- Una laptop DELL con dos mini tarjetas wifi, en la cual estoy  
implementando mi AP con hostapd, dhcp y dns. Al final se conectará al  
portal cautivo que ya mencioné pero por ahora solo al móvil de arriba para  
compartir la conexión para email a modo de prueba, y así comprobar que  
está trabajando ok.
- Una laptop Acer la cual actúa como cliente y que disfrutará de esa  
conexión para email, y así comprobar que mi AP está trabajando bien.



Eso, es harina de otro costal.
Es lo más complicado para saltear en cuanto a restricciones.
No podés hacer un puente (bridging).


Si he podido lograr un puente entre eth0 y wlan0 pero no entre wlan0 y  
wlan2 pero... la conexión no la recibo por cable sino mediante wifi.


Tendrás que, y en orden:
1) Tomar la señal, e identificar tu máquina en el portal, mediante  
"algo" que la mantenga enlazada a nivel de "root".

2) Crear un punto de acceso con hostapd (eso ya lo tienes hecho).
3) Crear un servidor DNS en tu máquina (eso también lo tienes más o  
menos hecho).

4) Crear reglas de iptables que enmascaren el tráfico (eso te lo mandé).

La pregunta del millón: ¿cuál es el portal cautivo?


Primero quiero lograr que mi AP trabaje en el entorno que tengo en casa,  
es más cómodo y más sencillo y después deberé hacer los cambios para  
conectarlo a ese portal cautivo.


Yo únicamente en mi vida me tuve que liar con ZeroShell, y para ese,  
tengo respuesta.

Los otros, veo cómo darte una mano.

http://www.zeroshell.net/


--
Saludos,
Luis



Re: When specifying path to file - confused about ./ and ~/

2017-03-27 Thread Mark Fletcher
On Mon, Mar 27, 2017 at 08:38:08AM -0400, The Wanderer wrote:
> On 2017-03-27 at 07:14, Richard Owlett wrote:
> 
> > Please avoid trying to briefly explain.
> > Please refer me to a good web page.
> > I *KNOW* I'm missing something fundamental.
> > A web page will either have links to whatever my underlying problem is.
> > Or it will inherently use keywords for which I can search.
> > Thank you.
> 
> Can you explain what your question is?
> 
> . and ~ are sufficiently distinct that I'm not sure what the nature of
> your confusion could be, so I'm not sure what to potentially link you
> to.
> 
> -- 
I was thinking the same. Essentially posted "I have a basic 
misunderstanding. For God's sake don't help me! Instead I want to use 
this list as a human search engine"

Takes all sorts I suppose...

Mark



Re: [1/2 HS] syntaxe qui ne va plus depuis upgrade MySQL

2017-03-27 Thread Eric Degenetais
bonjour,
si tu veux que le compte soit donné dans la même requête il faut que ce
soit une sous-requête qui fasse le compte.
Au passage (même s'il est probablement trop tard) pour moi c'est un petit
souci de modélisation: les votes devraient être des lignes d'une autre
table avec une clef vers ton image. De cette façon, tu pourrais faire une
requête simple donnant les deux informations (image ET compte) sur la base
d'une jointure, et ça éviterait de stocker l'image une fois par vote (je ne
sais pas quelle est la taille de tes images, ni le nombre moyen de votes
par image, mais avec des images moyennes et beaucoup de votes tu peux avoir
un gonflement de volume non-négligeable...)

Cordialement

__
Éric Dégenètais
Henix

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


Le 27 mars 2017 à 11:13,  a écrit :

> On Sunday 26 March 2017 23:14:01 Christian Quentin wrote:
> > OK. Donc tu veux obtenir un cumul des votes pour chaque logo.
> > Tu souhaites également les trier pour avoir les logos les plus
> > populaires en tête de liste
> > La requête est donc :
> > SELECT images, logos, COUNT(logos) AS total
> > FROM tablelogo
> > GROUP BY images, logos
> > ORDER BY total DESC
> > (quasi identique à ta requête initiale sauf pour le GROUP BY)
>
> C'est presque gagné,
>
> je reçois bien les contenus du champ "images"'
> mais comment récupérer la valeur de "total" du champ "logos",
> c'est à dire le nombre de voix par ligne ?
>
> Merci, @+
>
> André
>
>


Re: ftp client's "ls" is "!ls"

2017-03-27 Thread Kent West
On Mon, Mar 27, 2017 at 6:48 AM, Greg Wooledge  wrote:

> On Sun, Mar 26, 2017 at 06:34:33PM -0500, Kent West wrote:
> > The "ftp" client appears to be flakey, but the
> > tnftp client seems to work well, with tab-completion and other commands
> > performing as expected. (The ncftp client *almost* works, but
> > tab-completion doesn't see the blah.tgz.manifest file whereas it does see
> > the blah.tgz file, so it gives misleading info on tab-completion.)
>
> lftp is also worth a look.  If you're an experienced Unix shell user,
> lftp is almost ridiculously intuitive.  (That said, I haven't seriously
> used FTP in many years... makes me wonder what you're actually doing
> with it.)
>
>
I think I tried lftp in my experiments, and it was lacking in some minor
way. Or maybe it was that tnftp just responded more quickly, or was the
last one I tried; I don't recall now.

This "Systems Management" appliance from KACE, then bought by Dell, then
bought by Quest, is marketed as the gee-whiz solution to managing hundreds
or thousands of network-attached devices (Windows PCs, Macs, Linux PCs,
tablets, etc) from an administrative standpoint. So far, after wrestling
with it for nearly a year, I'm not impressed.

For example, there is no sftp access, only ftp. (And so far, after trying
for a week, I've been unable to get it to work as how the documentation
describes. There's no way to set the ftp user (it's built-in; can't find
any configuration for it anywhere), and the only real options for ftp are
"on/off" and "writable" or not; I've set the check-box to "writable", but
so far, it ain't. Pfft. As I said, not impressed And the documentation?
And the support options? As I said, not impressed.)

Makes me wish I could just curl up in my nice little Debian world and leave
the non-Debian computers flailing in the wind.


-- 
Kent West<")))><
Westing Peacefully - http://kentwest.blogspot.com


Re: DD bs=4M option on USB mem-stick creates false format

2017-03-27 Thread Thomas Schmitt
Hi,

Greg Wooledge wrote:
> If the disk-image came
> from a 4 GB disk, and you write it onto an 8 GB disk, then the 8 GB
> disk will *believe* that it is a 4 GB disk, because it has the metadata
> from a 4 GB disk.

The device size is not determined by the image data which get written to it.
I assume that firmwares and operating systems obtain it by SCSI commands
from the stick hardware.

The device file in Linux is simply a string of the determined number
of blocks.

The partition tables are simply data written to those blocks.
Their block addresses and the meaning of their bytes is subject to
conventions of software producers.

I understand Microsoft and IBM specified the MBR partition table.
Later Intel specified EFI and GUID Partition Table (GPT) as replacement
of BIOS and MBR partition table.
Apple had its own Apple Partition Map. Sun has disklabels. SGI had MIPS
Volume Headers. FreeBSD installs its slices inside MBR partitions.


Have a nice day :)

Thomas



Re: libjasper in Stretch

2017-03-27 Thread David Griffith

On Mon, 27 Mar 2017, Reco wrote:


Hi.

On Mon, Mar 27, 2017 at 12:16:25PM +, David Griffith wrote:


Why is libjasper missing from Stretch?

According to https://bugs.debian.org/812630 the stated reason for its
removal is that libjasper has not been updated for ten years.


No, actual reason for the removal was that the only package's maintainer
stepped down. Quote:

Due to lack of time, I'm looking for a new maintainer for this package.



In this same
bug report is a note that this assertion is not true and a link was provided
to a Github repository.


On January 25th maintainer stepped down. On October 25th (i.e. more than
half-year later) someone noticed that upstream was back to life.
The fact that the second assertion (i.e. 'dead upstream') was
invalidated did not do anything to first (i.e. 'package unmaintained').


Nonetheless, the bug report was closed without
further explanation.


The explanation was provided, in fact:

--- Reason ---
RoQA; dead upstrem, replaced by openjpeg
--


I also saw this 
https://packages.qa.debian.org/j/jasper/news/20170212T221713Z.html, which 
suggests that the original maintainer has stepped back up.  In any case, I 
should perhaps convert my code from using Jasper to using OpenJPEG. But 
then I notice that there is no libopenjpeg5-dev in Stretch to go along 
with libopenjpeg5.  Is this just temporary?



--
David Griffith
d...@661.org

A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: When specifying path to file - confused about ./ and ~/

2017-03-27 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Mar 27, 2017 at 11:25:30PM +1100, David wrote:
> On 27 March 2017 at 22:39, Richard Owlett  wrote:
> >> On 03/27/2017 01:14 PM, Richard Owlett wrote:
> >  *Please avoid trying to briefly explain.*
> >  *_Please refer me to a good web page._

Sorry, richard: no web page, but perhaps something to start:

  ./ means "HERE"
  ~/ means "HOME"

You can move to other places with "cd" and ask where you
are currently with "pwd" or "echo $CWD", but your home
stays at "/home/richard" -- or wherever it is.

> http://www.ee.surrey.ac.uk/Teaching/Unix/unix1.html
> http://www.ee.surrey.ac.uk/Teaching/Unix/unix2.html
> 
> Sections 1.4, 1.6 part 2, and 2.1 demonstrate use of '.' and '~' to
> represent directory names.
> 
> To the best of my knowledge, '.' is intrinsic to the filesystem

Yes and no (see below)

> design, whereas expansion of '~' is handled by your shell.

Yes. The shell expands ~ to your current *home* directory (and it
expands ~foo to foo's home directory).

Now to the "yes and no": yes: every directory has two entries: ".",
which resolves to the directory itself, and "..", which resolves
to the directory's parent. This is the "intrinsic" part, i.e.
the "yes" part.

To the "no" part: in the shell, names of files are often resolved
using some default mechanism. If you invoke a command, then (unless
it's a shell builtin), the shell looks for this command as an
executable in one of the directories listed in the shell environment
variable PATH. Unless you give an explicit directory, as in
"foo/command", where the shell would look in directory foo (relative
to the current working directory, CWD [1]). Thus, ./command would
look in the current working directory.

> I hope someone else here will correct or elaborate that statement if 
> necessary.

So yes, correct, but some further explanation might help in
understanding how to use it in a shell.

regards

[1] Of course, if you start your path with /, it's an absolute
   path, like /usr/local/bin/foo/command.

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

iEYEARECAAYFAljZCdMACgkQBcgs9XrR2kYn2ACcD3n8rX7DGK6ODY+XYt+ni6+N
0pAAn0IiFfFlpgrcGgAwb52n/9Uypqch
=B3UM
-END PGP SIGNATURE-



Re: DD bs=4M option on USB mem-stick creates false format

2017-03-27 Thread Greg Wooledge
On Mon, Mar 27, 2017 at 11:45:00AM +, kAt wrote:
> Yes, all this was done, the image on the stick is fine and functional!
> I did not say there was a problem with it, but the rest of the unused
> space ob the disk/mem-stick

When you write a disk-image onto a "disk" (in this case, a USB mass
storage device), you are overwriting all of the metadata at the start
of the "disk", including the partition table.  If the disk-image came
from a 4 GB disk, and you write it onto an 8 GB disk, then the 8 GB
disk will *believe* that it is a 4 GB disk, because it has the metadata
from a 4 GB disk.

As others have said, this has absolutely nothing to do with the bs=
option in dd.  All that does is make the dd command run a tiny bit
faster or slower.



Re: When specifying path to file - confused about ./ and ~/

2017-03-27 Thread The Wanderer
On 2017-03-27 at 07:14, Richard Owlett wrote:

> Please avoid trying to briefly explain.
> Please refer me to a good web page.
> I *KNOW* I'm missing something fundamental.
> A web page will either have links to whatever my underlying problem is.
> Or it will inherently use keywords for which I can search.
> Thank you.

Can you explain what your question is?

. and ~ are sufficiently distinct that I'm not sure what the nature of
your confusion could be, so I'm not sure what to potentially link you
to.

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man. -- George Bernard Shaw



signature.asc
Description: OpenPGP digital signature


Re: DD bs=4M option on USB mem-stick creates false format

2017-03-27 Thread Thomas Schmitt
Hi,

my hand made partition 3 fell victim to the deceptions of nested
partitions. It starts inside the ISO after the end of partition 2.
It should of course start after the end of partition 1.

So this is not the right start of partition 3:
>   Device Boot   Start  End  Sectors  Size Id Type
>   test.iso1  * 64  1374207  1374144  671M  0 Empty
>   test.iso2   1297212  1298619 1408  704K ef EFI (FAT-12/16/32)
>   test.iso3   1298620 15138815 13840196  6.6G 83 Linux


By bytes
  00 ff ff ff 83 ff ff ff 00 f8 14 00 00 08 d2 00
i get a more desirable result:

  Device Boot   Start  End  Sectors  Size Id Type
  test.iso1  * 64  1374207  1374144  671M  0 Empty
  test.iso2   1297212  1298619 1408  704K ef EFI (FAT-12/16/32)
  test.iso3   1374208 15138815 13764608  6.6G 83 Linux


Have a nice day :)

Thomas



Re: DD bs=4M option on USB mem-stick creates false format

2017-03-27 Thread rhkramer
On Monday, March 27, 2017 07:45:00 AM kAt wrote:
> Again the question is not so much at the vendor's magic system but why
> would a 0.6G image rent the rest of the disk useless for copying stuff
> in and out, which I have done with many live systems.

To me this is not an unexpected result.  I don't remember the details, but, 
depending on how you copy the install image to the disk, it will make the disk 
(even a much larger disk) look like it can hold only the installation disk.  

IIRC, it has to do with how many partitions you have on the disk and where you 
copy the image to--again, iirc, if you partition the disk first, and then put 
the image in one partition, it will fill only that partition.  If you put the 
image on the entire disk, it will fill the entire disk.

In your copying / dding / whatever of the image to the disk, (again, iirc) if 
you specify, for example, the target as /dev/sdc the entire disk is filled, if 
you specify /dev/sdc1, you fill only partition 1.

Whether you can then boot the image is another question.  I don't remember 
enough to give more details atm.



Re: When specifying path to file - confused about ./ and ~/

2017-03-27 Thread David
On 27 March 2017 at 22:39, Richard Owlett  wrote:
>> On 03/27/2017 01:14 PM, Richard Owlett wrote:
>  *Please avoid trying to briefly explain.*
>  *_Please refer me to a good web page._

http://www.ee.surrey.ac.uk/Teaching/Unix/unix1.html
http://www.ee.surrey.ac.uk/Teaching/Unix/unix2.html

Sections 1.4, 1.6 part 2, and 2.1 demonstrate use of '.' and '~' to
represent directory names.

To the best of my knowledge, '.' is intrinsic to the filesystem
design, whereas expansion of '~' is handled by your shell.
I hope someone else here will correct or elaborate that statement if necessary.



Re: libjasper in Stretch

2017-03-27 Thread Reco
Hi.

On Mon, Mar 27, 2017 at 12:16:25PM +, David Griffith wrote:
> 
> Why is libjasper missing from Stretch?
> 
> According to https://bugs.debian.org/812630 the stated reason for its
> removal is that libjasper has not been updated for ten years.

No, actual reason for the removal was that the only package's maintainer
stepped down. Quote:

Due to lack of time, I'm looking for a new maintainer for this package.


> In this same
> bug report is a note that this assertion is not true and a link was provided
> to a Github repository.

On January 25th maintainer stepped down. On October 25th (i.e. more than
half-year later) someone noticed that upstream was back to life.
The fact that the second assertion (i.e. 'dead upstream') was
invalidated did not do anything to first (i.e. 'package unmaintained').

> Nonetheless, the bug report was closed without
> further explanation.

The explanation was provided, in fact:

--- Reason ---
RoQA; dead upstrem, replaced by openjpeg
--

Reco



libjasper in Stretch

2017-03-27 Thread David Griffith


Why is libjasper missing from Stretch?

According to https://bugs.debian.org/812630 the stated reason for its 
removal is that libjasper has not been updated for ten years.  In this 
same bug report is a note that this assertion is not true and a link was 
provided to a Github repository.  Nonetheless, the bug report was closed 
without further explanation.


--
David Griffith
d...@661.org

A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: DD bs=4M option on USB mem-stick creates false format

2017-03-27 Thread Thomas Schmitt
Hi,

kAt wrote:
> >> Disk /dev/sdb: 7.2 GiB, 7751073792 bytes, 15138816 sectors
> [...]
> I suppose this is normal for an 8Gb usb stick. 249Mb go to firmware that
> operates the stick

Hardly. Unless it is an operating-system-on-a-stick.

The habit on the storage sector is to count by SI compliant mega and
giga. I.e. millions and billions. 7.77511 billion is not 8 giga.
(Well, you can be lucky if it is not a fake stick which maps more than
 one logical block address onto the same physical block. Or one that
 pretends to be a USB keyboard and begins to reprogram your computer.)


> So where does the false alert come from on Gparted about the 2048b?

Please show the gparted messages which worry you.


> [from other mail:] Rescatux 4.0beta
> 
> Is it a problem with the way I restore the iso, a problem with the iso
> that Rescatux forces (I wouldn't think so) or a problem with the stick
> itself?

It is most probably a problem with the partition tables in the ISO.

  wget 
'https://downloads.sourceforge.net/project/rescatux/rescatux_0_40_b11/rescatux-0.40b11.iso'

  xorriso -indev rescatux-0.40b11.iso -report_system_area plain

shows the same "mjg" layout as Debian installation ISOs:

- MBR partition table with nested partitions (some partition editors
  hate this).

- GPT partition table not properly announced by "Protective MBR" and
  with nested partitions (doubly hated).

- APM partition table with block size 2048 (look here for a suspect !)

This collection of little sins and contradictions is enough reason for
any partition editor to bail out.
We should reduce the list to the MBR nested partition sin.


> I am trying to use the empty part of the stick to copy and store
> temporatily some important files

Well understood.

You should clean out the surplus partition table headers

  iso=/dev/sdb

  # Remove GPT header block.
  # I add option conv=notrunc for the case this is done with a image file
  # rather than a device file. It prevents truncation of the file.

  dd if=/dev/zero conv=notrunc bs=512 seek=1 count=1 of="$iso"

  # Overwrite APM Block0 signature by unchanged isohybrid MBR start
  # provided by Debian package "isolinux" since oldstable Debian.
  #
  # We want these bytes, and isohdpfx.bin is their cheapest source:
  #  33  ed  90  90  90  90  90  90  90  90  90  90  90  90  90  90
  #  90  90  90  90  90  90  90  90  90  90  90  90  90  90  90  90

  dd if=/usr/lib/ISOLINUX/isohdpfx.bin conv=notrunc bs=1 count=32 of="$iso"

Then try to find a partition editor which tolerates the nested
MBR partitions.


Last resort:
If no partition editor is willing to work, we could patch some numbers
into MBR partition slot 3 to make us a partition by hand. These bytes:
  00 ff ff ff 83 ff ff ff bc d0 13 00 44 2f d3 00
at byte position 478 would do this trick:
  Device Boot   Start  End  Sectors  Size Id Type
  test.iso1  * 64  1374207  1374144  671M  0 Empty
  test.iso2   1297212  1298619 1408  704K ef EFI (FAT-12/16/32)
  test.iso3   1298620 15138815 13840196  6.6G 83 Linux


i wrote:
> > You may use fdisk to add a partition.
> > (Let's hope it will not hate that sdb2 is located inside sdb1.)

> why does this happen?

Because xorriso built it according to the BIOS+EFI isohybrid layout
as developed by Matthew Garrett (mjg) in 2010.

Rescatux people used something named
  LIVE-BUILD 5.0_A11-1; HTTP://LIVE-SYSTEMS.ORG/DEVEL/LIVE-BUILD
which obviously ran xorriso.
This layout with several partition tables shall boot on as many
BIOSes and EFIs as possible.
Usefulness for partition editors is only a secondary consideration.


> So fdisk uses things differently than gdisk, or is the one using the other?

Yes. They are different programs.
fdisk is mainly for MBR partition tables, gdisk is mainly for GPT.
Since i propose to remove the not-so-good GPT and APM, fdisk should
be your first try afterwards.


> The EFI part is sdb2, right?  Which resides inside sdb1?

sdb1 makes the whole ISO filesystem mountable.
It has partition type 0x00 (= "Empty") because else EFI would refuse
to accept the partition of type 0xef (= "EFI") which sits inside sdb1.


> So it is normal that if you write such an iso in a 64Gb stick 63Gb
> remain useless as long as this system is on it?

Good question.

Hardly any partition editor really helps to clean up the mess.
So, yes, it is quite normal that adding a partition to mjg's partition
table equipment is cumbersome.

I made some effort in the recent years to enable a less tangled layout
based solely on MBR partitions, with the EFI boot image outside the
ISO so that there emerge no nested partitions.

grub-mkrescue on the other hand offers a partition-editor-friendly
layout based entirely on GPT (if no appleisms are configured to go
into the ISO). The ISO itself is not mountable by a partition then.

But understandably, the distros are not very eager to make experiments
with their ISOs, which on the first hand shall boot and not be nice
to partition 

Re: DD bs=4M option on USB mem-stick creates false format

2017-03-27 Thread kAt
David Christensen:
> uname -a
>Always start a new thread with these:

2017-03-26 19:50:42 dpchrist@jesse ~
$ cat /etc/debian_version
9.0
$ uname -a
Linux debian9 4.9.0-2-amd64 #1 SMP Debian 4.9.13-1 (2017-02-27) x86_64
GNU/Linux

>Also, please post the URL for image.iso/Rescatux 4.0beta.

http://www.supergrubdisk.org/2016/09/24/rescatux-0-40-beta-11-released/
http://sourceforge.net/projects/rescatux/files/rescatux_0_40_b11/rescatux-0.40b11.iso/download

>Did you checksum your download?  If not, checksum it.  If the download
>checksum is bad, download and checksum again until you get a good
>checksum.  For example:

$ md5sum -c rescatux-0.40b11.iso.md5
rescatux-0.40b11.iso: OK

>In this case, it's 2^20.  Do the burn with 'bs=1M'.  Also, run 'sync'
>after 'dd' to ensure that the command prompt is not returned until all
>the bytes have been written:

Yes, all this was done, the image on the stick is fine and functional!
I did not say there was a problem with it, but the rest of the unused
space ob the disk/mem-stick

>Understand that many memstick images change once they have been
>booted, so you must checksum them immediately after burning.
>(Thankfully, debian-8.7.1-i386-xfce-CD-1.iso doesn't, so I can verify
>my USB flash drive at any time.)

I have done this 3 times bs=4M bs=1M and without a bs= tag, no difference!

>Once you are confident your USB flash drive has a good image, try
>booting it in your newest x86 computer.  If that fails, try other x86
>computers.  If none of them boot, contact your vendor.

No, the image works, it has a problem bringing up the full graphical
part on a an old pc with very little RAM and video memory on its 586
option (it has both a 64 and 32b live parts) and are both jessie based.
The debian 32bit 8,7,1 works fine on the sane machine

>If the USB flash drive boots correctly in newer computers, it is
>probably in "isohybrid" format -- meaning, it's supposed to boot when
>burned to optical media (CD-R, DVD-R, BD-R) and it's supposed to boot
>when burned to a USB drive.  I have found that this "one size fits
>most" approach doesn't boot on all computers, especially older
>computers.  If this is the case, possible solutions include:
>
>1.  Burn the ISO image to optical media and boot that.

Tough luck, the one machine has no such thing, the ill box has its cd
player jammed shut with a CD in it from 13 years ago that plays fine on
live jessie

>2.  Download a memstick.img file that is meant to be burned to a USB
>drive, burn it to a USB drive, and boot that.  (If your vendor doesn't
>offer such, you might need to find a different tool.)

Again the question is not so much at the vendor's magic system but why
would a 0.6G image rent the rest of the disk useless for copying stuff
in and out, which I have done with many live systems.

>David

Have a nice day
kAt





Re: Samsung ML-1915 printer

2017-03-27 Thread Brian
On Sun 26 Mar 2017 at 14:45:04 -0400, Doug wrote:

> 
> On 03/26/2017 10:55 AM, Rodolfo Medina wrote:
> >I'm still stuck with my problem, so I'm posting it again hoping for some 
> >help:
> >I alone don't manage to have my printer work, a Samsung ML-1915.  I installed
> >cups but the printer does not respond.  Printing jobs are stopped because of
> >"Filter failed" issue.  I also got no answer from cups mailing list.
> >
> >Thanks for any help,
> >
> >Rodolfo
> >
> Have you downloaded the ppd file from Samsung? I assume it's available
> on the Internet from Samsung.
> Here is an install routine for an Epson printer on my PCLOS system.
> The red colors are for the printer, the blue colors are for me. You
> should replace them with your own. And of course, the colors are not
> part of the install! From a root command prompt:
> 
> lpadmin -p WP4530 -E -D "linux1" -L RPNY -v socket://192.168.1.26:9100 -P 
> /opt/epson-inkjet-printer-201113w/ppds/Epson/Epson-WP-4530_Series-epson-driver.ppd.gz
> -E
> 
> linux1 is the name of my computer
> RPNY is an abbreviation of my location

Both these are optional. The case used is up to the user.

> 192.168.1.26 is the static IP of my printer
> /opt is a directory in /
> /epson-inkjet-printer-201113w is a subdirectory in /opt
> /ppds is the next subdirectory
> /Epson is the next subdirectory
> Epson-WP-4530, etc is the actual driver found in the /Epson subdirectory

On Debian the PPD is in the printer-driver-escpr package, The -P option
isn't needed. -m escpr:0/model. would be used instead.
> 
> I don't know what you put for the socket if your printer doesn't have a
> static ip; all of my devices have static ips. I find that otherwise I don't
> know what's where!

Rodolfo Medina's printer only has a USB interface.

> After you do that  open cups (http://localhost:631) and turn off sharing,
> unless you want all your computers to use the same printer all the time. If

"-o printer-is-shared=false" in the lpadmin command would save having to
use the web interface.

> you have two
> printers, things might get confusing. I have each of my two printers
> installed separately in each of my computers, and sharing turned off in
> each. Strange things happen
> if you don't do it this way. Be very careful of CASE when you put in the
> command, and watch spaces, underlines, etc.

Queue names are case-insensitive. WP4530 is the same as wp4530.
 
> When you modify cups, you may have to put in name and password. For name,
> the answer is root and for password, the answer is your own root password.

The user's username and password can be used if she is a member of the
lpadmin group. The command 'groups' would inform.

-- 
Brian.



Fwd: Re: Una de hostapd en debian 7...

2017-03-27 Thread JAP

Lo recibí por privado, lo mando a la lista por ser de interés.

El 25/03/17 a las 11:20, luisededios escribió:

Buen día amigo, y agradezco mucho que me hayas respondido.

Respondiendo tus preguntas te digo que todo lo que pretendo hacer es
crear un AP en mi laptop DELL con debian 7 para compartir la internet
'pública' que existe acá en el parque de mi pueblo.

La conexión es abierta, bueno hasta el punto de acceso wifi. Puedes
traer cualquier laptop o móvil y basta con seleccionar el AP de la
empresa de telefonía, ahora para navegar, tienes que levantar el
navegador y entrar un usuario/contraseña de una cuenta ya sea permanente
o temporal pero hay que autentificarse.

Y para configurar mi sistema en casa estoy empleando un móvil samsung
con un zona wifi(AP) y datos móviles activados que imita lared wifi del
parque. Luego mi laptop DELL donde estoy implementando mi AP wifi para
compartir la internet del parque, y... otra laptop Acer que actúa como
cliente para disfrutar de la conexión que quiero compartir.

Esta es mi configuración. Por qué hago esto? Bueno, cada cliente que
viene al parque para conectarse a internet tiene que tener una cuenta,
ya sea permanente o temporal, y con mi sistema podríamos conectar a
varios clientes, a través de mi AP y con una única cuenta.

Me entiendes ahora?  :)

--
Saludos,
Luis


Ahora entiendo.
Estás entrando mediante un Portal Cautivo.
Eso, es harina de otro costal.
Es lo más complicado para saltear en cuanto a restricciones.
No podés hacer un puente (bridging).

Tendrás que, y en orden:
1) Tomar la señal, e identificar tu máquina en el portal, mediante 
"algo" que la mantenga enlazada a nivel de "root".

2) Crear un punto de acceso con hostapd (eso ya lo tienes hecho).
3) Crear un servidor DNS en tu máquina (eso también lo tienes más o 
menos hecho).

4) Crear reglas de iptables que enmascaren el tráfico (eso te lo mandé).

La pregunta del millón: ¿cuál es el portal cautivo?
Yo únicamente en mi vida me tuve que liar con ZeroShell, y para ese, 
tengo respuesta.

Los otros, veo cómo darte una mano.

http://www.zeroshell.net/

JAP





















Re: ftp client's "ls" is "!ls"

2017-03-27 Thread Greg Wooledge
On Sun, Mar 26, 2017 at 06:34:33PM -0500, Kent West wrote:
> The "ftp" client appears to be flakey, but the
> tnftp client seems to work well, with tab-completion and other commands
> performing as expected. (The ncftp client *almost* works, but
> tab-completion doesn't see the blah.tgz.manifest file whereas it does see
> the blah.tgz file, so it gives misleading info on tab-completion.)

lftp is also worth a look.  If you're an experienced Unix shell user,
lftp is almost ridiculously intuitive.  (That said, I haven't seriously
used FTP in many years... makes me wonder what you're actually doing
with it.)



Re: When specifying path to file - confused about ./ and ~/

2017-03-27 Thread Richard Owlett

> On 03/27/2017 01:14 PM, Richard Owlett wrote:
 *Please avoid trying to briefly explain.*
 *_Please refer me to a good web page._
 I *KNOW* I'm missing something fundamental.
 A web page will either have links to whatever my underlying problem is.
 Or it will inherently use keywords for which I can search.
 Thank you.


On 03/27/2017 06:20 AM, Peter Ludikovsky wrote without useful content:

./ - the current director, usually used when running a script from it
and it not being in the search path for executables
~/ - the current users home directory

Trying to get through an interview?

Regards,
/peter






Re: No sound-inputs but sound recording FMIT

2017-03-27 Thread cbannister
On Sun, Mar 05, 2017 at 07:13:22PM -0500, Gene Heskett wrote:
> On Sunday 05 March 2017 17:16:36 John Hasler wrote:
> 
> > Gene Heskett writes:
> > > Very simple. With the glaring exception of the modern AC induction
> > > motor that in 99% of the stuff we buy, ANY other generator can also
> > > be used as a motor...
> >
> > Induction motors can function as generators.  You just need to connect
> > them to an appropriate AC source and drive them above synchronous
> > speed.
> >
> Yes, there is that exception, they need an excitation current, true, but 
> in that case they make excellent brakes as they don't like spinning 
> above synchronous any better than they like running below it.  And with 
> enough dc current you can come pretty close to stopping them dead in 
> their tracks. Certainly within one revolution.  But the armature is 
> soft, and its not possible to maintain the magnetic field from its 
> shorted turns armature long enough to extract any output power from it 
> for more than a few milliseconds.

In other words Back EMF?

I know a chap who found about that the hard way when he tried to get
something from nothing by charging a battery from a generator which he
turned by having a fan connected to it. :)

He didn't get electrocuted or anything, the fan abruptly stops turning.

-- 
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: openvpn - Não consigo acessar maquinas clientes

2017-03-27 Thread Leandro de Lima Camargo
E a sua máquina na matriz, está nessa rede “atrás” da VPN (x.y.z.201)?
O IP x.y.z.219 no servidor é o IP público? Ou IP que faz comunicação com a rede 
interna?

Como eu te falei, se o traceroute para no servidor, o próximo salto já seria o 
micro destino que está na rede VPN.
Parece que o servidor encaminha o pacote a ele mas não tem retorno, e por isso 
não aparece no traceroute.
Como isso aconteceu após o reboot, pode ser que o servidor estava configurado 
para entregar rotas às máquinas clientes e perdeu essa configuração agora.



Atenciosamente,
Leandro de Lima Camargo

> On Mar 262017, at 1:33 PM, Mauricio Neto  wrote:
> 
> Leandro boa tarde.
> 
> Vou tentar explicar melhor
> Servidor na matriz com openvpn IP x.y.z.219/24
> Rede vpn 10.a.b.0/24
> lojas IP da vpn fixo configurado via o arquivo /etc/openvpn/ccd no servidor. 
> (10.a.b.1,10.a.b.2,10.a.b.3,...)
> 
> Matriz um servidor openvpn (x.y.z.219/24) utilizando ip publico<---vpn> 
> Lojas - Cliente openvpn instalado conexão internet Velox - Acesso sem 
> problemas todas as lojas.
> 
> Minha maquina na matriz com uma rota para o servidor openvpn  x.y.z.219 (add 
> route  <10.a.b.0> 255.255.255.0 x.y.z.219)  acesso o x.y.z.219 mas não as 
> maquinas nas lojas (via vpn rede 10.a.b.0)
> Se efetuo um traceroute da minha maquina para um ip da rede vpn (exemplo 
> 10.a.b.1)  o primeiro salto é o servidor openvpn (x.y.z.219) como esperado 
> mas não roteia para as maquinas na loja rede.
>  
> Minha casa com um cliente openvpn internet Virtua <--> matriz. Acesso 
> todas as lojas (rede vpn 10.a.b.0), a maquina x.y.z.219 na matriz, mas não a 
> rede interna, "atrás" da vpn (x.y.z.200, x.y.z.201, x.y.z.202, etc)
> 
> Ficou claro?
> O que mais me intriga é que estava funcionando, depois que tive que reiniciar 
> o servidor openvpn (x.y.z.219) parou de funcionar.
> Acredito que eu esteja esquecendo de alguma rota estática  ou nat.
> OBS: neste cenário ainda não tenho firewall configurado.
> 
> Obrigado
> Mauricio Neto
>   
> 
> 
> 
> 
> Em 24/03/2017 08:31, Leandro de Lima Camargo escreveu:
>> Mauricio,
>> 
>> Eu não entendi muito bem a parte da sua máquina estar na mesma rede do 
>> servidor.
>> Teria algum diagrama da rede?
>> 
>> 
>> 
>> 
>> Atenciosamente,
>> Leandro de Lima Camargo
>> 
>> 
>>> On Mar 232017, at 3:25 PM, Mauricio Neto >> > wrote:
>>> 
>>> Leandro boa tarde.
>>> 
>>> Qualquer maquina onde tenha instalado o openvpn eu consigo acessar sem 
>>> problemas. Como teste tenho um notebook aqui na matriz via wifi para ficar 
>>> em uma rede diferente e acesso qualquer maquina clientes nas loja inclusive 
>>> uso o vnc para acesso remoto.
>>> 
>>> Meu problema esta na minha maquina na própria rede do servidor vpn que não 
>>> consigo acessar as maquinas clientes. 
>>> 
>>> Eu sei que é um problema de rota estática, ou nat (ou ambos) mas estou 
>>> perdido. 
>>> 
>>> Atenciosamente
>>> Mauricio Neto
>>> 
>>> Em 23-03-2017 13:32, Leandro de Lima Camargo escreveu:
 E um traceroute reverso? A partir de uma máquina nas lojas?
 O traceroute aparenta faltar gateway nas máquinas das lojas. O pacote 
 chega no servidor e vai pra máquina, mas não tem rota pra retornar.
 
 
 
 Atenciosamente,
 Leandro de Lima Camargo
 
 
> On Mar 232017, at 11:58 AM, Mauricio Neto  > wrote:
> 
> Amigos bom dia.
> Estou com um problema que sei que estou esquecendo de algo, mas não 
> consigo identificar a bobagem.
> 
> Instalei o openvpn em um servidor na matriz e openvpn nas lojas e tudo 
> funciona sem problema, ou seja como instalei client-to-client e ip fixo 
> usando o diretório ccd as maquinas que tem o openvpn instalado se 
> comunicam sem problemas.
> 
> Na minha maquina na matriz (dentro da rede onde esta instalado o servidor 
> openvpn) crio a rota para o servidor (route add -net  netmask 255.255.255.0 gw .
> 
> se efetuo um traceroute para uma maquina de loja recebo como primeiro 
> salto o servidor onde esta instalado o serviço openvpn e não passa mais 
> disso, não encontrando a estação desejada. No servidor onde esta o 
> openvpn consigo pingar todas as estações clientes.
> 
> O mais irritante é que quando instalei isso tudo funcionada sem 
> problemas, mas não documentei o "pulo do gato" e depois que reiniciei o 
> servidor estou apanhando com isso.
> 
> O servidor onde esta instalado o openvpn esta com roteamento ip forward 
> ativado
> Neste caso não tenho nenhuma regra de firewall ativa.
> 
> Agradecendo a ajuda
> Mauricio Neto
> 
 
>>> 
>> 
> 



Re: When specifying path to file - confused about ./ and ~/

2017-03-27 Thread Peter Ludikovsky
./ - the current director, usually used when running a script from it
and it not being in the search path for executables
~/ - the current users home directory

Trying to get through an interview?

Regards,
/peter

On 03/27/2017 01:14 PM, Richard Owlett wrote:
> Please avoid trying to briefly explain.
> Please refer me to a good web page.
> I *KNOW* I'm missing something fundamental.
> A web page will either have links to whatever my underlying problem is.
> Or it will inherently use keywords for which I can search.
> Thank you.
> 
> 



signature.asc
Description: OpenPGP digital signature


Re: DD bs=4M option on USB mem-stick creates false format

2017-03-27 Thread kAt
Thomas Schmitt:
> Hi,
> 
> kAt wrote:
>>> /sbin/fdisk -l /dev/sdb
>> Disk /dev/sdb: 7.2 GiB, 7751073792 bytes, 15138816 sectors
> 
> Is this about the correct size of the stick ?

I suppose this is normal for an 8Gb usb stick. 249Mb go to firmware that
operates the stick  I wouldn't know.

>> Units: sectors of 1 * 512 = 512 bytes
>> Sector size (logical/physical): 512 bytes / 512 bytes
>> I/O size (minimum/optimal): 512 bytes / 512 bytes
> 
> Looks like a normal block size for USB sticks and conventional disks.

So where does the false alert come from on Gparted about the 2048b?
Is it a problem with the way I restore the iso, a problem with the iso
that Rescatux forces (I wouldn't think so) or a problem with the stick
itself?

>> Device Boot   Start End Sectors  Size Id Type
>> /dev/sdb1  * 64 1374207 1374144  671M  0 Empty
>> /dev/sdb2   1297212 12986191408  704K ef EFI (FAT-12/16/32)
> 
> This is the MBR partition table. You may use fdisk to add a partition.
> (Let's hope it will not hate that sdb2 is located inside sdb1.)

why does this happen?  Again this is not an iso I created but downloaded
from Rescatux

>> echo 2 | sudo /sbin/gdisk -l /dev/sdb
>> Warning! Main partition table overlaps the first partition by 64 blocks!
>> You will need to delete this partition or resize it in another utility.
> 
> gdisk definitively hates the start of the outer partition.
> But starting at block 64 would mean that it would not be mountable.

So fdisk uses things differently than gdisk, or is the one using the other?

>> Number  Start (sector)End (sector)  Size   Code  Name
>>   2 1297212 1298619   704.0 KiB   0700  ISOHybrid1
> 
> The EFI partition is more to its taste.

The EFI part is sdb2, right?  Which resides inside sdb1?

> As said, the GPT of an ISO with "mjg" layout is quite useless
> and i'd zeroize its header block at block address 1.

So it is normal that if you write such an iso in a 64Gb stick 63Gb
remain useless as long as this system is on it?  Strange but still
clueless of what all this means ...

> Have a nice day :)

You too

> Thomas

I am very far from undersdanding this but it is interesting to keep at it?

kAt



When specifying path to file - confused about ./ and ~/

2017-03-27 Thread Richard Owlett

Please avoid trying to briefly explain.
Please refer me to a good web page.
I *KNOW* I'm missing something fundamental.
A web page will either have links to whatever my underlying problem is.
Or it will inherently use keywords for which I can search.
Thank you.




Re: [1/2 HS] syntaxe qui ne va plus depuis upgrade MySQL

2017-03-27 Thread andre_debian
On Sunday 26 March 2017 23:14:01 Christian Quentin wrote:
> OK. Donc tu veux obtenir un cumul des votes pour chaque logo.
> Tu souhaites également les trier pour avoir les logos les plus 
> populaires en tête de liste
> La requête est donc :
> SELECT images, logos, COUNT(logos) AS total
> FROM tablelogo
> GROUP BY images, logos
> ORDER BY total DESC
> (quasi identique à ta requête initiale sauf pour le GROUP BY)

C'est presque gagné,

je reçois bien les contenus du champ "images"'
mais comment récupérer la valeur de "total" du champ "logos",
c'est à dire le nombre de voix par ligne ?

Merci, @+

André



  1   2   >