Re: on-screen artifacts (red pixels) at high resolution with Intel HD 630 (Kaby Lake)

2017-12-18 Thread Alexandre Rossi
>> I'm experiencing red blinking pixels in dark areas in the displayed
>> Xorg picture on my TV connected using a HDMI cable.
>
> can you test with another HDMI cable? Just because the HDMI cable works
> under Windows or Linux with a different GPU does not mean it will work under
> Linux with your HD Graphics 630. I am no expert, but there are all sorts of
> complications like HDMI clock frequency and colour depths. Linux with your
> 630 might be negotiating an HDMI connection that almost works but that your
> cable cannot reliably support. I would try another HDMI cable to eliminate
> it as an issue. Bad or marginal HDMI cables are a common problem.

With another HDMI cable, I have the same symptoms.
With the same cable, TV, and computer, under Windows, picture is perfect.

Alex



Need an fft hystogram of a cameras output

2017-12-18 Thread Gene Heskett
Greetings all;

Do we have such a critter that can analyze the output of a v4l2 camera, 
and give an amplitude at bandwidth histogram?

I need a way to establish the absolute best focal distance of a camera 
acting as machine vision, and which acts like about 4 to 5 cm is about 
right. What I want to do is drive forward until a probe contacts the 
target, and zero the rest of the visual measurements to that distance 
for best accuracy.  But I'll use this to determine the length of the 
probe by looking for the highest amplitude at the highest frequencies 
from zero, which would indicate best focus.

Thanks all, for any names of video utils to check out.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: LVM: how to avoid scanning all devices

2017-12-18 Thread Andy Smith
Hi Steve,

On Fri, Dec 15, 2017 at 01:19:46PM +0100, Steve Keller wrote:
> When calling LVM commands it seems they all scan all disks for
> physical volumes.  This is annoying because it spins up all disks that
> are currently idle and causes long delays to wait for these disks to
> come up.

Can you avoid it by using global_filter to restrict LVM's operation
to certain devices?

Cheers,
Andy

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



Debian, FF & NavyFed

2017-12-18 Thread Mike McClain
I signed up with Navy Federal Credit Union online banking last week.
I can login, I get the banner in color , it says getting your info.
As soon they come back with and display my balance all the text turnes
to grey and a twiddler pops up and it stays like that forever.
NFCU's tech support will not admit to knowing who's waiting for
what just we don't support Linux.
Suggestions on how to fix this or how to approach it are most
welcome.

What I've done:
Having added Dan Pollock's hosts to my /etc/hosts recently I went
back to the bare bones version that only mentions my local hardware.
My /etc/hosts.deny says:
ALL: PARANOID
ALL: ALL: rfc931: spawn(netstat -tup | mail -s "%d DENIED\: %c" root) &
as it has for years.
I've a small homegrown firewall that's worked for years and allows
me to login to other credit unions and several stock brokers.
I've saved and studied the page source and nothing sticks out
except that it's written for IE and has several *.css at the top I
can't see and lots of *.js scripts called.
Over the years I've programmed in Fortran, Basic, Forth, Awk, 'C',
Dos, Unix and Linux scripting and Perl. My html doesn't extend much
further than anchors, lists and list items and   and I've
never picked up Java or js.

As said above all pointers welcome.

Oh, Yeah,
Linux playground 3.2.0-4-686-pae #1 SMP Debian 3.2.89-2 i686 GNU/Linux
I know Wheezy is old but it's old hardware, PIII, 250M memory, my
video card hasn't been supported in years. Does what I want most times.
FF ESR 52.3.0 (32 bit)

Thanks, Mike
--
Where man is there will be trouble to the end of time,
if not of one sort, then of another."
- Louis L'Amour



Re: LUKS password gets printed as stars

2017-12-18 Thread Dan Purgert
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ben Caradoc-Davies wrote:
> On 19/12/17 02:41, Roberto C. Sánchez wrote:
>> Whether stars are echoed or nothing is echoed, the passphrase remains
>> concealed.
>
> Not true if the passphrase is "**".
Wait, how'd you know my pass is "hunter2017"!?


-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAEBAgAGBQJaOHk6AAoJEI4R3fMSeaKB3eQH/AhdnGPg5dBKlU4Rm02Jr004
9DxVEqlViWpdl9AN+Ja+ZptBbtCbuAQolESN/V2b6gEo5zmPM4A5rmKpa5JIjVHL
hvv0/3UskC1JEBtBUTJe1DpgPQ5xVzAj3vehgqE3qdedME7FMdaqLnz0W39mj9fl
59KspxzAVHi9w5N4ytC/o+nica4YVVMhbXdjC5mBpED3kZYzNM0cPd61PaXCk6Tt
KQyPKKemEIP4kV+94qIfNmvYi1j/hqmVxtOx5/jckulybXiVm8KXTPu8ixgGA5MJ
rosGNYhECsYCTl/iwRFUQW/KdzclgEk2lYqChXkyYe6W+jS9xZTOyevpCSDxNFs=
=qA2f
-END PGP SIGNATURE-

-- 
|_|O|_| Registered Linux user #585947
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5  4AEE 8E11 DDF3 1279 A281



Re: how to verify MD5SUMS.sign ?

2017-12-18 Thread Dan Purgert
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Long Wind wrote:
> i have downloaded jessie CD from:
> http://mirrors.lug.mtu.edu/debian-cd/8.6.0/amd64/iso-cd/
> i know how to verify MD5SUMSbut how to verify MD5SUMS.sign?
> Thanks!

There should be a referenced gpg key somewhere. Quick google shows it as
https://www.debian.org/CD/verify . You'll need one (or all) of the noted
keys, then you can use gpg to verify the sig.  

The command

  gpg --verify MD5SUMS.sign

should be good enough, assuming the public keys are on your keyring, and
your web-of-trust is sufficient to validate the keys (or you've marked
the keys as trusted in some manner).

That being said, MD5 hashes are considered "weak" these days, and it is
generally recommended to verify with SHA256 hashes instead.

HTH

-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAEBAgAGBQJaOGPvAAoJEI4R3fMSeaKBq5oH/ij1Wrqso8N8EYT2wcxNi6HR
57ZxpAYjJh02p9ywVe7Ymw+jUkyfZlEvHyATLztWplh2G+w1hp/xbr7awAnVjshr
axw6efxC7q5J+HaRj7O3OzpTAW2o6WuwePwoXKl6+WjxSYoGs1u6cMebz4cHwq3I
FmaqfhWUyrKLlOfRrnmbf4yKzzJKuFnz+kIzh+s0rZrzh+5PxfOl56ANavVWjDBq
XYEABwzMnik0TPADGrFpW17rSoOpyuj6vujeIRycrdzie3seH2EWqBMR6BwUL58c
mQlvnW7rT9aSdQf0M0dx40zfV4UB1leUAdVQqrDSmhRns3TEmBJWc4vjqDrTacc=
=X0Me
-END PGP SIGNATURE-

-- 
|_|O|_| Registered Linux user #585947
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5  4AEE 8E11 DDF3 1279 A281



Re: LUKS password gets printed as stars

2017-12-18 Thread Ben Caradoc-Davies

On 19/12/17 02:41, Roberto C. Sánchez wrote:

On Mon, Dec 18, 2017 at 06:41:00PM +0530, root kea wrote:

I am using LUKS on LVM on Debian Stretch. I have encrypted /home and
swap partition. When initram gets loaded it asks for password to
decrypt swap partition. That passowrd doesn't get printed to screen.
No stars. Nothing.
But After which Kernel gets loaded (I think) and it asks password for
/home which gets printed as stars. I'm really worried about this. Here
is a screenshot https://imgur.com/bC4AF6H
How do I prevent those stars from getting printed on the screen?

Whether stars are echoed or nothing is echoed, the passphrase remains
concealed.


Not true if the passphrase is "**".

Kind regards,

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



Re: LUKS password gets printed as stars

2017-12-18 Thread Ben Caradoc-Davies

On 19/12/17 02:11, root kea wrote:

I am using LUKS on LVM on Debian Stretch. I have encrypted /home and
swap partition. When initram gets loaded it asks for password to
decrypt swap partition. That passowrd doesn't get printed to screen.
No stars. Nothing.
But After which Kernel gets loaded (I think) and it asks password for
/home which gets printed as stars. I'm really worried about this. Here
is a screenshot https://imgur.com/bC4AF6H
How do I prevent those stars from getting printed on the screen?


I did not see any stars in your screenshot. I saw the passphrase plain 
text "hunter2".


Kind regards,

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



Re: mplayer changed behaviour in stretch

2017-12-18 Thread Marc Auslander
In stretch mplayer may be linked to mpv - the current prefered
multi-media player in debian.  The mplayer2 package does this.

Look at /usr/bin/mplayer and see if its a symlink.

There is an mplayer package as well - I don't know if its the old mplayer.



Re: Needed - a byte perfect image of an entire partition

2017-12-18 Thread Don Armstrong
On Mon, 18 Dec 2017, Jeroen Mathon wrote:
> `dd bs=64k if=/dev/sda of=./image.img conv=noerror,sync status=progress`
> 
> You can thank me later.

You might also find ddrescue useful, as it is significantly faster than
dd and can retry on errors.

For example:

ddrescue --retry-passes=10 --reverse /dev/sda ./image.img ./image.map


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

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



mplayer changed behaviour in stretch

2017-12-18 Thread Charlie Gibbs

I'm a heavy user of mplayer from the command line - it's a wonderful
utility that does what I want and lets me instantly move around in a 
video or MP3 file.  However, after upgrading one of my machines from 
Jessie to Stretch, I've noticed a couple of changes in its behaviour 
that I'd really like to roll back.


First of all, when pausing playback with the space bar, attempts to move 
around in a file will now cancel the pause.  This is a pain when 
practising music against a recording.  I often want to repeat a passage, 
so I'll pause and back up to the beginning of the passage - but I don't 
want to unpause until I'm ready to start playing again.  The man page 
describes a "-pausing 2" command-line option which restores the desired 
behaviour, but I haven't seen any mention of an equivalent I can put 
into the configuration files to restore this as the default behaviour.


Second, the new version no longer displays ID3 tag information.  I can 
find no description of an option, either on the command line or in a 
configuration file, to restore this display.


I could copy the old binary from my Jessie machine to the Stretch 
machine, but that's kind of tacky.  Does anyone know of a way to make 
the new version behave like the old one?


aTdHvAaNnKcSe...

--
cgi...@surfnaked.ca (Charlie Gibbs)



Re: LUKS password gets printed as stars

2017-12-18 Thread deloptes
to...@tuxteam.de wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On Tue, Dec 19, 2017 at 12:42:57AM +0530, root kea wrote:
>> I don't know why but this email didn't get delivered to my mailbox
>> even after I'm being in "To" field. I couldn't even find this email in
>> spam. Thankfully, I decided to check debian-users archives and found
>> this mail there!
> 
> Strange. OK, my mail server hasn't yet SPF or DKIM, which might raise
> the mail's spam score, but just silently dropping the mail seems
> pretty uncivilised (but hey, it's Google, so...)
> 
> Perhaps now that you mailed me, gmail is a bit friendlier.
> 

Many times on other lists hosted by gmane mails are delayed/rejected by
recipients mail server (google) in which case appropriate message is
returned to the mailer (gmane) who in turn for obvious reasons suppresses
it.
I often get later a mail that mails addressed to me were held back.

So me too is reading primary gmane in a client and the mails send to my
mailbox are just for the record :)

regards



Re: LUKS password gets printed as stars

2017-12-18 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, Dec 19, 2017 at 12:42:57AM +0530, root kea wrote:
> I don't know why but this email didn't get delivered to my mailbox
> even after I'm being in "To" field. I couldn't even find this email in
> spam. Thankfully, I decided to check debian-users archives and found
> this mail there!

Strange. OK, my mail server hasn't yet SPF or DKIM, which might raise
the mail's spam score, but just silently dropping the mail seems
pretty uncivilised (but hey, it's Google, so...)

Perhaps now that you mailed me, gmail is a bit friendlier.

> As I have copy pasted mail by hand please excuse the poor formatting.

No problem, formatting is fine.

> > On 12/18/17, to...@tuxteam.de  wrote:

[...]

> > My crystal ball says you're using systemd [...]

> OMG! You are absolutely right! I went through the links you provided
> and ended up on systemd-ask-password [0]. As its manpage says, I tried
> pressing TAB and voila! echo is turned off! Here is the screenshot
> with echo off [1]

Glad we found it :-)

> BTW, pressing backspace as a very first char worked too (as mentioned
> in the same manpage).
> 
> Now I just need to find out from where this `systemd-ask-password` is
> executed and then edit it's command by omitting the `--echo` flag
> thereby turning off the echo by default. (A sane default!)
> 
> Though I'm searching for the `systemd-ask-password` command location;
> any further help would be really appreciated!

Install apt-file: very recommended. It lets you search for Debian
packages containing a file (by file name, even when the package
isn't installed):

 | tomas@trotzki:~$ apt-file search systemd-ask-password
 | manpages-de: /usr/share/man/de/man8/systemd-ask-password-console.service.8.gz
 | manpages-zh: /usr/share/man/zh_CN/man1/systemd-ask-password.1.gz
 | manpages-zh: /usr/share/man/zh_TW/man1/systemd-ask-password.1.gz
 | plymouth: /lib/systemd/system/systemd-ask-password-plymouth.path
 | plymouth: /lib/systemd/system/systemd-ask-password-plymouth.service
 | systemd: /bin/systemd-ask-password
 | systemd: 
/lib/systemd/system/multi-user.target.wants/systemd-ask-password-wall.path
 | systemd: 
/lib/systemd/system/sysinit.target.wants/systemd-ask-password-console.path
 | systemd: /lib/systemd/system/systemd-ask-password-console.path
 | systemd: /lib/systemd/system/systemd-ask-password-console.service
 | systemd: /lib/systemd/system/systemd-ask-password-wall.path
 | systemd: /lib/systemd/system/systemd-ask-password-wall.service
 | systemd: /usr/share/man/man1/systemd-ask-password.1.gz
 | systemd: /usr/share/man/man8/systemd-ask-password-console.path.8.gz
 | systemd: /usr/share/man/man8/systemd-ask-password-console.service.8.gz
 | systemd: /usr/share/man/man8/systemd-ask-password-wall.path.8.gz
 | systemd: /usr/share/man/man8/systemd-ask-password-wall.service.8.gz

so now we know systemd-ask-password lives in /bin and comes with package
systemd. But I guess you are looking for its config file, perhaps something
in the whereabouts of /lib/systemd/system/systemd-ask-password-console.service.

Note that the usual way of customizing that is not by changing the
service file in /lib/systemd/... but to put a new service file somewhere
in /etc (/etc/systemd?) overriding it. My wisdom there is pretty
sparse, perhaps some systemd buff can chime in here.

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

iEYEARECAAYFAlo4JOQACgkQBcgs9XrR2ka0kwCePwPUB919slsKXrbKY6ERLmkq
4DEAn1HF0T8Ut7M450brLeF11kDm5qs3
=weY6
-END PGP SIGNATURE-



Re: LUKS password gets printed as stars

2017-12-18 Thread root kea
I don't know why but this email didn't get delivered to my mailbox
even after I'm being in "To" field. I couldn't even find this email in
spam. Thankfully, I decided to check debian-users archives and found
this mail there!

As I have copy pasted mail by hand please excuse the poor formatting.

> On 12/18/17, to...@tuxteam.de  wrote:
>> On Mon, Dec 18, 2017 at 06:41:00PM +0530, root kea wrote:

>> is a screenshot https://imgur.com/bC4AF6H

> My crystal ball says you're using systemd. It seems that it has a
> special "unit" to mount encrypted file systems [1], which may call
> into one of several password agents [2]. If this hunch is correct,
> you may start with [2], find out which agent you are talking to
> and perhaps reconfigure it in the way you like.

OMG! You are absolutely right! I went through the links you provided
and ended up on systemd-ask-password [0]. As its manpage says, I tried
pressing TAB and voila! echo is turned off! Here is the screenshot
with echo off [1]

BTW, pressing backspace as a very first char worked too (as mentioned
in the same manpage).

Now I just need to find out from where this `systemd-ask-password` is
executed and then edit it's command by omitting the `--echo` flag
thereby turning off the echo by default. (A sane default!)

Though I'm searching for the `systemd-ask-password` command location;
any further help would be really appreciated!

Thanks!

[0] https://www.freedesktop.org/software/systemd/man/systemd-ask-password.html
[1] https://imgur.com/u4nw6Lb
-- 
Avinash Sonawane (rootKea)
PICT, Pune
https://rootkea.wordpress.com



Re: LUKS password gets printed as stars

2017-12-18 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Dec 18, 2017 at 10:17:07AM -0500, Cindy-Sue Causey wrote:

[...]

> Is it possible to pre-populate that field somehow in a way that
> doesn't change when any given user's moniker (username, account name,
> alias) is chosen? I'm imagining it to be in a similar way to how
> webmasters can define temporary, explanatory text in online form text
> fields.

I don't quite get that: you mean the password entry in a terminal?
What would be its use?

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

iEYEARECAAYFAlo36qUACgkQBcgs9XrR2kbWTwCeJ8D5/qMxRGVIFeF3qIKyj7ZS
UCUAnjQ110qbgxHrvi00LQ4LH2aDvU+X
=FNlX
-END PGP SIGNATURE-



Re: Needed - a byte perfect image of an entire partition

2017-12-18 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Dec 18, 2017 at 09:07:54AM -0600, Richard Owlett wrote:
> On 12/18/2017 08:47 AM, to...@tuxteam.de wrote:
> >-BEGIN PGP SIGNED MESSAGE-
> >Hash: SHA1
> >
> >On Mon, Dec 18, 2017 at 02:38:35PM +, Darac Marjal wrote:
> >
> >Needless to say, the partition in question shouldn't be mounted
> >(more precisely, it should at most be mounted read-only [...])

> Some things I do right ;/

I'm sure of that :-)

I just wanted to stress on that point, perhaps also for the
benefit of others stumbling upon this in the archives...

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

iEYEARECAAYFAlo36ewACgkQBcgs9XrR2kbAwACfUDPNbUX0M2HuV8n4KjotK8A+
7rsAn3HLMFH1rICPrtiDH2dqdfP/rWeJ
=ADyX
-END PGP SIGNATURE-



Re: LUKS password gets printed as stars

2017-12-18 Thread Cindy-Sue Causey
On 12/18/17, Cindy-Sue Causey  wrote:
> On 12/18/17, to...@tuxteam.de  wrote:
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> On Mon, Dec 18, 2017 at 02:53:27PM +0100, Jeroen Mathon wrote:
>>
>> Don't forget to cc root kea, (s)he isn't on list. And oh, don't
>> top post... pretty please :-)
>>
>>> I have never seen any stars in my Luks screen.
>>>
>>> As long as it decrypts the drive i see no real issue here.
>>
>> Perhaps root kea doesn't want others to see the passphrase's
>> length? Perhaps it's just custom? Being able to configure
>> that seems a legitimate wish, to me at least.
>
>
> It crossed my mind, too, that root kea wanted to mask the ability to
> see password length. I've relied a little on that password length hint
> a time or two out on the Net when using my own passwords.
>
> These days I've noticed a few places will mask the length by showing
> the wrong number of asterisks. I've seen it go either way where there
> are more asterisks or less asterisks than the actual length of website
> access passwords. If I encounter that feature again soon, I'll come
> back and update with where it was seen.


Ok, I *literally* smacked myself in the head this time. The split
second my first email here successfully posted, a thought occurred...

Is it possible to pre-populate that field somehow in a way that
doesn't change when any given user's moniker (username, account name,
alias) is chosen? I'm imagining it to be in a similar way to how
webmasters can define temporary, explanatory text in online form text
fields.

Cindy :)
-- 
Cindy-Sue Causey
Talking Rock, Pickens County, Georgia, USA



Re: LUKS password gets printed as stars

2017-12-18 Thread Cindy-Sue Causey
On 12/18/17, to...@tuxteam.de  wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On Mon, Dec 18, 2017 at 02:53:27PM +0100, Jeroen Mathon wrote:
>
> Don't forget to cc root kea, (s)he isn't on list. And oh, don't
> top post... pretty please :-)
>
>> I have never seen any stars in my Luks screen.
>>
>> As long as it decrypts the drive i see no real issue here.
>
> Perhaps root kea doesn't want others to see the passphrase's
> length? Perhaps it's just custom? Being able to configure
> that seems a legitimate wish, to me at least.


It crossed my mind, too, that root kea wanted to mask the ability to
see password length. I've relied a little on that password length hint
a time or two out on the Net when using my own passwords.

These days I've noticed a few places will mask the length by showing
the wrong number of asterisks. I've seen it go either way where there
are more asterisks or less asterisks than the actual length of website
access passwords. If I encounter that feature again soon, I'll come
back and update with where it was seen.

Cindy :)
-- 
Cindy-Sue Causey
Talking Rock, Pickens County, Georgia, USA

* runs with duct tape *



Re: Needed - a byte perfect image of an entire partition

2017-12-18 Thread Richard Owlett

On 12/18/2017 08:47 AM, to...@tuxteam.de wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Dec 18, 2017 at 02:38:35PM +, Darac Marjal wrote:

Needless to say, the partition in question shouldn't be mounted
(more precisely, it should at most be mounted read-only, but
better even you shouldn't have mounted it read-write since you
discovered that there's a flaky file system on it anyway, at
least until you have a copy of it).


Some things I do right ;/



Otherwise I concur with all said by the previous posters.

Cheers
- -- tomás






Re: Needed - a byte perfect image of an entire partition

2017-12-18 Thread Richard Owlett

On 12/18/2017 08:38 AM, Darac Marjal wrote:

On Mon, Dec 18, 2017 at 08:06:07AM -0600, Richard Owlett wrote:

Background:
I did my first Debian install with Jessie.
I then went on to multi-boot a variety of versions and preferences.
There was always an install of current "old-stable" present.

Current problem:
I intend to wipe everything from dev /sda and do a fresh install using
configurations and partitioning that I've discovered that meet my
individualist requirements.

Preserving content of most partitions can be done with Clonezilla.

However one partition was corrupted. I found some data retrieval tools
which recovered most, but not all, data. I want a byte perfect copy of
that partition such that in the future I can attempt to retrieve more
data.


If you suspect the disk is damaged, take a look at ddrescue (debian
package: gddrescue). This can perform various "tricks" on a damaged disk
(jumping over a failing sector, reading forwards and backwards around
the damage, etc) in order to extract as much useful data as possible.


I believe that may have been the one I used.



If the disk is fine, though, you'll find that standard tools (dd, cat,
etc) are just as quick.


As I attribute problem to operator rather than OS or hardware problems, 
I'll try those with comparing checksums.


Thank you.





OOOPS ;/ - was [Re: Needed - a byte perfect image of an entire partition]

2017-12-18 Thread Richard Owlett

On 12/18/2017 08:25 AM, Jeroen Mathon wrote:

`dd bs=64k if=/dev/sda of=./image.img conv=noerror,sync status=progress`

You can thank me later.



ROFL - some times I miss the obvious.
I was doing searches on key words such as "backup" and "clone".

This late enough to say "Thank you"?





Re: Stretch/Xfce: five xclock's running on startup

2017-12-18 Thread Cindy-Sue Causey
On 12/18/17, Cindy-Sue Causey  wrote:
> On 12/18/17, Roger Price  wrote:
>> Hi, command "inxi -S" reports
>>   Host: maria Kernel: 4.9.0-4-amd64 x86_64 (64 bit) Desktop: Xfce 4.12.3
>>
>> The user has defined $HOME/.config/autostart/xclock.desktop as
>>
>> [Desktop Entry]
>> Name=Clock
>> Comment=Clock with seconds hand
>> Icon=xclock
>> Exec=xclock -update 1 -geometry 200x200+150+400
>> Terminal=false
>> Type=Application
>>
>> When the user logs in, he gets multiple instances of xclock.
>>
>> root@maria ~ → ps -elf | grep -E "xclock|xfce4-session"
>>   0 S rprice1828  1757  0  80   0 - 84510 SyS_po 11:59 tty2
>> 00:00:00 xfce4-session
>>   0 S rprice1861  1828  0  80   0 - 17225 SyS_po 11:59 tty2
>> 00:00:00 xclock -xtsessionID
>> 2c551690d-8efb-4da6-b355-e5df701247f2
>> -update 1 -geometry 200x200+150+400
>>   0 S rprice1869  1828  0  80   0 - 17225 SyS_po 11:59 tty2
>> 00:00:00 xclock -xtsessionID
>> 2a3e8f976-91d6-4127-bcd2-53cf55e7036f
>> -update 1 -geometry 200x200+150+400
>>   0 S rprice1870  1828  0  80   0 - 17225 SyS_po 11:59 tty2
>> 00:00:00 xclock -xtsessionID
>> 26ca134b7-27ad-4be3-adb9-24153b08bd35
>> -update 1 -geometry 200x200+150+400
>>   0 S rprice1888  1828  0  80   0 - 17225 SyS_po 11:59 tty2
>> 00:00:00 xclock -xtsessionID
>> 238b91a2f-08bd-4734-9417-d283122ab160
>> -update 1 -geometry 200x200+150+400
>>   0 S rprice1975  1828  0  80   0 - 17225 SyS_po 11:59 tty2
>> 00:00:00 xclock -update 1 -geometry
>> 200x200+150+400
>>
>> Why is this?  Is there some way of avoiding these extra xclock's?
>> The user's xosview.desktop produces only one copy of xosview, and
>> xload.desktop produces only one xload.


I hate when this happen.. I missed that xclock.desktop part completely
on my first take on this. I'm willing to test drive that IF it's safe.
What does that do if I try the same here?

Cindy *smacking my head* :)
-- 
Cindy-Sue Causey
Talking Rock, Pickens County, Georgia, USA

* runs with duct tape *



Re: Needed - a byte perfect image of an entire partition

2017-12-18 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Dec 18, 2017 at 02:38:35PM +, Darac Marjal wrote:

Needless to say, the partition in question shouldn't be mounted
(more precisely, it should at most be mounted read-only, but
better even you shouldn't have mounted it read-write since you
discovered that there's a flaky file system on it anyway, at
least until you have a copy of it).

Otherwise I concur with all said by the previous posters.

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

iEYEARECAAYFAlo31QIACgkQBcgs9XrR2ka9VQCdF732wsFWlV7E4Xxjx6z8TZrl
l6AAnRdyPd4yQUTk3b4RpG+P3PJxhyzF
=m5Tl
-END PGP SIGNATURE-



Re: Stretch/Xfce: five xclock's running on startup

2017-12-18 Thread Cindy-Sue Causey
On 12/18/17, Roger Price  wrote:
> Hi, command "inxi -S" reports
>   Host: maria Kernel: 4.9.0-4-amd64 x86_64 (64 bit) Desktop: Xfce 4.12.3
>
> The user has defined $HOME/.config/autostart/xclock.desktop as
>
> [Desktop Entry]
> Name=Clock
> Comment=Clock with seconds hand
> Icon=xclock
> Exec=xclock -update 1 -geometry 200x200+150+400
> Terminal=false
> Type=Application
>
> When the user logs in, he gets multiple instances of xclock.
>
> root@maria ~ → ps -elf | grep -E "xclock|xfce4-session"
>   0 S rprice1828  1757  0  80   0 - 84510 SyS_po 11:59 tty2
> 00:00:00 xfce4-session
>   0 S rprice1861  1828  0  80   0 - 17225 SyS_po 11:59 tty2
> 00:00:00 xclock -xtsessionID
> 2c551690d-8efb-4da6-b355-e5df701247f2
> -update 1 -geometry 200x200+150+400
>   0 S rprice1869  1828  0  80   0 - 17225 SyS_po 11:59 tty2
> 00:00:00 xclock -xtsessionID
> 2a3e8f976-91d6-4127-bcd2-53cf55e7036f
> -update 1 -geometry 200x200+150+400
>   0 S rprice1870  1828  0  80   0 - 17225 SyS_po 11:59 tty2
> 00:00:00 xclock -xtsessionID
> 26ca134b7-27ad-4be3-adb9-24153b08bd35
> -update 1 -geometry 200x200+150+400
>   0 S rprice1888  1828  0  80   0 - 17225 SyS_po 11:59 tty2
> 00:00:00 xclock -xtsessionID
> 238b91a2f-08bd-4734-9417-d283122ab160
> -update 1 -geometry 200x200+150+400
>   0 S rprice1975  1828  0  80   0 - 17225 SyS_po 11:59 tty2
> 00:00:00 xclock -update 1 -geometry
> 200x200+150+400
>
> Why is this?  Is there some way of avoiding these extra xclock's?
> The user's xosview.desktop produces only one copy of xosview, and
> xload.desktop produces only one xload.


