Re: Trying to understand man page for dd

2017-05-28 Thread Thomas Schmitt
Hi,

David wrote:
> https://explainshell.com/explain?cmd=dd+if%3D%2Fdev%2Fzero+of%3D%2Fdev%2Fnul
l%26+pid%3D%24!

For a machine this is not a bad answer.

> https://explainshell.com/explain?cmd=kill+-USR1+%24pid%3B+sleep+1%3B+kill+%2
4pid

But this one missed the point quite clearly.
(It gets no clue that the signals are sent to dd. So the result can only
 be unspecific info.)


Have a nice day :)

Thomas



Re: javascript

2017-05-28 Thread Shannon Price


Sent from my iPhone



Re: Trying to understand man page for dd

2017-05-28 Thread David
On 28 May 2017 at 21:58, Richard Owlett  wrote:
> It says in part:
>>
>> Sending a USR1 signal to a running 'dd' process makes it print I/O
>> statistics to standard error and then resume copying.
>>
>> $ dd if=/dev/zero of=/dev/null& pid=$!
>>
>> $ kill -USR1 $pid; sleep 1; kill $pid
>
>
> I think it is trying to tell me what I need to know.
> But there is too much going on there,
> Guidance please.

If you browse to explainshell.com and paste shell commands that you
don't understand,
it parses the commands and gives excerpts from relevant docs, which
might help you
in future.

I pasted your two command above, and received the following results.
(If perhaps these links dont work, just paste the commands yourself).

https://explainshell.com/explain?cmd=dd+if%3D%2Fdev%2Fzero+of%3D%2Fdev%2Fnull%26+pid%3D%24!

https://explainshell.com/explain?cmd=kill+-USR1+%24pid%3B+sleep+1%3B+kill+%24pid



Re: Firefox ESR 52 in stretch

2017-05-28 Thread pjw
On Wed, May 3, 2017, at 06:57 AM, Felix Miata wrote:

> Be careful what you wish for:
> https://www.mozilla.org/en-US/firefox/52.0/releasenotes/
> ...
> On Linux, Firefox now requires PulseAudio to play sound and no longer plays
> sound directly with ALSA...

ALSA sound does work in Firefox ESR 52

https://packages.debian.org/experimental/firefox-esr



Re: standard way of installing audacity documentation on debian stretch, is there a package?

2017-05-28 Thread Brian
On Sun 28 May 2017 at 11:48:35 -0700, Dan Hitt wrote:

The primary reference here is

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=313038

> :)
> 
> Thanks David!!
> 
> In the ubuntu bug tracking system, at least iirc, there's a place you
> can click to indicate 'This affects me too'.
> 
> Is there any way of doing this for debian?

No. "Me too"s are not a feature of the BTS. *Extra* information of
import could be added to the report.

-- 
Brian.



Re: standard way of installing audacity documentation on debian stretch, is there a package?

2017-05-28 Thread Dan Hitt
:)

Thanks David!!

In the ubuntu bug tracking system, at least iirc, there's a place you
can click to indicate 'This affects me too'.

Is there any way of doing this for debian?

Anyhow, thanks again for informing me of the situation.

dan

On Sun, May 28, 2017 at 12:23 AM, David  wrote:
> On 28 May 2017 at 14:19, Dan Hitt  wrote:
>> I installed audacity on my debian 9 (stretch) system.
>
> [...]
>
>> There are remote links offered, of course, but i would like the
>> software to function as designed, so i assume there must be some
>> package that has the audacity docs?
>
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=313038
>
> 2005 wishlist bug reported
> 2009 response: wontfix
> 2017 ?



Re: unable to repartition SD card from Android phone

2017-05-28 Thread David Christensen

On 05/28/2017 02:35 AM, Pascal Hambourg wrote:

Le 27/05/2017 à 22:58, David Christensen a écrit :


I bought a SanDisk 32GB Micro SDHC card for my Android phone a while
back.  It came with a Micro SDHC to SD adapter, and the adapter has an
unmarked switch in the same style and location of the write-protect
switches on my other SD cards.


It is not a switch. It is a lock. Its physical position is sensed by a
switch inside the card reader, just like the lock on floppy disks was
sensed by a switch inside the floppy disk drive.


Thanks for the clarification.  :-)


David




Re: buying ssl certificate

2017-05-28 Thread Umarzuki Mochlis
>
>> Recently came to the market some lowcoast ssl certificate providers. Or free 
>> ssl providers. What do you think about them ?
>
> I think the best of the free ones is letsencrypt.
>
> Cheers,
> Andy
>
> --
> https://bitfolk.com/ -- No-nonsense VPS hosting
>

I'm using letsencrypt with certbot on debian 8 for owncloud 9 with
apache2 and it works great so far.

If you feel that you must pay for it, take a look at comparisons of
ssl certificates at below URL to make informed decision
https://www.instantssl.com/compare-ssl-certificates.html



Re: Unable to install custom package using defined dependency version

2017-05-28 Thread Sijis Aviles
On May 27, 2017 3:48 PM, "David Wright"  wrote:

On Sat 27 May 2017 at 13:51:01 (-0500), Sijis Aviles wrote:
> On May 26, 2017 7:09 PM, I wrote:
>
>> cpp-4.8 and gcc-4.8,
>> python2.7-minimal and python2.7,
>> python3-minimal and python3,
>> etc.
>>
>  Ahh, I didn't realize you suggested to make the package name include the
> version (eg my-app-1.0.5).
>
> That's an interesting approach I didn't think about.
>
> Related, but how do other places do "nightly" build of their packages.

I don't know what they are.

I just thought about this.

I've been uploading these packages under the 'main' component name. What if
I uploaded the packages under a 'nightly-$(date)' component name instead?
In theory if I have my sources.list setup right, the my-app and app-configs
would need to change their package name to include the version. It would
also mean that they only find each other, right?

I haven't tested this theory out.

Sijis


Re: buying ssl certificate

2017-05-28 Thread Andy Smith
Hello,

On Fri, May 26, 2017 at 10:04:42PM +, kc atgb wrote:
> I will have to buy/renew some certificates we have at my job. 
> 
> There are a certain number of certificates providers. The question I have is 
> which one do I have to consider ? 

Domain-validated (i.e. they just check you can receive email at the
domain, or that you can put something int eh domain's DNS) TLS
certificates are all pretty much the same.

Your worst case scenario is that the certificate authority is found
to be hopelessly insecure and is distrusted by one or more major
browsers.

I suggest it is worth your time to get letsencrypt automation
working and just use those, for free.

If you need extended validation for some reason then the costs will
vary, pick any big name. You'd probably know what to do already if
this were a requirement though.

> Recently came to the market some lowcoast ssl certificate providers. Or free 
> ssl providers. What do you think about them ? 

I think the best of the free ones is letsencrypt. 

Cheers,
Andy

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



Re: Kingston Thumb Drive Comatose.

2017-05-28 Thread Pascal Hambourg

Le 28/05/2017 à 16:08, Jamie White a écrit :

I would suspect you need a specialist application to sort this, thing is,
when you plug in a disk drive, the system uses information from the first
sector to identify the drive and its size.


No, this information is not stored in the first sector nor anywhere else 
in the storage area. It is retrieved using a drive identification 
command, not a sector read command.



You get a similar problem when you zero out an entire hard disk


No, it is a completely different problem. It destroys partition tables, 
partitions and filesystems, not drive identification.



and there the solution is to manually enter into the bios the hard drive.


I don't see what you mean exactly, but that won't solve either problem.



Re: Kingston Thumb Drive Comatose.

2017-05-28 Thread Jamie White
I would suspect you need a specialist application to sort this, thing is,
when you plug in a disk drive, the system uses information from the first
sector to identify the drive and its size. You get a similar problem when
you zero out an entire hard disk, and there the solution is to manually
enter into the bios the hard drive.

What I suspect has happened in your case, is a wrap around when writing to
drive has overwritten the first sector.

Jamie

On Sun, May 28, 2017 at 10:54 AM, Pascal Hambourg 
wrote:

> Le 26/05/2017 à 23:06, Martin McCormick a écrit :
>
>> I have a 128 GB thumb drive which has been sitting in a
>> drawer for 2 or 3 years because it is not completely dead but had
>> a traumatic event.
>>
> (...)
>
> The drive is dead. The controller is still responding but the storage part
> is gone. Don't waste any more time with it.
>
>


-- 
Jamie


Re: Trying to understand man page for dd

2017-05-28 Thread Richard Owlett

On 05/28/2017 07:40 AM, Thomas Schmitt wrote:

Hi,

Richard Owlett wrote:

It says in part:

$ dd if=/dev/zero of=/dev/null& pid=$!
$ kill -USR1 $pid; sleep 1; kill $pid

I think it is trying to tell me what I need to know.


dd is started as background process, busily copying bytes from nowhere
to nowhere:

  dd if=/dev/zero of=/dev/null &

Because of the ampersand "&", the shell prompt comes back immediately
after the command line is interpreted and performed. This line contains
the additional assignment of the new process id number to variable "pid":

  pid=$!

The first command in the second line then sends signal USR1 to the
process that is busily copying bytes in background:

  kill -USR1 $pid

This causes the output lines shown in the example

  18335302+0  records  in  18335302+0 records out 9387674624 bytes
  (9.4 GB) copied, 34.6279 seconds, 271 MB/s

The second command simply waits a second before it ends:

  sleep 1

The third command sends signal TERM to the dd process:

  kill $pid

which causes it to end without message.


In the full documentation at
  
https://www.gnu.org/software/coreutils/manual/html_node/dd-invocation.html#dd-invocation
a paragraph near the page end gives a more detailed example:
  "Sending an ‘INFO’ signal (or ‘USR1’ signal where that is unavailable)
   to a running dd process makes it print I/O statistics to standard error
   ...
   # Output stats every second.
   ...
   "

Have a nice day :)

