Re: [PLUG] Figure out IP camera

2017-12-02 Thread Larry Brigman
Have you tried VLC against one of of the ports?
Also port 53 is normally DNS. Maybe it will provide the necessary
information.

On Dec 2, 2017 9:02 PM, "Chuck Hast"  wrote:

Folks,
I purchased a borescope, it has a wifi output on it to view the borescope
video,
but it works with android and iOS. I am trying to get into it with a web
browser to
see if I can pull the video that way.

A scan shows the following UDP ports open
53
8000
49153

I am assuming that they are using one of those ports for the video, but not
sure how to try to get it to send video to me without the app. I have tried
to
get a packet capture on the android device I have the app installed on.

This is a General Tool borescope (same concept at an endoscope) I would
like to be able to view the video on something beside a phone. I have been
able to find the paths to video sources on ip cameras but this thing has me
stumped.

I tried running wireshark on a laptop and tried to do a capture on the data
on the Wifi channel but no joy. I remember that I used to be able to do it
in
the past, but guess either the encryption or something is not working in
promiscuous mode. .

--

Chuck Hast  -- KP4DJT --
I can do all things through Christ which strengtheneth me.
Ph 4:13 KJV
Todo lo puedo en Cristo que me fortalece.
Fil 4:13 RVR1960
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


[PLUG] Figure out IP camera

2017-12-02 Thread Chuck Hast
Folks,
I purchased a borescope, it has a wifi output on it to view the borescope
video,
but it works with android and iOS. I am trying to get into it with a web
browser to
see if I can pull the video that way.

A scan shows the following UDP ports open
53
8000
49153

I am assuming that they are using one of those ports for the video, but not
sure how to try to get it to send video to me without the app. I have tried
to
get a packet capture on the android device I have the app installed on.

This is a General Tool borescope (same concept at an endoscope) I would
like to be able to view the video on something beside a phone. I have been
able to find the paths to video sources on ip cameras but this thing has me
stumped.

I tried running wireshark on a laptop and tried to do a capture on the data
on the Wifi channel but no joy. I remember that I used to be able to do it
in
the past, but guess either the encryption or something is not working in
promiscuous mode. .

-- 

Chuck Hast  -- KP4DJT --
I can do all things through Christ which strengtheneth me.
Ph 4:13 KJV
Todo lo puedo en Cristo que me fortalece.
Fil 4:13 RVR1960
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Converting audio files

2017-12-02 Thread Tomas Kuchta
I wanted to post separately on your continued external disk troubles.

Unless you leave external USB resource management to standard hotplug you
will continue to have these kind of issues and conflicts.

The only way to workaround with your fstab way would be to do all below:
a) mount your USB disk to other place than media, so it is not of the way
for normal hotplug schemes
b) use uuid instead of /dev/... in fstab. That way it is guaranteed to
mount only the right disk/partition to the mount dir from a)

Good luck,
Tomas

On Dec 2, 2017 3:11 PM, "Rich Shepard"  wrote:

>   I bought a small digital voice recorder which saves files in .wav format.
> I found a script to convert from .wav to .mp3, but this device apparently
> has a non-standard format (0x0011).
>
>   Another web search found Sound eXchanger (SoX) which will not only change
> wav formats but convert among many different types. Unfortunately, the
> build
> script available at SlackBuilds.org does not compile with mp2 and mp3
> support (I've written the maintainer about this). But, ...
>
>   Until I get sox working to convert from .wav to .mp3 another search
> taught
> me that the 'play' capability within sox produces sounds from .wav files on
> linux. This is an interim solution. Are there other audio format converters
> that I might try on these files?
>
>   On a related issue, /var/log/messages shows that the recorder is seen as
> the SCSI disk /dev/sdb. I have an entry in /etc/fstab for my 3T external
> hard drive (ext3 file system) which the kernel sees as /dev/sdb assigned to
> /mnt/hd/. Root can mount the vfat file system recorder on /mnt/hd/; can two
> devices (with different file systems) be listed in /etc/fstab to be mounted
> on the same mount point?
>
> Rich
> ___
> PLUG mailing list
> PLUG@pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Converting audio files

2017-12-02 Thread Tomas Kuchta
lame
ffmpeg

Should both work from command line given input.wav output.mp3 with optional
compression options.

ffmpeg in particular is the real "Swiss army knife" type of a tool.

-Tomas


On Dec 2, 2017 3:48 PM, "Dale Snell"  wrote:

On Sat, 2 Dec 2017 15:11:45 -0800 (PST), in message
alpine.lnx.2.20.1712021502330.21...@salmo.appl-ecosys.com, Rich Shepard
wrote:

>I bought a small digital voice recorder which saves files in .wav
> format. I found a script to convert from .wav to .mp3, but this
> device apparently has a non-standard format (0x0011).
>
>Another web search found Sound eXchanger (SoX) which will not only
> change wav formats but convert among many different types.
> Unfortunately, the build script available at SlackBuilds.org does not
> compile with mp2 and mp3 support (I've written the maintainer about
> this). But, ...
>
>Until I get sox working to convert from .wav to .mp3 another
> search taught me that the 'play' capability within sox produces
> sounds from .wav files on linux. This is an interim solution. Are
> there other audio format converters that I might try on these files?

Audacity has always worked well for me when it comes to converting
sound files.  FFMPEG is pretty good at conversions, too.

>On a related issue, /var/log/messages shows that the recorder is
> seen as the SCSI disk /dev/sdb. I have an entry in /etc/fstab for my
> 3T external hard drive (ext3 file system) which the kernel sees
> as /dev/sdb assigned to /mnt/hd/. Root can mount the vfat file system
> recorder on /mnt/hd/; can two devices (with different file systems)
> be listed in /etc/fstab to be mounted on the same mount point?

Give your 3TB hard drive a label, and use that label in fstab to
reference the drive when mounting it.  Or you could use a UUID,
but those are much longer to type.  :-)  The kernel assigns drive
locations on a first-come first-served basis, so using a label of
some sort is much more reliable than a drive location.

Hope this helps.

--Dale

--
Imagine if every Thursday your shoes exploded if you tied them the
usual way.  This happens to us all the time with computers, and
nobody thinks of complaining.-- Jeff Raskin
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Converting audio files [RESOLVED]

2017-12-02 Thread Rich Shepard

On Sat, 2 Dec 2017, Dale Snell wrote:


Audacity has always worked well for me when it comes to converting
sound files.  FFMPEG is pretty good at conversions, too.


Dale,

  Thanks. Dick Steffens suggested that and after upgrading audacity to the
latest version I found that it does do a good job of converting.


Give your 3TB hard drive a label, and use that label in fstab to reference
the drive when mounting it.


  Ah, of course. I'll read how to do this and make it happen.

Regards,

Rich
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Linux Journal magazine is no more

2017-12-02 Thread Tomas Kuchta
As far as I can say, based on their announcement. Their web presence will
last a little longer to accommodate the Linux Journal archive sales, etc.

I am not in the position of to know, but based on what they announced,
Linux Magazine or a private fund might be helping to stay on-line.

I also got their archive. It is a bargain and hopefully it will help them
close things down with employees and freelancers. The sooner, the better.

-T


On Dec 2, 2017 11:28 AM, "Michael Barnes"  wrote:

> Download link for the archive went through. Big file. Has all articles,
> letters, editorials, etc. searchable from the first issue to Nov 2017. I
> kind of wish they had the full issues to just read through like the early
> digital versions, but this is still a great resource. No idea how long this
> may be available, so you may want to jump as soon as possible. I thumbed
> through it last night, fond memories. I've read a lot of  Linux magazines,
> but LJ was the only one I actually subscribed to. Lots of catching up to
> do. Now I just have to figure out how to get it on my Kindle.
>
>
> On Sat, Dec 2, 2017 at 10:47 AM, Chuck Hast  wrote:
>
> > I am going to miss it. That was the first thing I did on the first of the
> > month
> > when the new digital issue was sent, set down (throne room session) read
> > it.
> >
> > My consternation when I opened what I thought was going to be the
> download
> > page and got that sad message. I think I have had a sub to it now for
> about
> > 10
> > years.
> >
> > I still hope someone can figure out how to keep it flying, but looks
> pretty
> > dark
> > right now.
> >
> > On Fri, Dec 1, 2017 at 9:12 PM, Neal  wrote:
> >
> > > On Fri, Dec 1, 2017 at 6:40 PM, Michael Barnes 
> > > wrote:
> > >
> > > > I loved Linux Journal and subscribed for many years. I let my
> > > subscription
> > > > go when they went digital as I didn't really have the resources to
> read
> > > it
> > > > at the time. I always meant to resubscribe, but never got to it.
> Their
> > > web
> > > > site let me order the 1994-2017 archive CD tonight, I hope I get it.
> I
> > > > always thought LJ was a great resource.
> > > >
> > >
> > > Ditto. Thank you for mentioning this Michael.
> > >
> > > NealS
> > > ___
> > > PLUG mailing list
> > > PLUG@pdxlinux.org
> > > http://lists.pdxlinux.org/mailman/listinfo/plug
> > >
> >
> >
> >
> > --
> >
> > Chuck Hast  -- KP4DJT --
> > I can do all things through Christ which strengtheneth me.
> > Ph 4:13 KJV
> > Todo lo puedo en Cristo que me fortalece.
> > Fil 4:13 RVR1960
> > ___
> > PLUG mailing list
> > PLUG@pdxlinux.org
> > http://lists.pdxlinux.org/mailman/listinfo/plug
> >
> ___
> PLUG mailing list
> PLUG@pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Need to use DBus...

2017-12-02 Thread Galen Seitz
On 12/01/17 12:09, michael wrote:
> Hello pluggers,
> 
> I need to use DBus on a Raspberry Pi 3 running Raspbian Stretch to
> synchronize the reading and writing of a PNG file.
> One program writes the graphics file, the other program needs to read
> it.  File locking is cumbersome, how do you make
> sure that the the writer gets a lock before the reader does?  If only
> the writer could talk to the reader before the
> reader grabs the file.  The writer should indicate whether or not the
> file is ready to be read or maybe the file is still
> being written.  Maybe the camera is still snapping a picture.  In
> theory, if the programs communicate with each other there
> is no need for file system level locks.
> 
> Problem, the 2005 Linux Journal article that shows a way to use DBus
> does not compile.  The original dbus is apparently
> too low level and evidently it is deprecated.  Ouch!
> 
> I'm trying to write a C program to go between the writer and the reader
> and communicate with both of them concerning the
> file in question using UNIX sockets, but that seems like overkill and
> far more involved than I had hoped it would be.

With a bit more detail of what you are trying to accomplish, you might
get more responses.  It would be useful to have a overview of what you
are trying to do.

How frequently does the writer create png files?

Does the writer always write to the same file name?

Does the writer close the png file when it is done writing?

Is there any sort of back pressure mechanism built into the writer?

Does the reader have any sort of responsibility for managing the png file?

Do you have the source code to both the writer and the reader?  If so,
are you in a position to modify and build each of them?


As a wild guess, I'm going to suggest that the inotify mechanism *might*
be useful for your task, but without knowing more details, it really is
a guess.

galen
-- 
Galen Seitz
gal...@seitzassoc.com
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Linux Journal magazine is no more

2017-12-02 Thread Michael Barnes
Download link for the archive went through. Big file. Has all articles,
letters, editorials, etc. searchable from the first issue to Nov 2017. I
kind of wish they had the full issues to just read through like the early
digital versions, but this is still a great resource. No idea how long this
may be available, so you may want to jump as soon as possible. I thumbed
through it last night, fond memories. I've read a lot of  Linux magazines,
but LJ was the only one I actually subscribed to. Lots of catching up to
do. Now I just have to figure out how to get it on my Kindle.


On Sat, Dec 2, 2017 at 10:47 AM, Chuck Hast  wrote:

> I am going to miss it. That was the first thing I did on the first of the
> month
> when the new digital issue was sent, set down (throne room session) read
> it.
>
> My consternation when I opened what I thought was going to be the download
> page and got that sad message. I think I have had a sub to it now for about
> 10
> years.
>
> I still hope someone can figure out how to keep it flying, but looks pretty
> dark
> right now.
>
> On Fri, Dec 1, 2017 at 9:12 PM, Neal  wrote:
>
> > On Fri, Dec 1, 2017 at 6:40 PM, Michael Barnes 
> > wrote:
> >
> > > I loved Linux Journal and subscribed for many years. I let my
> > subscription
> > > go when they went digital as I didn't really have the resources to read
> > it
> > > at the time. I always meant to resubscribe, but never got to it. Their
> > web
> > > site let me order the 1994-2017 archive CD tonight, I hope I get it. I
> > > always thought LJ was a great resource.
> > >
> >
> > Ditto. Thank you for mentioning this Michael.
> >
> > NealS
> > ___
> > PLUG mailing list
> > PLUG@pdxlinux.org
> > http://lists.pdxlinux.org/mailman/listinfo/plug
> >
>
>
>
> --
>
> Chuck Hast  -- KP4DJT --
> I can do all things through Christ which strengtheneth me.
> Ph 4:13 KJV
> Todo lo puedo en Cristo que me fortalece.
> Fil 4:13 RVR1960
> ___
> PLUG mailing list
> PLUG@pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Linux Journal magazine is no more

2017-12-02 Thread Chuck Hast
I am going to miss it. That was the first thing I did on the first of the
month
when the new digital issue was sent, set down (throne room session) read it.

My consternation when I opened what I thought was going to be the download
page and got that sad message. I think I have had a sub to it now for about
10
years.

I still hope someone can figure out how to keep it flying, but looks pretty
dark
right now.

On Fri, Dec 1, 2017 at 9:12 PM, Neal  wrote:

> On Fri, Dec 1, 2017 at 6:40 PM, Michael Barnes 
> wrote:
>
> > I loved Linux Journal and subscribed for many years. I let my
> subscription
> > go when they went digital as I didn't really have the resources to read
> it
> > at the time. I always meant to resubscribe, but never got to it. Their
> web
> > site let me order the 1994-2017 archive CD tonight, I hope I get it. I
> > always thought LJ was a great resource.
> >
>
> Ditto. Thank you for mentioning this Michael.
>
> NealS
> ___
> PLUG mailing list
> PLUG@pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>



-- 

Chuck Hast  -- KP4DJT --
I can do all things through Christ which strengtheneth me.
Ph 4:13 KJV
Todo lo puedo en Cristo que me fortalece.
Fil 4:13 RVR1960
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Need to use DBus...

2017-12-02 Thread Ken Stephens
Michael,

Back in the dark ages of last century, I wrote a c-shell script that sent
CAD plots to a plotter from two different CAD systems.  I discovered that
the file size started at zero and then grew to the final size.  I would
watch the files size and wait until it was stable for at least a minute.
It was slow but it was automatic.  We had to physically switch the plotter
from one system to the other before this script.  YMMV.

Regards,
Ken

On Fri, Dec 1, 2017 at 12:09 PM, michael  wrote:

> Hello pluggers,
>
> I need to use DBus on a Raspberry Pi 3 running Raspbian Stretch to
> synchronize the reading and writing of a PNG file.
> One program writes the graphics file, the other program needs to read it.
> File locking is cumbersome, how do you make
> sure that the the writer gets a lock before the reader does?  If only the
> writer could talk to the reader before the
> reader grabs the file.  The writer should indicate whether or not the file
> is ready to be read or maybe the file is still
> being written.  Maybe the camera is still snapping a picture.  In theory,
> if the programs communicate with each other there
> is no need for file system level locks.
>
> Problem, the 2005 Linux Journal article that shows a way to use DBus does
> not compile.  The original dbus is apparently
> too low level and evidently it is deprecated.  Ouch!
>
> I'm trying to write a C program to go between the writer and the reader
> and communicate with both of them concerning the
> file in question using UNIX sockets, but that seems like overkill and far
> more involved than I had hoped it would be.
>
> Please help!  I have twelve days left to address this synchronization
> issues.  I can't replace the 6k lines of C code that
> comprise the writer of the PNG file in twelve days, it isn't documented at
> all hardly.
> ___
> PLUG mailing list
> PLUG@pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


[PLUG] [OT] Relavant mailing list or USENET group

2017-12-02 Thread Richard Owlett

This is part of my search for a LINUX PDA. [1] [2] [3] [4]

Those threads and Raspberry Pi links have been educational and have 
firmed up my goals {e.g. There is no longer a strong preference for an
x86 processor}. A Raspberry Pi has attractive features for some future 
unrelated projects{physical form factor makes it unsuitable}.


In previous posts I've wrote of _current_ application. That was a 
mistake as it encouraged some to ignore my specifications and suggest 
"one-off" solutions. I've been looking for a similar device for 
approximately a decade ;}



It must:
1. be currently available from U.S. retail vendor.
2. have a physical form factor similar to a "smartphone".
   [Latest releases tend to be uncomfortably large.
Maximum viable size 8" x 5".]
3. run Linux (prefer Debian) without restriction for replacing
   delivered OS.
4. have touchscreen display.
5. be able to read/write a USB flash drive.
6. *NOT* be a "smartphone".

Any suggestions for a suitable mailing list or USENET group.
TIA

[1] Looking for an x86 Linux tablet
http://lists.pdxlinux.org/pipermail/plug/2017-November/087710.html

[2] Wanted - a Linux (not Android) handheld
http://lists.pdxlinux.org/pipermail/plug/2017-November/087763.html

[3] Handhelds that conveniently run Debian
https://lists.debian.org/debian-user/2017/11/msg00256.html

[4] Wanted - a Debian handheld
https://lists.debian.org/debian-user/2017/11/msg00351.html


___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Close TCP sockets C program.

2017-12-02 Thread Russell Senior
e.g. http://www.thegeekstuff.com/2012/03/catch-signals-sample-c-code/

On Sat, Dec 2, 2017 at 2:44 AM, Russell Senior
 wrote:
> Generally, if you need to do cleanup at exit, you register a signal
> handler to handle the right signal, and have the signal handler
> explicitly do the things you want (in this case, closing the sockets).
>
> On Fri, Dec 1, 2017 at 11:18 PM, michael  wrote:
>> If kill is used to stop a C program running on Linux that has open sockets,
>> the sockets get orphaned.
>>
>> How can I in the event of a ctrl-c close all sockets owned by the program
>> immediately?  Waiting 3-10 seconds for
>> Linux to close the orphaned sockets is too long.
>> ___
>> PLUG mailing list
>> PLUG@pdxlinux.org
>> http://lists.pdxlinux.org/mailman/listinfo/plug
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Close TCP sockets C program.

2017-12-02 Thread Russell Senior
Generally, if you need to do cleanup at exit, you register a signal
handler to handle the right signal, and have the signal handler
explicitly do the things you want (in this case, closing the sockets).

On Fri, Dec 1, 2017 at 11:18 PM, michael  wrote:
> If kill is used to stop a C program running on Linux that has open sockets,
> the sockets get orphaned.
>
> How can I in the event of a ctrl-c close all sockets owned by the program
> immediately?  Waiting 3-10 seconds for
> Linux to close the orphaned sockets is too long.
> ___
> PLUG mailing list
> PLUG@pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug