[PLUG] Close TCP sockets C program.

2017-12-01 Thread michael
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


Re: [PLUG] Linux Journal magazine is no more

2017-12-01 Thread Neal
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


Re: [PLUG] Linux Journal magazine is no more

2017-12-01 Thread Michael Barnes
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.

Michael


On Fri, Dec 1, 2017 at 4:15 PM, Dick Steffens  wrote:

> On 12/01/2017 03:01 PM, John Jason Jordan wrote:
>
>> On Fri, 1 Dec 2017 14:11:53 -0800
>> Tomas Kuchta  dijo:
>>
>> For those who remember the experience of actually reading a magazine
>>> front to back, rather than just flicking pages full of shiny
>>> advertisement - another one bites the dust.
>>>
>>> So long Linux Journal
>>>
>> House remodeling required moving things, sorting though it to discard
>> tons of stuff that is no longer needed. But I saved one item: May/June
>> 2000 issue of Maximum Linux, featuring reviews of Corel Linux,
>> Slackware 7.0 and WordPerfect 8.0, plus two CDs containing Storm Linux
>> 2000 and Mandrake 7.0.
>>
>> Corel Linux was my first venture into Linux.
>>
>
> I gave Corel Linux an unsuccessful shot, hoping to get Word Perfect
> running. I, too, reverted to running Word Perfect on a virtual Windows
> machine.
>
> I also have CorelCAD, which I got at a remainders store somewhere up in
> Vancouver a long while back. Corel picked up the guys who wrote Generic
> CAD. It still works well. I wish there was a Linux version of that. I don't
> use it often, but it's the one I know. I've tried a few Linux CAD programs,
> but haven't been able to wrap my head around how they work. Sigh.
>
> --
> Regards,
>
> Dick Steffens
>
>
> ___
> 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-01 Thread Dick Steffens

On 12/01/2017 03:01 PM, John Jason Jordan wrote:

On Fri, 1 Dec 2017 14:11:53 -0800
Tomas Kuchta  dijo:


For those who remember the experience of actually reading a magazine
front to back, rather than just flicking pages full of shiny
advertisement - another one bites the dust.

So long Linux Journal

House remodeling required moving things, sorting though it to discard
tons of stuff that is no longer needed. But I saved one item: May/June
2000 issue of Maximum Linux, featuring reviews of Corel Linux,
Slackware 7.0 and WordPerfect 8.0, plus two CDs containing Storm Linux
2000 and Mandrake 7.0.

Corel Linux was my first venture into Linux.


I gave Corel Linux an unsuccessful shot, hoping to get Word Perfect 
running. I, too, reverted to running Word Perfect on a virtual Windows 
machine.


I also have CorelCAD, which I got at a remainders store somewhere up in 
Vancouver a long while back. Corel picked up the guys who wrote Generic 
CAD. It still works well. I wish there was a Linux version of that. I 
don't use it often, but it's the one I know. I've tried a few Linux CAD 
programs, but haven't been able to wrap my head around how they work. Sigh.


--
Regards,

Dick Steffens

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


Re: [PLUG] Linux Journal magazine is no more

2017-12-01 Thread John Jason Jordan
On Fri, 1 Dec 2017 14:11:53 -0800
Tomas Kuchta  dijo:

>For those who remember the experience of actually reading a magazine
>front to back, rather than just flicking pages full of shiny
>advertisement - another one bites the dust.
>
>So long Linux Journal

House remodeling required moving things, sorting though it to discard
tons of stuff that is no longer needed. But I saved one item: May/June
2000 issue of Maximum Linux, featuring reviews of Corel Linux,
Slackware 7.0 and WordPerfect 8.0, plus two CDs containing Storm Linux
2000 and Mandrake 7.0. 