Thomas




*THANK YOU* !!!
I was closer to understanding it than I thought.
I've done a first read of the link you gave.
Not so much for this particular question, but in combination with your 
explanation it will lead to "grokking" some other things.
[For non-R.A.Heinlein readers, see 
https://www.merriam-webster.com/dictionary/grok ;]





Re: Trying to understand man page for dd

2017-05-28 Thread Thomas Schmitt
Hi,

Richard Owlett wrote:
> It says in part:
> > $ dd if=/dev/zero of=/dev/null& pid=$!
> > $ kill -USR1 $pid; sleep 1; kill $pid
> I think it is trying to tell me what I need to know.

dd is started as background process, busily copying bytes from nowhere
to nowhere:

  dd if=/dev/zero of=/dev/null &

Because of the ampersand "&", the shell prompt comes back immediately
after the command line is interpreted and performed. This line contains
the additional assignment of the new process id number to variable "pid":

  pid=$!

The first command in the second line then sends signal USR1 to the
process that is busily copying bytes in background:

  kill -USR1 $pid

This causes the output lines shown in the example

  18335302+0  records  in  18335302+0 records out 9387674624 bytes
  (9.4 GB) copied, 34.6279 seconds, 271 MB/s

The second command simply waits a second before it ends:

  sleep 1

The third command sends signal TERM to the dd process:

  kill $pid

which causes it to end without message.


In the full documentation at
  
https://www.gnu.org/software/coreutils/manual/html_node/dd-invocation.html#dd-invocation
a paragraph near the page end gives a more detailed example:
  "Sending an ‘INFO’ signal (or ‘USR1’ signal where that is unavailable)
   to a running dd process makes it print I/O statistics to standard error
   ...
   # Output stats every second.
   ...
   "

Have a nice day :)

Thomas



Re: buying ssl certificate

2017-05-28 Thread Nicholas Geovanis
On Fri, May 26, 2017 at 5:04 PM, kc atgb 
wrote:
>
> There are a certain number of certificates providers. The question I have
> is which one do I have to consider ?
> Recently came to the market some lowcoast ssl certificate providers. Or
> free ssl providers. What do you think about them ?
>

My employer uses Comodo and ssls.com. I will say that for the EV
certificates at Comodo, they do seem to
do their "due diligence" and properly verify the purchaser's identity, at
least if it's corporate. But the EV certs are more
expensive of course. For the free providers, I've never heard anything bad
about letsencrypt.org but I haven't
personally used them..Nick


Re: Trying to understand man page for dd

2017-05-28 Thread Richard Owlett

On 05/28/2017 07:05 AM, JPlews wrote:

On 28/05/17 12:58, Richard Owlett wrote:

It says in part:

Sending a USR1 signal to a running 'dd' process makes it print I/O
statistics to standard error and then resume copying.

$ dd if=/dev/zero of=/dev/null& pid=$!

$ kill -USR1 $pid; sleep 1; kill $pid


