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

2017-03-28 Thread songbird
Thomas Schmitt wrote:
> songbird wrote:

>> always give an option to do a dry run without any actual changes
>> being made
>
> But what difference would that make ?

  just me and a preference to err on the side
of caution when dealing with devices that might
alter a very basic thing.


> If the program thinks it's not ok, then it will refuse.
> If it thinks it's ok, then shall the user refrain nevertheless ?

  maybe, if they just want to see what it says
it will do.

  also, consider that bugs do happen and sometimes
a dry run switch will discover them before it does
the actual write to the device.


> Of course it's safer to know what is on the stick or to inspect
> it by commands like "fdisk -l" and "isoinfo -d".

  yes, always a good idea.

  mostly the idea is to prevent "wrong device" or a fumble
finger kind of error.  with some things i know it is ok to
ask for forgiveness instead of asking for permission, but
when it comes down to devices and partition tables i put 
them in the more paranoid group.


> Have a nice day :)

  ya, was excellent.


  songbird



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

2017-03-28 Thread songbird
kAt wrote:
> All I can say is that I feel honored that some useful code was produced
> with my problem statement as an inspiration.
> I am doing research on the topic trying to learn all that feels like a
> huge gap of how disks and data relate.
>
> Have a nice day Thomas

  it is very useful to think about for me too
at the moment i'm considering how to set up one
or two USB sticks and getting them ready for 
the stretch installer.  i will likely need to 
use them for a new machine in the next few weeks.


  songbird



Re: Future upgrade from Stretch RC2 to release

2017-03-28 Thread songbird
Niclas Arndt wrote:
...
> Hi,
>
>
> I am considering changing from OpenSUSE to Debian for my e-mail server but =
> I expect a learning curve. I'm sorry if my questions are basic, but please =
> bear with me.

  saying what kind of experience you have so far
would help a great deal.  i'm assuming you have some
experience.


> * Is there any chance that Stretch will be stable by 2017-05-16 when OpenSU=
> SE Leap 42.1 goes EOL?

  because you mention a learning curve, i'd just assume
that you won't have this ready to go by then...  not
because i doubt you can do it, i just have no idea, so
i'm always willing to err on the side of giving myself
enough time to make sure things are covered that need
to be covered.

  Things To Do List:

  ...


> * Is it advisable to install Stretch RC2 today, start configuring the serve=
> r, and later upgrade to the release version before going into productive us=
> e? Is there a risk for problems with such an approach?

  i think that you are seeing the final months, but with
over 200RC bugs it will likely be longer.  however, perhaps
some miracle bug squashing parties will happen and it will
go sooner.  anyways, whatever does happen i don't think the
final shape of the release is going to change to a huge
degree now.  and noting your comment about not wanting to
deal with configuration changes frequently.  updating from
Jessie to Stretch will be more work IMO.


> * Should I instead install 8.7 and later upgrade to Stretch? The only reaso=
> n for me to look for an alternative to OpenSUSE is the short productive lif=
> e of each release and too frequent configuration changes.

  no, just go with Stretch as it stands now and follow along
as you are learning.  it will be a good way to learn some
of the basics you'll need.


> * Does anybody know if Squirrelmail is working properly with PHP7 now? (I k=
> now that this is off-topic.)

  no idea on these.  someone else will have to address...

>
> Grateful for your input. Thanks in advance.

  y.w.


  songbird



Re: Future upgrade from Stretch RC2 to release

2017-03-28 Thread Dan Ritter
On Tue, Mar 28, 2017 at 07:44:15PM +, Niclas Arndt wrote:
> I am considering changing from OpenSUSE to Debian for my e-mail server but I 
> expect a learning curve. I'm sorry if my questions are basic, but please bear 
> with me.
> 
> 
> * Is there any chance that Stretch will be stable by 2017-05-16 when OpenSUSE 
> Leap 42.1 goes EOL?

Maybe.

> * Is it advisable to install Stretch RC2 today, start configuring the server, 
> and later upgrade to the release version before going into productive use? Is 
> there a risk for problems with such an approach?

Debian was the first distro to make promises that you could
upgrade in place. It's very good at that.

> * Should I instead install 8.7 and later upgrade to Stretch? The only reason 
> for me to look for an alternative to OpenSUSE is the short productive life of 
> each release and too frequent configuration changes.

I would recommend that.

> * Does anybody know if Squirrelmail is working properly with PHP7 now? (I 
> know that this is off-topic.)

I don't know, no. Alternative web mail clients: Roundcube is packaged
in Debian and works pretty well; Rainloop is not packaged in Debian and
also works pretty well.

-dsr-



Re: Wan/Lan problem

2017-03-28 Thread Dan Ritter
On Tue, Mar 28, 2017 at 04:46:02PM -0700, Mike McClain wrote:
> Howdy,
> I have a WAN/LAN challenge I'm hoping for help with.
> 
> I'm runniing Debian 7.11 on a Pentium 3 with 250MB ram.
> 
> mike@/deb7:~> uname -a
> Linux playground 3.2.0-4-686-pae #1 SMP Debian 3.2.84-2 i686 GNU/Linux
> 
> 
> The situation is this:
> 
>  phoneeth0 eth1
> AT|   ||   ||   |---|   |
> AT modem/ Linux my Win2K
> router   box router   box
> 
> When eth0 is up and eth1 down,
> the Linux box can access the web.
> 'ping ATTrouter' works.
> When eth0 is up and eth1 up,
> the Linux box can not access the web.
> the Win2K box can access the web.
> the Linux box can not access the Win2K shares.
> 'ping ATTrouter' fails.
> 'ping -Ieth0 ATTrouter' works.
> When eth0 is down and eth1 up,
> the Linux box can access the Win2K shares.
> When eth0 is down and eth1 down,
> it's quiet.
> 
> The ATT router is set to 'Pass Through' giving the Linux box the ATT
> router's IP address.
> The Linux box is set to use DHCP.
> This might explain why I loose the LAN connection when eth0 up.
> 
> Why can the Linux box not see the web while the Win2K box can?
> 
> I've not found or at least recognized the problem in the HowTo's.
> Pointer's or suggestions?
> 
> Thanks,
> Mike
> 
> 
> # The loopback network interface
> auto lo
> iface lo inet loopback
> 
> # The primary network interface
> allow-hotplug eth1
> #   eth0 = onboard eth port
> iface eth0 inet dhcp
> #   eth1 = 3Com PCI 3c905C card
> iface eth1 inet static
> address 192.168.1.2
> netmask 255.255.255.0
> network 192.168.1.0
> broadcast 192.168.1.255
> # dns-* options are implemented by the resolvconf package, if 
> installed
> dns-nameservers 208.67.222.222 208.67.220.220

You're going to end up discovering that this is a problem in IP
assignment, routing, forwarding, or something very similar.

What masquerading are you doing? What IP forwarding? What
routing entries are present?

-dsr-



Re: Firmware

2017-03-28 Thread Cristian Mitchell
El 28 de marzo de 2017, 22:41, javier frf escribió:

> El día 28 de marzo de 2017, 22:33, AFS  escribió:
> > Buenas noches, tengo un problema con mi laptop Acer E15 mi adaptador de
> wifi
> > es Qualcomm Atheros QCA9377 802.11ac Wireless.
> >
> > Al iniciar marca error de firmware.
> >
> > Firmware: failed to load ath10k/QCA9377/hw1.0/firmware-4.bin
> >
> > Y de ahí no paso, me pueden orientar por favor de donde descargo su
> firmware
> > correcto.
> >
> > Gracias.
> Ahi tiene estimado.
>
> https://packages.debian.org/stretch/firmware-atheros
>
>
> Saludos!
>
>
otro metodo seria
apt-file search firmware-4.bin

he instalas el archivo que te indica que tiene lo que buscas


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

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


Re: Firmware

2017-03-28 Thread javier frf
El día 28 de marzo de 2017, 22:33, AFS  escribió:
> Buenas noches, tengo un problema con mi laptop Acer E15 mi adaptador de wifi
> es Qualcomm Atheros QCA9377 802.11ac Wireless.
>
> Al iniciar marca error de firmware.
>
> Firmware: failed to load ath10k/QCA9377/hw1.0/firmware-4.bin
>
> Y de ahí no paso, me pueden orientar por favor de donde descargo su firmware
> correcto.
>
> Gracias.
Ahi tiene estimado.

https://packages.debian.org/stretch/firmware-atheros


Saludos!



Firmware

2017-03-28 Thread AFS
Buenas​ noches, tengo un problema con mi laptop Acer E15 mi adaptador de
wifi es Qualcomm Atheros QCA9377 802.11ac Wireless.

Al iniciar marca error de firmware.

Firmware: failed to load ath10k/QCA9377/hw1.0/firmware-4.bin

Y de ahí no paso, me pueden orientar por favor de donde descargo su
firmware correcto.

Gracias.


Future upgrade from Stretch RC2 to release

2017-03-28 Thread Niclas Arndt
Hi,


I am considering changing from OpenSUSE to Debian for my e-mail server but I 
expect a learning curve. I'm sorry if my questions are basic, but please bear 
with me.


* Is there any chance that Stretch will be stable by 2017-05-16 when OpenSUSE 
Leap 42.1 goes EOL?


* Is it advisable to install Stretch RC2 today, start configuring the server, 
and later upgrade to the release version before going into productive use? Is 
there a risk for problems with such an approach?


* Should I instead install 8.7 and later upgrade to Stretch? The only reason 
for me to look for an alternative to OpenSUSE is the short productive life of 
each release and too frequent configuration changes.


* Does anybody know if Squirrelmail is working properly with PHP7 now? (I know 
that this is off-topic.)


Grateful for your input. Thanks in advance.


Niclas


Wan/Lan problem

2017-03-28 Thread Mike McClain
Howdy,
I have a WAN/LAN challenge I'm hoping for help with.

I'm runniing Debian 7.11 on a Pentium 3 with 250MB ram.

mike@/deb7:~> uname -a
Linux playground 3.2.0-4-686-pae #1 SMP Debian 3.2.84-2 i686 GNU/Linux


The situation is this:

 phoneeth0 eth1
AT|   ||   ||   |---|   |
AT modem/ Linux my Win2K
router   box router   box

When eth0 is up and eth1 down,
the Linux box can access the web.
'ping ATTrouter' works.
When eth0 is up and eth1 up,
the Linux box can not access the web.
the Win2K box can access the web.
the Linux box can not access the Win2K shares.
'ping ATTrouter' fails.
'ping -Ieth0 ATTrouter' works.
When eth0 is down and eth1 up,
the Linux box can access the Win2K shares.
When eth0 is down and eth1 down,
it's quiet.

The ATT router is set to 'Pass Through' giving the Linux box the ATT
router's IP address.
The Linux box is set to use DHCP.
This might explain why I loose the LAN connection when eth0 up.

Why can the Linux box not see the web while the Win2K box can?

I've not found or at least recognized the problem in the HowTo's.
Pointer's or suggestions?

Thanks,
Mike

#   /etc/hosts
192.168.1.254ATTrouter
#192.168.1.64outbound.att.netatt
127.0.0.1   localhost
192.168.1.2 playground  play
192.168.1.3 south40 s40
192.168.1.1 router
# --- end hosts

# /etc/networks
default 0.0.0.0
loopback127.0.0.0
link-local  169.254.0.0
localnet192.168.1.0
# --- end networks

# /etc/resolv.conf
domain attlocal.net
search attlocal.net
nameserver 192.168.1.254
# --- end resolv.conf

#   /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth1
#   eth0 = onboard eth port
iface eth0 inet dhcp
#   eth1 = 3Com PCI 3c905C card
iface eth1 inet static
address 192.168.1.2
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 208.67.222.222 208.67.220.220
# --- end interfaces

--
"I reckon some folks figure it a compliment to be called 'broad-minded.'
Back home, broad-minded is just another way of saying a feller is too
lazy to form an opinion."- Will Rogers



Re: [go-nuts] Connect to a mainframe

2017-03-28 Thread Rodolfo
I not know nothing about mainframe, but in my work we have one IBM, I do
not know model, some applications that we have connect to it with Host,
Port, Database, User and Password, I need investigate then provide more
informations.

Thanks and regards,

Rodolfo Azevedo.

2017-03-28 19:07 GMT-04:00 Ian Lance Taylor :