Corel Linux was my first venture into Linux. For those who are too new
to Linux to have heard of it, Corel Corporation, whose main program was
CorelDRAW!, by 2000 had added Corel Photopaint, and had acquired
Ventura Publisher and the WordPerfect Suite. Their avowed plan was to
develop Corel Linux and then have all these programs running on it.
Unfortunately, their method was to work with WineHQ to get them all
running under Wine. They got as far as CorelDRAW, Photopaint and
WordPerfect, but financial difficulties forced them to abandon getting
Ventura Publisher working.

I was heavily into DTP at the time and I was eager to abandon
QuakXPress, PageMaker, and most of all, Windows and MS Office. I eagerly
bought Corel Linux and all the Corel programs and installed them on my
previous computer, sitting unused. Sadly, Michael Cowpland (head
of Corel Corp.) was a genius at user interfaces, and an utter klutz at
getting good code. Getting X and Wine to run for more than a couple
hours without crashing was usually impossible. Eventually I had to give
up and continue my obeisance to the evil empire. 

If anyone collects old Linux magazines I would be happy to give this
copy to someone who would appreciate it. :)
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Linux Journal magazine is no more

2017-12-01 Thread Paul Heinlein

On Fri, 1 Dec 2017, Tomas Kuchta wrote:

For those who remember the experience of actually reading a magazine 
front to back, rather than just flicking pages full of shiny 
advertisement - another one bites the dust.


RIP

I had an article published in Linux Journal back in the November 1998 
issue. Can't believe that was 19 years ago. Apparently, it's still 
online:


http://www.linuxjournal.com/article/2607

My "fairly standard Linux box" from back then? "120MHz Pentium with 64 
MB RAM." Ha!


--
Paul Heinlein
heinl...@madboa.com
45°38' N, 122°6' W___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Permissions over house network

2017-12-01 Thread Tomas Kuchta
Use NFS instead of Samba for ordinary sharing and replicate the user
accounts on the NFS server. That is probably the easiest.

Alternatively, you could setup a samba/active domain for central
authentication, so that you are the same user everywhere. That would take
care of it.

Tomas

On Dec 1, 2017 11:38 AM, "Tim Garton"  wrote:

> I believe there's a "force user = " option you can put into
> your smb.conf that will force all file operations to be performed as that
> user on the server side.  Probably only helpful if you only have on user
> involved, not sure about your situation.
>
> On Fri, Dec 1, 2017 at 11:06 AM, Dick Steffens 
> wrote:
>
> > On 12/01/2017 10:59 AM, Tim Garton wrote:
> >
> >> How are you mounting the remote filesystems?  If via NFS then I believe
> >> there's some ID mapping mechanism you can use...
> >>
> >
> > Just using Samba.
> >
> >
> > --
> > Regards,
> >
> > Dick Steffens
> >
> > ___
> > 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


[PLUG] Linux Journal magazine is no more

2017-12-01 Thread Tomas Kuchta
For those who remember the experience of actually reading a magazine front
to back, rather than just flicking pages full of shiny advertisement -
another one bites the dust.

So long Linux Journal
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


[PLUG] Need to use DBus...

2017-12-01 Thread michael

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


Re: [PLUG] Moving from HDD to SSD

2017-12-01 Thread Chuck Hast
That is what I ended up doing, It did well. Actually I copied the old files
on the
new directory, it asked if I wanted to merge them, I merged them. The only
things that did not come across were some things in hidden directories. But
I moved them manually (the themes for Gkrellm)

On Thu, Nov 30, 2017 at 10:29 PM,  wrote:

>
> If possible I always recommend a fresh install. Copy over your home dir
> and you should be good.
>
> On Thu, 30 Nov 2017, Chuck Hast wrote:
>
> I looked at Clonezilla, I was looking a bit more at SSD installs and saw
>> some
>> indications that it might be better just to do a new install and drop my
>> home
>> directory on the new disk.
>>
>> The home directory was as follows:
>> /home/kp4djt
>>
>> I just went ahead and did a new install, now I guess I will just drop my
>> home
>> directory on the new disk and let it overwrite the one that is there?
>>
>>
>> On Thu, Nov 30, 2017 at 9:23 PM, Neal  wrote:
>>
>> Where _was_ the home directory, and do you have room for both drives in
>>> the
>>> laptop case?
>>>
>>> NealS
>>> ___
>>> 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
>



-- 

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] Permissions over house network

2017-12-01 Thread Tim Garton
I believe there's a "force user = " option you can put into
your smb.conf that will force all file operations to be performed as that
user on the server side.  Probably only helpful if you only have on user
involved, not sure about your situation.

On Fri, Dec 1, 2017 at 11:06 AM, Dick Steffens 
wrote:

> On 12/01/2017 10:59 AM, Tim Garton wrote:
>
>> How are you mounting the remote filesystems?  If via NFS then I believe
>> there's some ID mapping mechanism you can use...
>>
>
> Just using Samba.
>
>
> --
> Regards,
>
> Dick Steffens
>
> ___
> 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] Permissions over house network

2017-12-01 Thread Paul Heinlein

On Fri, 1 Dec 2017, Dick Steffens wrote:


On 12/01/2017 10:59 AM, Tim Garton wrote:

 How are you mounting the remote filesystems?  If via NFS then I believe
 there's some ID mapping mechanism you can use...


Just using Samba.


You're using a GUI, so I doubt my recipe will help, but here's an 
article I wrote on "copying remote files while changing ownership":


https://www.madboa.com/blog/2015/11/18/ssh-tar-sudo/

--
Paul Heinlein
heinl...@madboa.com
45°38' N, 122°6' W___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Permissions over house network

2017-12-01 Thread Dick Steffens

On 12/01/2017 10:59 AM, Tim Garton wrote:

How are you mounting the remote filesystems?  If via NFS then I believe
there's some ID mapping mechanism you can use...


Just using Samba.

--
Regards,

Dick Steffens

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


Re: [PLUG] Permissions over house network

2017-12-01 Thread Tim Garton
How are you mounting the remote filesystems?  If via NFS then I believe
there's some ID mapping mechanism you can use...

On Fri, Dec 1, 2017 at 10:05 AM, Russell Senior 
wrote:

> One approach is to use the same uid and gid on both machines for the user.
>
> On Dec 1, 2017 10:03 AM, "Dick Steffens"  wrote:
>
> > Here's a frustration that I always fix from the command line, but would
> > like to learn how to have it be not necessary, if that's possible.
> >
> > Is there a way to set things up so that when I copy things from one
> > machine in the house to another (using a GUI) that I don't need to change
> > the user to whom the file is assigned on the receiving machine?
> >
> > It's not a difficult fix. sudo chown me:me * works fine. But it's an
> > annoyance to have to do it.
> >
> > --
> > Regards,
> >
> > Dick Steffens
> >
> > ___
> > 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] Permissions over house network

2017-12-01 Thread Russell Senior
One approach is to use the same uid and gid on both machines for the user.

On Dec 1, 2017 10:03 AM, "Dick Steffens"  wrote:

> Here's a frustration that I always fix from the command line, but would
> like to learn how to have it be not necessary, if that's possible.
>
> Is there a way to set things up so that when I copy things from one
> machine in the house to another (using a GUI) that I don't need to change
> the user to whom the file is assigned on the receiving machine?
>
> It's not a difficult fix. sudo chown me:me * works fine. But it's an
> annoyance to have to do it.
>
> --
> Regards,
>
> Dick Steffens
>
> ___
> 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] Permissions over house network

2017-12-01 Thread Dick Steffens
Here's a frustration that I always fix from the command line, but would 
like to learn how to have it be not necessary, if that's possible.


Is there a way to set things up so that when I copy things from one 
machine in the house to another (using a GUI) that I don't need to 
change the user to whom the file is assigned on the receiving machine?


It's not a difficult fix. sudo chown me:me * works fine. But it's an 
annoyance to have to do it.


--
Regards,

Dick Steffens

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