Hi.. I don't have any answer but lurked along since I just
debootstrap'ed in another Stretch/XFCE4 combo the other day. I just
now installed inxi and received this:

0 S candyca+   722   677  0  80   0 - 82264 SyS_po Dec14 ?
00:00:00 xfce4-session

It also incidentally echoed back the grep command.

Hadn't heard of xosview before, either. As such, I have no idea of its
significance in this case, but installed it, too. I love it. It's like
going back to the innocence of the 90's. :)

Ran the grep again after installing xosview, and feedback remained the
same. One different factor is that mine's been running for a couple
days. If I remember to, I'll run that again at an upcoming intended
reboot to see if things change. My guess would be that it wouldn't.

You know, as I write that last part, something came back to memory. My
Debian, forgot what combo now, went through a period of Thunar
surviving and thus staying somehow live/active through reboots. The
window wouldn't pop up, but Thunar was grep'able in my "ps aux"
queries I was running at that time.

It was purely by accident that I discovered Thunar was somehow
surviving reboots. I was having problems with something unrelated, and
there sat Thunar like it was open when it hadn't yet been used after a
fresh reboot. A Developer apparently caught it or accidentally fixed
it while addressing some other issue or feature because I haven't seen
that occur in a while now...

Cindy :)
-- 
Cindy-Sue Causey
Talking Rock, Pickens County, Georgia, USA

* runs with duct tape *



Re: Needed - a byte perfect image of an entire partition

2017-12-18 Thread Darac Marjal

On Mon, Dec 18, 2017 at 08:06:07AM -0600, Richard Owlett wrote:

Background:
I did my first Debian install with Jessie.
I then went on to multi-boot a variety of versions and preferences.
There was always an install of current "old-stable" present.

Current problem:
I intend to wipe everything from dev /sda and do a fresh install using 
configurations and partitioning that I've discovered that meet my 
individualist requirements.


Preserving content of most partitions can be done with Clonezilla.

However one partition was corrupted. I found some data retrieval tools 
which recovered most, but not all, data. I want a byte perfect copy of 
that partition such that in the future I can attempt to retrieve more 
data.


If you suspect the disk is damaged, take a look at ddrescue (debian 
package: gddrescue). This can perform various "tricks" on a damaged disk 
(jumping over a failing sector, reading forwards and backwards around 
the damage, etc) in order to extract as much useful data as possible.


If the disk is fine, though, you'll find that standard tools (dd, cat, 
etc) are just as quick. 

All of this tends to rely on the kernel to do the actual reading. 
Usually, the kernel <-> disk interface is reliable - that is, if the 
kernel reports that a byte was 0xab, then you can trust that it was 
0xab. But if you don't trust the interface (perhaps the disk controller 
is introducing noise, resulting in bit errors), then I'm not sure what 
you can do. You could try copying several times and performing a 
checksum to look for changes; if the noise IS random, then the checksum 
will change. Finding two copies with identical checksums SHOULD indicate 
a valid copy.




Suggestions?
TIA




--
For more information, please reread.


signature.asc
Description: PGP signature


Re: Needed - a byte perfect image of an entire partition

2017-12-18 Thread Jeroen Mathon
`dd bs=64k if=/dev/sda of=./image.img conv=noerror,sync status=progress`

You can thank me later.


On 12/18/2017 03:06 PM, Richard Owlett wrote:
> Background:
> I did my first Debian install with Jessie.
> I then went on to multi-boot a variety of versions and preferences.
> There was always an install of current "old-stable" present.
>
> Current problem:
> I intend to wipe everything from dev /sda and do a fresh install using
> configurations and partitioning that I've discovered that meet my
> individualist requirements.
>
> Preserving content of most partitions can be done with Clonezilla.
>
> However one partition was corrupted. I found some data retrieval tools
> which recovered most, but not all, data. I want a byte perfect copy of
> that partition such that in the future I can attempt to retrieve more
> data.
>
> Suggestions?
> TIA
>
>




signature.asc
Description: OpenPGP digital signature


Needed - a byte perfect image of an entire partition

2017-12-18 Thread Richard Owlett

Background:
I did my first Debian install with Jessie.
I then went on to multi-boot a variety of versions and preferences.
There was always an install of current "old-stable" present.

Current problem:
I intend to wipe everything from dev /sda and do a fresh install using 
configurations and partitioning that I've discovered that meet my 
individualist requirements.


Preserving content of most partitions can be done with Clonezilla.

However one partition was corrupted. I found some data retrieval tools 
which recovered most, but not all, data. I want a byte perfect copy of 
that partition such that in the future I can attempt to retrieve more data.


Suggestions?
TIA




Re: LUKS password gets printed as stars

2017-12-18 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Dec 18, 2017 at 02:53:27PM +0100, Jeroen Mathon wrote:

Don't forget to cc root kea, (s)he isn't on list. And oh, don't
top post... pretty please :-)

> I have never seen any stars in my Luks screen.
> 
> As long as it decrypts the drive i see no real issue here.

Perhaps root kea doesn't want others to see the passphrase's
length? Perhaps it's just custom? Being able to configure
that seems a legitimate wish, to me at least.

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

iEYEARECAAYFAlo3ydgACgkQBcgs9XrR2kabKQCfdC2bq8imH4DDJmmHHQlnPQvp
7WcAn23qdrI6Jk9C+xVFFjS+phZfuOds
=7wWk
-END PGP SIGNATURE-



Re: LUKS password gets printed as stars

2017-12-18 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Dec 18, 2017 at 06:41:00PM +0530, root kea wrote:
> Hello!
> 
> I am using LUKS on LVM on Debian Stretch. I have encrypted /home and
> swap partition. When initram gets loaded it asks for password to
> decrypt swap partition. That passowrd doesn't get printed to screen.
> No stars. Nothing.
> 
> But After which Kernel gets loaded (I think) and it asks password for
> /home which gets printed as stars. I'm really worried about this. Here
> is a screenshot https://imgur.com/bC4AF6H

This looks like two different programs at work for asking your password.
At early time (your swap case), it's probably the "naked" cryptsetup,
which doesn't show any stars (for me, that's always, since I always
use "naked" cryptsetup). Later on (for your /home partition), init
has taken over and is probably calling cryptsetup on your behalf,
possibly using something else to collect the passphrase from you.

My crystal ball says you're using systemd. It seems that it has a
special "unit" to mount encrypted file systems [1], which may call
into one of several password agents [2]. If this hunch is correct,
you may start with [2], find out which agent you are talking to
and perhaps reconfigure it in the way you like.

I haven't systemd over here, so that's all advice I can muster up.
Perhaps someone more knowledgeable can chime in.

> PS - while replying please CC me as I'm not subscribed to debian-users.

Done.

Cheers

[1] https://www.linux.org/docs/man8/systemd-cryptsetup.html
[2] https://www.freedesktop.org/wiki/Software/systemd/PasswordAgents/
- -- tomás
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlo3yNkACgkQBcgs9XrR2kYl4QCfcSMMdkBxTR/k4vYUVms/EFD+
tq0AnRFbM6JD4/wsym3UDdboak20AIfp
=6JGh
-END PGP SIGNATURE-



Re: LUKS password gets printed as stars

2017-12-18 Thread Jeroen Mathon
I have never seen any stars in my Luks screen.

As long as it decrypts the drive i see no real issue here.


On 12/18/2017 02:41 PM, Roberto C. Sánchez wrote:
> On Mon, Dec 18, 2017 at 06:41:00PM +0530, root kea wrote:
>> Hello!
>>
>> I am using LUKS on LVM on Debian Stretch. I have encrypted /home and
>> swap partition. When initram gets loaded it asks for password to
>> decrypt swap partition. That passowrd doesn't get printed to screen.
>> No stars. Nothing.
>>
>> But After which Kernel gets loaded (I think) and it asks password for
>> /home which gets printed as stars. I'm really worried about this. Here
>> is a screenshot https://imgur.com/bC4AF6H
>>
>> How do I prevent those stars from getting printed on the screen?
>>
> Whether stars are echoed or nothing is echoed, the passphrase remains
> concealed.  What is the precise vulnerability that you are trying to
> address?
>
> Regards,
>
> -Roberto
>




signature.asc
Description: OpenPGP digital signature


Re: LUKS password gets printed as stars

2017-12-18 Thread Roberto C . Sánchez
On Mon, Dec 18, 2017 at 06:41:00PM +0530, root kea wrote:
> Hello!
> 
> I am using LUKS on LVM on Debian Stretch. I have encrypted /home and
> swap partition. When initram gets loaded it asks for password to
> decrypt swap partition. That passowrd doesn't get printed to screen.
> No stars. Nothing.
> 
> But After which Kernel gets loaded (I think) and it asks password for
> /home which gets printed as stars. I'm really worried about this. Here
> is a screenshot https://imgur.com/bC4AF6H
> 
> How do I prevent those stars from getting printed on the screen?
> 

Whether stars are echoed or nothing is echoed, the passphrase remains
concealed.  What is the precise vulnerability that you are trying to
address?

Regards,

-Roberto

-- 
Roberto C. Sánchez



LUKS password gets printed as stars

2017-12-18 Thread root kea
Hello!

I am using LUKS on LVM on Debian Stretch. I have encrypted /home and
swap partition. When initram gets loaded it asks for password to
decrypt swap partition. That passowrd doesn't get printed to screen.
No stars. Nothing.

But After which Kernel gets loaded (I think) and it asks password for
/home which gets printed as stars. I'm really worried about this. Here
is a screenshot https://imgur.com/bC4AF6H

How do I prevent those stars from getting printed on the screen?

PS - while replying please CC me as I'm not subscribed to debian-users.

Thank you.

Regards,
Avinash Sonawane (rootKea)
PICT, Pune
https://rootkea.wordpress.com



Stretch/Xfce: five xclock's running on startup

2017-12-18 Thread Roger Price

Hi, command "inxi -S" reports
 Host: maria Kernel: 4.9.0-4-amd64 x86_64 (64 bit) Desktop: Xfce 4.12.3

The user has defined $HOME/.config/autostart/xclock.desktop as

[Desktop Entry]
Name=Clock
Comment=Clock with seconds hand
Icon=xclock
Exec=xclock -update 1 -geometry 200x200+150+400
Terminal=false
Type=Application

When the user logs in, he gets multiple instances of xclock.

root@maria ~ → ps -elf | grep -E "xclock|xfce4-session"
 0 S rprice1828  1757  0  80   0 - 84510 SyS_po 11:59 tty2
   00:00:00 xfce4-session
 0 S rprice1861  1828  0  80   0 - 17225 SyS_po 11:59 tty2
   00:00:00 xclock -xtsessionID 
2c551690d-8efb-4da6-b355-e5df701247f2
   -update 1 -geometry 200x200+150+400
 0 S rprice1869  1828  0  80   0 - 17225 SyS_po 11:59 tty2
   00:00:00 xclock -xtsessionID 
2a3e8f976-91d6-4127-bcd2-53cf55e7036f
   -update 1 -geometry 200x200+150+400
 0 S rprice1870  1828  0  80   0 - 17225 SyS_po 11:59 tty2
   00:00:00 xclock -xtsessionID 
26ca134b7-27ad-4be3-adb9-24153b08bd35
   -update 1 -geometry 200x200+150+400
 0 S rprice1888  1828  0  80   0 - 17225 SyS_po 11:59 tty2
   00:00:00 xclock -xtsessionID 
238b91a2f-08bd-4734-9417-d283122ab160
   -update 1 -geometry 200x200+150+400
 0 S rprice1975  1828  0  80   0 - 17225 SyS_po 11:59 tty2
   00:00:00 xclock -update 1 -geometry 200x200+150+400

Why is this?  Is there some way of avoiding these extra xclock's?
The user's xosview.desktop produces only one copy of xosview, and 
xload.desktop produces only one xload.


Roger


Re: how to enable trim for an external encrypted SSD?

2017-12-18 Thread Christian Seiler
Hi again,

A quick follow-up, because cryptsetup 2.0.0 was recently released:

On 11/06/2017 02:28 PM, Christian Seiler wrote:
> And while you might be able to reconfigure udisks to pass the discard
> option to cryptsetup (though I'm also doubtful about that), that
> configuration would have to happen on each individual computer, and
> can't be put onto the external drive.

The new LUKS2 header format (requires cryptsetup 2.0.0) does support
this, the release announcement specifically mentions discards as a
feature option:

Quoting
:

  * Persistent flags
The activation flags (like allow-discards) can be stored in
metadata and used automatically by all later activations (even
without using crypttab).

To store activation flags permanently, use activation command
with required flags and add --persistent option.

For example, to mark device to always activate with TRIM
enabled, use (for LUKS2 type):

 $ cryptsetup open   --allow-discards --persistent

You can check persistent flags in dump command output:

$ cryptsetup luksDump 

Doesn't help you directly because of the problems you've described
with your USB adapter not forwarding TRIM commands properly, and
this feature will not be part of Debian before the release of
Debian 10/Buster (I hope at least ;-)), but I still wanted to
mention this in case anyone stumbles over this thread in the
mailing list archives.

Regards,
Christian



Re: soucis avec code-brand et loolwsd

2017-12-18 Thread Michel Memeteau - EKIMIA
Bonjour bernard,

le plus simple a priori est de passer par Docker :

https://hub.docker.com/r/collabora/code/

Mais le depot debian9 devrait fonctionner pourtant
<-->
Michel Memeteau  - Directeur.


Notre Boutique Ordinateurs GNU/Linux : http://shop.ekimia.fr
280 avenue de la malvesine 13720 La Bouilladisse - France.
Fixe :  +33 (0) 972308334   Mobile : +33(0) 624808051
<-->


Le 13 décembre 2017 à 20:54, Bernard Schoenacker
 a écrit :
>
>
> - Mail original -
>> De: "Bernard Schoenacker" 
>> À: "ML Debian User French" 
>> Envoyé: Mercredi 13 Décembre 2017 20:27:00
>> Objet: soucis avec code-brand et loolwsd
>>
>> bonjour,
>>
>> je suis en train de mettre en place collab avec libreoffice
>> et voici le problème :
>>
>>  apt-get upgrade
>> Lecture des listes de paquets... Fait
>> Construction de l'arbre des dépendances
>> Lecture des informations d'état... Fait
>> Calcul de la mise à jour... Fait
>> Les paquets suivants ont été conservés :
>>   apache2 apache2-bin apache2-data apache2-doc apache2-utils
>> 0 mis à jour, 0 nouvellement installés, 0 à enlever et 5 non mis à
>> jour.
>> 2 partiellement installés ou enlevés.
>> Il est nécessaire de prendre 0 o/2 432 ko dans les archives.
>> Après cette opération, 0 o d'espace disque supplémentaires seront
>> utilisés.
>> Souhaitez-vous continuer ? [O/n]
>> dpkg: des problèmes de dépendances empêchent la configuration de
>> code-brand :
>>  code-brand dépend de loolwsd (>= 1.6.10) ; cependant :
>>   Le paquet loolwsd n'est pas installé.
>>
>> dpkg: erreur de traitement du paquet code-brand (--configure) :
>>  problèmes de dépendances - laissé non configuré
>> Des erreurs ont été rencontrées pendant l'exécution :
>>  code-brand
>> needrestart is being skipped since dpkg has failed
>> E: Sub-process /usr/bin/dpkg returned an error code (1)
>>
>>
>> apt-cache policy loolwsd
>> loolwsd:
>>   Installé : 2.1.5-5
>>   Candidat : 2.1.5-5
>>  Table de version :
>>  *** 2.1.5-5 500
>> 500
>> https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-debian9
>> ./ Packages
>> 100 /var/lib/dpkg/status
>>
>> apt-cache policy code-brand
>> code-brand:
>>   Installé : 2.1-1
>>   Candidat : 2.1-1
>>  Table de version :
>>  *** 2.1-1 500
>> 500
>> https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-debian9
>> ./ Packages
>> 100 /var/lib/dpkg/status
>>
>>
>>
>> comment forcer les paquets ?
>>
>>
>> slt
>> bernard
>>
>>
>
>
> bonjour,
>
> j'ai maintenant une erreur plus claire :
>
> W : APT had planned for dpkg to do more than it reported back (45 vs 49).
>  Affected packages: code-brand:amd64
>
>
> mais que faire ?
>
> slt
> bernard
>