> On Tue, Mar 28, 2017 at 3:12 PM, Rodolfo  wrote:
> > Hi, not work for me, show this error:
> >
> > package ibm.com/mainframe: unrecognized import path "ibm.com/mainframe"
>
>
> Unfortunately I think that was a joke.
>
> You are going to need to provide more information.  What kind of
> connection do you want?  What kind of mainframe?  Do you have
> something that works today, written in a different language?
>
> Ian
>
>
> > Can you help me?
> >
> > Thanks
> >
> > 2017-03-28 18:03 GMT-04:00 Aram Hăvărneanu :
> >>
> >> go get ibm.com/mainframe
> >
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "golang-nuts" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to golang-nuts+unsubscr...@googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
>


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

2017-03-28 Thread kAt
All I can say is that I feel honored that some useful code was produced
with my problem statement as an inspiration.
I am doing research on the topic trying to learn all that feels like a
huge gap of how disks and data relate.

Have a nice day Thomas
kAt

Thomas Schmitt:
> Hi,
> 
> i wrote a small program which shall make a USB stick with isohybrid ISO
> more digestible for partition editors by removing all partition tables
> except MBR partitions.
> It then creates a new partition in the first MBR partition slot which
> is found with block count 0.
> 
>   usage: ./make_isombr_part file_path partition_end partition_type
> 
>  Creates a partition in a free slot of an isohybrid MBR in an ISO.
>  Removes GPT and APM signatures if present.
>  file_path must lead to a file or device with isohybrid ISO.
>  partition_end tells the number of 512-byte blocks of device.
>  partiton_end value "auto" means full number of device blocks.
>  partition_type is a hex number in the range of 00 to ff.
>  Type examples: 83 = Linux , 0c = FAT32 , 17 = Hidden NTFS
> 
> Binary compiled on Debian 8 (you may need to give it x-permission after
> download):
> 
>   http://scdbackup.webframe.org/make_isombr_part
> 
> MD5: 4856af2c1b50a775325a3e6c09d7d9bc
> 
> Source code:
>   http://scdbackup.webframe.org/make_isombr_part.c
> 
> The argument "auto" currently works only on Linux kernels.
> On other systems one has to give the block number explicitely.
> 
> 
> 
> See a test run with rescatux ISO on /dev/sdc (any current Debian i386
> or amd64 ISO would be suitable, too).
> 
> Still less dangerous than manipulating /dev files as superuser is
> to give the world temporary permission to the one stick in question:
> 
>   $ sudo chmod o+rw /dev/sdc
> 
> (The program is supposed to refuse if it does not find an isohybrid ISO.
>  But better do not bet on those safety measures.)
> 
> Let the program remove APM and GPT and add a MBR partition:
> 
>   $ chmod u+x ./make_isombr_part
> 
>   $ ./make_isombr_part /dev/sdc auto 83
>   Note: Storage capacity of '/dev/sdc' : 3915776 blocks
>   Note: Wrote MBR partition slot 3, type 0x83, start 1374208, blocks 2541568
>   Note: Removed APM signature
>   Note: Removed GPT signature at block 1
>   Note: Removed GPT signature at block 1374207
> 
> Afterwards, fdisk reports the new partiton table:
> 
>   $ /sbin/fdisk -l /dev/sdc
>   Disk /dev/sdc: 1.9 GiB, 2004877312 bytes, 3915776 sectors
>   ...
>   Device Boot   Start End Sectors  Size Id Type
>   /dev/sdc1  * 64 1374207 1374144  671M  0 Empty
>   /dev/sdc2   1297212 12986191408  704K ef EFI (FAT-12/16/32)
>   /dev/sdc3   1374208 3915775 2541568  1.2G 83 Linux
> 
> When done, exclude the world from directly reading and altering the stick
> content:
> 
>   $ sudo chmod o-rw /dev/sdc
> 
> Best unplug the stick and put it in again, so that the operating system
> takes notice of the new partition table situation.
> 
> 
> 
> It would be interesting to see how various partition editors react on
> this state of the USB stick. Can they reduce the size of partition 3 ?
> Can they remove partition 3 and add on new one ?
> 
> 
> 
> Have a nice day :)
> 
> Thomas
> 
> 



Re: UID mismatch across systems

2017-03-28 Thread Ross Boylan
I made some discoveries on a test system:

root@IDTest:/etc# date; usermod -u 204 Debian-exim
Tue Mar 28 15:01:19 PDT 2017
usermod: user Debian-exim is currently used by process 664

and this left everything, including the running process and passwd untouched.

So I don't have to worry about what happens when I usermod the id when
a process is running; usermod won't do that.  Of course I can still
edit the passwd file by hand, but by itself I assume this will leave
the uid of existing processes and files unchanged (except they will
display differently in ls or ps).

Also, after I stopped exim4 and executed the usermod command above,
only the passwd file changed.  So that's easy enough to do offline.

As documented, usermod changes the uids of files in the user home
directory and below, but leaves others untouched:
root@IDTest:/etc# find / -uid 104 -ls
find: `/proc/5056/task/5056/fd/5': No such file or directory
find: `/proc/5056/task/5056/fdinfo/5': No such file or directory
find: `/proc/5056/fd/5': No such file or directory
find: `/proc/5056/fdinfo/5': No such file or directory
1317644 drwxr-s---   2 104  adm  4096 Mar 28 12:52
/var/log/exim4
1314864 -rw-r-   1 104  adm   756 Mar 28 14:56
/var/log/exim4/mainlog
 109430 drwxr-x---   2 104  Debian-exim   40 Mar 28 15:03 /run/exim4
root@IDTest:/etc# find / -uid 204 -ls
find: `/proc/5057/task/5057/fd/5': No such file or directory
find: `/proc/5057/task/5057/fdinfo/5': No such file or directory
find: `/proc/5057/fd/5': No such file or directory
find: `/proc/5057/fdinfo/5': No such file or directory
1317664 drwxr-x---   5 Debian-exim Debian-exim 4096 Mar 28
12:50 /var/spool/exim4
1317684 drwxr-x---   2 Debian-exim Debian-exim 4096 Mar 28
12:50 /var/spool/exim4/input
1317694 drwxr-x---   2 Debian-exim Debian-exim 4096 Mar 28
12:50 /var/spool/exim4/msglog
1317674 drwxr-x---   2 Debian-exim Debian-exim 4096 Mar 28
12:50 /var/spool/exim4/db

Ross



Re: Samsung ML-1915 printer

2017-03-28 Thread Rodolfo Medina
Brian  writes:

> On Mon 27 Mar 2017 at 19:57:01 +0100, Brian wrote:
>
> I give in! Your ULD package doesn't work for you on unstable. Let us see
> how mine goes on.


Many thanks.  I'll be testing everyhing in the next few days and then let you
know...  Let's hope it's worked out now...

Thanks again,

Rodolfo



Re: Fallo del disco USB

2017-03-28 Thread Javier Marcon
El 28/03/17 a las 17:45, Josu Lazkano escribió:
> Gracias!
>
> He hecho un "fsck.ext4 /dev/sdg1 y me ha detectado algunos bloques
> dañados, se supone que lo ha reparado.
Mi recomendación es que te fijes con el programa badblocks para saber si
fué un error lógico o un error físico.

Saludos,

Javier.

-- 
Eco red Natural.
Venta de productos orgánicos y BPA.
Totalmente naturales.
4742-1581 / 156-424-0793
ecorednatu...@gmail.com



Re: Fallo del disco USB

2017-03-28 Thread Josu Lazkano
Gracias!

He hecho un "fsck.ext4 /dev/sdg1 y me ha detectado algunos bloques
dañados, se supone que lo ha reparado.

Ahora cuando ejecuto esta bien.

¿Se supone que me puedo fiar del disco? ¿O mejor lo cambio? No tengo
datos sensibles, solo tengo peliculas que descargo de internet.

Un saludo.

El día 28 de marzo de 2017, 14:04, Cristian Mitchell
 escribió:
>
>
> El 28 de marzo de 2017, 08:51, Ricardo Frydman
> escribió:
>>
>> Si no tienes un respaldo reciente, hazlo ya mismo, y anda mirando que
>> disco compraras para reemplazarlo.
>> Le queda poca vida.
>>
>> 2017-03-28 5:09 GMT-03:00 Josu Lazkano :
>>>
>>> Hola,
>>>
>>> He añadido un disco USB de 3TB en mi server Debian Jessie con EXT4:
>>>
>>> # mount | grep sdg
>>> /dev/sdg1 on /mnt/DiscoUSB type ext4 (rw,relatime,data=ordered)
>>>
>>> He copiado algunos ficheros y me da este mensaje en el dmesg:
>>>
>>> [971136.045782] sd 8:0:0:0: [sdg] tag#0 FAILED Result: host
>>> yte=DID_OK driverbyte=DRIVER_SENSE
>>> [971136.045790] sd 8:0:0:0: [sdg] tag#0 Sense Key : Medium
>>> rror [current]
>>> [971136.045796] sd 8:0:0:0: [sdg] tag#0 Add. Sense: Unrecov
>>> red read error
>>> [971136.045802] sd 8:0:0:0: [sdg] tag#0 CDB: Read(10) 28 00
>>> 12 b8 01 00 00 00 01 00
>>> [971136.045807] blk_update_request: critical medium error,
>>> ev sdg, sector 2512390144
>>> [971136.045930] EXT4-fs error (device sdg1): ext4_wait_bloc
>>> _bitmap:503: comm kworker/u8:3: Cannot read block bitmap -
>>> lock_group = 9584, block_bitmap = 314048512
>>> [971136.049338] EXT4-fs (sdg1): Delayed block allocation fa
>>> led for inode 176160875 at logical offset 1124352 with max
>>> locks 2048 with error 5
>>> [971136.049428] EXT4-fs (sdg1): This should not happen!! Da
>>> a will be lost
>>>
>>> ¿Es un error fisico? ¿se podria arreglar?
>>>
>>> Muchas gracias por vuestra ayuda.
>>>
>>> Un saludo.
>>
>>
>>
>>
>> --
>> Ricardo A.Frydman
>> Administrador Unix Senior - Proyectos - HPE
>> Sun Certified System Administrator - Solaris 10
>>
>> pgp.mit.edu ID A04134BD
>>
>>
>> "Aequam memento rebus in arduis servare mentem"
>
>
> proba con fsck primero he instala una herramienta S.M.A.R.T
>
> --
> MrIX
> Linux user number 412793.
> http://counter.li.org/
>
> las grandes obras,
> las sueñan los santos locos,
> las realizan los luchadores natos,
> las aprovechan los felices cuerdo,
> y las critican los inútiles crónicos,
>



-- 
Josu Lazkano



Re: [OT] Re: Issue with notebook (maybe the battery?)

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

On Tue, Mar 28, 2017 at 06:47:58PM +0100, Joe wrote:
> On Tue, 28 Mar 2017 14:14:15 -0300
> Daniel Bareiro  wrote:
> 
> > Hi, Joe.
> > 
> 
> > 
> > >> 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...  
> > 
> > But in any case, whether the problem is in the charger or the
> > battery, I suppose that to solve the issue I will have to change the
> > part. I suppose if the problem is in the charger, the cost will be
> > less compared to a battery.
> 
> Yes, but it is unlikely that a schematic diagram of the laptop
> motherboard will be available. It shouldn't be too hard to locate the
> parts used in charging, but if the main IC is faulty, it may not be
> available in your part of the world [...]

It's worth stressing on this point, since I've the suspicion that there
is a misunderstanding on your part, Daniel: the charge controller isn't
that external brick: that is probably just a more or less dumb power
source. The charge controller is buried somewhere in your laptop (as
Joe puts it, on the laptop's motherboard).

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

iEYEARECAAYFAljaubEACgkQBcgs9XrR2kYLvQCdHVTllxrh4v4wKNSBYeoXza5Z
5HAAn0tFw1nbE+tMmiiBeYu4N2B8aHbm
=m4OK
-END PGP SIGNATURE-



Re: zenity --text-info autoscrolling?

2017-03-28 Thread Floris

Op Tue, 28 Mar 2017 04:03:20 +0200 schreef 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



Is it possible to update to version 3.12 or higher?
https://download.gnome.org/sources/zenity/3.12/zenity-3.12.1.news
Zenity 3.12.1
...
- Bug #667711 - man page points to nonexisting doc (Arx Cruz)
- Bug #600533 zenity --text-info should have an auto scroll option  
(Arx Cruz)
- Bug #534935 Need hability to specify default answer in  
--question dialog (Berislav Kovacki)

...

Floris



Re: Issue with notebook (maybe the battery?)

2017-03-28 Thread David Wright
On Tue 28 Mar 2017 at 15:46:36 (-0300), Daniel Bareiro wrote:
> I was observing these values:
> 
> 
> $ upower -i /org/freedesktop/UPower/devices/battery_BAT0
> (...)
>   battery
> (...)
> percentage:  37%
> capacity:81,5333%
> (...)
> 
> 
> But I'm not sure if that will be indicator of something. "Percentage"
> seems to be the battery charge level. Looking at the upower
> documentation I found this [1]:

Yes, I just looked at the earlier lines that I'm familiar with, viz.

POWER_SUPPLY_ENERGY_FULL_DESIGN=6000
POWER_SUPPLY_ENERGY_FULL=4892
POWER_SUPPLY_ENERGY_NOW=1879

> Yes, as I mentioned in another message in this thread, I have already
> contacted the supplier to go asking for availability and prices.

I'll cross my fingers for you. Please do likewise as these are
the figures from one of my laptops:

Charger in:
POWER_SUPPLY_CHARGE_FULL_DESIGN=380
POWER_SUPPLY_CHARGE_FULL=872000
POWER_SUPPLY_CHARGE_NOW=380

Charger out:
POWER_SUPPLY_CHARGE_FULL_DESIGN=380
POWER_SUPPLY_CHARGE_FULL=872000
POWER_SUPPLY_CHARGE_NOW=828000

IOW my baseline after 8 years is about 20% capacity.

Cheers,
David.



Re: ipv6 apt issue

2017-03-28 Thread Matt Zagrabelny
On Tue, Mar 28, 2017 at 1:50 PM, Sven Joachim  wrote:

> On 2017-03-28 13:24 -0500, Matt Zagrabelny wrote:
>
> > I'm hitting an IPv6 snafu.
> >
> > I've got a dual stack host and when doing various apt-y things I attempt
> to
> > connect to:
> >
> > # apt update
> > 0% [Connecting to ftp-chi.osuosl.org (2600:3402:200:227::2)
> >
> > but it hangs and doesn't seem to complete its connection.
>
> Apparently ftp-chi.osuosl.org works for me, can you reach other IPv6
> sites?
>

Well...

% ping ftp-chi.osuosl.org
PING ftp-chi.osuosl.org(ftp-chi.osuosl.org (2600:3402:200:227::2)) 56 data
bytes
^C
--- ftp-chi.osuosl.org ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3052ms

Not there.


% ping google.com
PING google.com(ja-in-x8b.1e100.net (2607:f8b0:4001:c0c::8b)) 56 data bytes
64 bytes from ja-in-x8b.1e100.net (2607:f8b0:4001:c0c::8b): icmp_seq=1
ttl=41 time=24.4 ms
64 bytes from ja-in-x8b.1e100.net (2607:f8b0:4001:c0c::8b): icmp_seq=2
ttl=41 time=24.0 ms
^C
--- google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 24.097/24.259/24.421/0.162 ms

Yep.

% ping ftp.us.debian.org
PING ftp.us.debian.org(debian.gtisc.gatech.edu (2610:148:1f10:3::89)) 56
data bytes
64 bytes from debian.gtisc.gatech.edu (2610:148:1f10:3::89): icmp_seq=1
ttl=51 time=30.8 ms
64 bytes from debian.gtisc.gatech.edu (2610:148:1f10:3::89): icmp_seq=2
ttl=51 time=31.0 ms
^C
--- ftp.us.debian.org ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 30.844/30.926/31.009/0.194 ms

Yep.



> > If I look at my sources lists:
> >
> > % grep http /etc/apt/sources.list.d/*.list | sed -e 's/.*http:\/\///' |
> uniq
> > ftp.us.debian.org/debian/ experimental main
> > ftp.us.debian.org/debian/ jessie main contrib non-free
> > ftp.us.debian.org/debian/ sid main contrib non-free
> > ftp.us.debian.org/debian/ stretch main contrib non-free
> >
> > I don't have an /etc/apt/sources.list file. To my observation, my host
> > should only be connecting ftp.us.debian.org.
>
> That's correct, but there are many machines behind ftp.us.debian.org.


DNS queries return all the possible entries (even for round robin.) The
resolver chooses one.


>
> > Which has the following v6 addresses:
> >
> > % dig ftp.us.debian.org  +short
> > 2610:148:1f10:3::89
> > 2620:0:861:1:208:80:154:15
> >
> > So, where does the above ftp-chi.osuosl.org (2600:3402:200:227::2)
> coming
> > from?
>
> >From DNS round robin, see https://en.wikipedia.org/wiki/Round_robin_DNS.
>
>
The entries in the RR were returned in the above dig command. Those are the
only two  records for ftp.us.debian.org. 2600:3402:200:227::2 was not
part of the round robin entries.

Here is 10,000 queries for the  records of ftp.us.debian.org:

% for f in `seq 1 1`; do
dig ftp.us.debian.org  +short
done | sort | uniq
2610:148:1f10:3::89
2620:0:861:1:208:80:154:15

I (always) get the same two addresses.

Looking at the v4 systems for ftp.us.debian.org:

% dig ftp.us.debian.org +short | sort
128.30.2.26
128.61.240.89
208.80.154.15
64.50.233.100
64.50.236.52

% for host in `dig ftp.us.debian.org a +short | sort`; do
echo "$host => $(dig -x $host +short)"
done
128.30.2.26 => mirror-0.csail.mit.edu.
128.61.240.89 => debian.gtisc.gatech.edu.
208.80.154.15 => sodium.wikimedia.org.
64.50.233.100 => ftp-nyc.osuosl.org.
64.50.236.52 => ftp-chi.osuosl.org.

and the v6 systems for ftp.us.debian.org:

% for host in `dig ftp.us.debian.org  +short | sort`; do
echo "$host => $(dig -x $host +short)"
done
2610:148:1f10:3::89 => debian.gtisc.gatech.edu.
2620:0:861:1:208:80:154:15 => sodium.wikimedia.org.

Curiously, when running various apt commands my system does seem to want to
connect to:

% dig  ftp-nyc.osuosl.org. +short
2600:3404:200:237::2

% dig  ftp-chi.osuosl.org. +short
2600:3402:200:227::2

Even though those systems are not listed in the round robin set for the
 records of ftp.us.debian.org.

I'm puzzled.

-m


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

2017-03-28 Thread David Wright
On Tue 28 Mar 2017 at 16:10:57 (+), Curt wrote:
> On 2017-03-28, David Wright  wrote:
> > 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.
> >> >> 
> > 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.
> 
> Well, I actually checked further down than the head (let's refer to it
> as the body) and I did systematically discover version and package
> names, so I think the output is more coherent than you're letting on but
> who cares?  We know what is in those files (thank you David #1--yes I'm
> relegating you to David #2, sorry). That is the point of my post in the
> first place. It is not true what you posited, that it is tricky to know
> what those files contain.

Well, I have _not_ looked further than the head, and I'm also unable
to look at amd64 on wheezy, but i386 will do for my purpose.
Here's your post again:

curty@einstein:/var/cache/apt$ strings pkgcache.bin | less

Standard .deb
amd64
/var/lib/apt/lists/httpredir.debian.org_debian_dists_wheezy_main_binary-amd64_Packages
httpredir.debian.org
Debian Package Index
0~r11863-2
games
0ad-data
0~r11863
0~r11863-2
gamin
libboost-signals1.49.0
1.49.0-1
libc6
2.11
libcurl3-gnutls


and here's the i386 equivalent of where it originates:

Package: 0ad
Version: 0~r11863-2
Installed-Size: 7745
Maintainer: Debian Games Team

Architecture: i386
Depends: 0ad-data (>= 0~r11863), 0ad-data (<= 0~r11863-2), gamin |
fam, libboost-signals1.49.0 (>= 1.49.0-1), libc6 (>= 2.11),
libcurl3-gnutls (>= 7.16.2), libenet1a, libgamin0 | libfam0,
libgcc1 (>= 1:4.1.1), libgl1-mesa-glx | libgl1, libjpeg8 (>= 8c),
libmozjs185-1.0 (>= 1.8.5-1.0.0+dfsg), libnvtt2, libopenal1,
libpng12-0 (>= 1.2.13-4), libsdl1.2debian (>= 1.2.11),
libstdc++6 (>= 4.6), libvorbisfile3 (>= 1.1.2), libwxbase2.8-0 (>= 2.8.12.1),
libwxgtk2.8-0 (>= 2.8.12.1), libx11-6, libxcursor1 (>> 1.1.2),
libxml2 (>= 2.7.4), zlib1g (>= 1:1.2.0)
Pre-Depends: dpkg (>= 1.15.6~)
Description: Real-time strategy game of ancient warfare
Homepage: http://www.wildfiregames.com/0ad/
Description-md5: d943033bedada21853d2ae54a2578a7b
Tag: game::strategy, implemented-in::c++, interface::x11,
role::program,
 uitoolkit::sdl, uitoolkit::wxwidgets, use::gameplaying,
 x11::application
Section: games
Priority: optional
Filename: pool/main/0/0ad/0ad_0~r11863-2_i386.deb
Size: 2226038
MD5sum: 93699f007bcd8a51e1ab5fba2ecdc400
SHA1: 602e20176706d3cc7535f01ffdbe91b270ae5012
SHA256:
2b092f5682ae14351d6f7e47a7c113b7c0cc9ec71046a2e3ecf95eb453909ad8

Now you can see why these two lines appear in your post:

libc6
2.11

but you won't find version 2.11 on you system (unless you're running
aqueeze); you've got 2.13. So when you venture further into the body
of your strings file, and you come across

package-name
version

how are you going to know whether it's the version of a package,
or just some casual mention under one of the other headings?
You call that coherence?

> We know (although it is not documented in the
> man page(s) because people in the know figure these descriptions too
> low-level for mortals like us. Maybe therein lies the trickiness.

No, the trickiness is because it's binary: it's organised for the
computer and disorganised for us humans.

> > 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.
> 
> They contain exactly what David #1 said they did, I assume, as I have no

Re: ipv6 apt issue

2017-03-28 Thread Sven Joachim
On 2017-03-28 13:24 -0500, Matt Zagrabelny wrote:

> I'm hitting an IPv6 snafu.
>
> I've got a dual stack host and when doing various apt-y things I attempt to
> connect to:
>
> # apt update
> 0% [Connecting to ftp-chi.osuosl.org (2600:3402:200:227::2)
>
> but it hangs and doesn't seem to complete its connection.

Apparently ftp-chi.osuosl.org works for me, can you reach other IPv6
sites?

> If I look at my sources lists:
>
> % grep http /etc/apt/sources.list.d/*.list | sed -e 's/.*http:\/\///' | uniq
> ftp.us.debian.org/debian/ experimental main
> ftp.us.debian.org/debian/ jessie main contrib non-free
> ftp.us.debian.org/debian/ sid main contrib non-free
> ftp.us.debian.org/debian/ stretch main contrib non-free
>
> I don't have an /etc/apt/sources.list file. To my observation, my host
> should only be connecting ftp.us.debian.org.

That's correct, but there are many machines behind ftp.us.debian.org.

> Which has the following v6 addresses:
>
> % dig ftp.us.debian.org  +short
> 2610:148:1f10:3::89
> 2620:0:861:1:208:80:154:15
>
> So, where does the above ftp-chi.osuosl.org (2600:3402:200:227::2) coming
> from?

>From DNS round robin, see https://en.wikipedia.org/wiki/Round_robin_DNS.

Cheers,
   Sven



Re: Una de hostapd en debian 7...

2017-03-28 Thread JAP

El 28/03/17 a las 00:34, luisededios escribió:

Buen día.

Aquí les acopio la última configuración que tengo en mi sistema, y las
pruebas que me han indicado los amigos Javier y Antonio.

/etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback

#wireless AP
allow-hotplug wlan0
iface wlan0 inet static
  address 192.168.42.150
  netmask 255.255.255.0
  network 192.168.42.0
  broadcast 192.168.42.255
  gateway 192.168.43.155


¿Por qué salís del segmento con la pasarela?
Prueba 192.168.42.1


#  dns-nameservers 192.168.42.150
#  post-up /etc/init.d/hostapd force-reload

/etc/dhcp/dhcpd.conf
ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
authoritative;
log-facility local7;

subnet 192.168.42.0 netmask 255.255.255.0 {
  range 192.168.42.200 192.168.42.250;
  option subnet-mask 255.255.255.0;
  option routers 192.168.43.155;


Lo mismo que dije más arriba.


  option ip-forwarding on;
  option broadcast-address 192.168.42.255;
  option domain-name "ciudades-antiguas.com";
  option domain-name-servers 192.168.42.150, 8.8.8.8;
}

/etc/default/isc-dhcp-server
DHCPD_CONF=/etc/dhcp/dhcpd.conf


Esta línea así, no es necesaria, va por "default"


INTERFACES="wlan0"




/etc/hostapd/hostapd.conf
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

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

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

/etc/rc.local
# Configurar iptables
#eliminando todas las reglas
iptables -F
iptables -t nat -F
iptables -t mangle -F
iptables -t nat -A POSTROUTING -o wlan2 -j MASQUERADE

# POR AHORA ASI HASTA QUE LOGREMOS COMUNICACION
# 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



¡Aggg!
Activa las reglas si quieres que funcione.
O hases puente , o usas iptables. No puedes estar sin ninguna de las 
dos. DHCP Te va a asignar IP, parece que todo anda, pero no pasa ningún 
paquete.

Eso de que "ves el correo", te lo está mos
Luego, lista la siguiente instrucción

# iptables -t nat -L -n -v

que debe darte una línea más o menos así:

 7866  583K MASQUERADE  all  --  *  wlan0  0.0.0.0/0 
0.0.0.0/0




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

exit 0





# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface
default 192.168.43.10.0.0.0 UG0  00
wlan2
localnet*   255.255.255.0   U 0  00
wlan0
192.168.43.0*   255.255.255.0   U 0  00
wlan2

# ip addr
1: lo:  mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
   valid_lft forever preferred_lft forever
2: eth0:  mtu 1500 qdisc pfifo_fast
state DOWN qlen 1000
link/ether 00:26:b9:b4:2a:2b brd ff:ff:ff:ff:ff:ff
3: wlan0:  mtu 1500 qdisc mq state UP
qlen 1000
link/ether f0:7b:cb:15:ec:df brd ff:ff:ff:ff:ff:ff
inet 192.168.42.150/24 brd 192.168.42.255 scope global wlan0
inet6 fe80::f27b:cbff:fe15:ecdf/64 scope link
   valid_lft forever preferred_lft forever
4: wlan2:  mtu 1500 qdisc mq state UP
qlen 1000
link/ether 50:b7:c3:b0:4d:c4 brd ff:ff:ff:ff:ff:ff
inet 192.168.43.155/24 brd 192.168.43.255 scope global wlan2
inet6 fe80::52b7:c3ff:feb0:4dc4/64 scope link
   valid_lft forever preferred_lft forever
5: mon.wlan0:  mtu 1500 qdisc mq state
UNKNOWN qlen 1000
link/ieee802.11/radiotap f0:7b:cb:15:ec:df brd ff:ff:ff:ff:ff:ff



Como más arriba dije, estás mezclando las pasarelas entre las dos wlanX


> SERVICIO DE EMAIL.
> # ping 181.255.231.19
> PING 181.255.231.19 (181.255.231.19) 56(84) bytes of data.
>
> --- 181.255.231.19 ping statistics ---
> 13 packets transmitted, 0 received, 100% packet loss, time 12095ms
>
> IMPORTANTE: Como ven no me devuelve los eco pero se que tengo
> conectividad porque puedo levantar la página del sistema de email,


¿Por dónde la ves? ¿Por un navegador web?
Lo que estás viendo es lo que está guardado en la caché del disco.


(Todo lo que estaba escrito acá, es lo que hiciste)



Resumiendo los resultados de las pruebas podemos hacer notar que desde
la laptop DELL, la cual implementa el AP se puede levantar el servicio
wemail sin problemas pero desde la laptop Acer cliente no se puede
AUNQUE nótece que se obtienen los ecos de los paquetes que envía la
herramienta ping al móvil que da salida a la red.

No se qué hacer pero 

Re: Issue with notebook (maybe the battery?)

2017-03-28 Thread Daniel Bareiro
Hi, David.

On 27/03/17 00:08, David Wright wrote:

>>> Complete discharge is instantly fatal, they can never wake up again.
>>> All lithium cells have rudimentary electronics to cut off discharge
>>> earlier than this, typically 2.8-3.0V per cell. Charging is relatively
>>> complex, constant current of about half capacity to around 4.1V, then
>>> constant voltage to fairly precise 4.2V, then when the current drops
>>> below a certain level, cutoff.
>>>
>>> It should be possible to leave a lithium battery permanently connected
>>> to the charger. No 'trickle charge' will occur, no additional current
>>> will flow until the cell voltage drops by a certain amount. But full
>>> charge is not recommended for long-term storage.
>>>
>>> Yes, I had to build a lithium battery into something a few years ago,
>>> I had to learn how to charge it. 

>> Thank you for sharing these interesting comments. I think some time I've
>> inadvertently consumed the entire battery charge (although this was
>> something that happened a long time ago, I think). Perhaps the
>> recommendation to avoid this is to check the "Enable Power Management"
>> option in KDE.

> I didn't know you could. I thought the battery would stop supplying
> current before that happened. I was under the impression that to get
> any lower, you had to leave it empty so it could self-discharge.
> 
> I ran a laptop on a faulty battery for 17 months. Throughout that
> period, the charge indicator flashed four yellows and a green. Apart
> from running down quite quickly, there were no other signs of
> distress. About a week before it finally gave up the ghost, I had the
> same behaviour as yours: removing the power cable would kill the laptop.
> 
> The battery itself had a charge indicator when you pressed a button,
> lighting a steady line of one to five LEDs. When it died, just the
> 2nd and 4th LEDs flashed on and off instead, and the laptop wouldn't
> run at all.
> 
> Fortunately, I had a spare (smaller) battery of the same vintage which
> is still going. (I won't say still going strong.) The laptop is also
> showing its age: the display gives problems most of the time so I run
> it hooked up to a monitor.

Thank you for sharing these experiences. In my previous email I was
talking about a full discharge because that's what I thought happened
when I saw the KDE charge indicator after I plugged in the charger once
the notebook shut down abruptly because I did not have enable the
"Enable Power Management" option of KDE. That's why I thought that it
would avoid that situation happens again

>> Do you think that of the information I showed in
>> /sys/class/power_supply/BAT0/uevent or
>> /org/freedesktop/UPower/devices/battery_BAT0 can be detected any
>> electrical problem with the battery?

> The only obvious oddity I can see is POWER_SUPPLY_STATUS=Unknown but
> I'm not sure I haven't seen that myself in the past, though probably
> only momentarily. But the voltages you see are a bit suspicious.
> 
> I just ran this same laptop down to 7% capacity (takes about 20 minutes)
> and it was down at 10.797 volts. On reconnecting the power, it rose to
> 11.7 volts within, say, 15 seconds (but still reading 7% of course).
> So the low voltage you see with the charger attached might suggest
> that the battery is loading the charger somewhat. (Unfortunately you
> don't appear to get current amps, which may be related to Unknown above.)

I was observing these values:


$ upower -i /org/freedesktop/UPower/devices/battery_BAT0
(...)
  battery
(...)
percentage:  37%
capacity:81,5333%
(...)


But I'm not sure if that will be indicator of something. "Percentage"
seems to be the battery charge level. Looking at the upower
documentation I found this [1]:

The "Percentage" property: The amount of energy left in the power source
expressed as a percentage between 0 and 100. Typically this is the same
as (energy - energy-empty) / (energy-full - energy-empty). However, some
primitive power sources are capable of only reporting percentages and in
this case the energy-* properties will be unset while this property is set.

The "Capacity" property: The capacity of the power source expressed as a
percentage between 0 and 100. The capacity of the battery will reduce
with age. A capacity value less than 75% is usually a sign that you
should renew your battery. Typically this value is the same as
(full-design / full) * 100. However, some primitive power sources are
not capable reporting capacity and in this case the capacity property
will be unset.

I was comparing the values with those of the original battery:


# upower -i /org/freedesktop/UPower/devices/battery_BAT0
  native-path:

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

2017-03-28 Thread Thomas Schmitt
Hi,

songbird wrote:
> always give an option to do a dry run without any actual changes
> being made

But what difference would that make ?
If the program thinks it's not ok, then it will refuse.
If it thinks it's ok, then shall the user refrain nevertheless ?

Of course it's safer to know what is on the stick or to inspect
it by commands like "fdisk -l" and "isoinfo -d".


Have a nice day :)

Thomas



ipv6 apt issue

2017-03-28 Thread Matt Zagrabelny
Greetings,

I'm hitting an IPv6 snafu.

I've got a dual stack host and when doing various apt-y things I attempt to
connect to:

# apt update
0% [Connecting to ftp-chi.osuosl.org (2600:3402:200:227::2)

but it hangs and doesn't seem to complete its connection.

If I look at my sources lists:

% grep http /etc/apt/sources.list.d/*.list | sed -e 's/.*http:\/\///' | uniq
ftp.us.debian.org/debian/ experimental main
ftp.us.debian.org/debian/ jessie main contrib non-free
ftp.us.debian.org/debian/ sid main contrib non-free
ftp.us.debian.org/debian/ stretch main contrib non-free

I don't have an /etc/apt/sources.list file. To my observation, my host
should only be connecting ftp.us.debian.org.

Which has the following v6 addresses:

% dig ftp.us.debian.org  +short
2610:148:1f10:3::89
2620:0:861:1:208:80:154:15

So, where does the above ftp-chi.osuosl.org (2600:3402:200:227::2) coming
from?

Thanks for any pointers!

-m


Re: Debian France Meetup à Paris [Streaming]

2017-03-28 Thread Alexandre Delanoë
Le 16 mars 17, vers 16:43, Alexandre Delanoë ecrivait:
> Bonjour,
> pour ceux qui ne pourront pas se rendre à Paris, le meetup sera
> retransmis en streaming et vous pourrez poser vos questions sur le chan
> IRC #debian-france (OFTC).

Voici le lien pour le streaming:

http://webcast.iscpif.fr/stream/stream.webm

Bon meetup!

-- 
Alexandre Delanoë (anoe)


signature.asc
Description: PGP signature


[OT] Re: Issue with notebook (maybe the battery?)

2017-03-28 Thread Joe
On Tue, 28 Mar 2017 14:14:15 -0300
Daniel Bareiro  wrote:

> Hi, Joe.
> 

> 
> >> 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...  
> 
> But in any case, whether the problem is in the charger or the
> battery, I suppose that to solve the issue I will have to change the
> part. I suppose if the problem is in the charger, the cost will be
> less compared to a battery.

Yes, but it is unlikely that a schematic diagram of the laptop
motherboard will be available. It shouldn't be too hard to locate the
parts used in charging, but if the main IC is faulty, it may not be
available in your part of the world. Less of a problem these days, as
many Chinese parts can be sourced directly, but some years ago, my son
blew up an electronic switch on a MB by seating a memory PCB badly. I
could identify the IC, but was unable to find anyone, anywhere in
Europe, selling it. Finally, you need someone happy to make repairs on
a laptop motherboard. It may not work out cheaper than the battery.


> 
> >> 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.  
> 
> If I understood correctly, I think that here you was suggested that it
> could also be a problem related to another internal component of the
> notebook that diverts power from the charger to the battery for its
> charge.

Just that supplying power to the laptop and supplying charge to the
battery are likely to be separate functions, and if one works, that
proves nothing about whether the other works.



> 
> This is very weird. I do not had any reading. The slots of the
> contacts are very thin (attached image) and I tried placing the probes
> horizontally, vertically and trying several combinations leaving one
> probe fixed and changing the position of the other, but without
> differences. I tried with the scale of 20V and then with the next one,
> but I did not have readings in any case. In fact later, to test the
> operation of the multimeter, I measured the charge of an old 9V
> battery and got a reading of 2.10V, so I do not think it's a problem
> with the multimeter.
> 
> https://ibin.co/3H7uKkzIf4Ui.jpg
> 
Lots of contacts. It is possible that the battery electronics can tell
if it is correctly seated in the right model laptop, and will not supply
power if that is not the case. For your safety, of course.

-- 
Joe



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

2017-03-28 Thread Brian
On Tue 28 Mar 2017 at 13:09:57 -0400, songbird wrote:

> kAt wrote:
> ...
> > 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
> 
>   maybe, maybe not (depends upon path).

/usr/local/bin precedes /usr/bin in the default value of $PATH
Debian gives the user.

-- 
Brian.



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

2017-03-28 Thread songbird
Thomas Schmitt wrote:
...
> 
>
> See a test run with rescatux ISO on /dev/sdc (any current Debian i386
> or amd64 ISO would be suitable, too).
>
> Still less dangerous than manipulating /dev files as superuser is
> to give the world temporary permission to the one stick in question:
>
>   $ sudo chmod o+rw /dev/sdc
>
> (The program is supposed to refuse if it does not find an isohybrid ISO.
>  But better do not bet on those safety measures.)

  always give an option to do a dry run without
any actual changes being made (but reports what
would be done).


...
> 
>
> It would be interesting to see how various partition editors react on
> this state of the USB stick. Can they reduce the size of partition 3 ?
> Can they remove partition 3 and add on new one ?
>
> 
>
> Have a nice day :)

  thanks!  u2.


  songbird



Re: Deb-Installer: Possible to set IP using a boot parameter?

2017-03-28 Thread Brian
On Tue 28 Mar 2017 at 17:12:30 +0100, Ron Leach wrote:

> List, good afternoon,
> 
> Does anyone know whether there is a Debian-Installer boot parameter that
> enables a specific, static, IP to be set for use during the installation
> process?
> 
> I've checked the Installer guide, s 5.3 boot parameters [1], where a
> parameter to disable DHCP autoconfig is described but I'd like to be able to
> set a specific IP as well.
> 
> (The reason for wanting this, if possible, is that I will have to install
> onto a bare motherboard and disks, without screen or keyboard, and I'd like
> to control this install over SSH (if the installer would also start it) from
> another machine.  I have seen that this can be arranged using a pre-seeding
> file [2, 3] - which I found a bit complicated - but I am hoping there may be
> a simpler way for my case.  ... Perhaps not, albeit.)

You are nearly there. Any combination of preseed directives can be used
as boot parameters. For example: netcfg/get_ipaddress=192.168.1.42.

>From https://www.debian.org/releases/stable/amd64/ch05s03.html.en:

 > With some exceptions, a value can be set at the boot prompt
 > for any question asked during the installation..

> Is there a definitive list of all the installer's boot parameters and
> values, anywhere?  Or are the parameters literally those described in s 5.3
> of the installer guide?

AFAIK, not on the website. You can generate all the preseed options for
yourself. Search the wiki for "preseed".

-- 
Brian.



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

2017-03-28 Thread songbird
kAt wrote:
...
> 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

  maybe, maybe not (depends upon path).

  if you don't know where the executable is coming
from you can use the command:

$ which 

  note: some executables are in /usr/bin, some are
in /bin or /sbin...

  which directories are used/searched will depend upon
the path, perhaps the shell you are using and
of course which user you are.


> 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

  see above...


  songbird



Re: Issue with notebook (maybe the battery?)

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

On 27/03/17 16:01, Joe wrote:

 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.

Thank you for these observations.

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

Thanks for the clarification.

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

But in any case, whether the problem is in the charger or the battery, I
suppose that to solve the issue I will have to change the part. I
suppose if the problem is in the charger, the cost will be less compared
to a battery.

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

If I understood correctly, I think that here you was suggested that it
could also be a problem related to another internal component of the
notebook that diverts power from the charger to the battery for its charge.

 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 have neither the equipment nor the
> willingness to help after the warranty period.

Yes, it is good that they have had that good predisposition. In fact,
when I talked to them on the phone, I told them that if I saw that when
I plugged in the charger, the charge led behaves correctly, I could
assume the issue was on the battery and that would make the test a
little quick. But the person I spoke insisted on doing a full load cycle
so they would be reassured that everything works fine. Going there and
back takes me at least three hours (plus the the time awaiting for full
charge of the battery) so the trip would be a pain (not to mention go to
leave the notebook for the test, go back, and go later for it). The

Re: Upgrading Jessie to Stretch

2017-03-28 Thread songbird
Michael Lange wrote:
...
> 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.

  jumping versions is usually not supported.

  i've tried it at times.  always have a spare
bootable partition or some other media which 
gives you net access so you can download any
new packages needed.  (but instead ... --->

  much easier to back things up you want to keep,
install from a debian installer image and then
restore what you want.

  if you have enough of a gap going back you may
want to upgrade underlying partition's file systems 
(ext2 to ext4 as just one example).


  songbird



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

2017-03-28 Thread Thomas Schmitt
Hi,

i wrote:
> >   One may well try to manage the stick by a partition editor.

Richard Owlett wrote:
> Appropriate search terms that would lead to learning "howto"?

"linux"-or-"yourdesktop" together with "partition editor".
The reason to start this thread was about "gparted". We saw output of
"fdisk" and "gdisk". All three are for command line and/or text dialog.

The desktops will surely have their own graphical tools.
I expect that they handle partitioning and also file system creation.

My own approach with creating a filesystem would be "man mkfs"
  "This  mkfs  frontend  is  deprecated  in  favour of filesystem specific
   mkfs. utils.
   [...]
   SEE ALSO
   fs(5), badblocks(8), fsck(8), mkdosfs(8), mke2fs(8), mkfs.bfs(8),
   mkfs.ext2(8), mkfs.ext3(8), mkfs.ext4(8), mkfs.minix(8), mkfs.msdos(8),
   mkfs.vfat(8), mkfs.xfs(8)"

Well, i'd need to decide for a filesystem type anyways.
If it's for exchange of files with MS-Windows or Mac, then mkfs.msdos
or mkfs.vfat.
If it's for Linux only with need for linux-ly filenames and file
properties, then rather mkfs.ext2, 3, or 4.

The words "mkfs.msdos", "mkfs.vfat", "mkfs.ext2", "mkfs.ext3", "mkfs.ext4"
in Google yield interesting info.


Have a nice day :)

Thomas



Re: debian reinicio constante

2017-03-28 Thread Carlos Manuel Escalona Villeda
bueno, si fuese cuestión de software aparecería algo en los registros de
sistema, no está de más que los revises, igualmente si tienes un problema
de hardware que pudiese provocar una alerta en el software allí quedaría
registrado algo que te de una pista sobre lo que está sucediendo.

y si nos das mas pista sobre el hardware (modelo de mother board,
procesador, memoria, video, etc.) podríamos darte mejores sugerencias.

El mar., 28 de mar. de 2017 a la(s) 01:50, franiortiz hotmail <
franior...@hotmail.com> escribió:

> 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: gestion de carga y visitas a un servicio.

2017-03-28 Thread Dixan

Puedes crear un registro A para cada host con el mismo nombre y reducir
su TTL de esa forma por cada consulta se rotara la ip de la pagina a la
que se conecta el usuario (round robin) esto no tiene en cuenta su
ubicación, si necesitas responder su consulta con una ip especifica
basado en su ip de origen puedes configurar en bind varios views por
pais(es) (split-horizon) y un view predeterminado para todos los que no
tengan una declaracion especifica a su ubicacion geografica, esto lleva
un poco de trabajo. Si el nombre de los hosts es el mismo que el
certificado SSL no debe dar problemas. Si alguno de los servidores Web
esta saturado el DNS no tendrá conocimiento de eso y continuara dando su
ip asi que tendrias que observar la carga del servidor con algun script
y basado en eso generar un .htaccess que redireccione las peticiones
entrantes al otro servidor (Esto es solo una idea, estoy seguro existe
una mejor solucion).


Saludos


El 28/03/17 a las 17:15, Itzcoalt Alvarez escribió:
> Puede ser un balanceo de cargas o en su caso hay empresas que por
> medio de los DNS te redirigen a un ip en particular utilizando la zona
> de consulta.
>
> Saludos
>
>
> El 28 de marzo de 2017, 7:38, Ala de Dragón  > escribió:
>
> Hola :D
>
> Vengo a preguntarle a los administradores de sistemas de verdad acerca
> de una duda que tengo.
>
> supongamos que tengo unos cuantos euros/dolares para gastar y alquilo
> un par e VPS's. Uno en Europa (IP e) y otro en el continente
> Americano(IP a).
>
> Me gustaría saber como se hace para distribuir las visitas de los
> clientes en función del continente/pais de origen del visitante y la
> carga del servidor.
>
> Imaginenos a Pepe y Pepa.
>
> Pepe vive en Canada y Pepa en Francia.
>
> Ambos vistan la pagina web que hospeda el servicio teorico, visitando
> 'http://www.miweb.com' o 'https://www.miweb.com'
> Se me plantean diversas dudas:
>
> A) ¿Como se gestiona un servicio (http/https) que tiene dos
> proveedores(VPS), con Ip's diferentes(IP a / IP e)? ¿y el certidficado
> ssl como apunta dos ip's?
>
> B) ¿Se puede hacer que cuando un VPS este saturado diriga las
> visitas la otro?
>
> C) ¿Se pueden dirigir las visitas a uno u otro VPS en funcion del pais
> de origen del visitante?
>
>
> Un abrazo copaner@s
>
> :)
>
> --
> "El cielo es para los dragones
>  lo que el agua es  para las ninfas"
>
>
>
>
> -- 
>



Deb-Installer: Possible to set IP using a boot parameter?

2017-03-28 Thread Ron Leach

List, good afternoon,

Does anyone know whether there is a Debian-Installer boot parameter 
that enables a specific, static, IP to be set for use during the 
installation process?


I've checked the Installer guide, s 5.3 boot parameters [1], where a 
parameter to disable DHCP autoconfig is described but I'd like to be 
able to set a specific IP as well.


(The reason for wanting this, if possible, is that I will have to 
install onto a bare motherboard and disks, without screen or keyboard, 
and I'd like to control this install over SSH (if the installer would 
also start it) from another machine.  I have seen that this can be 
arranged using a pre-seeding file [2, 3] - which I found a bit 
complicated - but I am hoping there may be a simpler way for my case. 
 ... Perhaps not, albeit.)


Is there a definitive list of all the installer's boot parameters and 
values, anywhere?  Or are the parameters literally those described in 
s 5.3 of the installer guide?


Grateful for any info,

regards, Ron

[1] https://www.debian.org/releases/stable/amd64/ch05s03.html.en

[2] https://www.debian.org/releases/stable/amd64/apb.html.en
( and http://www.debian.org/releases/jessie/example-preseed.txt )

[3] 
https://www.debian.org/releases/stable/amd64/apbs02.html.en#preseed-bootparms




Re: gestion de carga y visitas a un servicio.

2017-03-28 Thread Itzcoalt Alvarez
Puede ser un balanceo de cargas o en su caso hay empresas que por medio de
los DNS te redirigen a un ip en particular utilizando la zona de consulta.

Saludos


El 28 de marzo de 2017, 7:38, Ala de Dragón 
escribió:

> Hola :D
>
> Vengo a preguntarle a los administradores de sistemas de verdad acerca
> de una duda que tengo.
>
> supongamos que tengo unos cuantos euros/dolares para gastar y alquilo
> un par e VPS's. Uno en Europa (IP e) y otro en el continente
> Americano(IP a).
>
> Me gustaría saber como se hace para distribuir las visitas de los
> clientes en función del continente/pais de origen del visitante y la
> carga del servidor.
>
> Imaginenos a Pepe y Pepa.
>
> Pepe vive en Canada y Pepa en Francia.
>
> Ambos vistan la pagina web que hospeda el servicio teorico, visitando
> 'http://www.miweb.com' o 'https://www.miweb.com'
> Se me plantean diversas dudas:
>
> A) ¿Como se gestiona un servicio (http/https) que tiene dos
> proveedores(VPS), con Ip's diferentes(IP a / IP e)? ¿y el certidficado
> ssl como apunta dos ip's?
>
> B) ¿Se puede hacer que cuando un VPS este saturado diriga las visitas la
> otro?
>
> C) ¿Se pueden dirigir las visitas a uno u otro VPS en funcion del pais
> de origen del visitante?
>
>
> Un abrazo copaner@s
>
> :)
>
> --
> "El cielo es para los dragones
>  lo que el agua es  para las ninfas"
>
>


--


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

2017-03-28 Thread Curt
On 2017-03-28, David Wright  wrote:
> 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.
>> >> 
> 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.

Well, I actually checked further down than the head (let's refer to it
as the body) and I did systematically discover version and package
names, so I think the output is more coherent than you're letting on but
who cares?  We know what is in those files (thank you David #1--yes I'm
relegating you to David #2, sorry). That is the point of my post in the
first place. It is not true what you posited, that it is tricky to know
what those files contain. We know (although it is not documented in the
man page(s) because people in the know figure these descriptions too
low-level for mortals like us. Maybe therein lies the trickiness.

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

They contain exactly what David #1 said they did, I assume, as I have no
good reason not to believe him (given that he's a bona fide authority on
the matter in his role as an APT contributor).

But in the context of the OP why you couldn't copy the two files from
the first machine after the cds had been scanned and then copy them back
to the second machine in order to avoid rescanning I don't know.



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

2017-03-28 Thread Richard Owlett

On 03/28/2017 09:20 AM, Thomas Schmitt wrote:

Hi,

Richard Owlett wrote:

/dev/sdb3   1140736 15130623 13989888  6.7G 83 Linux


For the records (as Richard obviously knew it already):


If you believe that line, would you like to by a Brooklyn Bridge?
It was legitimately for sale in late 1960's (located in Tompkins County 
not NY,NY ;)




After the run of make_isombr_part, the new partition has no
filesystem.
The commands mkfs or mkdosfs would be the next step, or some GUI tool
for managing disk partitions.


The purpose of make_isombr_part is two-fold:

- Make the partitioning as normal as possible by removing APM and GPT.
  This shall keep the usual partition editors from hating the stick.

- Compensate for the remaining flaw of partition 2 sitting inside
  partition 1 by adding a preliminary MBR partition up to the given
  block address or up to the device end.
  One may well try to manage the stick by a partition editor.
  But if everything else fails, this partition is better than nothing.



Appropriate search terms that would lead to learning "howto"?




Disk /dev/sdb: 7.2 GiB, 7746879488 bytes, 15130624 sectors


And what did the merchants write in their advertising ? 8 GB ?


That's what the bubble pack said.





Have a nice day :)

Thomas







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

2017-03-28 Thread Thomas Schmitt
Hi,

Richard Owlett wrote:
> /dev/sdb3   1140736 15130623 13989888  6.7G 83 Linux

For the records (as Richard obviously knew it already):

After the run of make_isombr_part, the new partition has no
filesystem.
The commands mkfs or mkdosfs would be the next step, or some GUI tool
for managing disk partitions.


The purpose of make_isombr_part is two-fold:

- Make the partitioning as normal as possible by removing APM and GPT.
  This shall keep the usual partition editors from hating the stick.

- Compensate for the remaining flaw of partition 2 sitting inside
  partition 1 by adding a preliminary MBR partition up to the given
  block address or up to the device end.
  One may well try to manage the stick by a partition editor.
  But if everything else fails, this partition is better than nothing.


> Disk /dev/sdb: 7.2 GiB, 7746879488 bytes, 15130624 sectors

And what did the merchants write in their advertising ? 8 GB ?


Have a nice day :)

Thomas



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

2017-03-28 Thread Sven Hartge
Mark Fletcher  wrote:
> On Tue, Mar 28, 2017 at 09:51:18AM +0200, Sven Hartge wrote:
>> Mark Fletcher  wrote:
 
>>> 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?
 
>> It works properly. I have several hundred servers as proof.
 
> Care to hazard any guesses why it *isn't* working in this case, then?
> Any other logs or config I should be looking at? Anything else I might
> have that might be overriding correct stuff with wrong stuff?

Looking at my notes: The key ID in questions refers to a subkey. apt
seems to not use them when present in files in /etc/apt/trusted.gpg.d/.
But Googles Release file is signed by multiple keys, so this message
should be benign.

Grüße,
Sven.

-- 
Sigmentation fault. Core dumped.



Re: [way off topic] Re: Encrypted flash drives

2017-03-28 Thread David Wright
On Tue 28 Mar 2017 at 12:46:18 (+0200), Thomas Schmitt wrote:
> Hi,
> 
> i wrote:
> > > Just wait until you read my alternative facts about the raison d'être
> > > of systemd.
> 
> kAt wrote:
> > I want to read it
> 
> If you test
> 
>   http://scdbackup.webframe.org/make_isombr_part
> 
> as described in
>   https://lists.debian.org/debian-user/2017/03/msg01215.html
> on your USB stick and afterwards check by some partition editors,
> then i will try to compile an exclusive report about the true
> origin of systemd.
> 
> 
> In exchange for a physically plausible explanation of a light mill,
> i would make up a story about why a mirror exchanges left and right
> but not up and down.

When you look in the mirror, it doesn't exchange left and right,
but fore and aft. To make a mirror exchange up and down, lay it
down on the floor.

> (Crooke radiometer: turns wrong way around, needs thin gas filling
>  and temperature gradient between wheel and glass to work, gaps are
>  much too large for any thermal transpiration, ...)

When I was a child, many things in the street were painted black and
white (for the blackout), and I remember feeling how hot the black
parts got in the sun (even in England) compared with the white.

Cheers,
David.



Re: Una de hostapd en debian 7...

2017-03-28 Thread luisededios
On Tue, 28 Mar 2017 08:37:02 -0400, JAP   
wrote:



El 28/03/17 a las 00:34, luisededios escribió:

Buen día.

Aquí les acopio la última configuración que tengo en mi sistema, y las
pruebas que me han indicado los amigos Javier y Antonio.


Esta tarde lo veo en detalle.
JAP


Bueno, y sigo aportando más datos, por si sirve de algo,

En el server DELL.
root@samaria:~# host webmail.nauta.cu
webmail.nauta.cu has address 181.225.231.19

En la Acer.
root@jerusalen:~# host webmail.nauta.cu
;; connection timed out; no servers could be reached

En el server DELL
# ip ro
default via 192.168.43.1 dev wlan2  proto static
192.168.42.0/24 dev wlan0  proto kernel  scope link  src 192.168.42.150
192.168.43.0/24 dev wlan2  proto kernel  scope link  src 192.168.43.155

En el cliente Acer
# ip ro
default via 192.168.43.155 dev wlan0  proto static
192.168.42.0/24 dev wlan0  proto kernel  scope link  src 192.168.42.240
192.168.43.155 dev wlan0  proto static  scope link

Esto está diferente pero a mi juicio está bien, pues DELL sale a través  
del móvil samsung que tiene la zona wifi y datos móvles activados pero  
Acer sale por la wlan2 de la DELL. No es así?


Buen, ya me dirán  :)

--
Saludos,
Luis



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

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

On Tue, Mar 28, 2017 at 08:41:52AM -0500, Richard Owlett wrote:
> On 03/28/2017 07:17 AM, to...@tuxteam.de wrote:
> >[snip]
> >
> >I'd guess there's a difference between Thomas's processor architecture
> >and yours. [snip]
> 
> Recompiled for my architecture successfully.
> Did a successful minimal install from my modified flash drive.

Yes, saw that passing by.

> >>Operator error or other?
> >
> >It's always the operator ;-) ;-)
> 
> Me? Paranoid? No the world's against me ;!

The fact that you're paranoid doesn't mean that they aren't after you.

> Now if days were only 48 hours long.

I'd be interested in that too.

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

iEYEARECAAYFAljaaVEACgkQBcgs9XrR2kZx2wCfWEQ8yFuUwPTu9Dmg1NuEtfby
Xi4AnjalGOCepsn0jGqqRv01AcXueVhN
=i2Gp
-END PGP SIGNATURE-



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

2017-03-28 Thread Richard Owlett

On 03/28/2017 07:17 AM, to...@tuxteam.de wrote:

[snip]

I'd guess there's a difference between Thomas's processor architecture
and yours. [snip]


Recompiled for my architecture successfully.
Did a successful minimal install from my modified flash drive.




Operator error or other?


It's always the operator ;-) ;-)


Me? Paranoid? No the world's against me ;!
Now if days were only 48 hours long.






gestion de carga y visitas a un servicio.

2017-03-28 Thread Ala de Dragón
Hola :D

Vengo a preguntarle a los administradores de sistemas de verdad acerca
de una duda que tengo.

supongamos que tengo unos cuantos euros/dolares para gastar y alquilo
un par e VPS's. Uno en Europa (IP e) y otro en el continente
Americano(IP a).

Me gustaría saber como se hace para distribuir las visitas de los
clientes en función del continente/pais de origen del visitante y la
carga del servidor.

Imaginenos a Pepe y Pepa.

Pepe vive en Canada y Pepa en Francia.

Ambos vistan la pagina web que hospeda el servicio teorico, visitando
'http://www.miweb.com' o 'https://www.miweb.com'
Se me plantean diversas dudas:

A) ¿Como se gestiona un servicio (http/https) que tiene dos
proveedores(VPS), con Ip's diferentes(IP a / IP e)? ¿y el certidficado
ssl como apunta dos ip's?

B) ¿Se puede hacer que cuando un VPS este saturado diriga las visitas la otro?

C) ¿Se pueden dirigir las visitas a uno u otro VPS en funcion del pais
de origen del visitante?


Un abrazo copaner@s

:)

-- 
"El cielo es para los dragones
 lo que el agua es  para las ninfas"



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

2017-03-28 Thread Richard Owlett

On 03/28/2017 07:16 AM, Thomas Schmitt wrote:

[snip]

To build your own binary, do in the directory where you have the
file  make_isombr_part.c :

  cc -g -Wall -o make_isombr_part make_isombr_part.c

This command should end quickly without any messages.
If messages appear, then please show them.
If all is well, a new file
  make_isombr_part
is supposed to have emerged and to have rx-permissions at least
for its owner. That's your executable binary.


Looks successful. fdisk now reports

Disk /dev/sdb: 7.2 GiB, 7746879488 bytes, 15130624 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0400c414

Device Boot   Start  End  Sectors  Size Id Type
/dev/sdb1  *  0  1140735  1140736  557M  0 Empty
/dev/sdb2  4156 5531 1376  688K ef EFI (FAT-12/16/32)
/dev/sdb3   1140736 15130623 13989888  6.7G 83 Linux

Now I'm going have to search my links for information about adding 
preseed.cfg and other useful files to a flash drive with an ISO image on it.








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

2017-03-28 Thread Mark Fletcher
On Tue, Mar 28, 2017 at 01:24:59PM +0200, Frank wrote:
> Op 28-03-17 om 07:48 schreef Frank:
> Mark,
> 
> As it turns out the ID 1397BC53640DB551 refers to a subkey of key
> 7721F63BD38B4796. Both seem to be present in google's key file, so I can't
> explain why apt ignores one of them.
> I'll leave it up to you if you want to try importing it (again) the
> oldfashioned way. It shouldn't do any harm in this case.
> 
Thanks very much for your reply. I took the file I had previously 
downloaded, and had been placing in /etc/apt/trusted.gpg.d/ , and ran 
apt-key add on that file. It responded "OK", and after that aptitude 
update runs with zero errors.

Putting the file in trusted.gpg.d didn't work, importing it using 
apt-key add did. Given Sven's experience to the contrary, I am at a loss 
to explain that.

But what is important to me for now is that, at last, both problems from 
this thread are resolved and I get no errors when I run aptitude update. 
Thanks very much to everyone who contributed.

Mark



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

2017-03-28 Thread Richard Owlett

On 03/28/2017 07:16 AM, Thomas Schmitt wrote:

Hi,

Richard Owlett wrote:

I am running Debian 8.6.0 with MATE desktop.
...
bash: /home/richard/Downloads/make_isombr_part: cannot execute binary file:
Exec format error


Can it be your system is equipped with Debian for architecture i386 ?


Yepp ;/
When I started experimenting with Linux I had a mixture of 32 and 64 bit 
machines so since Jessie I've been using DVDs labeled as i386.
My primary machine is a Lenovo T510. An old www.cnet.com review says it 
has a Intel Core i7 620M / 2.66 GHz.



I forgot to mention that my system is amd64.



Operator error or other?


Probably my error. I forgot the many architectures supported by Debian.
I should have advertised building from source.

So please download:

  http://scdbackup.webframe.org/make_isombr_part.c

MD5: 85e89cec6173e889693e8466d7cad763

If you do not have program /usr/bin/cc yet, then install package
"build-essential", which provides the equipment for the C language.

To build your own binary, do in the directory where you have the
file  make_isombr_part.c :

  cc -g -Wall -o make_isombr_part make_isombr_part.c

This command should end quickly without any messages.
If messages appear, then please show them.
If all is well, a new file
  make_isombr_part
is supposed to have emerged and to have rx-permissions at least
for its owner. That's your executable binary.

Sorry for the inconvenience.


There you go trying to educate me in spite of my myself ;/
Last time I compiled anything 8" floppies and 8085's were state of the 
art. My employer used Intel development systems with PLM.






Have a nice day :)

Thomas







Re: Una de hostapd en debian 7...

2017-03-28 Thread JAP

El 28/03/17 a las 00:34, luisededios escribió:

Buen día.

Aquí les acopio la última configuración que tengo en mi sistema, y las
pruebas que me han indicado los amigos Javier y Antonio.


Esta tarde lo veo en detalle.
JAP



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

2017-03-28 Thread Mark Fletcher
On Tue, Mar 28, 2017 at 09:51:18AM +0200, Sven Hartge wrote:
> Mark Fletcher  wrote:
> 
> > 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?
> 
> It works properly. I have several hundred servers as proof.
> 
Care to hazard any guesses why it *isn't* working in this case, then? 
Any other logs or config I should be looking at? Anything else I might 
have that might be overriding correct stuff with wrong stuff?

Mark



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

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

On Tue, Mar 28, 2017 at 02:16:24PM +0200, Thomas Schmitt wrote:

[...]

>   http://scdbackup.webframe.org/make_isombr_part.c

Yummy source. Now we're talking :-)

(trapped at work ATM. But I'll sure look into that)

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

iEYEARECAAYFAljaVLsACgkQBcgs9XrR2kZpVwCdHqHTuL6384KDLQ9L4aZWWl1Z
yXYAnRqVhvtt3Kfqtnnsr2M/NxkiHqG5
=gwns
-END PGP SIGNATURE-



Re: Postfix Dovecot et SSL : SSL23: unknown protocol

2017-03-28 Thread Thierry Bugier Pineau
Le mardi 28 mars 2017 à 11:02 +0200, andre_deb...@numericable.fr a
écrit :
> On Monday 27 March 2017 09:05:21 Thierry Bugier Pineau wrote:
> > Apparemment 2 essais sur 3 sont bons, et celui qui échoue doit
> venir du
> > fait que la résolution DNS sur le serveur n'est pas configurée pour
> > résoudre son propre nom. Au plus simple, il faudrait mettre à jour
> > /etc/hosts. C'est quand même mieux que le serveur sache comment il
> > s'appelle :
> 
> Le fichier "/etc/hosts" sur le serveur :
>  nom-serveur.domaine  domaine  pop.domaine  smtp.domaine
> C'est bon ?

Dans mes diverses notes j'ai retenu ceci pour /etc/hosts
127.0.0.1   localhost127.0.1.1  nom-serveur.domaine 
domaine  pop.domaine  smtp.domaine
D'ailleurs si quelqu'un sait m'expliquer pourquoi attribuer les noms
"personnalisés" sur 127.0.1.1 au lieu de 127.0.0.1, je suis preneur.
J'ai remarqué que si on ne remplit pas le fichier correctement la
commande hostname peut s'en trouver perturbée. Je conseille donc de
vérifier après le changement que hostname -d, hostname -s et hostname
-f donnent un résultat cohérent, sans lenteur. 
> > Dans les cas où la connection réussit, il faudrait vérifier qu'un
> > chiffrement est bien mis en place. La seule ligne "+OK Dovecot
> ready"
> > ne l'indique pas mais il doit y avoir une bonne quantité d'infos
> avant
> > elle; notamment au début :
> 
> Oui, avant "+OK Dovecot ready" il y a des tas d'infos sur le
> certificat,
> sans message d'erreur.
> 
> > A propos de l'erreur dans /var/log/mail.err, je chercherai tout à
> > l'heure dans mes notes si j'ai des infos à ce sujet :
> 
> Elles sont toujours d'actualité, je les rappelle :
> 
> dovecot: pop3-login: Error: SSL: Stacked error: error:140760FC:SSL 
> routines:SSL23_GET_CLIENT_HELLO:unknown protocol
> 
> dovecot: pop3-login: Error: SSL: Stacked error: error:1408A0C1:SSL 
> routines:ssl3_get_client_hello:no shared cipher

Pour ces erreurs je n'ai pas encore pu fouiller mes notes; mais un coup
d'oeil sur google m'a montré que ce n'est pas spécifique à dovecot,
donc il y a potentiellement un réel souci sur le SSL ou bien sur
l'utilisation de SSL par Dovecot.

> Merci,
> 
> André
> 
> 

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

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

On Tue, Mar 28, 2017 at 06:53:08AM -0500, Richard Owlett wrote:
> On 03/28/2017 05:10 AM, Thomas Schmitt wrote:
> >[snip]
> >
> >It would be interesting to see how various partition editors react on
> >this state of the USB stick. Can they reduce the size of partition 3 ?
> >Can they remove partition 3 and add on new one ?
> >
> 
> That looked interesting. As I had a flash drive with Jessie's
> netinst on it, I did a test run. It was not successful. The md5 of
> the code was correct.
> 
> I am running Debian 8.6.0 with MATE desktop.
> Clicking on the drive's icon and selecting properties reports:
> Name:   Debian 8.7.1 M-A 1
> Type:   folder (inode/directory)
> Contents:   2,613 items, totalling 614.6 MB
> Location:   on the desktop
> Volume: Debian 8.7.1 M-A 1
>Filesystem type:   isofs
> 
> A copy-n-paste from my terminal is:
> richard@march-9-Jessie:~$ su
> Password:
> root@march-9-Jessie:/home/richard# /sbin/fdisk -l /dev/sdb
> 
> Disk /dev/sdb: 7.2 GiB, 7746879488 bytes, 15130624 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: dos
> Disk identifier: 0x0400c414
> 
> Device Boot Start End Sectors  Size Id Type
> /dev/sdb1  *0 1140735 1140736  557M  0 Empty
> /dev/sdb2415655311376  688K ef EFI (FAT-12/16/32)
> 
> root@march-9-Jessie:/home/richard# chmod o+rw /dev/sdb
> root@march-9-Jessie:/home/richard# exit
> richard@march-9-Jessie:~$ chmod u+x /home/richard/Downloads/make_isombr_part
> richard@march-9-Jessie:~$ /home/richard/Downloads/make_isombr_part
> /dev/sdb auto 83
> bash: /home/richard/Downloads/make_isombr_part: cannot execute
> binary file: Exec format error
> richard@march-9-Jessie:~$

I'd guess there's a difference between Thomas's processor architecture
and yours. For a first stab, try those:

  file /home/richard/Downloads/make_isombr_part
  file /bin/ls

(Yes, I know Richard's box can be multiarch, but that'd be the next
stab :)

> Operator error or other?

It's always the operator ;-) ;-)

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

iEYEARECAAYFAljaVF0ACgkQBcgs9XrR2kb4WQCdFgfGvGg5Fiza1YkFxT46dBwU
08EAnAzpRviC4dxHv8W5xbXs/swzH1Qt
=GCoF
-END PGP SIGNATURE-



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

2017-03-28 Thread Thomas Schmitt
Hi,

Richard Owlett wrote:
> I am running Debian 8.6.0 with MATE desktop.
> ...
> bash: /home/richard/Downloads/make_isombr_part: cannot execute binary file:
> Exec format error

Can it be your system is equipped with Debian for architecture i386 ?
I forgot to mention that my system is amd64.


> Operator error or other?

Probably my error. I forgot the many architectures supported by Debian.
I should have advertised building from source.

So please download:

  http://scdbackup.webframe.org/make_isombr_part.c

MD5: 85e89cec6173e889693e8466d7cad763

If you do not have program /usr/bin/cc yet, then install package
"build-essential", which provides the equipment for the C language.

To build your own binary, do in the directory where you have the
file  make_isombr_part.c :

  cc -g -Wall -o make_isombr_part make_isombr_part.c

This command should end quickly without any messages.
If messages appear, then please show them.
If all is well, a new file
  make_isombr_part
is supposed to have emerged and to have rx-permissions at least
for its owner. That's your executable binary.

Sorry for the inconvenience.


Have a nice day :)

Thomas



Re: Fallo del disco USB

2017-03-28 Thread Cristian Mitchell
El 28 de marzo de 2017, 08:51, Ricardo Frydman
escribió:

> Si no tienes un respaldo reciente, hazlo ya mismo, y anda mirando que
> disco compraras para reemplazarlo.
> Le queda poca vida.
>
> 2017-03-28 5:09 GMT-03:00 Josu Lazkano :
>
>> Hola,
>>
>> He añadido un disco USB de 3TB en mi server Debian Jessie con EXT4:
>>
>> # mount | grep sdg
>> /dev/sdg1 on /mnt/DiscoUSB type ext4 (rw,relatime,data=ordered)
>>
>> He copiado algunos ficheros y me da este mensaje en el dmesg:
>>
>> [971136.045782] sd 8:0:0:0: [sdg] tag#0 FAILED Result: host
>> yte=DID_OK driverbyte=DRIVER_SENSE
>> [971136.045790] sd 8:0:0:0: [sdg] tag#0 Sense Key : Medium
>> rror [current]
>> [971136.045796] sd 8:0:0:0: [sdg] tag#0 Add. Sense: Unrecov
>> red read error
>> [971136.045802] sd 8:0:0:0: [sdg] tag#0 CDB: Read(10) 28 00
>> 12 b8 01 00 00 00 01 00
>> [971136.045807] blk_update_request: critical medium error,
>> ev sdg, sector 2512390144
>> [971136.045930] EXT4-fs error (device sdg1): ext4_wait_bloc
>> _bitmap:503: comm kworker/u8:3: Cannot read block bitmap -
>> lock_group = 9584, block_bitmap = 314048512
>> [971136.049338] EXT4-fs (sdg1): Delayed block allocation fa
>> led for inode 176160875 at logical offset 1124352 with max
>> locks 2048 with error 5
>> [971136.049428] EXT4-fs (sdg1): This should not happen!! Da
>> a will be lost
>>
>> ¿Es un error fisico? ¿se podria arreglar?
>>
>> Muchas gracias por vuestra ayuda.
>>
>> Un saludo.
>>
>
>
>
> --
> Ricardo A.Frydman
> Administrador Unix Senior - Proyectos - HPE
> Sun Certified System Administrator - Solaris 10
>
> pgp.mit.edu ID A04134BD 
> 
>
>
> "Aequam memento rebus in arduis servare mentem"
>

proba con fsck primero he instala una herramienta S.M.A.R.T

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

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


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

2017-03-28 Thread Richard Owlett

On 03/28/2017 05:10 AM, Thomas Schmitt wrote:

[snip]

It would be interesting to see how various partition editors react on
this state of the USB stick. Can they reduce the size of partition 3 ?
Can they remove partition 3 and add on new one ?



That looked interesting. As I had a flash drive with Jessie's netinst on 
it, I did a test run. It was not successful. The md5 of the code was 
correct.


I am running Debian 8.6.0 with MATE desktop.
Clicking on the drive's icon and selecting properties reports:
Name:   Debian 8.7.1 M-A 1
Type:   folder (inode/directory)
Contents:   2,613 items, totalling 614.6 MB
Location:   on the desktop
Volume: Debian 8.7.1 M-A 1
   Filesystem type:   isofs

A copy-n-paste from my terminal is:
richard@march-9-Jessie:~$ su
Password:
root@march-9-Jessie:/home/richard# /sbin/fdisk -l /dev/sdb

Disk /dev/sdb: 7.2 GiB, 7746879488 bytes, 15130624 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0400c414

Device Boot Start End Sectors  Size Id Type
/dev/sdb1  *0 1140735 1140736  557M  0 Empty
/dev/sdb2415655311376  688K ef EFI (FAT-12/16/32)

root@march-9-Jessie:/home/richard# chmod o+rw /dev/sdb
root@march-9-Jessie:/home/richard# exit
richard@march-9-Jessie:~$ chmod u+x /home/richard/Downloads/make_isombr_part
richard@march-9-Jessie:~$ /home/richard/Downloads/make_isombr_part 
/dev/sdb auto 83
bash: /home/richard/Downloads/make_isombr_part: cannot execute binary 
file: Exec format error

richard@march-9-Jessie:~$

Operator error or other?
HTH






Re: Fallo del disco USB

2017-03-28 Thread Ricardo Frydman
Si no tienes un respaldo reciente, hazlo ya mismo, y anda mirando que disco
compraras para reemplazarlo.
Le queda poca vida.

2017-03-28 5:09 GMT-03:00 Josu Lazkano :

> Hola,
>
> He añadido un disco USB de 3TB en mi server Debian Jessie con EXT4:
>
> # mount | grep sdg
> /dev/sdg1 on /mnt/DiscoUSB type ext4 (rw,relatime,data=ordered)
>
> He copiado algunos ficheros y me da este mensaje en el dmesg:
>
> [971136.045782] sd 8:0:0:0: [sdg] tag#0 FAILED Result: host
> yte=DID_OK driverbyte=DRIVER_SENSE
> [971136.045790] sd 8:0:0:0: [sdg] tag#0 Sense Key : Medium
> rror [current]
> [971136.045796] sd 8:0:0:0: [sdg] tag#0 Add. Sense: Unrecov
> red read error
> [971136.045802] sd 8:0:0:0: [sdg] tag#0 CDB: Read(10) 28 00
> 12 b8 01 00 00 00 01 00
> [971136.045807] blk_update_request: critical medium error,
> ev sdg, sector 2512390144
> [971136.045930] EXT4-fs error (device sdg1): ext4_wait_bloc
> _bitmap:503: comm kworker/u8:3: Cannot read block bitmap -
> lock_group = 9584, block_bitmap = 314048512
> [971136.049338] EXT4-fs (sdg1): Delayed block allocation fa
> led for inode 176160875 at logical offset 1124352 with max
> locks 2048 with error 5
> [971136.049428] EXT4-fs (sdg1): This should not happen!! Da
> a will be lost
>
> ¿Es un error fisico? ¿se podria arreglar?
>
> Muchas gracias por vuestra ayuda.
>
> Un saludo.
>



-- 
Ricardo A.Frydman
Administrador Unix Senior - Proyectos - HPE
Sun Certified System Administrator - Solaris 10

pgp.mit.edu ID A04134BD



"Aequam memento rebus in arduis servare mentem"


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

2017-03-28 Thread Frank

Op 28-03-17 om 07:48 schreef 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).


Mark,

As it turns out the ID 1397BC53640DB551 refers to a subkey of key 
7721F63BD38B4796. Both seem to be present in google's key file, so I 
can't explain why apt ignores one of them.
I'll leave it up to you if you want to try importing it (again) the 
oldfashioned way. It shouldn't do any harm in this case.


Regards,
Frank



Re: [off topic] Re: Encrypted flash drives

2017-03-28 Thread Thomas Schmitt
Hi,

i wrote:
> > Just wait until you read my alternative facts about the raison d'être
> > of systemd.

kAt wrote:
> I want to read it

If you test

  http://scdbackup.webframe.org/make_isombr_part

as described in
  https://lists.debian.org/debian-user/2017/03/msg01215.html
on your USB stick and afterwards check by some partition editors,
then i will try to compile an exclusive report about the true
origin of systemd.


In exchange for a physically plausible explanation of a light mill,
i would make up a story about why a mirror exchanges left and right
but not up and down.
(Crooke radiometer: turns wrong way around, needs thin gas filling
 and temperature gradient between wheel and glass to work, gaps are
 much too large for any thermal transpiration, ...)


Have a nice day :)

Thomas



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

2017-03-28 Thread Thomas Schmitt
Hi,

i wrote a small program which shall make a USB stick with isohybrid ISO
more digestible for partition editors by removing all partition tables
except MBR partitions.
It then creates a new partition in the first MBR partition slot which
is found with block count 0.

  usage: ./make_isombr_part file_path partition_end partition_type

 Creates a partition in a free slot of an isohybrid MBR in an ISO.
 Removes GPT and APM signatures if present.
 file_path must lead to a file or device with isohybrid ISO.
 partition_end tells the number of 512-byte blocks of device.
 partiton_end value "auto" means full number of device blocks.
 partition_type is a hex number in the range of 00 to ff.
 Type examples: 83 = Linux , 0c = FAT32 , 17 = Hidden NTFS

Binary compiled on Debian 8 (you may need to give it x-permission after
download):

  http://scdbackup.webframe.org/make_isombr_part

MD5: 4856af2c1b50a775325a3e6c09d7d9bc

Source code:
  http://scdbackup.webframe.org/make_isombr_part.c

The argument "auto" currently works only on Linux kernels.
On other systems one has to give the block number explicitely.



See a test run with rescatux ISO on /dev/sdc (any current Debian i386
or amd64 ISO would be suitable, too).

Still less dangerous than manipulating /dev files as superuser is
to give the world temporary permission to the one stick in question:

  $ sudo chmod o+rw /dev/sdc

(The program is supposed to refuse if it does not find an isohybrid ISO.
 But better do not bet on those safety measures.)

Let the program remove APM and GPT and add a MBR partition:

  $ chmod u+x ./make_isombr_part

  $ ./make_isombr_part /dev/sdc auto 83
  Note: Storage capacity of '/dev/sdc' : 3915776 blocks
  Note: Wrote MBR partition slot 3, type 0x83, start 1374208, blocks 2541568
  Note: Removed APM signature
  Note: Removed GPT signature at block 1
  Note: Removed GPT signature at block 1374207

Afterwards, fdisk reports the new partiton table:

  $ /sbin/fdisk -l /dev/sdc
  Disk /dev/sdc: 1.9 GiB, 2004877312 bytes, 3915776 sectors
  ...
  Device Boot   Start End Sectors  Size Id Type
  /dev/sdc1  * 64 1374207 1374144  671M  0 Empty
  /dev/sdc2   1297212 12986191408  704K ef EFI (FAT-12/16/32)
  /dev/sdc3   1374208 3915775 2541568  1.2G 83 Linux

When done, exclude the world from directly reading and altering the stick
content:

  $ sudo chmod o-rw /dev/sdc

Best unplug the stick and put it in again, so that the operating system
takes notice of the new partition table situation.



It would be interesting to see how various partition editors react on
this state of the USB stick. Can they reduce the size of partition 3 ?
Can they remove partition 3 and add on new one ?



Have a nice day :)

Thomas



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

2017-03-28 Thread Frank

Op 28-03-17 om 09:54 schreef Sven Hartge:

in this case we know this is the ID of Googles key, but my argument
still holds in general


In general, yes.



Re: Samsung ML-1915 printer

2017-03-28 Thread Brian
On Mon 27 Mar 2017 at 19:57:01 +0100, Brian wrote:

> 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

I give in! Your ULD package doesn't work for you on unstable. Let us see
how mine goes on.

1. Go to http://www.samsung.com/uk/support/model/ML-1910/SEE and download
   uld_v1.00.06.tar.gz.

2. Decompress and unpack the file with 'tar zvxf uld_v1.00.06.tar.gz'.

3. cp uld/i386/rastertospl /usr/lib/cups/filter/.

4. chown root.root /usr/lib/cups/filter/rastertospl.

5. cp uld/noarch/share/ppd/Samsung_ML-191x_Series.ppd /usr/share/ppd/custom/.

6. lpinfo -m | grep ML-191x.

7. lpadmin -p ML191x -v file:/dev/null -E -m 
lsb/usr/custom/Samsung_ML-191x_Series.ppd.

The last five steps are done as root.

Now (as root again)

8. cupsfilter -p /etc/cups/ppd/ML192x.ppd -e -m printer/foo message.txt > 
out.prn 2>log.

log and out.prn have been compressed and attached to this mail.
Uncompress with gunzip. Note that the log shows all filters being run
successfully. As far as I am concerned, cupsd and the filtering system
have worked well. message.txt contains a secret message for you.

out.prn is a file which can be sent directly to the Samsung printer.
But I haven't got such a printer, you say. Ah, but *you* have. So do

 cat out.prn > /dev/usb/lp0

You can now reveal the message to everyone.

An invitation: any of the hundreds of list readers with a USB connected
Samsung printer which accepts SPL can have fun trying to print the file
too.

-- 
Brian.




log.gz
Description: application/gzip


out.prn.gz
Description: application/gzip


Re: Postfix Dovecot et SSL : SSL23: unknown protocol

2017-03-28 Thread andre_debian
On Monday 27 March 2017 09:05:21 Thierry Bugier Pineau wrote:
> Apparemment 2 essais sur 3 sont bons, et celui qui échoue doit venir du
> fait que la résolution DNS sur le serveur n'est pas configurée pour
> résoudre son propre nom. Au plus simple, il faudrait mettre à jour
> /etc/hosts. C'est quand même mieux que le serveur sache comment il
> s'appelle :

Le fichier "/etc/hosts" sur le serveur :
 nom-serveur.domaine  domaine  pop.domaine  smtp.domaine
C'est bon ?

> Dans les cas où la connection réussit, il faudrait vérifier qu'un
> chiffrement est bien mis en place. La seule ligne "+OK Dovecot ready"
> ne l'indique pas mais il doit y avoir une bonne quantité d'infos avant
> elle; notamment au début :

Oui, avant "+OK Dovecot ready" il y a des tas d'infos sur le certificat,
sans message d'erreur.

> A propos de l'erreur dans /var/log/mail.err, je chercherai tout à
> l'heure dans mes notes si j'ai des infos à ce sujet :

Elles sont toujours d'actualité, je les rappelle :

dovecot: pop3-login: Error: SSL: Stacked error: error:140760FC:SSL 
routines:SSL23_GET_CLIENT_HELLO:unknown protocol

dovecot: pop3-login: Error: SSL: Stacked error: error:1408A0C1:SSL 
routines:ssl3_get_client_hello:no shared cipher

Merci,

André



Fallo del disco USB

2017-03-28 Thread Josu Lazkano
Hola,

He añadido un disco USB de 3TB en mi server Debian Jessie con EXT4:

# mount | grep sdg
/dev/sdg1 on /mnt/DiscoUSB type ext4 (rw,relatime,data=ordered)

He copiado algunos ficheros y me da este mensaje en el dmesg:

[971136.045782] sd 8:0:0:0: [sdg] tag#0 FAILED Result: host
yte=DID_OK driverbyte=DRIVER_SENSE
[971136.045790] sd 8:0:0:0: [sdg] tag#0 Sense Key : Medium
rror [current]
[971136.045796] sd 8:0:0:0: [sdg] tag#0 Add. Sense: Unrecov
red read error
[971136.045802] sd 8:0:0:0: [sdg] tag#0 CDB: Read(10) 28 00
12 b8 01 00 00 00 01 00
[971136.045807] blk_update_request: critical medium error,
ev sdg, sector 2512390144
[971136.045930] EXT4-fs error (device sdg1): ext4_wait_bloc
_bitmap:503: comm kworker/u8:3: Cannot read block bitmap -
lock_group = 9584, block_bitmap = 314048512
[971136.049338] EXT4-fs (sdg1): Delayed block allocation fa
led for inode 176160875 at logical offset 1124352 with max
locks 2048 with error 5
[971136.049428] EXT4-fs (sdg1): This should not happen!! Da
a will be lost

¿Es un error fisico? ¿se podria arreglar?

Muchas gracias por vuestra ayuda.

Un saludo.


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

2017-03-28 Thread Sven Hartge
Frank  wrote:
> 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

Do NOT *EVER* do this. Importing a key from the keyservers just because
apt says it does not know the ID is wrong. 

You might get MitM'ed right now (in this case we know this is the ID of
Googles key, but my argument still holds in general) and installing the
attackers forged pubkey is exactly what he would want.

Only ever install keys from trusted sources into your apt's trusted
keyring.

Grüße,
Sven.

-- 
Sigmentation fault. Core dumped.



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

2017-03-28 Thread Sven Hartge
Mark Fletcher  wrote:

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

It works properly. I have several hundred servers as proof.

Grüße,
Sven.

-- 
Sigmentation fault. Core dumped.



Re: libjasper in Stretch

2017-03-28 Thread Sven Hartge
David Griffith  wrote:
> 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.

Because the library is called "libopenjp2.so.7":
https://packages.debian.org/sid/amd64/libopenjp2-7/filelist

Why is the library named like that? You have to ask upstream about
that. I smell a SO name conflict in there somewhere.

> Why is/was there a "libopenjpeg5" package?

Was: because it was the name of the library in the past. Debian Jessie
is the last Version of Debian containing both libopenjpeg2 and
libopenjp2.

Is: There is not, at least in Testing and Unstable. If you still have the
package, then maybe because you have libavcodec-ffmpeg56 or libavcodec56
installed, both still depend on it.

Grüße,
Sven.

-- 
Sigmentation fault. Core dumped.



debian reinicio constante

2017-03-28 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: [1/2 HS] syntaxe qui ne va plus depuis upgrade MySQL

2017-03-28 Thread Eric Degenetais
Le 27 mars 2017 9:59 PM, "Christian Quentin" <
christian.quen...@architecte-du-web.com> a écrit :

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

C'est une solution si on n'enregistre aucune autre donnée sur le vote que
le logo choisi. Par contre il faut faire attention à la méthode choisie
pour incrementer le champ pour être sûr de compter chaque vote en accès
concurrent.




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