I think it is trying to tell me what I need to know.
But there is too much going on there,
Guidance please.
TIA





have a look at status=progress




Where?





Re: Trying to understand man page for dd

2017-05-28 Thread Richard Owlett

On 05/28/2017 07:04 AM, The Wanderer wrote:

On 2017-05-28 at 07:58, Richard Owlett wrote:


It says in part:


Sending a USR1 signal to a running 'dd' process makes it print I/O
statistics to standard error and then resume copying.

$ dd if=/dev/zero of=/dev/null& pid=$!

$ kill -USR1 $pid; sleep 1; kill $pid


I think it is trying to tell me what I need to know.
But there is too much going on there,
Guidance please.
TIA


Can you clarify what it is that you don't understand, or what it is
that you need to know?

Because the part you quoted (which I do recognize, and have made use
of myself in the past) seems perfectly straightforward and
understandable to me, and you haven't provided any context to
indicate what your problem is or what it is that you don't understand.



I suppose what I want is a translation of those two lines of script.
The man page just tosses it at me cold.
I didn't say what I was thinking because it would be pure noise.
Than man page was trying to convey something.
It did not.





Re: Trying to understand man page for dd

2017-05-28 Thread JPlews

On 28/05/17 12:58, Richard Owlett wrote:

It says in part:

Sending a USR1 signal to a running 'dd' process makes it print I/O
statistics to standard error and then resume copying.

$ dd if=/dev/zero of=/dev/null& pid=$!

$ kill -USR1 $pid; sleep 1; kill $pid


I think it is trying to tell me what I need to know.
But there is too much going on there,
Guidance please.
TIA





have a look at status=progress



Re: Trying to understand man page for dd

2017-05-28 Thread The Wanderer
On 2017-05-28 at 07:58, Richard Owlett wrote:

> It says in part:
> 
>> Sending a USR1 signal to a running 'dd' process makes it print I/O
>> statistics to standard error and then resume copying.
>>
>> $ dd if=/dev/zero of=/dev/null& pid=$!
>>
>> $ kill -USR1 $pid; sleep 1; kill $pid
> 
> I think it is trying to tell me what I need to know.
> But there is too much going on there,
> Guidance please.
> TIA

Can you clarify what it is that you don't understand, or what it is that
you need to know?

Because the part you quoted (which I do recognize, and have made use of
myself in the past) seems perfectly straightforward and understandable
to me, and you haven't provided any context to indicate what your
problem is or what it is that you don't understand.

-- 
   The Wanderer

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



signature.asc
Description: OpenPGP digital signature


Trying to understand man page for dd

2017-05-28 Thread Richard Owlett

It says in part:

Sending a USR1 signal to a running 'dd' process makes it print I/O
statistics to standard error and then resume copying.

$ dd if=/dev/zero of=/dev/null& pid=$!

$ kill -USR1 $pid; sleep 1; kill $pid


I think it is trying to tell me what I need to know.
But there is too much going on there,
Guidance please.
TIA





Re: Kingston Thumb Drive Comatose.

2017-05-28 Thread Pascal Hambourg

Le 26/05/2017 à 23:06, Martin McCormick a écrit :

I have a 128 GB thumb drive which has been sitting in a
drawer for 2 or 3 years because it is not completely dead but had
a traumatic event.

(...)

The drive is dead. The controller is still responding but the storage 
part is gone. Don't waste any more time with it.




Re: unable to repartition SD card from Android phone

2017-05-28 Thread Pascal Hambourg

Le 27/05/2017 à 22:58, David Christensen a écrit :


I bought a SanDisk 32GB Micro SDHC card for my Android phone a while
back.  It came with a Micro SDHC to SD adapter, and the adapter has an
unmarked switch in the same style and location of the write-protect
switches on my other SD cards.


It is not a switch. It is a lock. Its physical position is sensed by a 
switch inside the card reader, just like the lock on floppy disks was 
sensed by a switch inside the floppy disk drive.




Re: standard way of installing audacity documentation on debian stretch, is there a package?

2017-05-28 Thread David
On 28 May 2017 at 14:19, Dan Hitt  wrote:
> I installed audacity on my debian 9 (stretch) system.

[...]

> There are remote links offered, of course, but i would like the
> software to function as designed, so i assume there must be some
> package that has the audacity docs?

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=313038

2005 wishlist bug reported
2009 response: wontfix
2017 ?