Re: Simple HTML & CSS code.

2022-10-29 Thread Siard
Peter Easthope wrote:
> From: Siard 
> Date: Wed, 26 Oct 2022 00:00:26 +0200
> 
> 
> 
>Test.html
>   
> 
> 
>   
> left
> right
>   
> 
> 
> 
> Thanks.  Yes, that puts "left" on the left and "right" on the right.

After a good night's sleep, I realized that I could have answered it much
simpler. Just replace 'display: inline' with 'display: flex' in your
original code, that's all.

> I'm interested in a further detail illustrated with this simple example.
> 
> 
> 
>Test.html
>   
> 
> 
>   
> left
> right
>   
> 
> 
> 
> In a sufficiently wide window, Firefox renders this.
> left  right
> 
> If the right edge of the window is dragged to the left it comes to this.
> leftright
> 
> If the window is constrained further the display is trimmed on the 
> right and provides horizontal scrolling.
> left=
> 
> For a narrow display, such as portait on a phone, an automatic line 
> break avoids the scrolling.
> left
>   right
> 
> Here this works.
> 
> 
> 
>   Test.html
>   
> 
> 
> left
> right
> 
> 
> 
> Comments?
> 
> A more realistic example at http://movingaroundpender.ca/ .

Your code behind those two images in that URL:

 
   

   
   

   


You are combining flex and float here, which is useless IMO.
To put the second image below the first one on narrow screens, you can add
'flex-wrap:wrap' to 'display':

 
  
  


If you like, you can mail me off-list for further questions.



Re (3): Simple HTML & CSS code.

2022-10-28 Thread peter
From: Siard 
Date: Wed, 26 Oct 2022 00:00:26 +0200



   Test.html
  


  
left
right
  



Thanks.  Yes, that puts "left" on the left and "right" on the right.

> BTW, 'color: black' and 'background: white' is already the default for
> 'body', AFAIK.
> More info about the Flexbox model:  www.w3schools.com/css/css3_flexbox.asp

Thanks for that also.  

I'm interested in a further detail illustrated with this simple example.



   Test.html
  


  
left
right
  



In a sufficiently wide window, Firefox renders this.
left  right

If the right edge of the window is dragged to the left it comes to this.
leftright

If the window is constrained further the display is trimmed on the 
right and provides horizontal scrolling.
left=

For a narrow display, such as portait on a phone, an automatic line 
break avoids the scrolling.
left
  right

Here this works.



  Test.html
  


left
right



Comments?

A more realistic example at http://movingaroundpender.ca/ .
  
Thx,... P.


mobile: +1 778 951 5147
  VoIP: +1 604 670 0140
https://en.wikibooks.org/wiki/User:PeterEasthope



Re: Simple HTML & CSS code.

2022-10-25 Thread Lee
On 10/25/22, pe...@easthope.ca wrote:
> Hi,
>
> Off scope but I don't know a better place to ask.
>
> If this HTML text is in a file, a browser should be able to render it.
>
> 
> 
> 
>  Test.html
> 
> 
>body { color: black; background: white; }
>div.inline { display: inline; justify-content: space-between; }
> 
> 
> 
> leftright
> 
> 
>
> In bullseye, Firefox-esr, "leftright" is rendered at the left edge of
> the window.
>
> CSS "inline" puts the two words on a line as expected.
>
> I included "justify-content: space-between" with the objective of
> putting "left" at the left of the window and "right" at the right.
>
> Why doesn't it work?

dunno

>  How should it be fixed?

I don't know how it _should_ be fixed, but this works for me


  left
  right



Regards,
Lee



Re: Simple HTML & CSS code.

2022-10-25 Thread Siard
On Tue, 25 Oct 2022 13:14 -0500, pe...@easthope.ca wrote:
> Hi,
> 
> Off scope but I don't know a better place to ask.
> 
> If this HTML text is in a file, a browser should be able to render it.
> 
> 
> 
> 
>  Test.html
> 
> 
>body { color: black; background: white; }
>div.inline { display: inline; justify-content: space-between; }
> 
> 
> 
> leftright
> 
> 
> 
> In bullseye, Firefox-esr, "leftright" is rendered at the left edge of 
> the window.
> 
> CSS "inline" puts the two words on a line as expected.
> 
> I included "justify-content: space-between" with the objective of
> putting "left" at the left of the window and "right" at the right.
> 
> Why doesn't it work?  How should it be fixed?

'display:inline' is only useful if you have more than one div.
However, 'display:inline' was obviously meant for 'span', not for 'div',
but 'span' _is_ already an inline element.
What's more, the 'justify-content' property belongs to the Flexbox model,
but you have not set the 'display' property to 'flex'.
This code works better:




   Test.html
  


  
left
right
  



BTW, 'color: black' and 'background: white' is already the default for
'body', AFAIK.
More info about the Flexbox model:  www.w3schools.com/css/css3_flexbox.asp



Simple HTML & CSS code.

2022-10-25 Thread peter

Hi,

Off scope but I don't know a better place to ask.

If this HTML text is in a file, a browser should be able to render it.




 Test.html


  body { color: black; background: white; }
  div.inline { display: inline; justify-content: space-between; }



leftright



In bullseye, Firefox-esr, "leftright" is rendered at the left edge of 
the window.


CSS "inline" puts the two words on a line as expected.

I included "justify-content: space-between" with the objective of
putting "left" at the left of the window and "right" at the right.

Why doesn't it work?  How should it be fixed?

Thanks,  ... P.



Re: how do i configure lynx browser as default browser for html

2022-09-29 Thread jindam, vani
> Hardly an issue. Just do:

> $ apt -s install dbus-x11 
> NOTE: This is only a simulation!
>   apt needs root privileges for real  execution.
>   Keep also in mind that locking is deactivated,
>   so don't depend on the relevance to the real current situation!
> Reading package lists... Done
> Building dependency tree... Done
> Reading state information... Done
> The following NEW packages will be installed:
>   dbus-x11
> 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
> Inst dbus-x11 (1.12.20-2 Debian:11.5/stable [amd64])
> Conf dbus-x11 (1.12.20-2 Debian:11.5/stable [amd64])

> Sometimes it's worth thinking twice.

i do understand thats the above command 
merely simulates, but not install.

my output is also same, strange.
jindam@localhost:~$ apt -s install dbus-x11
NOTE: This is only a simulation!
  apt needs root privileges for real execution.
  Keep also in mind that locking is deactivated,
  so don't depend on the relevance to the real current situat
ion!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  dbus-x11
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst dbus-x11 (1.12.20-2 Debian:11.5/stable [armhf])
Conf dbus-x11 (1.12.20-2 Debian:11.5/stable [armhf])

regards,
jindam, vani

toots: @jindam_v...@c.im
others: en.wikipedia.org/wiki/User:Jindam_vani



Re: how do i configure lynx browser as default browser for html

2022-09-29 Thread David Wright
On Thu 29 Sep 2022 at 12:42:30 (+), jindam, vani wrote:
> > unicorn:~$ apt install sl
> > E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: 
> > Permission denied)
> > E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), 
> > are you root?
> so, debian on device **warns** & **refuses** 
> to download package.
> without thinking twice created an 
> issue at upstream (1).
> 
> (1) https://github.com/CypherpunkArmory/UserLAnd-Assets-Debian/issues/31

Hardly an issue. Just do:

$ apt -s install dbus-x11 
NOTE: This is only a simulation!
  apt needs root privileges for real execution.
  Keep also in mind that locking is deactivated,
  so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  dbus-x11
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst dbus-x11 (1.12.20-2 Debian:11.5/stable [amd64])
Conf dbus-x11 (1.12.20-2 Debian:11.5/stable [amd64])
$ 

Sometimes it's worth thinking twice.

Cheers,
David.



Re: how do i configure lynx browser as default browser for html

2022-09-29 Thread David Wright
On Wed 28 Sep 2022 at 17:01:41 (+), jindam, vani wrote:
> > Hmm.  The documentation isn't great.
> registration is not compulsory, 
> anybody can edit it, feel free to contribute.
> 
> > If the OP can't figure this out on their own, it might be time for them
> > to seek help from a dedicated WPCleaner support community.  People who
> > actually know and use the application might be able to answer questions
> > about it, like "how do you configure which web browser it launches
> > when you press the XYZ button on the ABC page".
> i did ask dev & it was fixed for palemoon.
> if XYZ button contains url, so instead of 
> choosing default configured package (lynx), 
> but depends on the package (wpcleaner) 
> config. strange...

It seems reasonable to me.

If I were using WPCleaner for what I suggested earlier,
I'd want it to open wiki pages in lynx, so that I could
check them; I'd set WPCleaner to use lynx as its browser.

As it happens, I do set up lynx as the browser that mutt
uses for reading HTML emails, mainly because of its
-localhost option. I configure mutt with its own mailcap
to do that.

However, I don't use lynx for day-to-day browsing,
so I don't want to change the /default/ BROWSER for
the entire system to anything other than FireFox.

Because you post so little information, I don't know
whether your situation is similar to mine or not.

Cheers,
David.



Re: how do i configure lynx browser as default browser for html

2022-09-29 Thread jindam, vani
> unicorn:~$ apt install sl
> E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: 
> Permission denied)
> E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), 
> are you root?
so, debian on device **warns** & **refuses** 
to download package.
without thinking twice created an 
issue at upstream (1).

(1) https://github.com/CypherpunkArmory/UserLAnd-Assets-Debian/issues/31

regards,
jindam, vani

toots: @jindam_v...@c.im
others: en.wikipedia.org/wiki/User:Jindam_vani



Choice of browser? [WAS Re: how do i configure lynx browser as default browser for html]

2022-09-29 Thread Andrew M.A. Cater
On Thu, Sep 29, 2022 at 08:02:54AM -0400, The Wanderer wrote:
> On 2022-09-29 at 07:49, Andrew M.A. Cater wrote:
> 
> > There are hints in this thtread as to where to configure your
> > default browser. Update-alternatives is probably your friend here. If
> > all of this is just to run the Wikipedia cleaner application, then
> > you may well want a GUI browser anyway to check how it looks to
> > others in a GUI.
> 
> To be fair, it used to be - and, by some lights, still is - good
> practice to test a Website in multiple types of browser to make sure it
> works to a suitable standard in all of them.
> 
> I certainly wouldn't want to discourage people from including text-mode
> Web browsers in that type of testing.
> 

Hi Wanderer,

Yes, absolutely: as someone peripherally involved in accessibility and
disability, this is completely correct and desirable. If lynx is the 
only text-mode browser you test, that's fine - links and elinks also
exist and may produce different results. If you yourself are constrained to 
use a text mode browser for other reasons, then you are already very
aware that a graphical browser may be very different.

Wikipedia is fairly heavily formatted, as are most wikis so it shouldn't
make a lot of difference.

All the very best, as ever,

Andy Cater

> -- 
>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
> 




Re: how do i configure lynx browser as default browser for html

2022-09-29 Thread The Wanderer
On 2022-09-29 at 07:49, Andrew M.A. Cater wrote:

> There are hints in this thtread as to where to configure your
> default browser. Update-alternatives is probably your friend here. If
> all of this is just to run the Wikipedia cleaner application, then
> you may well want a GUI browser anyway to check how it looks to
> others in a GUI. (On the assumption that you are not otherwise
> dependent on a text-mode browser for web accessibility needs.)

To be fair, it used to be - and, by some lights, still is - good
practice to test a Website in multiple types of browser to make sure it
works to a suitable standard in all of them.

I certainly wouldn't want to discourage people from including text-mode
Web browsers in that type of testing.

-- 
   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


Re: how do i configure lynx browser as default browser for html

2022-09-29 Thread Andrew M.A. Cater
On Thu, Sep 29, 2022 at 04:47:37AM +, jindam, vani wrote:
> > That puts quite a new complexion on the thread here called
> > "how disable apt downloads w/o sudo".
> > It might be worth being a bit more revealing about the
> > system that you're running so that you don't waste other
> > people's time, and your own, with red herrings.
> 
> as normal user i expected apt to show **some 
> kind** of warning without providing 
> root password installation of package 
> will fail.
> 
> > It's conceivable that Debian on Userland on Android might not function
> > quite in the manner to which we are accustomed. Then again, who knows?
> 
>

If this is not stock Debian - if it's running inside Android, if it's another
packaged Debian variant - essentially, we can't help you. Without more 
information from you, we will continue to guess wildly.

Reference to palemoon suggests to me this isn't stock Debian since stock
Debian would include Firefox as default browser.

There are hints in this thtread as to where to configure your default
browser. Update-alternatives is probably your friend here. If all of this
is just to run the Wikipedia cleaner application, then you may well want a
GUI browser anyway to check how it looks to others in a GUI. (On the assumption
that you are not otherwise dependent on a text-mode browser for web 
accessibility needs.)

With every good wish, as ever,

Andy Cater  



Re: how do i configure lynx browser as default browser for html

2022-09-29 Thread debian-user
> > That puts quite a new complexion on the thread here called
> > "how disable apt downloads w/o sudo".
> > It might be worth being a bit more revealing about the
> > system that you're running so that you don't waste other
> > people's time, and your own, with red herrings.  
> 
> as normal user i expected apt to show **some 
> kind** of warning without providing 
> root password installation of package 
> will fail.
> 
> > It's conceivable that Debian on Userland on Android might not
> > function quite in the manner to which we are accustomed. Then
> > again, who knows?  
> 
> again as normal user: i expect os to 
> behave same, especially when you configure 
> or make a package as default, in my case 
> all html links whether present in gui 
> or cli OR apt stopping without root 
> password.

That may or may not be a reasonable expectation but regardless, if
debian on userland is behaving differently to 'native' debian then you
need to discuss your concerns with whatever userland support facilities
there are, not here on the debian list.

> regards,
> jindam, vani
> 
> toots: @jindam_v...@c.im
> others: en.wikipedia.org/wiki/User:Jindam_vani



Re: how do i configure lynx browser as default browser for html

2022-09-29 Thread The Wanderer
On 2022-09-29 at 07:22, Greg Wooledge wrote:

> On Thu, Sep 29, 2022 at 04:47:37AM +, jindam, vani wrote:
> 
>> as normal user i expected apt to show **some kind** of warning
>> without providing root password installation of package will fail.
> 
> unicorn:~$ apt install sl
> E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: 
> Permission denied)
> E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), 
> are you root?
> 
> Are you even being serious at this point?  I'm getting major troll vibes
> now.

From the context of the post (the Android "Userland" app, or whatever
it's actually called, I haven't gone looking for it), I infer that when
Debian is installed inside of such an app, apt may behave differently in
this regard - possibly because that app handles its permissions
differently from what will be seen either on real hardware or on a
proper hypervisor.

Which, if true, would turn this into another case of someone expecting
too much of a tool. We could debate about what is and is not reasonable
for apt to do in order to detect whether or not it's root, and beyond
that, whether or not it'd be reasonable for apt to refuse to make
changes if run as non-root but with write access to the relevant
locations - but I don't think there'd be very much point to such a
debate.

-- 
   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


Re: how do i configure lynx browser as default browser for html

2022-09-29 Thread Greg Wooledge
On Thu, Sep 29, 2022 at 04:47:37AM +, jindam, vani wrote:
> as normal user i expected apt to show **some 
> kind** of warning without providing 
> root password installation of package 
> will fail.

unicorn:~$ apt install sl
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission 
denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are 
you root?

Are you even being serious at this point?  I'm getting major troll vibes
now.



Re: how do i configure lynx browser as default browser for html

2022-09-28 Thread jindam, vani
> That puts quite a new complexion on the thread here called
> "how disable apt downloads w/o sudo".
> It might be worth being a bit more revealing about the
> system that you're running so that you don't waste other
> people's time, and your own, with red herrings.

as normal user i expected apt to show **some 
kind** of warning without providing 
root password installation of package 
will fail.

> It's conceivable that Debian on Userland on Android might not function
> quite in the manner to which we are accustomed. Then again, who knows?

again as normal user: i expect os to 
behave same, especially when you configure 
or make a package as default, in my case 
all html links whether present in gui 
or cli OR apt stopping without root 
password.

regards,
jindam, vani

toots: @jindam_v...@c.im
others: en.wikipedia.org/wiki/User:Jindam_vani



Re: how do i configure lynx browser as default browser for html

2022-09-28 Thread jindam, vani
> Hmm.  The documentation isn't great.
registration is not compulsory, 
anybody can edit it, feel free to contribute.

> If the OP can't figure this out on their own, it might be time for them
> to seek help from a dedicated WPCleaner support community.  People who
> actually know and use the application might be able to answer questions
> about it, like "how do you configure which web browser it launches
> when you press the XYZ button on the ABC page".
i did ask dev & it was fixed for palemoon.
if XYZ button contains url, so instead of 
choosing default configured package (lynx), 
but depends on the package (wpcleaner) 
config. strange...

regards,
jindam, vani

toots: @jindam_v...@c.im
others: en.wikipedia.org/wiki/User:Jindam_vani



Re: how do i configure lynx browser as default browser for html

2022-09-28 Thread Curt
On 2022-09-28, David Wright  wrote:
>
> So I think you mentioned userland.app or something.
> Does that mean you're running all this on a mobile phone?
> Its wikipedia says "UserLAnd does not require a root account."
> That puts quite a new complexion on the thread here called
> "how disable apt downloads w/o sudo".
>

Userland is an open source app for running Linux on an Android device.
It's in the Play Store:

https://play.google.com/store/apps/details?id=tech.ula=en_US=PL

It's conceivable that Debian on Userland on Android might not function
quite in the manner to which we are accustomed. Then again, who knows?



Re: how do i configure lynx browser as default browser for html

2022-09-28 Thread David Wright
On Wed 28 Sep 2022 at 05:06:33 (+), jindam, vani wrote:
> > A line like:
> > export BROWSER=lynx
> > in /etc/profile may help.
> 
> i have updated ~/.profile, but it is not working
> 
> > You don't indicate your desktop, which may be significant.
> i am trying to use debian with least 
> packages. i dont have any desktop 
> environment. i have installed base system 
> + mc, default-jre, openbox, palemoon, lynx.

So I think you mentioned userland.app or something.
Does that mean you're running all this on a mobile phone?
Its wikipedia says "UserLAnd does not require a root account."
That puts quite a new complexion on the thread here called
"how disable apt downloads w/o sudo".

It might be worth being a bit more revealing about the
system that you're running so that you don't waste other
people's time, and your own, with red herrings.

Next, openbox. A couple of clicks gets me to:

http://openbox.org/wiki/Help:Getting_started

which bears a link to:

http://openbox.org/wiki/Help:Autostart

(in §Using Openbox without a desktop environment (The
lightweight approach)).

Have you read that? Our guesses based on a standard Debian
configuration won't get you very far.

It also has a section called "Starting Openbox without
the graphical log in". Have you read that? You could
save a lot of back and forth by posting more detail,
and you'll get better advice before people give up
bothering with your problem.

So you run WPCleaner; I take it that is a graphical application.
Are you running lynx to check that its display of some wiki
conforms to expectations. Again, it might help to reveal this.

> my cli:
> jindam@localhost:~$ ls /etc/alternatives/*www*browser*
> /etc/alternatives/gnome-www-browser
> /etc/alternatives/www-browser
> /etc/alternatives/www-browser.1.gz
> /etc/alternatives/x-www-browser
> jindam@localhost:~$ ls -al /etc/alternatives/x-www-browser
> lrwxrwxrwx 1 jindam jindam 13 Sep 27 20:07 /etc/alternatives/x-www-browser -> 
> /usr/bin/lynx
> jindam@localhost:~$ ls -al /etc/alternatives/gnome-www-browser
> lrwxrwxrwx 1 jindam jindam 17 Sep 27 19:13 
> /etc/alternatives/gnome-www-browser -> /usr/bin/palemoon
> jindam@localhost:~$ ls -al $(which sensible-browser )
> -rwxr-xr-x 1 jindam jindam 1230 Jan 13  2021 /usr/bin/sensible-browser

Cheers,
David.



Re: how do i configure lynx browser as default browser for html

2022-09-28 Thread Fred

On 9/28/22 06:01, jindam, vani wrote:

So you use openbox... and what, startx?  Or some Display Manager (DM)?

i have installed debian on userland app.
trying to use or familiarise with linux.
i think i am not using any DM.


Also, how are you launching your "default browser"?  Please be precise
and specific.

right clicking provides box with terminal
emulator, web browser, debian, etc..
of openbox menu. clicking browser fails
with message "failed to execute child
process "x-www-browser" (no such file
or directory). my issue is not with this
message.


Are you clicking underlined URLs in a
terminal emulator (if so, which one)?  Clicking links in a GUI mail user
agent (if so, which one)?  Something else?

i am trying to launch browser button
on wikipedia wpcleaner. it was working for
palemoon.



I also find it quite strange that you're inter-mixing GUI and terminal web 
browsers (e.g. palemoon and lynx) and thinking
that you can drop one of them into a configuration slot that expects the other.

so, i am mixing things.

my assumption of configuring a default
browser will not work w/o some kind of
wrapper on linux.

regards,
jindam, vani

toots: @jindam_v...@c.im
others: en.wikipedia.org/wiki/User:Jindam_vani

The (right click) openbox menu comes from an .xml file in 
$HOME/.config/openbox.  You can edit this so the menu entries will start 
the programs you want.  The default menu.xml probably is defferent from 
what you want.


Best regards,
Fred



Re: how do i configure lynx browser as default browser for html

2022-09-28 Thread Greg Wooledge
On Wed, Sep 28, 2022 at 09:35:39AM -0400, The Wanderer wrote:
> It's apparently an application:
> 
> https://en.wikipedia.org/wiki/Wikipedia:WPCleaner

Hmm.  The documentation isn't great.

On 
it says:

  For Mac and Linux, there's a preference file for WPCleaner that can
  be copied over to another computer that uses Linux or Mac.

Um... OK, great.  WHERE is that file?  What's it called?

If the OP can't figure this out on their own, it might be time for them
to seek help from a dedicated WPCleaner support community.  People who
actually know and use the application might be able to answer questions
about it, like "how do you configure which web browser it launches
when you press the XYZ button on the ABC page".



Re: how do i configure lynx browser as default browser for html

2022-09-28 Thread The Wanderer
On 2022-09-28 at 09:29, Greg Wooledge wrote:

> On Wed, Sep 28, 2022 at 01:01:05PM +, jindam, vani wrote:

>>> Are you clicking underlined URLs in a terminal emulator (if so,
>>> which one)?  Clicking links in a GUI mail user agent (if so,
>>> which one)?  Something else?
>> 
>> i am trying to launch browser button on wikipedia wpcleaner. it was
>> working for palemoon.
> 
> I have no idea what "wikipedia wpcleaner" is either.  Is it an
> application that you installed?  Does it have its own configuration
> menu/files, or does it have instructions for how to configure which
> browser it launches?

It's apparently an application:

https://en.wikipedia.org/wiki/Wikipedia:WPCleaner

-- 
   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


Re: how do i configure lynx browser as default browser for html

2022-09-28 Thread Greg Wooledge
On Wed, Sep 28, 2022 at 01:01:05PM +, jindam, vani wrote:
> > So you use openbox... and what, startx?  Or some Display Manager (DM)?
> i have installed debian on userland app.

I don't know what that means.  Is that some sort of virtualization
environment?  Are you running Debian as a "guest OS" inside of some
other OS?

Under normal operation, Debian is booted directly by your machine's
firmware/BIOS.  The Linux kernel is executed with various parameters by
the boot loader (GRUB or equivalent).  The Linux kernel probes hardware,
then launches the Debian userspace software suite.

Once booting is completed, under normal operation, you will either be on
a text console, with a login: prompt (white text on a black background
usually), OR you will be in a graphical environment, with some sort of
GUI login window.

That GUI login window is called a Display Manager.

If you don't have one of those -- if you login directly on the text
console -- then you would usually run the "startx" command in order to
launch the X11 graphical environment, with openbox and so on.

The question was which one of these you're doing -- startx, or a GUI login.

If your "userland app" bypasses BOTH of these and does some sort of
"autologin" (where you never type your username or password, but instead
just go directly into a GUI environment, like a kiosk mode), then that's
a third possibility.

Knowing which of these things you're doing would be helpful.

> > Also, how are you launching your "default browser"?  Please be precise
> > and specific.
> right clicking provides box with terminal 
> emulator, web browser, debian, etc.. 
> of openbox menu. clicking browser fails 
> with message "failed to execute child 
> process "x-www-browser" (no such file 
> or directory). my issue is not with this 
> message.

x-www-browser is managed by Debian's alternatives system.

unicorn:~$ ls -l /etc/alternatives/x-www-browser 
lrwxrwxrwx 1 root root 29 Jan 12  2018 /etc/alternatives/x-www-browser -> 
/usr/bin/google-chrome-stable*

You can configure this, to get that menu option to work.  I believe
other people have already discussed the "update-alternatives" command.

> > Are you clicking underlined URLs in a
> > terminal emulator (if so, which one)?  Clicking links in a GUI mail user
> > agent (if so, which one)?  Something else?
> i am trying to launch browser button 
> on wikipedia wpcleaner. it was working for 
> palemoon.

I have no idea what "wikipedia wpcleaner" is either.  Is it an application
that you installed?  Does it have its own configuration menu/files, or
does it have instructions for how to configure which browser it launches?



Re: how do i configure lynx browser as default browser for html

2022-09-28 Thread jindam, vani
> So you use openbox... and what, startx?  Or some Display Manager (DM)?
i have installed debian on userland app.
trying to use or familiarise with linux.
i think i am not using any DM.

> Also, how are you launching your "default browser"?  Please be precise
> and specific.
right clicking provides box with terminal 
emulator, web browser, debian, etc.. 
of openbox menu. clicking browser fails 
with message "failed to execute child 
process "x-www-browser" (no such file 
or directory). my issue is not with this 
message.

> Are you clicking underlined URLs in a
> terminal emulator (if so, which one)?  Clicking links in a GUI mail user
> agent (if so, which one)?  Something else?
i am trying to launch browser button 
on wikipedia wpcleaner. it was working for 
palemoon.


> I also find it quite strange that you're inter-mixing GUI and terminal web 
> browsers (e.g. palemoon and lynx) and thinking 
> that you can drop one of them into a configuration slot that expects the 
> other.
so, i am mixing things.

my assumption of configuring a default 
browser will not work w/o some kind of 
wrapper on linux.

regards,
jindam, vani

toots: @jindam_v...@c.im
others: en.wikipedia.org/wiki/User:Jindam_vani



Re: how do i configure lynx browser as default browser for html

2022-09-28 Thread Greg Wooledge
On Wed, Sep 28, 2022 at 05:06:33AM +, jindam, vani wrote:
> i am trying to use debian with least 
> packages. i dont have any desktop 
> environment. i have installed base system 
> + mc, default-jre, openbox, palemoon, lynx.

So you use openbox... and what, startx?  Or some Display Manager (DM)?
This matters, because the ~/.profile file will not be read if you login
with a DM.

Also, how are you launching your "default browser"?  Please be precise
and specific.  Does openbox have some sort of "browser button" that
launches a mystery browser?  Are you clicking underlined URLs in a
terminal emulator (if so, which one)?  Clicking links in a GUI mail user
agent (if so, which one)?  Something else?

The sad fact is that Linux does not *have* a single unified concept of
a "default web browser" the way some other operating systems might.
Each individual Desktop Environment or application therefore has its *own*
concept of "default browser" and its own way of launching it.

I also find it quite strange that you're inter-mixing GUI and terminal
web browsers (e.g. palemoon and lynx) and thinking that you can drop one
of them into a configuration slot that expects the other.  Trying to
launch lynx (for example) from a GUI environment without being inside
a terminal emulator is going to fail.

If you need to launch lynx from that kind of environment, you might need
to write a wrapper script that looks something like:

#!/bin/sh
exec xterm -e lynx "$@"

... and then choose that wrapper script as your GUI web browser, in
whatever configuration thing you're working with.



Re: how do i configure lynx browser as default browser for html

2022-09-28 Thread jindam, vani
> Try "_" (underscore) instead. That way the string "SENSIBLE_BROWSER" is 
> interpreted by the shell as one whole variable name.

$ echo $SENSIBLE_BROWSER

its blank

> It ist also good to copy the command and the output completey into mails 
> so everybody can exactly see what happened.

pearl of wisdom, must always remember.

regards,
jindam, vani

toots: @jindam_v...@c.im
others: en.wikipedia.org/wiki/User:Jindam_vani



Re: how do i configure lynx browser as default browser for html

2022-09-28 Thread jindam, vani
> Interesting, what does echo $"-browser" return? What does echo
> "$-BROWSER" return?

jindam@localhost:~$ -BROWSER
-bash: -BROWSER: command not found

regards,
jindam, vani

toots: @jindam_v...@c.im
others: en.wikipedia.org/wiki/User:Jindam_vani


> I'm on a system other than debian now otherwise I'd have answers for you
> on both counts.
> 
> Jude  "There are four boxes to be used in
> defense of liberty:
>  soap, ballot, jury, and ammo. Please use in that order."
> -Ed Howdershelt (Author, 1940)
> 
> .
> 
> On Wed, 28 Sep 2022, jindam, vani wrote:
> 
> > 
> > September 28, 2022 at 12:22 PM, "Jude DaShiell" wrote:
> > 
> >  It may be necessary to disable SENSIBLE-BROWSER. echo $SENSIBLE-BROWSER
> >  to see if it's loaded.
> >  $ echo $SENSIBLE-BROWSER
> >  it shows "-BROWSER"
> > 
> >  $SENSIBLE-BROWSER
> >  launches lynx in terminal
> > 
> >  regards,
> >  jindam, vani
> > 
> >  toots: @jindam_v...@c.im
> >  others: en.wikipedia.org/wiki/User:Jindam_vani
> > 
> >  Jude  "There are four boxes to be used in
> >  defense of liberty:
> >  soap, ballot, jury, and ammo. Please use in that order."
> >  -Ed Howdershelt (Author, 1940)
> > 
> >  .
> > 
> >  On Wed, 28 Sep 2022, jindam, vani wrote:
> > 
> >  >
> >  > A line like:
> >  > export BROWSER=lynx
> >  > in /etc/profile may help.
> >  >
> >  > i have updated ~/.profile, but it is not working
> >  >
> >  > You don't indicate your desktop, which may be significant.
> >  > i am trying to use debian with least
> >  > packages. i dont have any desktop
> >  > environment. i have installed base system
> >  > + mc, default-jre, openbox, palemoon, lynx.
> >  >
> >  > my cli:
> >  > jindam@localhost:~$ ls /etc/alternatives/*www*browser*
> >  > /etc/alternatives/gnome-www-browser
> >  > /etc/alternatives/www-browser
> >  > /etc/alternatives/www-browser.1.gz
> >  > /etc/alternatives/x-www-browser
> >  > jindam@localhost:~$ ls -al /etc/alternatives/x-www-browser
> >  > lrwxrwxrwx 1 jindam jindam 13 Sep 27 20:07 /etc/alternatives/x-ww
> >  > w-browser -> /usr/bin/lynx
> >  > jindam@localhost:~$ ls -al /etc/alternatives/gnome-www-browser
> >  > lrwxrwxrwx 1 jindam jindam 17 Sep 27 19:13 /etc/alternatives/gnom
> >  > e-www-browser -> /usr/bin/palemoon
> >  > jindam@localhost:~$ ls -al $(which sensible-browser )
> >  > -rwxr-xr-x 1 jindam jindam 1230 Jan 13 2021 /usr/bin/sensible-br
> >  > owser
> >  >
> >  > regards,
> >  > jindam, vani
> >  >
> >  > toots: @jindam_v...@c.im
> >  > others: en.wikipedia.org/wiki/User:Jindam_vani
> >  >
> >
>



Re: how do i configure lynx browser as default browser for html

2022-09-28 Thread Stefan Krusche
Am Mittwoch, 28. September 2022 schrieb jindam, vani:
> > It may be necessary to disable SENSIBLE-BROWSER. echo
> > $SENSIBLE-BROWSER to see if it's loaded.
>
> $ echo $SENSIBLE-BROWSER
> it shows "-BROWSER"

Shell variables can't contain "-", so this is probably a typo. Then the 
shell replaces "$SENSIBLE" with nothing because it is not set and 
prints the string "-BROWSER".

$ echo $SENSIBLE-BROWSER
-BROWSER

Try "_" (underscore) instead. That way the string "SENSIBLE_BROWSER" is 
interpreted by the shell as one whole variable name.

$ echo $SENSIBLE_BROWSER



It ist also good to copy the command and the output completey into mails 
so everybody can exactly see what happened.

HTH

Kind regards,
Stefan



Re: how do i configure lynx browser as default browser for html

2022-09-28 Thread Stefan Krusche
Am Mittwoch, 28. September 2022 schrieb Jude DaShiell:
> Interesting, what does echo $"-browser" return?  What does echo
> "$-BROWSER" return?
> I'm on a system other than debian now otherwise I'd have answers for
> you on both counts.

$ echo "$-browser"
himBHsbrowser

$ echo "$-BROWSER"
himBHsBROWSER

$ echo "$-"
himBHs

Same explanation as in my previous mail: "$-" is a shell variable 
containing the options with which the shell has been invoked. "BROWSER" 
or "browser" remain as a string. Both gets printed.

Kind regards,
Stefan



Re: how do i configure lynx browser as default browser for html

2022-09-28 Thread Jude DaShiell
Interesting, what does echo $"-browser" return?  What does echo
"$-BROWSER" return?
I'm on a system other than debian now otherwise I'd have answers for you
on both counts.



Jude  "There are four boxes to be used in
defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)

.

On Wed, 28 Sep 2022, jindam, vani wrote:

> September 28, 2022 at 12:22 PM, "Jude DaShiell" wrote:
>
>
>
> >
> > It may be necessary to disable SENSIBLE-BROWSER. echo $SENSIBLE-BROWSER
> > to see if it's loaded.
> $ echo $SENSIBLE-BROWSER
> it shows "-BROWSER"
>
> $SENSIBLE-BROWSER
> launches lynx in terminal
>
> regards,
> jindam, vani
>
> toots: @jindam_v...@c.im
> others: en.wikipedia.org/wiki/User:Jindam_vani
>
> >
> > Jude  "There are four boxes to be used in
> > defense of liberty:
> >  soap, ballot, jury, and ammo. Please use in that order."
> > -Ed Howdershelt (Author, 1940)
> >
> > .
> >
> > On Wed, 28 Sep 2022, jindam, vani wrote:
> >
> > >
> > > A line like:
> > >  export BROWSER=lynx
> > >  in /etc/profile may help.
> > >
> > >  i have updated ~/.profile, but it is not working
> > >
> > >  You don't indicate your desktop, which may be significant.
> > >  i am trying to use debian with least
> > >  packages. i dont have any desktop
> > >  environment. i have installed base system
> > >  + mc, default-jre, openbox, palemoon, lynx.
> > >
> > >  my cli:
> > >  jindam@localhost:~$ ls /etc/alternatives/*www*browser*
> > >  /etc/alternatives/gnome-www-browser
> > >  /etc/alternatives/www-browser
> > >  /etc/alternatives/www-browser.1.gz
> > >  /etc/alternatives/x-www-browser
> > >  jindam@localhost:~$ ls -al /etc/alternatives/x-www-browser
> > >  lrwxrwxrwx 1 jindam jindam 13 Sep 27 20:07 /etc/alternatives/x-ww
> > >  w-browser -> /usr/bin/lynx
> > >  jindam@localhost:~$ ls -al /etc/alternatives/gnome-www-browser
> > >  lrwxrwxrwx 1 jindam jindam 17 Sep 27 19:13 /etc/alternatives/gnom
> > >  e-www-browser -> /usr/bin/palemoon
> > >  jindam@localhost:~$ ls -al $(which sensible-browser )
> > >  -rwxr-xr-x 1 jindam jindam 1230 Jan 13 2021 /usr/bin/sensible-br
> > >  owser
> > >
> > >  regards,
> > >  jindam, vani
> > >
> > >  toots: @jindam_v...@c.im
> > >  others: en.wikipedia.org/wiki/User:Jindam_vani
> > >
> >
>
>



Re: how do i configure lynx browser as default browser for html

2022-09-28 Thread jindam, vani
September 28, 2022 at 12:22 PM, "Jude DaShiell" wrote:



> 
> It may be necessary to disable SENSIBLE-BROWSER. echo $SENSIBLE-BROWSER
> to see if it's loaded.
$ echo $SENSIBLE-BROWSER
it shows "-BROWSER"

$SENSIBLE-BROWSER
launches lynx in terminal

regards,
jindam, vani

toots: @jindam_v...@c.im
others: en.wikipedia.org/wiki/User:Jindam_vani

> 
> Jude  "There are four boxes to be used in
> defense of liberty:
>  soap, ballot, jury, and ammo. Please use in that order."
> -Ed Howdershelt (Author, 1940)
> 
> .
> 
> On Wed, 28 Sep 2022, jindam, vani wrote:
> 
> > 
> > A line like:
> >  export BROWSER=lynx
> >  in /etc/profile may help.
> > 
> >  i have updated ~/.profile, but it is not working
> > 
> >  You don't indicate your desktop, which may be significant.
> >  i am trying to use debian with least
> >  packages. i dont have any desktop
> >  environment. i have installed base system
> >  + mc, default-jre, openbox, palemoon, lynx.
> > 
> >  my cli:
> >  jindam@localhost:~$ ls /etc/alternatives/*www*browser*
> >  /etc/alternatives/gnome-www-browser
> >  /etc/alternatives/www-browser
> >  /etc/alternatives/www-browser.1.gz
> >  /etc/alternatives/x-www-browser
> >  jindam@localhost:~$ ls -al /etc/alternatives/x-www-browser
> >  lrwxrwxrwx 1 jindam jindam 13 Sep 27 20:07 /etc/alternatives/x-ww
> >  w-browser -> /usr/bin/lynx
> >  jindam@localhost:~$ ls -al /etc/alternatives/gnome-www-browser
> >  lrwxrwxrwx 1 jindam jindam 17 Sep 27 19:13 /etc/alternatives/gnom
> >  e-www-browser -> /usr/bin/palemoon
> >  jindam@localhost:~$ ls -al $(which sensible-browser )
> >  -rwxr-xr-x 1 jindam jindam 1230 Jan 13 2021 /usr/bin/sensible-br
> >  owser
> > 
> >  regards,
> >  jindam, vani
> > 
> >  toots: @jindam_v...@c.im
> >  others: en.wikipedia.org/wiki/User:Jindam_vani
> >
>



Re: how do i configure lynx browser as default browser for html

2022-09-28 Thread Jude DaShiell
It may be necessary to disable SENSIBLE-BROWSER.  echo $SENSIBLE-BROWSER
to see if it's loaded.



Jude  "There are four boxes to be used in
defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)

.

On Wed, 28 Sep 2022, jindam, vani wrote:

> > A line like:
> > export BROWSER=lynx
> > in /etc/profile may help.
>
> i have updated ~/.profile, but it is not working
>
> > You don't indicate your desktop, which may be significant.
> i am trying to use debian with least
> packages. i dont have any desktop
> environment. i have installed base system
> + mc, default-jre, openbox, palemoon, lynx.
>
> my cli:
> jindam@localhost:~$ ls /etc/alternatives/*www*browser*
> /etc/alternatives/gnome-www-browser
> /etc/alternatives/www-browser
> /etc/alternatives/www-browser.1.gz
> /etc/alternatives/x-www-browser
> jindam@localhost:~$ ls -al /etc/alternatives/x-www-browser
> lrwxrwxrwx 1 jindam jindam 13 Sep 27 20:07 /etc/alternatives/x-ww
> w-browser -> /usr/bin/lynx
> jindam@localhost:~$ ls -al /etc/alternatives/gnome-www-browser
> lrwxrwxrwx 1 jindam jindam 17 Sep 27 19:13 /etc/alternatives/gnom
> e-www-browser -> /usr/bin/palemoon
> jindam@localhost:~$ ls -al $(which sensible-browser )
> -rwxr-xr-x 1 jindam jindam 1230 Jan 13  2021 /usr/bin/sensible-br
> owser
>
> regards,
> jindam, vani
>
> toots: @jindam_v...@c.im
> others: en.wikipedia.org/wiki/User:Jindam_vani
>
>



Re: how do i configure lynx browser as default browser for html

2022-09-27 Thread jindam, vani
> A line like:
> export BROWSER=lynx
> in /etc/profile may help.

i have updated ~/.profile, but it is not working

> You don't indicate your desktop, which may be significant.
i am trying to use debian with least 
packages. i dont have any desktop 
environment. i have installed base system 
+ mc, default-jre, openbox, palemoon, lynx.

my cli:
jindam@localhost:~$ ls /etc/alternatives/*www*browser*
/etc/alternatives/gnome-www-browser
/etc/alternatives/www-browser
/etc/alternatives/www-browser.1.gz
/etc/alternatives/x-www-browser
jindam@localhost:~$ ls -al /etc/alternatives/x-www-browser
lrwxrwxrwx 1 jindam jindam 13 Sep 27 20:07 /etc/alternatives/x-ww
w-browser -> /usr/bin/lynx
jindam@localhost:~$ ls -al /etc/alternatives/gnome-www-browser
lrwxrwxrwx 1 jindam jindam 17 Sep 27 19:13 /etc/alternatives/gnom
e-www-browser -> /usr/bin/palemoon
jindam@localhost:~$ ls -al $(which sensible-browser )
-rwxr-xr-x 1 jindam jindam 1230 Jan 13  2021 /usr/bin/sensible-br
owser

regards,
jindam, vani

toots: @jindam_v...@c.im
others: en.wikipedia.org/wiki/User:Jindam_vani



Re: how do i configure lynx browser as default browser for html

2022-09-27 Thread Charles Curley
On Wed, 28 Sep 2022 01:23:27 +
"jindam, vani"  wrote:

> i have installed debian bullseye on userland 
> app. i have disabled recomnend packages for my 
> entire packages. i have installed openbox. when 
> i click "web browser" it does not launch 
> "lynx browser". i have changed x-www-browser 
> to lynx. how do i configure my system to 
> use lynx browser for html files, open links, 
> open in external viewer, etc..?

You don't indicate your desktop, which may be significant.

For one thing, there may be other alternatives you might need to set:

root@jhegaala:~# ls /etc/alternatives/*www*browser*
/etc/alternatives/gnome-www-browser  /etc/alternatives/x-www-browser
root@jhegaala:~# ll /etc/alternatives/x-www-browser
lrwxrwxrwx 1 root root 23 Oct 10  2021 /etc/alternatives/x-www-browser -> 
/usr/bin/vivaldi-stable*
root@jhegaala:~# ll /etc/alternatives/gnome-www-browser 
lrwxrwxrwx 1 root root 23 Oct 10  2021 /etc/alternatives/gnome-www-browser -> 
/usr/bin/vivaldi-stable*
root@jhegaala:~#

In addition, XFCE (which I use) has its Default Applications app
separate from alternatives. Right click on the desktop -> Applications
-> Settings -> Default Applications Your desktop will likely have some
such.

And there is also the Debian sensible browser.

root@jhegaala:~# ll $(which sensible-browser )
-rwxr-xr-x 1 root root 1230 Jan 12  2021 /usr/bin/sensible-browser*
root@jhegaala:~# file $(which sensible-browser )
/usr/bin/sensible-browser: POSIX shell script, ASCII text executable

It depends in part on the BROWSER environment variable, which on my
system is not set. It manages to produce Vivaldi.

There is one I haven't figured out yet. If you mouse over a URL in
xfce4-terminal, the terminal will underline the URL. Right click, and
the menu will offer to open the link. On my system, that still brings up
Netscape.

And there are probably other ways to launch a browser I haven't yet
stumbled across.

-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/



Re: how do i configure lynx browser as default browser for html

2022-09-27 Thread Jude DaShiell
A line like:
export BROWSER=lynx
in /etc/profile may help.



Jude 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)

.

On Wed, 28 Sep 2022, jindam, vani wrote:

> hello debian-users,
>
> good morning !?!?!
>
> i have installed debian bullseye on userland
> app. i have disabled recomnend packages for my
> entire packages. i have installed openbox. when
> i click "web browser" it does not launch
> "lynx browser". i have changed x-www-browser
> to lynx. how do i configure my system to
> use lynx browser for html files, open links,
> open in external viewer, etc..?
>
> $sudo update-alternatives --config www-browser
> There is only one alternative in link group www-browser (providing 
> /usr/bin/www-browser): /usr/bin/lynx
> Nothing to configure.
>
>
> $ update-alternatives --list x-www-browser
> /usr/bin/lynx
> /usr/bin/palemoon
>
>
> $ update-alternatives --get-selections | grep browser
> gnome-www-browser  auto /usr/bin/palemoon
> www-browserauto /usr/bin/lynx
> x-www-browser  auto /usr/bin/lynx
>
> $ sudo update-alternatives --install /usr/bin/x-www-browser x-www-browser 
> /usr/bin/lynx 50
> update-alternatives: using /usr/bin/lynx to provide /usr/bin/x-www-browser 
> (x-www-browser) in auto mode
> jindam@localhost:~$ sudo update-alternatives --config x-www-browser
> There are 2 choices for the alternative x-www-browser (providing 
> /usr/bin/x-www-browser).
>
>   SelectionPath   Priority   Status
> 
> * 0/usr/bin/lynx   50auto mode
>   1/usr/bin/lynx   50manual mode
>   2/usr/bin/palemoon   40manual mode
>
> p.s.
> * after reading couple of online resources, i
> thought best to ask here, bcoz update-alternatives
> seems to be debian way
> * i did ask @ 
> https://www.linuxquestions.org/questions/linux-software-2/how-do-i-configure-lynx-browser-as-default-browser-for-all-html-related-things-4175717193/
>
> regards,
> jindam, vani
>
> toots: @jindam_v...@c.im
> others: en.wikipedia.org/wiki/User:Jindam_vani
>
>



how do i configure lynx browser as default browser for html

2022-09-27 Thread jindam, vani
hello debian-users,

good morning !?!?!

i have installed debian bullseye on userland 
app. i have disabled recomnend packages for my 
entire packages. i have installed openbox. when 
i click "web browser" it does not launch 
"lynx browser". i have changed x-www-browser 
to lynx. how do i configure my system to 
use lynx browser for html files, open links, 
open in external viewer, etc..?

$sudo update-alternatives --config www-browser
There is only one alternative in link group www-browser (providing 
/usr/bin/www-browser): /usr/bin/lynx
Nothing to configure.


$ update-alternatives --list x-www-browser
/usr/bin/lynx
/usr/bin/palemoon


$ update-alternatives --get-selections | grep browser
gnome-www-browser  auto /usr/bin/palemoon
www-browserauto /usr/bin/lynx
x-www-browser  auto /usr/bin/lynx

$ sudo update-alternatives --install /usr/bin/x-www-browser x-www-browser 
/usr/bin/lynx 50
update-alternatives: using /usr/bin/lynx to provide /usr/bin/x-www-browser 
(x-www-browser) in auto mode
jindam@localhost:~$ sudo update-alternatives --config x-www-browser
There are 2 choices for the alternative x-www-browser (providing 
/usr/bin/x-www-browser).

  SelectionPath   Priority   Status

* 0/usr/bin/lynx   50auto mode
  1/usr/bin/lynx   50manual mode
  2/usr/bin/palemoon   40manual mode

p.s.
* after reading couple of online resources, i 
thought best to ask here, bcoz update-alternatives 
seems to be debian way
* i did ask @ 
https://www.linuxquestions.org/questions/linux-software-2/how-do-i-configure-lynx-browser-as-default-browser-for-all-html-related-things-4175717193/

regards,
jindam, vani

toots: @jindam_v...@c.im
others: en.wikipedia.org/wiki/User:Jindam_vani



Re: I *think* I found the apache2 docs, but it's in .html andIcannotgetfirefox to access it using "file:"+ /path/to/filedir

2022-06-23 Thread rhkramer
The mad snipper strikes -- mwha ha haha

On Thursday, June 23, 2022 04:05:40 PM Gareth Evans wrote:
> > On 23 Jun 2022, at 01:46, gene heskett  wrote:
> > On 6/22/22 19:39, Gareth Evans wrote:

> >> OK, but I mean do the non-robots.txt-compliant bots actually try to
> >> submit passwords?
> > 
> > If enough of us do it in self defense, I look for then to grow the code
> > to do it. I don't object to them indexing my site, but on a 10 megabit
> > cable connection, they use up all my upload bw on a 24/7 basis when they
> > try to mirror it. That in my lookup table, is a DDS. So them and the
> > camel that rode in on them can be told to go to hell but I won't waste
> > time using flowery words like our senator Bird was so famously fond of
> > using. He could tell you to go to hell and do it in such flowery
> > language that you looked forward to the trip.
> 
> OK.  That's not something I can help with from scratch, but I will watch
> with interest for further discussion.
> 
> Best wishes,
> G


-- 
If you reply: snip, snip, and snip again.  Leave attributions.

A picture is worth a thousand words -- divide by 10 for each minute of video 
(or audio) or create a transcript and edit it to 10% of the original.  (Oxford 
commas not needed.)



Re: I *think* I found the apache2 docs, but it's in .html andIcannotgetfirefox to access it using "file:"+ /path/to/filedir

2022-06-23 Thread Gareth Evans



> On 23 Jun 2022, at 21:49, gene heskett  wrote:
> 
> On 6/23/22 16:08, Gareth Evans wrote:
>> OK.  That's not something I can help with from scratch, but I will watch 
>> with interest for further discussion.
>> 
>> Best wishes,
>> G
> Well, it working in plain http, so until they get to be a nuisance, I have 
> other irons
> smoking in the fire. Like some fine tuning of the gui fpr one of my cnc'd 
> machines.
> 
> See at the 6040-stf subdir at the link in my sig.
> 
> That machine is about to start making a screw out of hard maple, made to be 
> the
> screw of a combo with a 3d printed nut assembly for a woodworking workbenches
> leg vise. If it works I'll adv in Fine WoodWorking as the only other maker of 
> such
> has quietly vanished about 15 years back up the log.
> 
> He may have missed morning roll call as will I, probably too soon, but I am 
> 87 and
> alone now.
> 
> And I intend to have fun till I miss that famous roll call.  If I can make a 
> few sheckles
> doing it, that's even better. :o)>
> 
> Thank you for the help, Gareth, take care and stay well.

You're welcome, you too.
Gareth

> 
> 
> 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, 1940)
> If we desire respect for the law, we must first make the law respectable.
> - Louis D. Brandeis
> Genes Web page 
> 



Re: I *think* I found the apache2 docs, but it's in .html andIcannotgetfirefox to access it using "file:"+ /path/to/filedir

2022-06-23 Thread gene heskett

On 6/23/22 16:08, Gareth Evans wrote:

OK.  That's not something I can help with from scratch, but I will watch with 
interest for further discussion.

Best wishes,
G
Well, it working in plain http, so until they get to be a nuisance, I 
have other irons
smoking in the fire. Like some fine tuning of the gui fpr one of my 
cnc'd machines.


See at the 6040-stf subdir at the link in my sig.

That machine is about to start making a screw out of hard maple, made to 
be the
screw of a combo with a 3d printed nut assembly for a woodworking 
workbenches
leg vise. If it works I'll adv in Fine WoodWorking as the only other 
maker of such

has quietly vanished about 15 years back up the log.

He may have missed morning roll call as will I, probably too soon, but I 
am 87 and

alone now.

And I intend to have fun till I miss that famous roll call.  If I can 
make a few sheckles

doing it, that's even better. :o)>

Thank you for the help, Gareth, take care and stay well.


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, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Re: I *think* I found the apache2 docs, but it's in .html andIcannotgetfirefox to access it using "file:"+ /path/to/filedir

2022-06-23 Thread Gareth Evans





> On 23 Jun 2022, at 01:46, gene heskett  wrote:
> 
> On 6/22/22 19:39, Gareth Evans wrote:
>>> On Wed 22 Jun 2022, at 22:42, gene heskett  wrote:
>>> On 6/22/22 16:51, Gareth Evans wrote:
 On Wed 22 Jun 2022, at 21:16, gene heskett  wrote:
> On 6/22/22 10:45, Gareth Evans wrote:
> [and I sniped a few kilobytes of.]
> 
> I think I've got it, but I did find what may be a bug in mod auth_plain.
> 
> Its asking for a username and pw, but nothing seems to satisfy it
 I didn't see you had replied before sending my previous message, please 
 ignore.
 
 Can't find anything about mod_auth_plain but if you mean mod_auth_basic 
 this requires usernames/passwords to be set up, not looking at /etc/passwd
 
 https://www.howtogeek.com/devops/how-to-setup-basic-http-authentication-on-apache/
 
 This also has a link to setting up LetsEncrypt.
 
> , so
> I disabled it, no man page hat I can find, and now its showing me
> the directory I want as the root of this server, with one subdir
> I can click on, and the first file I put there.
> 
> However I need to compose an explanatory README to go with it as
> I had to invent my own method of installing it on a u-booting rpi.  Its a
> preempt-rt kernel needed to run the armhf version of linuxcnc from
> the buildbot. I run the bleeding edge development version on all 4
> of my machines I've built or rebuilt. I play the part of the caged
> canary in the coal mine, checking for showstoppers as development
> is ongoing and has been since the net arrived. Its a NIST project, re-
> done in gpl and was once on the no export list. See at linuxcnc.org.
> 
> So the plain text version is working and you should be able to see it at
>  (or something like that)
 Yes.
>>> Good, so I'll quit tinkering for today.
> That file in the armhf subdir is just under 30 megabytes, so if paying
> for the bandwidth, don't click on it.
> 
> Making progress, I think, Thanks Gareth.
> 
> However, if there is a way to implement a OTP so I can keep track of the
> users,
> I could use some help with that as long as I don't setup a universal pw
> the bots
> can use. What I'd like is a true OTP with a 2 week lifetime.  Can that
> be done?
 I see there are various offerings (web search for "apache otp") but there 
 doesn't seem to be an official offering.
> I haven't done that DDG search, preferring to rely more on the real users 
> experience.
> The idea being that if the bot figures its worth in, and has his master ask 
> for a OTP,
> the 1 or 2 week expiry would eventually run them off. I figure that the 
> botmasters
> patience would be used up and I would get blacklisted, based on TANSTAAFL.
> 
> They aren't using much bandwidth now, and despite the weird port #, several 
> of them
> have already started looking at me.
> 
> I know of two others working on machines to be run by rpi4's, using my kernel 
> cuz
> the foundation would never approve, but all the other machines are being 
> worked on,
> I think I am the only one on the planet actually doing it.  And I did it 
> first with a rpi3b
> but its tongue was dragging on the floor doing it. The rpi4b can run the 
> machine while building
> the next git pull of linuxcnc.  A huge difference in the efficiency between 
> that and a wintel box..
> 
> With linuxcnc not running, or with it running but F2 toggled off. power draw 
> for the pi,
> interfacing and its lcd monitor is about 22 watts. Those machines running on 
> wintel
> boxes are drawing over 200 watts each with the machine powered down.
> 
>> OK, but I mean do the non-robots.txt-compliant bots actually try to submit 
>> passwords? 
> 
> If enough of us do it in self defense, I look for then to grow the code to do 
> it.
> I don't object to them indexing my site, but on a 10 megabit cable connection,
> they use up all my upload bw on a 24/7 basis when they try to mirror it. That 
> in
> my lookup table, is a DDS. So them and the camel that rode in on them can be
> told to go to hell but I won't waste time using flowery words like our 
> senator Bird
> was so famously fond of using. He could tell you to go to hell and do it in 
> such
> flowery language that you looked forward to the trip.

OK.  That's not something I can help with from scratch, but I will watch with 
interest for further discussion.

Best wishes,
G


>> I was wondering why you are interested in OTP/scheduled password 
>> regeneration for this use case, and whether a simple (or not so simple) 
>> password may be sufficient for bandwidth preservation purposes.
>> 
>> Thanks
>> G
>> 
>> I think its called netfilter now, so I expect I better find out how to
>> use it.
>> 
>> In the meantime,  a man page for robots.txt would be nice  but I expect
>> DDG can find that..
 Best wishes,
 Gareth
>>> Take care and stay well.
>>> 
> Cheers, Gene 

Re: I *think* I found the apache2 docs, but it's in .html andIcannotgetfirefox to access it using "file:"+ /path/to/filedir

2022-06-22 Thread gene heskett

On 6/22/22 19:39, Gareth Evans wrote:

On Wed 22 Jun 2022, at 22:42, gene heskett  wrote:

On 6/22/22 16:51, Gareth Evans wrote:

On Wed 22 Jun 2022, at 21:16, gene heskett  wrote:

On 6/22/22 10:45, Gareth Evans wrote:
[and I sniped a few kilobytes of.]

I think I've got it, but I did find what may be a bug in mod auth_plain.

Its asking for a username and pw, but nothing seems to satisfy it

I didn't see you had replied before sending my previous message, please ignore.

Can't find anything about mod_auth_plain but if you mean mod_auth_basic this 
requires usernames/passwords to be set up, not looking at /etc/passwd

https://www.howtogeek.com/devops/how-to-setup-basic-http-authentication-on-apache/

This also has a link to setting up LetsEncrypt.


, so
I disabled it, no man page hat I can find, and now its showing me
the directory I want as the root of this server, with one subdir
I can click on, and the first file I put there.

However I need to compose an explanatory README to go with it as
I had to invent my own method of installing it on a u-booting rpi.  Its a
preempt-rt kernel needed to run the armhf version of linuxcnc from
the buildbot. I run the bleeding edge development version on all 4
of my machines I've built or rebuilt. I play the part of the caged
canary in the coal mine, checking for showstoppers as development
is ongoing and has been since the net arrived. Its a NIST project, re-
done in gpl and was once on the no export list. See at linuxcnc.org.

So the plain text version is working and you should be able to see it at
 (or something like that)

Yes.

Good, so I'll quit tinkering for today.

That file in the armhf subdir is just under 30 megabytes, so if paying
for the bandwidth, don't click on it.

Making progress, I think, Thanks Gareth.

However, if there is a way to implement a OTP so I can keep track of the
users,
I could use some help with that as long as I don't setup a universal pw
the bots
can use. What I'd like is a true OTP with a 2 week lifetime.  Can that
be done?

I see there are various offerings (web search for "apache otp") but there 
doesn't seem to be an official offering.
I haven't done that DDG search, preferring to rely more on the real 
users experience.
The idea being that if the bot figures its worth in, and has his master 
ask for a OTP,
the 1 or 2 week expiry would eventually run them off. I figure that the 
botmasters

patience would be used up and I would get blacklisted, based on TANSTAAFL.

They aren't using much bandwidth now, and despite the weird port #, 
several of them

have already started looking at me.

I know of two others working on machines to be run by rpi4's, using my 
kernel cuz
the foundation would never approve, but all the other machines are being 
worked on,
I think I am the only one on the planet actually doing it.  And I did it 
first with a rpi3b
but its tongue was dragging on the floor doing it. The rpi4b can run the 
machine while building
the next git pull of linuxcnc.  A huge difference in the efficiency 
between that and a wintel box..


With linuxcnc not running, or with it running but F2 toggled off. power 
draw for the pi,
interfacing and its lcd monitor is about 22 watts. Those machines 
running on wintel

boxes are drawing over 200 watts each with the machine powered down.

OK, but I mean do the non-robots.txt-compliant bots actually try to 
submit passwords? 


If enough of us do it in self defense, I look for then to grow the code 
to do it.
I don't object to them indexing my site, but on a 10 megabit cable 
connection,
they use up all my upload bw on a 24/7 basis when they try to mirror it. 
That in

my lookup table, is a DDS. So them and the camel that rode in on them can be
told to go to hell but I won't waste time using flowery words like our 
senator Bird
was so famously fond of using. He could tell you to go to hell and do it 
in such

flowery language that you looked forward to the trip.

I was wondering why you are interested in OTP/scheduled password regeneration 
for this use case, and whether a simple (or not so simple) password may be 
sufficient for bandwidth preservation purposes.

Thanks
G

I think its called netfilter now, so I expect I better find out how to
use it.

In the meantime,  a man page for robots.txt would be nice  but I expect
DDG can find that..

Best wishes,
Gareth

Take care and stay well.


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, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis



Re: I *think* I found the apache2 docs, but it's in .html and Icannotgetfirefox to access it using "file:"+ /path/to/filedir

2022-06-22 Thread Gareth Evans
On Wed 22 Jun 2022, at 22:42, gene heskett  wrote:
> On 6/22/22 16:51, Gareth Evans wrote:
>> On Wed 22 Jun 2022, at 21:16, gene heskett  wrote:
>>> On 6/22/22 10:45, Gareth Evans wrote:
>>> [and I sniped a few kilobytes of.]
>>>
>>> I think I've got it, but I did find what may be a bug in mod auth_plain.
>>>
>>> Its asking for a username and pw, but nothing seems to satisfy it
>> I didn't see you had replied before sending my previous message, please 
>> ignore.
>>
>> Can't find anything about mod_auth_plain but if you mean mod_auth_basic this 
>> requires usernames/passwords to be set up, not looking at /etc/passwd
>>
>> https://www.howtogeek.com/devops/how-to-setup-basic-http-authentication-on-apache/
>>
>> This also has a link to setting up LetsEncrypt.
>>
>>> , so
>>> I disabled it, no man page hat I can find, and now its showing me
>>> the directory I want as the root of this server, with one subdir
>>> I can click on, and the first file I put there.
>>>
>>> However I need to compose an explanatory README to go with it as
>>> I had to invent my own method of installing it on a u-booting rpi.  Its a
>>> preempt-rt kernel needed to run the armhf version of linuxcnc from
>>> the buildbot. I run the bleeding edge development version on all 4
>>> of my machines I've built or rebuilt. I play the part of the caged
>>> canary in the coal mine, checking for showstoppers as development
>>> is ongoing and has been since the net arrived. Its a NIST project, re-
>>> done in gpl and was once on the no export list. See at linuxcnc.org.
>>>
>>> So the plain text version is working and you should be able to see it at
>>>  (or something like that)
>> Yes.
> Good, so I'll quit tinkering for today.
>>
>>> That file in the armhf subdir is just under 30 megabytes, so if paying
>>> for the bandwidth, don't click on it.
>>>
>>> Making progress, I think, Thanks Gareth.
>>>
>>> However, if there is a way to implement a OTP so I can keep track of the
>>> users,
>>> I could use some help with that as long as I don't setup a universal pw
>>> the bots
>>> can use. What I'd like is a true OTP with a 2 week lifetime.  Can that
>>> be done?
>> I see there are various offerings (web search for "apache otp") but there 
>> doesn't seem to be an official offering.
>>

>> I would imagine just using a password would keep the bots away.  Are they 
>> that determined?
>
> Some are, bing and mj12 seem to be the untrainable offenders. mj12 moves 
> theirs around
> in their huge address space about weekly so they got the /16 treatment 
> several times.
>
>   bing moves heirs about monthly. By the time those two seacrate drives 
> puked, my iptables
> rules were about 200 lines deep.

OK, but I mean do the non-robots.txt-compliant bots actually try to submit 
passwords?  

I was wondering why you are interested in OTP/scheduled password regeneration 
for this use case, and whether a simple (or not so simple) password may be 
sufficient for bandwidth preservation purposes.

Thanks
G

>
> I think its called netfilter now, so I expect I better find out how to 
> use it.
>
> In the meantime,  a man page for robots.txt would be nice  but I expect
> DDG can find that..
>> Best wishes,
>> Gareth
> Take care and stay well.
>
> 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, 1940)
> If we desire respect for the law, we must first make the law respectable.
>   - Louis D. Brandeis



Re: I *think* I found the apache2 docs, but it's in .html and Icannotgetfirefox to access it using "file:"+ /path/to/filedir

2022-06-22 Thread gene heskett

On 6/22/22 16:51, Gareth Evans wrote:

On Wed 22 Jun 2022, at 21:16, gene heskett  wrote:

On 6/22/22 10:45, Gareth Evans wrote:
[and I sniped a few kilobytes of.]

I think I've got it, but I did find what may be a bug in mod auth_plain.

Its asking for a username and pw, but nothing seems to satisfy it

I didn't see you had replied before sending my previous message, please ignore.

Can't find anything about mod_auth_plain but if you mean mod_auth_basic this 
requires usernames/passwords to be set up, not looking at /etc/passwd

https://www.howtogeek.com/devops/how-to-setup-basic-http-authentication-on-apache/

This also has a link to setting up LetsEncrypt.


, so
I disabled it, no man page hat I can find, and now its showing me
the directory I want as the root of this server, with one subdir
I can click on, and the first file I put there.

However I need to compose an explanatory README to go with it as
I had to invent my own method of installing it on a u-booting rpi.  Its a
preempt-rt kernel needed to run the armhf version of linuxcnc from
the buildbot. I run the bleeding edge development version on all 4
of my machines I've built or rebuilt. I play the part of the caged
canary in the coal mine, checking for showstoppers as development
is ongoing and has been since the net arrived. Its a NIST project, re-
done in gpl and was once on the no export list. See at linuxcnc.org.

So the plain text version is working and you should be able to see it at
 (or something like that)

Yes.

Good, so I'll quit tinkering for today.



That file in the armhf subdir is just under 30 megabytes, so if paying
for the bandwidth, don't click on it.

Making progress, I think, Thanks Gareth.

However, if there is a way to implement a OTP so I can keep track of the
users,
I could use some help with that as long as I don't setup a universal pw
the bots
can use. What I'd like is a true OTP with a 2 week lifetime.  Can that
be done?

I see there are various offerings (web search for "apache otp") but there 
doesn't seem to be an official offering.

I would imagine just using a password would keep the bots away.  Are they that 
determined?


Some are, bing and mj12 seem to be the untrainable offenders. mj12 moves 
theirs around
in their huge address space about weekly so they got the /16 treatment 
several times.


 bing moves heirs about monthly. By the time those two seacrate drives 
puked, my iptables

rules were about 200 lines deep.

I think its called netfilter now, so I expect I better find out how to 
use it.


In the meantime,  a man page for robots.txt would be nice  but I expect
DDG can find that..

Best wishes,
Gareth

Take care and stay well.

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, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis



Re: I *think* I found the apache2 docs, but it's in .html and Icannot getfirefox to access it using "file:"+ /path/to/filedir

2022-06-22 Thread Gareth Evans
On Wed 22 Jun 2022, at 21:16, gene heskett  wrote:
> On 6/22/22 10:45, Gareth Evans wrote:
> [and I sniped a few kilobytes of.]
>
> I think I've got it, but I did find what may be a bug in mod auth_plain.
>
> Its asking for a username and pw, but nothing seems to satisfy it

I didn't see you had replied before sending my previous message, please ignore.

Can't find anything about mod_auth_plain but if you mean mod_auth_basic this 
requires usernames/passwords to be set up, not looking at /etc/passwd

https://www.howtogeek.com/devops/how-to-setup-basic-http-authentication-on-apache/

This also has a link to setting up LetsEncrypt.

> , so
> I disabled it, no man page hat I can find, and now its showing me
> the directory I want as the root of this server, with one subdir
> I can click on, and the first file I put there.
>
> However I need to compose an explanatory README to go with it as
> I had to invent my own method of installing it on a u-booting rpi.  Its a
> preempt-rt kernel needed to run the armhf version of linuxcnc from
> the buildbot. I run the bleeding edge development version on all 4
> of my machines I've built or rebuilt. I play the part of the caged
> canary in the coal mine, checking for showstoppers as development
> is ongoing and has been since the net arrived. Its a NIST project, re-
> done in gpl and was once on the no export list. See at linuxcnc.org.
>
> So the plain text version is working and you should be able to see it at
>  (or something like that)

Yes.

>
> That file in the armhf subdir is just under 30 megabytes, so if paying
> for the bandwidth, don't click on it.
>
> Making progress, I think, Thanks Gareth.
>
> However, if there is a way to implement a OTP so I can keep track of the 
> users,
> I could use some help with that as long as I don't setup a universal pw 
> the bots
> can use. What I'd like is a true OTP with a 2 week lifetime.  Can that 
> be done?

I see there are various offerings (web search for "apache otp") but there 
doesn't seem to be an official offering.

I would imagine just using a password would keep the bots away.  Are they that 
determined?

Best wishes,
Gareth

>
> Take care and stay well.
>
> 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, 1940)
> If we desire respect for the law, we must first make the law respectable.
>   - Louis D. Brandeis



Re: I *think* I found the apache2 docs, but it's in .html and Icannot getfirefox to access it using "file:"+ /path/to/filedir

2022-06-22 Thread Gareth Evans
On Wed 22 Jun 2022, at 18:22, gene heskett  wrote:
> On 6/22/22 10:45, Gareth Evans wrote:
>>
>>> On 21 Jun 2022, at 22:37, Gareth Evans  wrote:
>>>
>>> 
>>>
>>>> On 21 Jun 2022, at 22:12, Gareth Evans  wrote:
>>>>
>>>> On Tue 21 Jun 2022, at 20:16, gene heskett  wrote:
>>>>>> On 6/21/22 14:09, Gareth Evans wrote:
>>>>>> On Tue 21 Jun 2022, at 18:06, gene heskett  wrote:
>>>>>>> On 6/21/22 12:11, Andrew M.A. Cater wrote:
>>>>>>>>> On Tue, Jun 21, 2022 at 11:55:56AM -0400, gene heskett wrote:
>>>>>>>>>> Greetings all;
>>>>>>>>>>
>>>>>>>>>> So how am I supposed to read these installed docs?
>>>>>>>>>>
>>>>>>>>>> Thanks all.
>>>>>>>>>>
>>>>>>>>>> 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, 1940)
>>>>>>>>>> If we desire respect for the law, we must first make the law 
>>>>>>>>>> respectable.
>>>>>>>>>>   - Louis D. Brandeis
>>>>>>>>>>
>>>>>>>>>>  From a web browser?
>>>>>>>>> file:///usr/share/doc/apache2-doc
>>>>>>>>>
>>>>>>>>> That's three slashes - file:// - two slashes - and then the 
>>>>>>>>> filesystem path.
>>>>>>>>>
>>>>>>>>> Hope this helps, with every good wish, as ever,
>>>>>>>>>
>>>>>>>>> Andy Cater
>>>>>>>> And that works, the third slash is new to me.
>>>>>>>>
>>>>>>>> So now the only thing I've changed from the default install is in
>>>>>>>> /etc/apache2/envvars
>>>>>>>> for usr and grp to be www-data. But now it won't restart.
>>>>>>>> journalctl -xe reports:
>>>>>>>> Jun 21 12:46:16 coyote apachectl[286443]: AH00526: Syntax error on line
>>>>>>>> 63 of /etc/apache2/conf-enabled/security.conf:
>>>>>>>> Jun 21 12:46:16 coyote apachectl[286443]: Invalid command 'Header', 
>>>>>>>> [...]
>>>>>>> In my (unedited) version of that file:
>>>>>>>
>>>>>>> [...]
>>>>>>> 61 # Requires mod_headers to be enabled.
>>>>>>> 62 #
>>>>>>> 63 #Header set X-Content-Type-Options: "nosniff"
>>>>>>>
>>>>>>> If line 63 is required un-commented, then
>>>>>>>
>>>>>>> $ sudo a2enmod headers
>>>>>>> $ sudo systemctl restart apache2
>>>>>>>
>>>>>>> should do the trick.
>>>>> After I found it with locate/ /usr/sbin is not in su's $PATH
>>>>> That fixed the error, and I uncommented the stanza in apache2.conf
>>>>> that points to the directory I want the server to access, and
>>>>> localhost:port# displays the default startup page ok.
>>>>>
>>>>> dig "my-site-name" returns the proper ipv4 address.
>>>>> I just used the address:6309 and it worked. So I edited the
>>>>> address bar to use the registered name:6309 and hit F5,
>>>>> a couple times, and that works.
>>>> Do you see a page titled "Apache2 Debian Default Page" with the Debian 
>>>> logo?
> yes
>
>>>> If so it's probably configured in
>>>>
>>>> /etc/apache2/sites-available/000-default.conf
>>>>
>>>> or
>>>>
>>>> /etc/apache2/sites-available/default-ssl.conf for https version
> I'd like to get this working if possible.
>>>>
>>>> as Debian uses name-based virtual hosts with a config file structure which 
>>>> does not correspond to the Apache docs afaics, and I can't find any Debian 
>>>> docs on the subject.
>>>>
>>>> https://httpd.apache.org/docs/2.4/configuring.html
>>>> https://

Re: I *think* I found the apache2 docs, but it's in .html and Icannot getfirefox to access it using "file:"+ /path/to/filedir

2022-06-22 Thread gene heskett

On 6/22/22 10:45, Gareth Evans wrote:
[and I sniped a few kilobytes of.]

I think I've got it, but I did find what may be a bug in mod auth_plain.

Its asking for a username and pw, but nothing seems to satisfy it, so
I disabled it, no man page hat I can find, and now its showing me
the directory I want as the root of this server, with one subdir
I can click on, and the first file I put there.

However I need to compose an explanatory README to go with it as
I had to invent my own method of installing it on a u-booting rpi.  Its a
preempt-rt kernel needed to run the armhf version of linuxcnc from
the buildbot. I run the bleeding edge development version on all 4
of my machines I've built or rebuilt. I play the part of the caged
canary in the coal mine, checking for showstoppers as development
is ongoing and has been since the net arrived. Its a NIST project, re-
done in gpl and was once on the no export list. See at linuxcnc.org.

So the plain text version is working and you should be able to see it at
 (or something like that)

That file in the armhf subdir is just under 30 megabytes, so if paying
for the bandwidth, don't click on it.

Making progress, I think, Thanks Gareth.

However, if there is a way to implement a OTP so I can keep track of the 
users,
I could use some help with that as long as I don't setup a universal pw 
the bots
can use. What I'd like is a true OTP with a 2 week lifetime.  Can that 
be done?


Take care and stay well.

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, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis



Re: I *think* I found the apache2 docs, but it's in .html and Icannot getfirefox to access it using "file:"+ /path/to/filedir

2022-06-22 Thread gene heskett

On 6/22/22 10:45, Gareth Evans wrote:



On 21 Jun 2022, at 22:37, Gareth Evans  wrote:




On 21 Jun 2022, at 22:12, Gareth Evans  wrote:

On Tue 21 Jun 2022, at 20:16, gene heskett  wrote:

On 6/21/22 14:09, Gareth Evans wrote:
On Tue 21 Jun 2022, at 18:06, gene heskett  wrote:

On 6/21/22 12:11, Andrew M.A. Cater wrote:

On Tue, Jun 21, 2022 at 11:55:56AM -0400, gene heskett wrote:

Greetings all;

So how am I supposed to read these installed docs?

Thanks all.

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, 1940)
If we desire respect for the law, we must first make the law respectable.
  - Louis D. Brandeis

 From a web browser?

file:///usr/share/doc/apache2-doc

That's three slashes - file:// - two slashes - and then the filesystem path.

Hope this helps, with every good wish, as ever,

Andy Cater

And that works, the third slash is new to me.

So now the only thing I've changed from the default install is in
/etc/apache2/envvars
for usr and grp to be www-data. But now it won't restart.
journalctl -xe reports:
Jun 21 12:46:16 coyote apachectl[286443]: AH00526: Syntax error on line
63 of /etc/apache2/conf-enabled/security.conf:
Jun 21 12:46:16 coyote apachectl[286443]: Invalid command 'Header', [...]

In my (unedited) version of that file:

[...]
61 # Requires mod_headers to be enabled.
62 #
63 #Header set X-Content-Type-Options: "nosniff"

If line 63 is required un-commented, then

$ sudo a2enmod headers
$ sudo systemctl restart apache2

should do the trick.

After I found it with locate/ /usr/sbin is not in su's $PATH
That fixed the error, and I uncommented the stanza in apache2.conf
that points to the directory I want the server to access, and
localhost:port# displays the default startup page ok.

dig "my-site-name" returns the proper ipv4 address.
I just used the address:6309 and it worked. So I edited the
address bar to use the registered name:6309 and hit F5,
a couple times, and that works.

Do you see a page titled "Apache2 Debian Default Page" with the Debian logo?

yes


If so it's probably configured in

/etc/apache2/sites-available/000-default.conf

or

/etc/apache2/sites-available/default-ssl.conf for https version

I'd like to get this working if possible.


as Debian uses name-based virtual hosts with a config file structure which does 
not correspond to the Apache docs afaics, and I can't find any Debian docs on 
the subject.

https://httpd.apache.org/docs/2.4/configuring.html
https://httpd.apache.org/docs/2.4/vhosts/

000-default is already enabled (though the other for https may not be) if 
you're seeing the page I referred to above.

$ sudo a2ensite filename (without .conf)

is the command you would use to enable an "available" configuration (which 
creates a symlink in ../sites-enabled),

That much I got. But nowhere is the doc I've printed 10 pages of,
is there an example of how to setup a local site. ISTR when I did
this back in the fog of 2005 or so, that it was then all done in the
html of the /var/www/gene/index.html. Robots.txt was also there
but most robots ignored it, so I got addresses out of log/oth* and
added them to iptables rules with DROP commands. They move
the bots around weekly so that's an hours work a day until I added
a CIDR of /16 or so. Enough to cover that bots src address bundle.

But there ought to be a better way, I only had apache2 live and
serving the default page on that oddball port # about 10 minutes
when a "petalbot" showed up in the log.




but you may find it easier just to edit the existing 000-default.conf file.

Tried that  listed here in that file as a second entry,
but it had zero effect on an apache2 restart.


According to comments in my apache2.conf there needs to be a directory stanza 
there too for each directory not already declared which you want Apache to be 
able to access contents under.

Re-reading yesterdays emails it seems you have already established that, I was 
engrossed in figuring out where you might be in the process and lost track of 
what you had said.

Your directory stanza looks OK to me, it just isn't enough on its own.

Any progress?

G

No, I'm stuck looking at the default page.

You can create another (or iirc just extend it) if you want to add other 
(domain-)name-based sites in future.

* in the virtualhost tag as in "*:portNo" means "all domains", so these would need 
to be specified if >1.

This tutorial (amongst others I'm sure) explains the Debian approach:

https://vitux.com/debian-apache/

You may find that putting a suitable  stanza around your directory 
stanza in apache2.conf works (eg. copy the relevant parts from 000-default), though I 
think you would at least need to disable 000-default if you do. For that:

$ sudo a2dissite 000-default

I think the most pain-free method is likely to 

Re: I *think* I found the apache2 docs, but it's in .html and Icannot getfirefox to access it using "file:"+ /path/to/filedir

2022-06-22 Thread Gareth Evans



> On 21 Jun 2022, at 22:37, Gareth Evans  wrote:
> 
> 
> 
>> On 21 Jun 2022, at 22:12, Gareth Evans  wrote:
>> 
>> On Tue 21 Jun 2022, at 20:16, gene heskett  wrote:
 On 6/21/22 14:09, Gareth Evans wrote:
 On Tue 21 Jun 2022, at 18:06, gene heskett  wrote:
> On 6/21/22 12:11, Andrew M.A. Cater wrote:
>>> On Tue, Jun 21, 2022 at 11:55:56AM -0400, gene heskett wrote:
 Greetings all;
 
 So how am I supposed to read these installed docs?
 
 Thanks all.
 
 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, 1940)
 If we desire respect for the law, we must first make the law 
 respectable.
  - Louis D. Brandeis
 
 From a web browser?
>>> 
>>> file:///usr/share/doc/apache2-doc
>>> 
>>> That's three slashes - file:// - two slashes - and then the filesystem 
>>> path.
>>> 
>>> Hope this helps, with every good wish, as ever,
>>> 
>>> Andy Cater
>> And that works, the third slash is new to me.
>> 
>> So now the only thing I've changed from the default install is in
>> /etc/apache2/envvars
>> for usr and grp to be www-data. But now it won't restart.
>> journalctl -xe reports:
>> Jun 21 12:46:16 coyote apachectl[286443]: AH00526: Syntax error on line
>> 63 of /etc/apache2/conf-enabled/security.conf:
>> Jun 21 12:46:16 coyote apachectl[286443]: Invalid command 'Header', [...]
> In my (unedited) version of that file:
> 
> [...]
> 61 # Requires mod_headers to be enabled.
> 62 #
> 63 #Header set X-Content-Type-Options: "nosniff"
> 
> If line 63 is required un-commented, then
> 
> $ sudo a2enmod headers
> $ sudo systemctl restart apache2
> 
> should do the trick.
>>> After I found it with locate/ /usr/sbin is not in su's $PATH
>>> That fixed the error, and I uncommented the stanza in apache2.conf
>>> that points to the directory I want the server to access, and
>>> localhost:port# displays the default startup page ok.
>>> 
>>> dig "my-site-name" returns the proper ipv4 address.
>> 
>>> I just used the address:6309 and it worked. So I edited the
>>> address bar to use the registered name:6309 and hit F5,
>>> a couple times, and that works.
>> 
>> Do you see a page titled "Apache2 Debian Default Page" with the Debian logo?
>> 
>> If so it's probably configured in
>> 
>> /etc/apache2/sites-available/000-default.conf
>> 
>> or 
>> 
>> /etc/apache2/sites-available/default-ssl.conf for https version
>> 
>> as Debian uses name-based virtual hosts with a config file structure which 
>> does not correspond to the Apache docs afaics, and I can't find any Debian 
>> docs on the subject.
>> 
>> https://httpd.apache.org/docs/2.4/configuring.html
>> https://httpd.apache.org/docs/2.4/vhosts/
>> 
>> 000-default is already enabled (though the other for https may not be) if 
>> you're seeing the page I referred to above.
>> 
>> $ sudo a2ensite filename (without .conf)
>> 
>> is the command you would use to enable an "available" configuration (which 
>> creates a symlink in ../sites-enabled),
> 
> 
>> but you may find it easier just to edit the existing 000-default.conf file.
> 

> According to comments in my apache2.conf there needs to be a directory stanza 
> there too for each directory not already declared which you want Apache to be 
> able to access contents under.

Re-reading yesterdays emails it seems you have already established that, I was 
engrossed in figuring out where you might be in the process and lost track of 
what you had said.

Your directory stanza looks OK to me, it just isn't enough on its own.

Any progress?

G

> 
>> You can create another (or iirc just extend it) if you want to add other 
>> (domain-)name-based sites in future.
>> 
>> * in the virtualhost tag as in "*:portNo" means "all domains", so these 
>> would need to be specified if >1.
>> 
>> This tutorial (amongst others I'm sure) explains the Debian approach:
>> 
>> https://vitux.com/debian-apache/
>> 
>> You may find that putting a suitable  stanza around your 
>> directory stanza in apache2.conf works (eg. copy the relevant parts from 
>> 000-default), though I think you would at least need to disable 000-default 
>> if you do. For that:
>> 
>> $ sudo a2dissite 000-default
>> 
>> I think the most pain-free method is likely to be to edit or add to the 
>> files in 
>> /etc/apache2/sites-available/
>> 
>> Hope that helps.
>> Gareth
>> 
>> 
>>> 
>>> So now I need a  stanza in apache2.conf that works.
>>> This one doesn't:
>>> 
>>>Options Indexes FollowSymLinks
>>>AllowOverride None
>>>Require all granted
>>> 
>>> 
>>> Do I need to comment out the default page to expose mine?
>>> I have constructed that path, made a subdir for buster armhf
>>> stuff in it and 

Re: I *think* I found the apache2 docs, but it's in .html and Icannot getfirefox to access it using "file:"+ /path/to/filedir

2022-06-21 Thread Gareth Evans



> On 21 Jun 2022, at 22:12, Gareth Evans  wrote:
> 
> On Tue 21 Jun 2022, at 20:16, gene heskett  wrote:
>>> On 6/21/22 14:09, Gareth Evans wrote:
>>> On Tue 21 Jun 2022, at 18:06, gene heskett  wrote:
 On 6/21/22 12:11, Andrew M.A. Cater wrote:
> On Tue, Jun 21, 2022 at 11:55:56AM -0400, gene heskett wrote:
>> Greetings all;
>> 
>> So how am I supposed to read these installed docs?
>> 
>> Thanks all.
>> 
>> 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, 1940)
>> If we desire respect for the law, we must first make the law respectable.
>>   - Louis D. Brandeis
>> 
>> From a web browser?
> 
> file:///usr/share/doc/apache2-doc
> 
> That's three slashes - file:// - two slashes - and then the filesystem 
> path.
> 
> Hope this helps, with every good wish, as ever,
> 
> Andy Cater
 And that works, the third slash is new to me.
 
 So now the only thing I've changed from the default install is in
 /etc/apache2/envvars
 for usr and grp to be www-data. But now it won't restart.
 journalctl -xe reports:
 Jun 21 12:46:16 coyote apachectl[286443]: AH00526: Syntax error on line
 63 of /etc/apache2/conf-enabled/security.conf:
 Jun 21 12:46:16 coyote apachectl[286443]: Invalid command 'Header', [...]
>>> In my (unedited) version of that file:
>>> 
>>> [...]
>>> 61 # Requires mod_headers to be enabled.
>>> 62 #
>>> 63 #Header set X-Content-Type-Options: "nosniff"
>>> 
>>> If line 63 is required un-commented, then
>>> 
>>> $ sudo a2enmod headers
>>> $ sudo systemctl restart apache2
>>> 
>>> should do the trick.
>> After I found it with locate/ /usr/sbin is not in su's $PATH
>> That fixed the error, and I uncommented the stanza in apache2.conf
>> that points to the directory I want the server to access, and
>> localhost:port# displays the default startup page ok.
>> 
>> dig "my-site-name" returns the proper ipv4 address.
> 
>>  I just used the address:6309 and it worked. So I edited the
>> address bar to use the registered name:6309 and hit F5,
>> a couple times, and that works.
> 
> Do you see a page titled "Apache2 Debian Default Page" with the Debian logo?
> 
> If so it's probably configured in
> 
> /etc/apache2/sites-available/000-default.conf
> 
> or 
> 
> /etc/apache2/sites-available/default-ssl.conf for https version
> 
> as Debian uses name-based virtual hosts with a config file structure which 
> does not correspond to the Apache docs afaics, and I can't find any Debian 
> docs on the subject.
> 
> https://httpd.apache.org/docs/2.4/configuring.html
> https://httpd.apache.org/docs/2.4/vhosts/
> 
> 000-default is already enabled (though the other for https may not be) if 
> you're seeing the page I referred to above.
> 
> $ sudo a2ensite filename (without .conf)
> 
> is the command you would use to enable an "available" configuration (which 
> creates a symlink in ../sites-enabled),


> but you may find it easier just to edit the existing 000-default.conf file.

According to comments in my apache2.conf there needs to be a directory stanza 
there too for each directory not already declared which you want Apache to be 
able to access contents under.

>  You can create another (or iirc just extend it) if you want to add other 
> (domain-)name-based sites in future.
> 
> * in the virtualhost tag as in "*:portNo" means "all domains", so these would 
> need to be specified if >1.
> 
> This tutorial (amongst others I'm sure) explains the Debian approach:
> 
> https://vitux.com/debian-apache/
> 
> You may find that putting a suitable  stanza around your 
> directory stanza in apache2.conf works (eg. copy the relevant parts from 
> 000-default), though I think you would at least need to disable 000-default 
> if you do. For that:
> 
> $ sudo a2dissite 000-default
> 
> I think the most pain-free method is likely to be to edit or add to the files 
> in 
> /etc/apache2/sites-available/
> 
> Hope that helps.
> Gareth
> 
> 
>> 
>> So now I need a  stanza in apache2.conf that works.
>> This one doesn't:
>> 
>> Options Indexes FollowSymLinks
>> AllowOverride None
>> Require all granted
>> 
>> 
>> Do I need to comment out the default page to expose mine?
>> I have constructed that path, made a subdir for buster armhf
>> stuff in it and placed an preempt-rt kernel file in it. 
>> The intent
>> is to let anybody download it. If the bots insist on wasting my
>> upload bw, I may OTP passwd protect the subdirs, but that's a
>> future option & howto question.
>> 
>> Making progress, I think, Thanks Gareth.
>> 
>> Take care & stay well.
>> 
>> 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, 1940)
>> If we desire respect for the 

Re: I *think* I found the apache2 docs, but it's in .html and Icannot getfirefox to access it using "file:"+ /path/to/filedir

2022-06-21 Thread Gareth Evans
On Tue 21 Jun 2022, at 20:16, gene heskett  wrote:
> On 6/21/22 14:09, Gareth Evans wrote:
>> On Tue 21 Jun 2022, at 18:06, gene heskett  wrote:
>>> On 6/21/22 12:11, Andrew M.A. Cater wrote:
 On Tue, Jun 21, 2022 at 11:55:56AM -0400, gene heskett wrote:
> Greetings all;
>
> So how am I supposed to read these installed docs?
>
> Thanks all.
>
> 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, 1940)
> If we desire respect for the law, we must first make the law respectable.
>- Louis D. Brandeis
>
 >From a web browser?

 file:///usr/share/doc/apache2-doc

 That's three slashes - file:// - two slashes - and then the filesystem 
 path.

 Hope this helps, with every good wish, as ever,

 Andy Cater
>>> And that works, the third slash is new to me.
>>>
>>> So now the only thing I've changed from the default install is in
>>> /etc/apache2/envvars
>>> for usr and grp to be www-data. But now it won't restart.
>>> journalctl -xe reports:
>>> Jun 21 12:46:16 coyote apachectl[286443]: AH00526: Syntax error on line
>>> 63 of /etc/apache2/conf-enabled/security.conf:
>>> Jun 21 12:46:16 coyote apachectl[286443]: Invalid command 'Header', [...]
>> In my (unedited) version of that file:
>>
>> [...]
>> 61 # Requires mod_headers to be enabled.
>> 62 #
>> 63 #Header set X-Content-Type-Options: "nosniff"
>>
>> If line 63 is required un-commented, then
>>
>> $ sudo a2enmod headers
>> $ sudo systemctl restart apache2
>>
>> should do the trick.
> After I found it with locate/ /usr/sbin is not in su's $PATH
> That fixed the error, and I uncommented the stanza in apache2.conf
> that points to the directory I want the server to access, and
> localhost:port# displays the default startup page ok.
>
> dig "my-site-name" returns the proper ipv4 address.

>   I just used the address:6309 and it worked. So I edited the
> address bar to use the registered name:6309 and hit F5,
> a couple times, and that works.

Do you see a page titled "Apache2 Debian Default Page" with the Debian logo?

If so it's probably configured in

/etc/apache2/sites-available/000-default.conf

or 

/etc/apache2/sites-available/default-ssl.conf for https version

as Debian uses name-based virtual hosts with a config file structure which does 
not correspond to the Apache docs afaics, and I can't find any Debian docs on 
the subject.

https://httpd.apache.org/docs/2.4/configuring.html
https://httpd.apache.org/docs/2.4/vhosts/

000-default is already enabled (though the other for https may not be) if 
you're seeing the page I referred to above.

$ sudo a2ensite filename (without .conf)

is the command you would use to enable an "available" configuration (which 
creates a symlink in ../sites-enabled), but you may find it easier just to edit 
the existing 000-default.conf file.  You can create another (or iirc just 
extend it) if you want to add other (domain-)name-based sites in future.

* in the virtualhost tag as in "*:portNo" means "all domains", so these would 
need to be specified if >1.

This tutorial (amongst others I'm sure) explains the Debian approach:

https://vitux.com/debian-apache/

You may find that putting a suitable  stanza around your directory 
stanza in apache2.conf works (eg. copy the relevant parts from 000-default), 
though I think you would at least need to disable 000-default if you do. For 
that:

$ sudo a2dissite 000-default

I think the most pain-free method is likely to be to edit or add to the files 
in 
/etc/apache2/sites-available/

Hope that helps.
Gareth


>
> So now I need a  stanza in apache2.conf that works.
> This one doesn't:
> 
>      Options Indexes FollowSymLinks
>      AllowOverride None
>      Require all granted
> 
>
> Do I need to comment out the default page to expose mine?
> I have constructed that path, made a subdir for buster armhf
> stuff in it and placed an preempt-rt kernel file in it. 
> The intent
> is to let anybody download it. If the bots insist on wasting my
> upload bw, I may OTP passwd protect the subdirs, but that's a
> future option & howto question.
>
> Making progress, I think, Thanks Gareth.
>
> Take care & stay well.
>
> 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, 1940)
> If we desire respect for the law, we must first make the law respectable.
>   - Louis D. Brandeis



Re: I *think* I found the apache2 docs, but it's in .html andIcannot getfirefox to access it using "file:"+ /path/to/filedir

2022-06-21 Thread gene heskett

On 6/21/22 15:30, Greg Wooledge wrote:

On Tue, Jun 21, 2022 at 03:16:11PM -0400, gene heskett wrote:

/usr/sbin is not in su's $PATH

https://wiki.debian.org/NewInBuster#Changes


Thanks Greg just what Mr.Gene ordered.

Take care & stay well.

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, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis



Re: I *think* I found the apache2 docs, but it's in .html and Icannot getfirefox to access it using "file:"+ /path/to/filedir

2022-06-21 Thread Greg Wooledge
On Tue, Jun 21, 2022 at 03:16:11PM -0400, gene heskett wrote:
> /usr/sbin is not in su's $PATH

https://wiki.debian.org/NewInBuster#Changes



Re: I *think* I found the apache2 docs, but it's in .html and Icannot getfirefox to access it using "file:"+ /path/to/filedir

2022-06-21 Thread gene heskett

On 6/21/22 14:09, Gareth Evans wrote:

On Tue 21 Jun 2022, at 18:06, gene heskett  wrote:

On 6/21/22 12:11, Andrew M.A. Cater wrote:

On Tue, Jun 21, 2022 at 11:55:56AM -0400, gene heskett wrote:

Greetings all;

So how am I supposed to read these installed docs?

Thanks all.

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, 1940)
If we desire respect for the law, we must first make the law respectable.
   - Louis D. Brandeis


>From a web browser?

file:///usr/share/doc/apache2-doc

That's three slashes - file:// - two slashes - and then the filesystem path.

Hope this helps, with every good wish, as ever,

Andy Cater

And that works, the third slash is new to me.

So now the only thing I've changed from the default install is in
/etc/apache2/envvars
for usr and grp to be www-data. But now it won't restart.
journalctl -xe reports:
Jun 21 12:46:16 coyote apachectl[286443]: AH00526: Syntax error on line
63 of /etc/apache2/conf-enabled/security.conf:
Jun 21 12:46:16 coyote apachectl[286443]: Invalid command 'Header', [...]

In my (unedited) version of that file:

[...]
61 # Requires mod_headers to be enabled.
62 #
63 #Header set X-Content-Type-Options: "nosniff"

If line 63 is required un-commented, then

$ sudo a2enmod headers
$ sudo systemctl restart apache2

should do the trick.

After I found it with locate/ /usr/sbin is not in su's $PATH
That fixed the error, and I uncommented the stanza in apache2.conf
that points to the directory I want the server to access, and
localhost:port# displays the default startup page ok.

dig "my-site-name" returns the proper ipv4 address.
 I just used the address:6309 and it worked. So I edited the
address bar to use the registered name:6309 and hit F5,
a couple times, and that works.

So now I need a  stanza in apache2.conf that works.
This one doesn't:

    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted


Do I need to comment out the default page to expose mine?
I have constructed that path, made a subdir for buster armhf
stuff in it and placed an preempt-rt kernel file in it.  The intent
is to let anybody download it. If the bots insist on wasting my
upload bw, I may OTP passwd protect the subdirs, but that's a
future option & howto question.

Making progress, I think, Thanks Gareth.

Take care & stay well.

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, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis



Re: I *think* I found the apache2 docs, but it's in .html and Icannot get firefox to access it using "file:"+ /path/to/filedir

2022-06-21 Thread Gareth Evans
On Tue 21 Jun 2022, at 18:06, gene heskett  wrote:
> On 6/21/22 12:11, Andrew M.A. Cater wrote:
>> On Tue, Jun 21, 2022 at 11:55:56AM -0400, gene heskett wrote:
>>> Greetings all;
>>>
>>> So how am I supposed to read these installed docs?
>>>
>>> Thanks all.
>>>
>>> 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, 1940)
>>> If we desire respect for the law, we must first make the law respectable.
>>>   - Louis D. Brandeis
>>>
>> >From a web browser?
>>
>> file:///usr/share/doc/apache2-doc
>>
>> That's three slashes - file:// - two slashes - and then the filesystem path.
>>
>> Hope this helps, with every good wish, as ever,
>>
>> Andy Cater
> And that works, the third slash is new to me.
>

> So now the only thing I've changed from the default install is in 
> /etc/apache2/envvars
> for usr and grp to be www-data. But now it won't restart.
> journalctl -xe reports:
> Jun 21 12:46:16 coyote apachectl[286443]: AH00526: Syntax error on line 
> 63 of /etc/apache2/conf-enabled/security.conf:
> Jun 21 12:46:16 coyote apachectl[286443]: Invalid command 'Header', [...]

In my (unedited) version of that file:

[...]
61 # Requires mod_headers to be enabled.
62 #
63 #Header set X-Content-Type-Options: "nosniff"

If line 63 is required un-commented, then

$ sudo a2enmod headers
$ sudo systemctl restart apache2

should do the trick.

$ sudo apache2ctl -M

should then inlclude

"headers_module (shared)" 

which

https://httpd.apache.org/docs/current/mod/mod_headers.html

confirms is the identifier for mod_headers.

$ sudo a2dismod headers
$ sudo systemctl restart apache2
to disable, should that be desired.

Hope that helps.
Gareth



> perhaps misspelled or defined by a module not included in the server 
> configuration
> Jun 21 12:46:16 coyote apachectl[286440]: Action 'start' failed.
>
> It appears apache2 probably has it own mechanism for moving/linking stuff
> from mods-available to mods-enabled but makes no reference to the name 
> of that
> utility that I have found. Does it have a name? Or do I cobble up a 
> symlink in mc?
>
> Thanks Andy.
>> .
>
>
> 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, 1940)
> If we desire respect for the law, we must first make the law respectable.
>   - Louis D. Brandeis



Re: I *think* I found the apache2 docs, but it's in .html and Icannot get firefox to access it using "file:"+ /path/to/filedir

2022-06-21 Thread gene heskett

On 6/21/22 12:26, Will Mengarini wrote:

* gene heskett  [22-06/21=Tu 11:55 -0400]:

[Apache2 docs are in .html & Firefox won't access it using "file:"+
/path/to/filedir, so] how am I supposed to read these installed docs?

Firefox disables file: URLs by default now, but you can enable them.

I found instructions by Googling 'firefox file: URLs'; the first hit
looked good.  The nuance is that you have to be able to find your
profile folder, which has a weird randomized name.  Links:

https://blog.scottlowe.org/2020/04/04/making-file-urls-work-again-in-firefox/
http://kb.mozillazine.org/Profile_folder_-_Firefox

Let us know if the instructions you Google up are insufficient.

I got that working with Andy's help.

"There are four boxes to be used in defense of liberty:
  soap, ballot, jury, and ammo. Please use in that order."

There are FIVE boxes to be used in defense of liberty:
search, soap, ballot, jury, and ammo.

Yeah, but in case you've not noticed, all the boxes up to the last have
had little effect recently. Scary. I don't know what good adding the
search is as its flltered to make sure it's PC according to TPTB. Free 
speech?

Is history...






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, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis



Re: I *think* I found the apache2 docs, but it's in .html and Icannot get firefox to access it using "file:"+ /path/to/filedir

2022-06-21 Thread gene heskett

On 6/21/22 12:11, Andrew M.A. Cater wrote:

On Tue, Jun 21, 2022 at 11:55:56AM -0400, gene heskett wrote:

Greetings all;

So how am I supposed to read these installed docs?

Thanks all.

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, 1940)
If we desire respect for the law, we must first make the law respectable.
  - Louis D. Brandeis


>From a web browser?

file:///usr/share/doc/apache2-doc

That's three slashes - file:// - two slashes - and then the filesystem path.

Hope this helps, with every good wish, as ever,

Andy Cater

And that works, the third slash is new to me.

So now the only thing I've changed from the default install is in 
/etc/apache2/envvars

for usr and grp to be www-data. But now it won't restart.
journalctl -xe reports:
Jun 21 12:46:16 coyote apachectl[286443]: AH00526: Syntax error on line 
63 of /etc/apache2/conf-enabled/security.conf:
Jun 21 12:46:16 coyote apachectl[286443]: Invalid command 'Header', 
perhaps misspelled or defined by a module not included in the server 
configuration

Jun 21 12:46:16 coyote apachectl[286440]: Action 'start' failed.

It appears apache2 probably has it own mechanism for moving/linking stuff
from mods-available to mods-enabled but makes no reference to the name 
of that
utility that I have found. Does it have a name? Or do I cobble up a 
symlink in mc?


Thanks Andy.

.



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, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis



Re: I *think* I found the apache2 docs, but it's in .html and I cannot get firefox to access it using "file:"+ /path/to/filedir

2022-06-21 Thread Will Mengarini
* gene heskett  [22-06/21=Tu 11:55 -0400]:
> [Apache2 docs are in .html & Firefox won't access it using "file:"+
> /path/to/filedir, so] how am I supposed to read these installed docs?

Firefox disables file: URLs by default now, but you can enable them.

I found instructions by Googling 'firefox file: URLs'; the first hit
looked good.  The nuance is that you have to be able to find your
profile folder, which has a weird randomized name.  Links:

https://blog.scottlowe.org/2020/04/04/making-file-urls-work-again-in-firefox/
http://kb.mozillazine.org/Profile_folder_-_Firefox

Let us know if the instructions you Google up are insufficient.

> "There are four boxes to be used in defense of liberty:
>  soap, ballot, jury, and ammo. Please use in that order."

There are FIVE boxes to be used in defense of liberty:
search, soap, ballot, jury, and ammo.

-- 
 Will Mengarini  
 Free software: the Source will be with you, always.



Re: I *think* I found the apache2 docs, but it's in .html and I cannot get firefox to access it using "file:"+ /path/to/filedir

2022-06-21 Thread Andrew M.A. Cater
On Tue, Jun 21, 2022 at 11:55:56AM -0400, gene heskett wrote:
> Greetings all;
> 
> So how am I supposed to read these installed docs?
> 
> Thanks all.
> 
> 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, 1940)
> If we desire respect for the law, we must first make the law respectable.
>  - Louis D. Brandeis
>

>From a web browser?

file:///usr/share/doc/apache2-doc

That's three slashes - file:// - two slashes - and then the filesystem path.

Hope this helps, with every good wish, as ever,

Andy Cater 



I *think* I found the apache2 docs, but it's in .html and I cannot get firefox to access it using "file:"+ /path/to/filedir

2022-06-21 Thread gene heskett

Greetings all;

So how am I supposed to read these installed docs?

Thanks all.

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, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis



Curso de HTML publicado, y una buena noticia

2021-10-06 Thread Galvatorix Torixgalva
Holas,

ya tengo publicado el curso de HTML, como podreis ver es de un nivel basico.

Como comente en su dia, he preferido publicar varios cursos de un nivel
basico para que la curva de aprendizaje sea mas suave. Una vez sentadas las
bases, ya veo mejor publicar un contenido mas avanzado.

Actualmente me estoy enfocando a temas de paginas web, de ahi el curso de
HTML. La buena noticia es que con el contenido de los cursos de nivel
basico que he publicado considero que ya se tiene suficiente base para
pasar a temas mas avanzados.

Voy a seguir publicando cursos de la misma manera: explicando las cosas una
a una, poniendo  ejemplos de todo, y explicando cada ejemplo.

El link al curso es este de abajo.

Un saludo


https://www.tutellus.com/tecnologia/desarrollo-web/aprende-html-nivel-basico-36367

-- 
Profesor de informática en Tutellus

Tutellus https://www.tutellus.com/perfil/230494/rafael-navarro


Re: html only email

2021-09-12 Thread Gene Heskett
On Sunday 12 September 2021 07:59:49 to...@tuxteam.de wrote:

> On Sun, Sep 12, 2021 at 06:59:35AM -0400, Gene Heskett wrote:
> > Had better have a very interesting subjct line or it does not get
> > read here. I have, for security reasons, told kmail to not show
> > html, and to override that takes up to 5 mouse clicks.
>
> And...
>
> instant black background for free!

Actually, Tomas, I think that is a configuration choice I made years ago 
and havn't touched since as these old eyes like black text on white.  
Plus my kmail is 1.9 since its tde's r14.0.10 version. 99.9% of kde 
3.5's bugs fixed. Stable.  :-)

>
> ;-)
>
> Cheers
>  - t


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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>



Re: html only email

2021-09-12 Thread tomas
On Sun, Sep 12, 2021 at 06:59:35AM -0400, Gene Heskett wrote:
> Had better have a very interesting subjct line or it does not get read 
> here. I have, for security reasons, told kmail to not show html, and to 
> override that takes up to 5 mouse clicks.

And...

instant black background for free!

;-)

Cheers
 - t


signature.asc
Description: Digital signature


html only email

2021-09-12 Thread Gene Heskett
Had better have a very interesting subjct line or it does not get read 
here. I have, for security reasons, told kmail to not show html, and to 
override that takes up to 5 mouse clicks.

Plain text that gets past spamassassin and clamav, does get read 100%. So 
the choice as to whether or not your message is read, is up to you. If 
you choose to use a broken email agent, expect to be ignored.

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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>



Re: (HTML) Re: Trouble upgrading Debian (reply to David Wright)

2021-09-12 Thread Andrei POPESCU
On Lu, 06 sep 21, 16:46:24, Dedeco Balaco wrote:
> 
> 
> Em 06/09/2021 14:25, John Hasler escreveu:
> > Curt writes:
> >> I suggest you follow the earlier advice, and set Thunderbird 
> >> to compose your email as plain text
> > Or even as "normal" HTML.
> 
> If it is trivial to me setting my mail manager to use the dark
> background i need, and to make it ignore the (usually default)
> background of color of all HTML messages, why the people in Debian User
> list cannot do it?

If your mail client is sending both html and plain text most subscribers 
will only see the plain text version (unless they go out of their way to 
look at the html version).

> I will not change my setting! I need it. Learn to
> deal with it. Things evolve. Being able to use *bold*, /italic/,
> _underscore_ is a minimum of "new" things that help a lot to compose
> good messages.

You mean like the markup in the text above? :)

(probably added by Thunderbird for the text version)

While I do agree with you somewhat, as far as I'm aware there is no 
agreed upon standard for HTML mail. How the receiving end will display 
your message is very much open to interpretation.

Some mail clients might even "lie" to you and show e.g. a sans font when 
composing, but the receiving end will display that message with a serif 
font (didn't bother to check the source to see which one of them is 
"wrong").

> If Thunderbird has a problem when writing the automatic
> text messages, together with the composed HTML ones, this is a reason to
> _**fix**_ it, not to never use anymore.

There should be a setting in Thunderbird to *not* remove "extra" line 
breaks (or similar) for the text version, please enable it.

> I have installed another mail
> manager in my computer: but it is bad, pretty horrible. It does not show
> HTML messages. It does not compose HTML messages. And it is pretty
> counter intuitive to configure, in several parts. It seems handy, have
> nice things. But if you do not know them, or are not familiar enough
> with "something", to be able to understand it, you cannot use them. Its
> name is Claws Mail. 

Last time I tried it Claws Mail could display (but not compose) HTML 
messages, you might need to enable it and/or install some plugin.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser


signature.asc
Description: PGP signature


Re: HTML mail [was: How to improve my question in stackoverflow?]

2021-09-12 Thread Joe
On Fri, 10 Sep 2021 15:22:30 -0400
rhkra...@gmail.com wrote:

> On Friday, September 10, 2021 08:45:19 AM Joe wrote:
> > Sadly, much html comes of of MS software, and takes about ten pages
> > of markup to include three text lines.  
> 
> That may be (or may be a slight exxageration ;-), but in my email
> client, if I get a multipart message, the plain text part is
> displayed and I see the 3 lines of text -- I don't see the 10 pages
> of markup.
> 
> Do you see the ~10 pages of markup?

If I need to pick through the html to find something missing from the
text, but very often those who use Word as an html email client have
never heard of the concept of alternate text.

-- 
Joe



Re: HTML mail [was: How to improve my question in stackoverflow?]

2021-09-10 Thread tomas
On Fri, Sep 10, 2021 at 03:01:59PM -0400, rhkra...@gmail.com wrote:
> On Friday, September 10, 2021 05:20:46 AM Pankaj Jangid wrote:
> >  writes:
> > > (I'm just asking, because I've seen this complaint a couple
> > > of times for a well-formed multipart message: personally, I'd
> > > be OK with it, but I'd like to know how the consensus is).
> > 
> > I feel that it is okay now to send we formatted multipart messages. As
> > long as I am getting text parts (well-formatted), I have no problem.
> 
> +1

Yes, but as we have seen, some MUAs seem to do a miserable job when
building the plain text part from the HTML (like forgetting line-ends,
which wreaks havoc in source code). I didn't know that. This reduces
my tolerance for HTML mail even in the multipart case. The problem
there is that the sender is potentially seeing something different
from what the receiver is seeing, depending on the quality of the
sender's MUA.

Not amusing.

So multipart might be OK, but expect people trying to help you to
get very confused.

Cheers
 - t


signature.asc
Description: Digital signature


Re: HTML mail [was: How to improve my question in stackoverflow?]

2021-09-10 Thread rhkramer
On Friday, September 10, 2021 08:45:19 AM Joe wrote:
> Sadly, much html comes of of MS software, and takes about ten pages of
> markup to include three text lines.

That may be (or may be a slight exxageration ;-), but in my email client, if I 
get a multipart message, the plain text part is displayed and I see the 3 
lines of text -- I don't see the 10 pages of markup.

Do you see the ~10 pages of markup?

I use an older version of kmail (1.13.7 for kde 4.8.4) and I thought I had to 
set two relevant options, one to choose to display the plain text part of a 
multipart message, and the 2nd (less relevant) to choose to compose emails 
(and replies) in plain text, but, atm, I can't find either of those options.



Re: HTML mail [was: How to improve my question in stackoverflow?]

2021-09-10 Thread rhkramer
On Friday, September 10, 2021 05:20:46 AM Pankaj Jangid wrote:
>  writes:
> > (I'm just asking, because I've seen this complaint a couple
> > of times for a well-formed multipart message: personally, I'd
> > be OK with it, but I'd like to know how the consensus is).
> 
> I feel that it is okay now to send we formatted multipart messages. As
> long as I am getting text parts (well-formatted), I have no problem.

+1



Re: HTML mail [was: How to improve my question in stackoverflow?]

2021-09-10 Thread Curt
On 2021-09-10, Charles Curley  wrote:

> (I also think that if one must use colors, emphasis, etc. as part of
> one's writing, then one is not a very good writer. On the other
> tentacle, one should not expect good writing from nerds.)
>

I think there was at least one book--or article or series of articles or
maybe even a whole *period* (it was a *style*)--where Tom Wolfe (not the
one who went home but found he actually couldn't but the other one)
repeatedly used multiple exclamation points at the end of sentences (as
well as italics frequently for emphasis).  Maybe the exception that
proves your rule.



Re: HTML mail [was: How to improve my question in stackoverflow?]

2021-09-10 Thread tomas
On Fri, Sep 10, 2021 at 11:41:55AM +0200, Linux-Fan wrote:
> to...@tuxteam.de writes:

[...]

> Additionally, in this C++ question thread, the source code was given
> in HTML and text parts of the e-mail and while the `#include`
> statements were all on separate lines in the HTML, they appear as
> one long line in the text part.

So definitely one downside of posting HTML and hoping the mailer
comes up with a reasonable representation as text (I fell for it).

> Btw.: For C++ STL components such as `set` or `string` it is
> perfectly fine to not append a `.h`. In fact, it would seem not to
> be standards compliant to append the `.h`, cf.
> https://stackoverflow.com/questions/15680190

Thanks; Il Ka says the same downthread. I warned that I have
very little clue on C++. The problem seems to be that the
#include-d stuff is case-sensitive (i.e. "Set" instead of "set").

I defer to the C++ buffs here :)

Cheers
 - t


signature.asc
Description: Digital signature


Re: HTML mail [was: How to improve my question in stackoverflow?]

2021-09-10 Thread Joe
On Fri, 10 Sep 2021 06:15:12 -0600
Charles Curley  wrote:

> On Fri, 10 Sep 2021 08:41:02 +0200
>  wrote:
> 
> > (I'm just asking, because I've seen this complaint a couple
> > of times for a well-formed multipart message: personally, I'd
> > be OK with it, but I'd like to know how the consensus is).  
> 
> I think it has problems. One case is where the author composes in
> HTML, and uses colors, emphasis, etc. to make his points, and those
> are stripped out of the plain text version, thereby distorting the
> author's intent.
> 
> (I also think that if one must use colors, emphasis, etc. as part of
> one's writing, then one is not a very good writer. On the other
> tentacle, one should not expect good writing from nerds.)
> 

Do it in DTP and attach it, if you must. I decide whether to read it.

Sadly, much html comes of of MS software, and takes about ten pages of
markup to include three text lines.

-- 
Joe



Re: HTML mail [was: How to improve my question in stackoverflow?]

2021-09-10 Thread Charles Curley
On Fri, 10 Sep 2021 08:41:02 +0200
 wrote:

> (I'm just asking, because I've seen this complaint a couple
> of times for a well-formed multipart message: personally, I'd
> be OK with it, but I'd like to know how the consensus is).

I think it has problems. One case is where the author composes in HTML,
and uses colors, emphasis, etc. to make his points, and those are
stripped out of the plain text version, thereby distorting the author's
intent.

(I also think that if one must use colors, emphasis, etc. as part of
one's writing, then one is not a very good writer. On the other
tentacle, one should not expect good writing from nerds.)

-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/


pgpeXzpsQRpDP.pgp
Description: OpenPGP digital signature


Re: HTML mail [was: How to improve my question in stackoverflow?]

2021-09-10 Thread Joe
On Fri, 10 Sep 2021 14:50:46 +0530
Pankaj Jangid  wrote:

>  writes:
> 
> > (I'm just asking, because I've seen this complaint a couple
> > of times for a well-formed multipart message: personally, I'd
> > be OK with it, but I'd like to know how the consensus is).  
> 
> I feel that it is okay now to send we formatted multipart messages. As



> long as I am getting text parts (well-formatted), I have no problem.
> 
I think that's the problem. I get many commercial emails that contain
text but are spread out so I have to scroll several pages to read about
ten lines, of which three have useful content. Also, hyperlinks are
usually absent, so if I want to see one (I don't use links in emails
from strangers) I need to pick through the html to find it.

-- 
Joe



Re: HTML mail [was: How to improve my question in stackoverflow?]

2021-09-10 Thread Jonathan Dowland

On Fri, Sep 10, 2021 at 08:41:02AM +0200, to...@tuxteam.de wrote:

The original mail was a passable MIME multipart/alternative
with a plain text part. I /think/ that is OK, what do others
think?


I think that's perfectly reasonable. There /can/ be good reasons
for people to include a HTML part, including for reasons of
accessibility. As long as a legible text alternative is supplied,
I do not think it's reasonable to object to a HTML alternative.


--
Please do not CC me for listmail.

  Jonathan Dowland
✎j...@debian.org
   https://jmtd.net



Re: HTML mail [was: How to improve my question in stackoverflow?]

2021-09-10 Thread Linux-Fan

to...@tuxteam.de writes:


On Thu, Sep 09, 2021 at 07:45:43PM -0400, Jim Popovitch wrote:

[...]

> First, most folks on tech mailinglists despise HTML email.

The original mail was a passable MIME multipart/alternative
with a plain text part. I /think/ that is OK, what do others
think?


Postel's principle applies, hence: OK :)


Perhaps you can teach you mailer to pick the text part for
you :-)

(I'm just asking, because I've seen this complaint a couple
of times for a well-formed multipart message: personally, I'd
be OK with it, but I'd like to know how the consensus is).


My mail client of choice (cone, not in Debian anymore) seems to prefer  
displaying the HTML part by default. It does this by converting it to a  
almost-text-only presentation retaining some things like bold and underline.  
It gets a little annoying with URLs because it displays link target and  
label which often leads to the same URL being displayed twice in the  
terminal.


AFAIK I cannot configure it to prefer the text version, but I have not  
checked that part of the source code to see how difficult it might be to  
implement such a choice. I can view both variants of the mail content on a  
case-by-case basis by opening them explicitly. This even works from inside  
the MUA, nice feature :) .


For my usage, it is easiest to have text-only e-mails because those always  
display nicely by default.


Additionally, in this C++ question thread, the source code was given in HTML  
and text parts of the e-mail and while the `#include` statements were all on  
separate lines in the HTML, they appear as one long line in the text part.  
IMHO it causes unnecessary confusion to have two slightly differently  
displayed parts of the same mail especially for questions with source code :)


Btw.: For C++ STL components such as `set` or `string` it is perfectly fine  
to not append a `.h`. In fact, it would seem not to be standards compliant  
to append the `.h`, cf. https://stackoverflow.com/questions/15680190


YMMV
Linux-Fan

öö


pgp8MUSLxC_NJ.pgp
Description: PGP signature


Re: HTML mail [was: How to improve my question in stackoverflow?]

2021-09-10 Thread Pankaj Jangid
 writes:

> (I'm just asking, because I've seen this complaint a couple
> of times for a well-formed multipart message: personally, I'd
> be OK with it, but I'd like to know how the consensus is).

I feel that it is okay now to send we formatted multipart messages. As
long as I am getting text parts (well-formatted), I have no problem.

-- 
Regards ~Pankaj



HTML mail [was: How to improve my question in stackoverflow?]

2021-09-10 Thread tomas
On Thu, Sep 09, 2021 at 07:45:43PM -0400, Jim Popovitch wrote:

[...]

> First, most folks on tech mailinglists despise HTML email.

The original mail was a passable MIME multipart/alternative
with a plain text part. I /think/ that is OK, what do others
think?

Perhaps you can teach you mailer to pick the text part for
you :-)

(I'm just asking, because I've seen this complaint a couple
of times for a well-formed multipart message: personally, I'd
be OK with it, but I'd like to know how the consensus is).

Cheers
 - t


signature.asc
Description: Digital signature


Re: Partially Solved: OT: Why have I not received any messages from Dedeco (was: Re: (HTML) Re: Trouble upgrading Debian (reply to David Wright))

2021-09-07 Thread rhkramer
On Tuesday, September 07, 2021 12:27:32 PM rhkra...@gmail.com wrote:
> > Can you add   Resent-From: debian-user@lists.debian.org   to your
> > whitelist? Or isn't it possible to use Resent-From?
> 
> Thanks, I'll have to look into that -- that would be something I have to do
> for / at google and I'm not familiar with what I can do there.  (I'll
> google for [gmail whitelist] and go from there...)

Turns out it was pretty easy to add debian-user to a whitelist (instructions 
below), but no obvious way to specify "Resent-from".  I have now received one 
post by Dedeco, so this might have done the job.



On your gmail webmail page:

   * Click on the gear in the upper right corner -- that should take you to 
the "Settings" page
   * Choose "Filters and Blocked Addresses"
   * Scroll to the bottom
   * Choose "Create a New Filter"
   * Enter the criteria (e.g., email address, ...)
   * Click "Create Filter"
   * Choose action, e.g., "Never send it to Spam"

You can also do things like forwarding an email to somewhere else.

Source:

   * [[https://downtimemonkey.com/blog/how-to-whitelist-an-email-address-in-
gmail.php][Whitelist Email Addresses In Gmail]]; 08 Nov 2018

Blocking IP addresses: there is a way to block IP addresses, but:

   * [[https://support.google.com/a/answer/60751][Google Workspace Admin 
Help]]
`
Add IP addresses to allowlists in Gmail

If you have the legacy free edition of G Suite, upgrade to Google Workspace to 
get this feature. 
'




Re: Partially Solved: OT: Why have I not received any messages from Dedeco (was: Re: (HTML) Re: Trouble upgrading Debian (reply to David Wright))

2021-09-07 Thread Dedeco Balaco
One or two days after i tried to subscribe using the site, I received a
warning from this list saying that several messages were bounced by
Yahoo. It also said that if more bounces happen, i may be unsubscribed.
So, the subscribing messages i tried to make did not even arrived to my
spam folder - i checked this before trying the command subscription.


Em 07/09/2021 13:27, rhkra...@gmail.com escreveu:
> Thanks for the reply, some responses interspersed below:
> 
> On Tuesday, September 07, 2021 11:07:36 AM David Wright wrote:
>> On Tue 07 Sep 2021 at 08:49:19 (-0400), rhkra...@gmail.com wrote:
>>> -- I don't remember that message very well).
>>
>> Probably like:
>>
>>  "In the last seven days we've seen bounces for the following list:
>>   * debian-user
>>   1 bounce out of 32 mails in one day (3%, kick-score is 80%)
>>   (https://lists.debian.org/bounces/RnYmpd6xf_mNRHfzU2iUYA)
>>
>>   (The link above points to a copy of the latest bounce
>>   and will be valid for seven days.)
>>
>>   If the bounce-rate passes the kick-score, our bounce-detection will
>> forcibly remove your subscription.
> 
> Ahh, yes, that is the message I was thinking of, and the words "bounce" and 
> "kick-score".
> 
>>>  in this case, the messages were
>>> delivered but google decided they were spam.
>>
>> Can you add   Resent-From: debian-user@lists.debian.org   to your
>> whitelist? Or isn't it possible to use Resent-From?
> 
> Thanks, I'll have to look into that -- that would be something I have to do 
> for / at google and I'm not familiar with what I can do there.  (I'll google 
> for [gmail whitelist] and go from there...)
> 



Re: Partially Solved: OT: Why have I not received any messages from Dedeco (was: Re: (HTML) Re: Trouble upgrading Debian (reply to David Wright))

2021-09-07 Thread rhkramer
Thanks for the reply, some responses interspersed below:

On Tuesday, September 07, 2021 11:07:36 AM David Wright wrote:
> On Tue 07 Sep 2021 at 08:49:19 (-0400), rhkra...@gmail.com wrote:
> > -- I don't remember that message very well).
> 
> Probably like:
> 
>  "In the last seven days we've seen bounces for the following list:
>   * debian-user
>   1 bounce out of 32 mails in one day (3%, kick-score is 80%)
>   (https://lists.debian.org/bounces/RnYmpd6xf_mNRHfzU2iUYA)
> 
>   (The link above points to a copy of the latest bounce
>   and will be valid for seven days.)
> 
>   If the bounce-rate passes the kick-score, our bounce-detection will
> forcibly remove your subscription.

Ahh, yes, that is the message I was thinking of, and the words "bounce" and 
"kick-score".

> >  in this case, the messages were
> > delivered but google decided they were spam.
> 
> Can you add   Resent-From: debian-user@lists.debian.org   to your
> whitelist? Or isn't it possible to use Resent-From?

Thanks, I'll have to look into that -- that would be something I have to do 
for / at google and I'm not familiar with what I can do there.  (I'll google 
for [gmail whitelist] and go from there...)



Re: Partially Solved: OT: Why have I not received any messages from Dedeco (was: Re: (HTML) Re: Trouble upgrading Debian (reply to David Wright))

2021-09-07 Thread David Wright
On Tue 07 Sep 2021 at 08:49:19 (-0400), rhkra...@gmail.com wrote:

> I occasionally seem to lose other messages (I get the message from the debian-
> user lists about about some (small number of) messages beeing undeliverable  
> in the last day or so (can't remember the term used, and maybe there is a 
> threat to unsubscribe me if it gets worse and continues -- I don't remember 
> that message very well).

Probably like:

 "In the last seven days we've seen bounces for the following list:
  * debian-user
  1 bounce out of 32 mails in one day (3%, kick-score is 80%)
  (https://lists.debian.org/bounces/RnYmpd6xf_mNRHfzU2iUYA)

  (The link above points to a copy of the latest bounce
  and will be valid for seven days.)

  If the bounce-rate passes the kick-score, our bounce-detection will forcibly
  remove your subscription.

> But, my point here is that this is different -- the messages from the debian-
> user list indicate that they (it) got a notification that my message could 
> not 
> be delivered, in this case, the messages were delivered but google decided 
> they were spam.

> Ahh, I should check my gmail spam folder... ahh, there they are -- I guess 
> google decided they are spam

Can you add   Resent-From: debian-user@lists.debian.org   to your
whitelist? Or isn't it possible to use Resent-From?

Cheers,
David.



Partially Solved: OT: Why have I not received any messages from Dedeco (was: Re: (HTML) Re: Trouble upgrading Debian (reply to David Wright))

2021-09-07 Thread rhkramer
I asked and then answered my own question -- google decided the messages from 
Dedeco were spam, with this message when I open one (in google mail):


This message seems dangerous 
Similar messages were used to steal people's personal information. Avoid 
clicking links, downloading attachments, or replying with personal 
information.

Makes me wonder.
I occasionally seem to lose other messages (I get the message from the debian-
user lists about about some (small number of) messages beeing undeliverable  
in the last day or so (can't remember the term used, and maybe there is a 
threat to unsubscribe me if it gets worse and continues -- I don't remember 
that message very well).
But, my point here is that this is different -- the messages from the debian-
user list indicate that they (it) got a notification that my message could not 
be delivered, in this case, the messages were delivered but google decided 
they were spam.
I wonder what criteria google used to decide they were spam?  Do they know 
something we don't know, or is just because he used HTML and somehow google 
knows the list is intended to be plain text?
Draft start of old message below:

I am puzzled.  In my kmail client, I have not received any of the messages 
that people have replied to from Dedeco Balaco .

If I look in the archives, I see them (e.g., there are 4 on 
https://lists.debian.org/debian-user/2021/09/threads.html#00154).

I have never killfiled or blocked anyone.

Ahh, I should check my gmail spam folder... ahh, there they are -- I guess 
google decided they are spam

Interesting.


On Monday, September 06, 2021 10:36:03 PM Kenneth Parker wrote:
> On Mon, Sep 6, 2021 at 3:47 PM Dedeco Balaco 


Re: (HTML) Re: Trouble upgrading Debian (reply to David Wright)

2021-09-06 Thread Kenneth Parker
On Mon, Sep 6, 2021 at 3:47 PM Dedeco Balaco 
wrote:

>
>
> Em 06/09/2021 14:25, John Hasler escreveu:
>
> Curt writes:
>
> I suggest you follow the earlier advice, and set Thunderbird
> to compose your email as plain text
>
> Or even as "normal" HTML.
>
> If it is trivial to me setting my mail manager to use the dark background
> i need, and to make it ignore the (usually default) background of color of
> all HTML messages, why the people in Debian User list cannot do it? I will
> not change my setting! I need it. Learn to deal with it. Things evolve.
> Being able to use *bold*, *italic*, *underscore* is a minimum of "new"
> things that help a lot to compose good messages. If Thunderbird has a
> problem when writing the automatic text messages, together with the
> composed HTML ones, this is a reason to **fix** it, not to never use
> anymore. I have installed another mail manager in my computer: but it is
> bad, pretty horrible. It does not show HTML messages. It does not compose
> HTML messages. And it is pretty counter intuitive to configure, in several
> parts. It seems handy, have nice things. But if you do not know them, or
> are not familiar enough with "something", to be able to understand it, you
> cannot use them. Its name is Claws Mail. I bet the most important people in
> this list love it. So, Thunderbird has some problems (and the HTML thing is
> not a problem to me), but it still the best mail manager for me.
>
This comes across as Rich Text Format, a precursor to Microsoft Word.
These files can be sent with a prefix of .rtf, and it is certainly
supported in LibreOffice Writer.  I am not sure how it works with email
lists, though.

Kenneth Parker


Re: generate a rss.xml from a bunch of HTML files

2021-05-12 Thread davidson

On Mon, 10 May 2021 Emanuel Berg wrote:

...and this somewhat more complex-looking one...

 "W3C RSS 1.0 News Feed Creation How-To"
 https://www.w3.org/2001/10/glance/doc/howto


Great, but stops on  and ,


Elsewhere in the thread you seem to have moved on from XSLT to more
promising options, but I'll make a few comments here anyways.

I suspect that those specific tags are not a primary cause of
difficulty.

I could be mistaken, of course. But I am unable to replicate this
without more information about the input document.

I wonder whether the input document is XML. (No unclosed tags, etc.)


these are HTML5 tags:

  http://html5doctor.com/the-figure-figcaption-elements/

so either we must change the XSLT rules to make use of for
example the caption at least, _or_ we must either make
a rule or tell the tool to ignore them, if such an option
exists...


Here is the Makefile [last] only one problem, the XSLT file or
xsltproc tool (?) doesn't seem to transform the HTML into RSS,
really, output is basically a text file with no markup whatsoever
except for the first line which is

 


TLDR: What you describe will happen when none of an XSLT stylesheet's
template rules match anything in the input.

XSLT is template-based, a little bit like sed or awk, but instead of
processing records (lines) in a text file it processes the nodes of an
XML tree.

When a node matches no template in your stylesheet, then *built-in*
template rules are applied:

  * The built-in template rule for the "document node" (at top of the
  tree), is to apply templates to that node's children.

  * The built-in template rule for any element is the same as for the
document node -- apply templates to the children of that element.

  * And, when we reach the leaves of the tree, the built-in template
  rule for text nodes is to copy the text to the result tree.

As a consequence, applying an XSLT stylesheet to a document that
matches none of the templates in the stylesheet results in output that
looks identical to the output you would get by applying a trivial
stylesheet containing no template rules at all!

It's a little like how the output of

 $ sed '' somefile

is indistinguishable from

 $ cat somefile


Maybe I do something wrong?


I lack fluency in make/Makefile, and I have not dug into the weeds of
that stylesheet at https://www.w3.org/2001/10/glance/doc/howto .

However, when you call xsltproc it looks to me like you not are
supplying any of the four parameters that the stylesheet html2rss.xsl
expects:

 
 
 
 
 

You might supply them like so

 $ xsltproc -o Overview.rss
--stringparam xmldata "$webpage" \
--stringparam xlsfile html2rss.xsl \
--stringparam Base "$(dirname "$webpage")" \
--stringparam Page "$(dirname "$webpage")" \
--stringparam Channel Overview.rss \
html2rss.xsl \
"$webpage"


name = tree-house

src = ${name}.html

srcpp = ${name}-pp.html

trans = html2rss.xsl

dst = ${name}.rss

opts = --html

all: ${dst}

${srcpp}: ${src}
sed -e 's/<\/*fig\(ure\|caption\)>//g' $< > $@

${dst}: ${srcpp}
xsltproc -o $@ ${opts} ${trans} $<


--
Ce qui est important est rarement urgent
et ce qui est urgent est rarement important
-- Dwight David Eisenhower



Re: generate a rss.xml from a bunch of HTML files

2021-05-12 Thread Curt
On 2021-05-12, Greg Wooledge  wrote:
>
> Going directly to https://interglacial.com/tpj/26/ gives 403.
>
> Going directly to https://interglacial.com/ works.
>
>>From there, clicking https://interglacial.com/tpj/ gives 403.
>
> So, it's *probably* not a referer check.  It could be a permissions
> screw-up on the actual directory.  It could also be something else --
> only the web server admin can know for sure.
>
>

I get 

 Forbidden
 You don't have permission to access this resource.

 Apache/2.4.29 (Ubuntu) Server at interglacial.com Port 443

Forbidden is so harsh.






Re: generate a rss.xml from a bunch of HTML files

2021-05-12 Thread Emanuel Berg
Greg Wooledge wrote:

> Going directly to https://interglacial.com/tpj/26/
> gives 403.

Now it is 403 but the other day I got 404 so it seems the
webmaster is working on the situation...

-- 
underground experts united
https://dataswamp.org/~incal



Re: generate a rss.xml from a bunch of HTML files

2021-05-12 Thread Emanuel Berg
David Wright wrote:

> Here you go

Thanks!

-- 
underground experts united
https://dataswamp.org/~incal



Re: generate a rss.xml from a bunch of HTML files

2021-05-12 Thread Greg Wooledge
> >>> Having read through the rather old
> >>> https://interglacial.com/tpj/26/ it looked to me as though the OP
> >>> is halfway there.

> >> The Perl Journal? What do you mean? (URL gives a 404)

> I checked again just now, and I still get errors from that URL and its
> parent directory, but they're not 404; they're 403 Forbidden.
> 
> Accessing the domain root, on the other hand, gets me a working page.
> That page includes a variety of links, including at least one reading in
> part "Perl Journal"; attempting to follow that link gets me 403
> Forbidden again, but attempting to follow one of the other links at
> random got me a working page.

Going directly to https://interglacial.com/tpj/26/ gives 403.

Going directly to https://interglacial.com/ works.

>From there, clicking https://interglacial.com/tpj/ gives 403.

So, it's *probably* not a referer check.  It could be a permissions
screw-up on the actual directory.  It could also be something else --
only the web server admin can know for sure.



Re: generate a rss.xml from a bunch of HTML files

2021-05-12 Thread Jonathan Dowland

On Mon, May 10, 2021 at 03:03:33PM +0200, Emanuel Berg wrote:

Andrei POPESCU wrote:


let's see, first write HTML, then include it in Markdown,
then have the static site generator generate HTML


Surely there must be some site generator with RSS support
that takes "plain" HTML as input.


I don't know, if so one would like to know what tool they use
to do that?


IkiWiki can consume HTML. Although a default configuration of IkiWiki
would expect the input items to be HTML snippets - so, not full
documents containing HTML,HEAD,BODY tags, but subsets of the BODY
content. However it can be configured, with some work, to do pretty
much anything.

--
Please do not CC me, I am subscribed to the list.

  Jonathan Dowland
✎j...@debian.org
   https://jmtd.net



Re: generate a rss.xml from a bunch of HTML files

2021-05-12 Thread The Wanderer
On 2021-05-11 at 23:01, David Wright wrote:

> On Wed 12 May 2021 at 03:15:38 (+0200), Emanuel Berg wrote:
> 
>> David Wright wrote:
>> 
>>> BTW I downloaded one of the pages [...] just out of interest, the
>>> code looked laid out very clearly — quite unlike so many web
>>> pages I see.
>> 
>> Well, thank you, pretty simple HTML I'd imagine but I guess one can
>> screw up even simple tasks...
>> 
>>> Having read through the rather old
>>> https://interglacial.com/tpj/26/ it looked to me as though the OP
>>> is halfway there.
>> 
>> The Perl Journal? What do you mean? (URL gives a 404)
> 
> Very odd. Here's my mouse hovering over google's hit (link gets
> underlined, and address appears at the bottom).

Last night, I checked accessing that URL, its parent directory, and the
parent of that (which is the root of the domain), and I got errors from
all of them. I didn't make specific note of what errors they were, but
they may have been 404s.

I checked again just now, and I still get errors from that URL and its
parent directory, but they're not 404; they're 403 Forbidden.

Accessing the domain root, on the other hand, gets me a working page.
That page includes a variety of links, including at least one reading in
part "Perl Journal"; attempting to follow that link gets me 403
Forbidden again, but attempting to follow one of the other links at
random got me a working page.

Looks like there's some ongoing quirks with that site, at least to do
with permissions, which may or may not get sorted out on the far end
without further intervention.

-- 
   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


Re: generate a rss.xml from a bunch of HTML files

2021-05-11 Thread Emanuel Berg
David Wright wrote:

> BTW I downloaded one of the pages [...] just out of
> interest, the code looked laid out very clearly — quite
> unlike so many web pages I see.

Well, thank you, pretty simple HTML I'd imagine but I guess
one can screw up even simple tasks...

> Having read through the rather old
> https://interglacial.com/tpj/26/ it looked to me as though
> the OP is halfway there.

The Perl Journal? What do you mean? (URL gives a 404)

But I got it to work, pandoc can do Markdown from HTML, and
pandoc-rss can do RSS from md, now it is just a matter of
writing a "helluva" Makefile to automate everything so it will
work even if one adds new HTML files, which I don't intent to
do anyway...

-- 
underground experts united
https://dataswamp.org/~incal



Re: generate a rss.xml from a bunch of HTML files

2021-05-11 Thread David Wright
On Wed 12 May 2021 at 03:15:38 (+0200), Emanuel Berg wrote:
> David Wright wrote:
> 
> > BTW I downloaded one of the pages [...] just out of
> > interest, the code looked laid out very clearly — quite
> > unlike so many web pages I see.
> 
> Well, thank you, pretty simple HTML I'd imagine but I guess
> one can screw up even simple tasks...
> 
> > Having read through the rather old
> > https://interglacial.com/tpj/26/ it looked to me as though
> > the OP is halfway there.
> 
> The Perl Journal? What do you mean? (URL gives a 404)

Very odd. Here's my mouse hovering over google's hit
(link gets underlined, and address appears at the bottom).

> But I got it to work, pandoc can do Markdown from HTML, and
> pandoc-rss can do RSS from md, now it is just a matter of
> writing a "helluva" Makefile to automate everything so it will
> work even if one adds new HTML files, which I don't intent to
> do anyway...

I'll send you a PDF of the article anyway.

Cheers,
David.


Re: generate a rss.xml from a bunch of HTML files

2021-05-11 Thread David Wright
On Tue 11 May 2021 at 09:08:16 (+0300), Andrei POPESCU wrote:
> On Lu, 10 mai 21, 19:23:02, David Wright wrote:
> > On Tue 11 May 2021 at 00:30:24 (+0200), Emanuel Berg wrote:
> > > 
> > > OK so no XSLT, no yacc for me, I got another idea, can you use
> > > the static generators, get the RSS, then discard everything
> > > else and use the RSS on the regular or real site?
> > 
> > AFAICT no trees will be destroyed or animals be harmed when you
> > throw away any output that is generated in excess of what you want.
> 
> But what about electrons?
> 
> Surely some electrons will be very inconvenienced about such waste.

Nope, for them it's gainful employment.

Seriously, though,
On Tue 11 May 2021 at 03:06:02 (+0200), Emanuel Berg wrote:
> The Wanderer wrote:
> 
> > I parsed the question as being about whether the resulting
> > rss.xml would be compatible with the input data, rather than
> > with the rest of the output data generated by the
> > static generator.

I didn't parse it that way (though I have to admit I'm finding
this thread quite difficult to follow). My comment was in recognition
that the OP seems less concerned now about generating and discarding
redundant formats. That's very different from "I would if it would do
what I want[,] namely get an RSS file and only that."

> > That is: if you write a set of HTML files completely by hand
> > (using no generators at all), then run a generator over them
> > to produce a rss.xml file, can you drop that file into place
> > in your Website structure and have things Just Work?
> 
> Yes, I think so!
> 
> There are also other options which have not been mentioned,
> for example, one is, there is for example html2markdown and
> several html2text, maybe one can then do markdown2rss
> or text2rss?

I thought the suggestion for markdown came from Charles. If that
method were to generate HTML as well, then that's no bad thing,
the OP could always compare it with the original, as QA.

BTW I downloaded one of the pages (Blodstensskogen Tree House.html)
and, as well as finding that I had coincidentally downloaded some of
their photos last August, just out of interest, the code looked
laid out very clearly—quite unlike so many web pages I see.
Having read through the rather old https://interglacial.com/tpj/26/
it looked to me as though the OP is halfway there.

Cheers,
David.



Re: generate a rss.xml from a bunch of HTML files

2021-05-11 Thread Eduardo M KALINOWSKI

On 10/05/2021 19:30, Emanuel Berg wrote:

OK so no XSLT, no yacc for me, I got another idea, can you use
the static generators, get the RSS, then discard everything
else and use the RSS on the regular or real site?


The links in the RSS will be pointing to the articles using the file 
names and paths that the static site generator uses, they might not 
correspond to what your manual solution uses. So there's at least one 
extra step.



--
Bacon's not the only thing that's cured by hanging from a string.

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: generate a rss.xml from a bunch of HTML files

2021-05-11 Thread Andrei POPESCU
On Lu, 10 mai 21, 19:23:02, David Wright wrote:
> On Tue 11 May 2021 at 00:30:24 (+0200), Emanuel Berg wrote:
> > 
> > OK so no XSLT, no yacc for me, I got another idea, can you use
> > the static generators, get the RSS, then discard everything
> > else and use the RSS on the regular or real site?
> 
> AFAICT no trees will be destroyed or animals be harmed when you
> throw away any output that is generated in excess of what you want.

But what about electrons?

Surely some electrons will be very inconvenienced about such waste.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser


signature.asc
Description: PGP signature


Re: generate a rss.xml from a bunch of HTML files

2021-05-10 Thread Emanuel Berg
>> I parsed the question as being about whether the resulting
>> rss.xml would be compatible with the input data, rather
>> than with the rest of the output data generated by the
>> static generator.
>>
>> That is: if you write a set of HTML files completely by
>> hand (using no generators at all), then run a generator
>> over them to produce a rss.xml file, can you drop that file
>> into place in your Website structure and have things
>> Just Work?
>
> Yes, I think so!
>
> There are also other options which have not been mentioned,
> for example, one is, there is for example html2markdown and
> several html2text, maybe one can then do markdown2rss
> or text2rss?

https://github.com/chambln/pandoc-rss

He writes:

  For example I could render two blog articles foo.md and
  bar.md along with the corresponding rss.xml feed using
  something like the following:

  $ pandoc --template=page -o foo.html foo.md
  $ pandoc --template=page -o bar.html bar.md
  $ pandoc-rss foo.md bar.md > rss.xml \
-t cosine.blue \
-d 'Blog by Gregory Chamberlain' \
-l https://cosine.blue \
-c 'GPLv3+ or CC BY-SA 4.0' \
-w 'g...@cosine.blue (Gregory Chamberlain)' \
-n en-GB


-- 
underground experts united
https://dataswamp.org/~incal



Re: generate a rss.xml from a bunch of HTML files

2021-05-10 Thread Emanuel Berg
The Wanderer wrote:

> I parsed the question as being about whether the resulting
> rss.xml would be compatible with the input data, rather than
> with the rest of the output data generated by the
> static generator.
>
> That is: if you write a set of HTML files completely by hand
> (using no generators at all), then run a generator over them
> to produce a rss.xml file, can you drop that file into place
> in your Website structure and have things Just Work?

Yes, I think so!

There are also other options which have not been mentioned,
for example, one is, there is for example html2markdown and
several html2text, maybe one can then do markdown2rss
or text2rss?

-- 
underground experts united
https://dataswamp.org/~incal



Re: generate a rss.xml from a bunch of HTML files

2021-05-10 Thread Emanuel Berg
David Wright wrote:

> AFAICT no trees will be destroyed or animals be harmed when
> you throw away any output that is generated in excess of
> what you want.

Haha :)

-- 
underground experts united
https://dataswamp.org/~incal



Re: generate a rss.xml from a bunch of HTML files

2021-05-10 Thread Emanuel Berg
After having limited success with XSLT after a lot of work,
and after failing doing a grammar that would add two ints,
I don't feel like doing all HTML to RSS :D LOL - have a look

  https://dataswamp.org/~incal/rss/parser/add.grm

What's wrong? Looks right to me! That's SML BTW, maybe it's
the very right thing as the M is "Meta", a language to
describe a language, is this situation what that refers to? :O

Anyway, it is for the ml-yacc (there is also GNU Bison, the
bison tool represents the old yacc, and with an option you can
do POSIX yacc, even)

OK so no XSLT, no yacc for me, I got another idea, can you use
the static generators, get the RSS, then discard everything
else and use the RSS on the regular or real site?

-- 
underground experts united
https://dataswamp.org/~incal



Re: generate a rss.xml from a bunch of HTML files

2021-05-10 Thread The Wanderer
On 2021-05-10 at 20:23, David Wright wrote:

> On Tue 11 May 2021 at 00:30:24 (+0200), Emanuel Berg wrote:
> 
>> After having limited success with XSLT after a lot of work, and
>> after failing doing a grammar that would add two ints, I don't feel
>> like doing all HTML to RSS :D LOL - have a look
>> 
>> https://dataswamp.org/~incal/rss/parser/add.grm
>> 
>> What's wrong? Looks right to me! That's SML BTW, maybe it's the
>> very right thing as the M is "Meta", a language to describe a
>> language, is this situation what that refers to? :O
>> 
>> Anyway, it is for the ml-yacc (there is also GNU Bison, the bison
>> tool represents the old yacc, and with an option you can do POSIX
>> yacc, even)
>> 
>> OK so no XSLT, no yacc for me, I got another idea, can you use the
>> static generators, get the RSS, then discard everything else and
>> use the RSS on the regular or real site?
> 
> AFAICT no trees will be destroyed or animals be harmed when you throw
> away any output that is generated in excess of what you want.

I parsed the question as being about whether the resulting rss.xml would
be compatible with the input data, rather than with the rest of the
output data generated by the static generator.

That is: if you write a set of HTML files completely by hand (using no
generators at all), then run a generator over them to produce a rss.xml
file, can you drop that file into place in your Website structure and
have things Just Work?

(I say that knowing next to nothing about how RSS functions internally;
for all I know it could be static enough and independent enough in its
own right, once generated, for that to be a nonsensically obvious
question.)

-- 
   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


  1   2   3   4   5   6   7   8   9   10   >