Re: [DNG] Solving simple problems in amazingly complicated ways

2020-03-13 Thread Dr. Nikolaus Klepp
Anno domini 2020 Thu, 12 Mar 19:03:14 -0500
 John Morris scripsit:
> On Thu, 2020-03-12 at 21:45 +, Rainer Weikusat via Dng wrote:
> > - the sole purpose of this text is for the amusement of people who
> > ever
> >   had to find a (preferably simple) solution for a complicated problem
> > -
> > 
> > Problem I had to deal with since yesterday: Some Debian 10 system (use
> > of systemd mandated) installation I've created was to be captured by a
> > certain image capturing tool running on Windows. As it turned out to
> > be,
> > this capturing tool has no support for Linux swap partitions and thus,
> > tries to capture them by doing a sector-by-sectory copy of random junk
> > which won't ever be of any use again.
> > 
> > Proposed solution: Turn that into an ext4 filesystem, record the UUID,
> > run a script at boot to convert it back to a swap partition. This
> > could
> > have been solved by suitable manipulation of /etc/rcS-symlinks but the
> > mere thought of something as unsophisticated at that would cause
> > systemd
> > developers to start spinning until the reach escape velocity, never to
> > be seen again - and who could possibly want that.
> 
> How about a simpler solution?
> On shutdown:
> 1. Capture the label and UUID of the swap partition.
> 2. Do a swapoff.
> 3. Zero out the swap partition.
> 4. Remake it with the same label and UUID.
> 
> It will still get a sector by sector copy but assuming it is compressed
> it will be of trivial size.

LOL ... to make things more interesting, I'd suggest this:
- on shutdown: remove the swap-partition from the partition table
- on boot: create an entry in the partition table for swap and use it
Noe there might be interestring sideeffects :)

-- 
Please do not email me anything that you are not comfortable also sharing with 
the NSA, CIA ...
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] What can even possibly go wrong?

2020-03-13 Thread Didier Kryn

Le 12/03/2020 à 22:02, John Morris a écrit :

On Thu, 2020-03-12 at 11:14 +, Rowland penny via Dng wrote:

Here we go again, reinventing the wheel ;-)

Windows has something similar, they call it roaming profiles and that
has its problems.

It isn't exactly reinventing the wheel, it is more like porting the
wheel.  The fact Windows has a similar feature is exactly the point, it
has always been the point.  RedHat/IBM is working with Microsoft to
prepare the way for what anyone paying attention knows is coming.
Maintaining the Windows kernel and device drivers is inefficient and is
gaining them nothing at this point.  So make Linux + userland feature
complete enough to simply port the Windows UI to it and merge it into
one new platform.  If they could bolt Win32 onto NT they can bolt it
onto Linux + Systemd + Wayland + *kit + yet more RH cruft to make it all
work.

The sooner we realize that RedHat is leading nothing less than a hard
fork of Linux + GNU into Linux + Windows, exactly like Google created
Linux + Android btw, the less damage to the Linux + GNU/UNIX side of the
fork.  It is long past the point where we need to move our tree away
from RedHat and everything it has infected.  If that means adopting
large parts of modern BSD, so be it.  Guess that depends on whether
there is anyone left at GNU who can make strategic decisions and just
how many "GNU" projects are effectively RedHat ones now.  Stallman being
#meetoo purged was probably an intentional thing.

Once we finally complete the fork everyone will be happier, the world
will be a better place, etc.  Window atop Linux will even be a better
product.


    Yep, Systemd is nothing but a compatibility layer between the Linux 
kernel and Windows. It's amazing how they got plenty of unpaid 
developpers and maintainers contribute this project.


        Didier


___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] The real reason I like Linux

2020-03-13 Thread spiralofhope
On Thu, 12 Mar 2020 22:59:28 -0400
Steve Litt  wrote:

> For me, it's all about POSIX.

I immediately understood the UNIX philosophy when I first heard
of it; tiny, single-purpose programs which can be stitched together.

I agreed with it, but found all the tools incredibly complex mainly
because of shit documentation and poor examples.  I don't (technically)
program, so I started writing all that as I went along.

I've grown tired over the years though, preferring the lazy user side of
things.  I never really did proper programming, but it's very
fulfilling to script my own stuff.



For example, I don't need a GUI screenshot program when I can summon
this with an Openbox hotkey:

\sh  -c "\
  \urxvt  -title 'screenshot'  -geometry 120x50+0+0  -e \\
\dialog  --no-shadow  --msgbox  'screenshot' 0 0 ;\\
\scrot  --select  'screenshot--%Y-%m-%d_%H:%M:%S--$wx$h.png'  --exec  '\mv  
$f  /l/live/__ ; \gpicview /l/live/__/$f' \\
"



Oh, and since I'm on that and we have some Openbox people.. guess what
this does:

\sh  -c "\
  \geany \\
$( \realpath  ~/.themes/minimal-spiralofhope/openbox-3/themerc ) \\
$( \realpath  ~/.config/openbox/rc.xml ) ;\ 
  \waitpid  $! ;\
  \openbox  --reconfigure ;\
  \waitpid  $! ;\
  \xrefresh \\
"



The problem for me is how to share things so they're discoverable.  I've
got a GitHub repository, but.. that's not exactly connected to search
engines (maybe one day to Bing?), especially since I don't really
describe every little script in a way that users could type in keywords
to discover.



___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] The real reason I like Linux

2020-03-13 Thread Rainer Weikusat via Dng
Steve Litt  writes:

[...]

> FreeDesktop.Org doesn't like me doing 90 minutes of programming
> (and actually Lego(R) block assembly). Their preferred method goes
> something like this:
>
> * Use Gnome.
> * Find Gnome software that solves your problem:
>   - Ask your LUG
>   - Ask on stackoverflow
>   - Read every page on FreeDesktop.Org
>   - Spend a day doing web searches
> * Test the found softwares for suitability
>   - If it fails a requirement, ask around for a fix
>   - Experiment, experiment, experiment
> * Install the necessary softwares
>   - Adjust your workflow to comply with the softwares
>   - Weave yourself through and around all the software
> requirements

An incorrigible optimist, I presume. With Freedoorstop, if Gnome doesn't
handle it out of the box, it's not an issue 'legitmate' users ought to
be dealing with :->.

SCNR.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng