Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-19 Thread Bela Lubkin
Karen Lewellen wrote:

> folks,
>   i. do. not. want. to. make. this. change. in lynx.cfg...at all!
> How hard is that to understand?
> I  asked for *command line* not all the ways I might screw up another 
> person's setup.

You have received a variety of alternative suggestions because there IS
NO WAY to do precisely what you're asking to do, with Lynx as it exists.

My suggestion to edit lynx.cfg does not affect other users.  It affects
only your own shell account, so will not 'screw up another person's
setup'.

Making an alias does not affect other users.

There are many possible ways to do *approximately* what you want; but you
to be willing to actually *use* those ways.  'I want this to behave
differently, but I am not willing to change anything' doesn't lead to
success.

===

Stepping back for a moment, I'm not sure if we're even clear on what you
want.  Your original subject line asks about changing 'lynx default
homepage from the command line'.  The most trivial thing is to run:

$ lynx url-of-desired-homepage

i.e. `lynx https://www.xyz.abc`

This 'changes' the default by specifying the desired page.  But you have
to type it every time.  Are you prepared to type it every time?  That
seems to meet the 'on the command line' request.

But maybe you meant that you want to run a Lynx command which
permanently sets it, like `lynx --set-new-homepage https://www.xyz.abc`,
after which just running `lynx` with no arguments would go there.

That does not directly exist.  There is no Lynx command-line option
which saves-for-later your new desired default page.

What *does* exist is changing the value in lynx.cfg.  In your own
private copy of lynx.cfg -- which will not affect other users.

But then you have to specify the *use* of that private lynx.cfg, each
time you run Lynx.  So it's a different hassle.  This can be fixed by
making an alias -- which is another thing which goes into your private
files and doesn't affect other users.  'alias' is one of several
choices: depending which shell you are using, you could instead use a
shell function, or a small shell script.  One way or another, you would
have to slightly redefine what happens when you type 'lynx'.

===

As it stands, your request is like saying: I want this radio to play
this show for me, which is on at 3:30pm every day.  But I do not ever
want to have to touch it: I will not change the station, I will not
program a timer, I will not speak voice commands to it, I just want it
to intuit my desire.  -- Some day you may have a radio which does that
(and I suspect you'll find it rather creepy) -- but the one you have
today doesn't do any of those things.  You have to *do something* to
tell it what you want.  You have to do it each day at 3:30pm, because it
doesn't have a 'always jump to this station and start playing, at this
time each day' feature.

Editing lynx.cfg, making aliases, etc. -- these are the ways you tell
Lynx (and a Unix-like shell system) what you want.  If you won't do some
version of those things, it won't do what you want.  It can't.

>Bela<

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-19 Thread Jude DaShiell
If a user can get ownership of /etc/lynx.cfg and have that file in their
home directory then create a basic lynx.sh script in their home directory
with the line:
lynx -cfg=$HOME/lynx.cfg
then that user is no longer using any of the system defaults.
Any edits that user does to $HOME/lynx.cfg effect only them and nobody
else on the system.



--


___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-18 Thread Karen Lewellen

Those are interesting choices.
My dsl provider blocked the use of port 22 for  ssh telnet a year or so 
back.
fortunately shellworld uses a different port number for ssh telnet, and my 
own  ms dos ssh telnet client meets with  no authentication issues coming 
here.
i still intend exploring what ssh telnet is incorporated in the DOS  djgpp 
project for  authentication,  some of it is tied to openssh dropping some 
forms of dh keys.
The freedos  list referenced a stand alone edition of links, which likely 
also surpasses the  authentication issue as it is described as being for 
modern  DOS  users.

Still, I admire your dedication.
I presently run ms dos 7.1 on a p3 with close to a gig of memory, but my 
computers  are custom built for me.

Karen



On Mon, 18 Nov 2019, Alejandro Lieber wrote:


A very good BSD (Unix) shell can be found at sdf.org.
You have free usage of Lynx and Links, if you pay a small charge, you con 
configure your home account and adds a lot of Unix programs like Mutt, Alpine 
and SLRN.


The only problem is that there are no modern SSH program for MS-DOS that can 
access it (authentication problems).


You can still log to sdf.org using MS-DOS by Telnet. I regularly do it with a 
80286 with a 720 KBy floppy running MS-DOS 2.11


Another free limited shell with Lynx. Links and eLinks is 
lynx.scramworks.net.


Alejandro Lieber

Rosario  Argentina

On 17/11/19 19:39, David Woolley wrote:

 On 17/11/2019 22:04, Tim Chase wrote:
>  However asking the system admin to modify the system-wide lynx.cfg
>  file*will*  impact all other Shellworld users.  Using any of the
>  methods recommended in this thread are exactly the way to prevent
>  this.
> 


 I wonder how long shellworld has to live.  I completely failed to find
 any current marketing page for it, and people have said, here, that they
 have failed to get accounts created.

 The Wayback Machine suggests that it hasn't been marketed for over ten
 years, although it does seem to have been intended as a blind users'
 system, rather than a power users' one.  The last page captured that
 wasn't empty or invalid seems to be October 2007, and it was blank by
 December that year.

 I assume they are not taking on new users and will close when the number
 remaining drops sufficiently.

 ___
 Lynx-dev mailing list
 Lynx-dev@nongnu.org
 https://lists.nongnu.org/mailman/listinfo/lynx-dev


___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev



___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-18 Thread Alejandro Lieber

A very good BSD (Unix) shell can be found at sdf.org.

You have free usage of Lynx and Links, if you pay a small charge, you 
con configure your home account and adds a lot of Unix programs like 
Mutt, Alpine and SLRN.


The only problem is that there are no modern SSH program for MS-DOS that 
can access it (authentication problems).


You can still log to sdf.org using MS-DOS by Telnet. I regularly do it 
with a 80286 with a 720 KBy floppy running MS-DOS 2.11


Another free limited shell with Lynx. Links and eLinks is 
lynx.scramworks.net.


Alejandro Lieber

Rosario  Argentina

On 17/11/19 19:39, David Woolley wrote:

On 17/11/2019 22:04, Tim Chase wrote:

However asking the system admin to modify the system-wide lynx.cfg
file*will*  impact all other Shellworld users.  Using any of the
methods recommended in this thread are exactly the way to prevent
this.



I wonder how long shellworld has to live.  I completely failed to find 
any current marketing page for it, and people have said, here, that 
they have failed to get accounts created.


The Wayback Machine suggests that it hasn't been marketed for over ten 
years, although it does seem to have been intended as a blind users' 
system, rather than a power users' one.  The last page captured that 
wasn't empty or invalid seems to be October 2007, and it was blank by 
December that year.


I assume they are not taking on new users and will close when the 
number remaining drops sufficiently.


___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-18 Thread dan d.


The problem with that approach is that all lyx users would be affected, your 
start page would be what they get.
On Sun, 17 Nov 2019, Karen Lewellen wrote:

> Big picture  goal for whom?
> As it is my goal, and I state otherwise, I am unsure why you  choose to
> claim this is my goal.
> This issue is moot, and I consider the thread to be closed.
> I am asking the admin here to make the change for me, end of story.
>
>
>
> On Sun, 17 Nov 2019, Tim Chase wrote:
>
> > The big picture goal is to create a local/user-specific lynx.cfg file
> > in your home directory.  This can be as minimal as that one
> > "STARTFILE" line produced by the `echo` command, and then start lynx
> > using that config file.
> >
> > You can use a text-editor to create/edit the ~/.lynx.cfg file and
> > append the line
> >
> >  STARTFILE:https://ca.yahoo.com/news
> >
> > at the bottom.  Alternatively you can use "echo" to append the file
> > (creating it if it doesn't already exist):
> >
> >  $ echo "STARTFILE:https://ca.yahoo.com/news"; >> ~/.lynx.cfg
> >
> > With that local/user-specific config file available, you can then
> > start lynx manually using that config file:
> >
> >  $ lynx -cfg=$HOME/.lynx.cfg
> >
> > but typing that whole thing every time gets tedious.  So to avoid
> > that tedium, you want to let your shell know that when you type
> > "lynx" (or "ly" or whatever short-hand you want) that you really mean
> > "every time I type `lynx`, pretend that I added -cfg=$HOME/.lynx.cfg
> > after it".  You can do this with an alias or with a function though
> > the function is a bit more flexible. This would be created in one of
> > your shell startup files. However the exact syntax and file-names for
> > that startup file depend on the shell you're using. That's why I'm
> > interested in the output of
> >
> >  $ basename $SHELL
> >
> > to make sure which shell you're running.  In all liklihood, it's
> > "bash" in which case it would also help for you to provide the output
> > of
> >
> >  $ ls ~/.bash*
> >
> > If that output includes a .bash_aliases file, that's the best place
> > to put an alias/function.  Otherwise, you can just append it to your
> > .bashrc (which would most likely be among the output).
> >
> > However your shell could also be any of a number of common
> > alternatives like sh, ash, dash, zsh, ksh, csh, tcsh, fish, or yet
> > others.  Each one has its own configuration files and making sure
> > that the edit takes place in the right one is essential to ensuring
> > that the alias/function gets created properly.
> >
> > But then once you have the alias/function in your local start-up
> > file, every time you type "lynx" (or "ly" or whatever short-hand you
> > prefer), it will start with your preferred configuration.
> >
> > -tim
> >
> >
> > On 2019-11-17 14:10, Karen Lewellen wrote:
> >> Tim,
> >> *should* is an interesting concept.  What should  be does not
> >> always translate into what is.
> >> For example,
> >> Your echo line below is a fantastic example of the kind of command
> >> line idea I have been seeking the entire time.
> >> However, because there are   about ten different  lynx.cfg files in
> >> the home directory of my site hosted here on shellworld, running it
> >> did not produce any changes.
> >> I got no errors, meaning  likely something was changed, just not
> >> the lynx.cfg file governing  my karenlewellen.com workspace hosted
> >> at shellworld.
> >> still, it was at least the sort of  solution I desired, a simple
> >> command line  that could be run without editing altering or
> >> changing anything else.
> >> As I said to rick,  that he has done something himself in no way
> >> translates to  the approximately 7 billion others sharing our world.
> >> Karen
> >>
> >>
> >> On Sun, 17 Nov 2019, Tim Chase wrote:
> >>
> >>> There are system-level config files which you should be able to
> >>> read but not modify.  There are also user-level config files
> >>> which you are expected to be able to read and modify to make your
> >>> life easier.
> >>>
> >>> Yes, you can manually specify a config file every time on the
> >>> command line, or specify the start-URL on the command-line every
> >>> time, or establish environment variables every time you log in,
> >>> or define a function/alias everytime you log in.
> >>>
> >>> But the purpose of creating local/user-level config files is for
> >>> your own conveneince.  So that when you type "lynx" (or "ly" or
> >>> whatever short-hand abbreviation you want), it does exactly what
> >>> *you* want (within the software's limitations) every time.
> >>>
> >>> As David mentions, if your Shellworld account allows you to modify
> >>> system-level config files, that would impact everybody on the
> >>> system and be a big security issue.  But I suspect that the
> >>> administrator left permissions as their defaults and so you can't
> >>> change the site-wide settings as a mere user.  But you can copy
> >>> the lynx.cfg file -- either from your system /etc/lynx.

Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-18 Thread dan d.

If using a single bookmark page, make the desired url the first item..

On Sun, 17 Nov 2019, Chime Hart wrote:

> Well Karen, if you have bookmarks enabled, you can just type from a 
> commandline
> lynx -book
> You will then see all your bookmarks, which like any other page, you can type 
> a
> link number or arrow-and-highlight an item.
> Now probably back on Firday I inquired if there were a way of invoking an 
> actual
> bookmark from a commandline? As an example if I want to go to bookmark 145, 
> are
> their ways of doing that? Thanks so much in advance
> Chime
>
>

-- 
XB

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-17 Thread Chime Hart
Hi David-and-All, I just looked-and-there are around 22 user names here on 
Shellworld, including some with more than 1 account. Certainly an amount of 
annual income from even that many accounts is nothing to sneeze at.
O-and-David, speaking of the Wayback Machine, I was never able to accomplish 
this in Lynx. I wanted to go back before the New York Times-and-most other 
NewsPapers added javascript so I couldn't get to their printer friendly pages. 
But if I tried following a link, it took me to a current page. Thanks so much in 
advance

Chime


___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-17 Thread David Woolley

On 17/11/2019 22:04, Tim Chase wrote:

However asking the system admin to modify the system-wide lynx.cfg
file*will*  impact all other Shellworld users.  Using any of the
methods recommended in this thread are exactly the way to prevent
this.



I wonder how long shellworld has to live.  I completely failed to find 
any current marketing page for it, and people have said, here, that they 
have failed to get accounts created.


The Wayback Machine suggests that it hasn't been marketed for over ten 
years, although it does seem to have been intended as a blind users' 
system, rather than a power users' one.  The last page captured that 
wasn't empty or invalid seems to be October 2007, and it was blank by 
December that year.


I assume they are not taking on new users and will close when the number 
remaining drops sufficiently.


___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-17 Thread Tim Chase
On 2019-11-17 16:37, Karen Lewellen wrote:
> Big picture goal for whom?

You wanted to set your default start-page to a particular URL without
needing to enter it every time:

On 2019-11-15 17:52, Karen Lewellen wrote:
> The idea is to change this default homepage, not just simply visit
> a new site once.
On 2019-11-15 19:45, Karen Lewellen wrote:
> the goal is a permanent change to the default one.

This thread gave you multiple ways to do this:

- manually start lynx with the desired homepage URL on the
  command-line, possibly simplified with an alias/function

- create a lynx.cfg file and use "lynx -cfg=$HOME/.lynx.cfg" possibly
  simplified with an alias/function (which is what I detailed and has
  the longest-term flexibility and extensibility)

- exporting the WWW_HOME either each time your shell starts up or in
  your shell start-up file


On 2019-11-17 16:37, Karen Lewellen wrote:
> I am asking the admin here to make the change for me, end of story.

You were also clear (and rudely condescending to those trying to help)
about not wanting to modify the system lynx.cfg:

On 2019-11-16 22:53, Karen Lewellen wrote:
>   i. do. not. want. to. make. this. change. in lynx.cfg...at all!
> How hard is that to understand?
> I  asked for *command line* not all the ways I might screw up
> another person's setup.

However asking the system admin to modify the system-wide lynx.cfg
file *will* impact all other Shellworld users.  Using any of the
methods recommended in this thread are exactly the way to prevent
this.

-tim



___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-17 Thread Karen Lewellen

Big picture  goal for whom?
As it is my goal, and I state otherwise, I am unsure why you  choose to 
claim this is my goal.

This issue is moot, and I consider the thread to be closed.
I am asking the admin here to make the change for me, end of story.



On Sun, 17 Nov 2019, Tim Chase wrote:


The big picture goal is to create a local/user-specific lynx.cfg file
in your home directory.  This can be as minimal as that one
"STARTFILE" line produced by the `echo` command, and then start lynx
using that config file.

You can use a text-editor to create/edit the ~/.lynx.cfg file and
append the line

 STARTFILE:https://ca.yahoo.com/news

at the bottom.  Alternatively you can use "echo" to append the file
(creating it if it doesn't already exist):

 $ echo "STARTFILE:https://ca.yahoo.com/news"; >> ~/.lynx.cfg

With that local/user-specific config file available, you can then
start lynx manually using that config file:

 $ lynx -cfg=$HOME/.lynx.cfg

but typing that whole thing every time gets tedious.  So to avoid
that tedium, you want to let your shell know that when you type
"lynx" (or "ly" or whatever short-hand you want) that you really mean
"every time I type `lynx`, pretend that I added -cfg=$HOME/.lynx.cfg
after it".  You can do this with an alias or with a function though
the function is a bit more flexible. This would be created in one of
your shell startup files. However the exact syntax and file-names for
that startup file depend on the shell you're using. That's why I'm
interested in the output of

 $ basename $SHELL

to make sure which shell you're running.  In all liklihood, it's
"bash" in which case it would also help for you to provide the output
of

 $ ls ~/.bash*

If that output includes a .bash_aliases file, that's the best place
to put an alias/function.  Otherwise, you can just append it to your
.bashrc (which would most likely be among the output).

However your shell could also be any of a number of common
alternatives like sh, ash, dash, zsh, ksh, csh, tcsh, fish, or yet
others.  Each one has its own configuration files and making sure
that the edit takes place in the right one is essential to ensuring
that the alias/function gets created properly.

But then once you have the alias/function in your local start-up
file, every time you type "lynx" (or "ly" or whatever short-hand you
prefer), it will start with your preferred configuration.

-tim


On 2019-11-17 14:10, Karen Lewellen wrote:

Tim,
*should* is an interesting concept.  What should  be does not
always translate into what is.
For example,
Your echo line below is a fantastic example of the kind of command
line idea I have been seeking the entire time.
However, because there are   about ten different  lynx.cfg files in
the home directory of my site hosted here on shellworld, running it
did not produce any changes.
I got no errors, meaning  likely something was changed, just not
the lynx.cfg file governing  my karenlewellen.com workspace hosted
at shellworld.
still, it was at least the sort of  solution I desired, a simple
command line  that could be run without editing altering or
changing anything else.
As I said to rick,  that he has done something himself in no way
translates to  the approximately 7 billion others sharing our world.
Karen


On Sun, 17 Nov 2019, Tim Chase wrote:


There are system-level config files which you should be able to
read but not modify.  There are also user-level config files
which you are expected to be able to read and modify to make your
life easier.

Yes, you can manually specify a config file every time on the
command line, or specify the start-URL on the command-line every
time, or establish environment variables every time you log in,
or define a function/alias everytime you log in.

But the purpose of creating local/user-level config files is for
your own conveneince.  So that when you type "lynx" (or "ly" or
whatever short-hand abbreviation you want), it does exactly what
*you* want (within the software's limitations) every time.

As David mentions, if your Shellworld account allows you to modify
system-level config files, that would impact everybody on the
system and be a big security issue.  But I suspect that the
administrator left permissions as their defaults and so you can't
change the site-wide settings as a mere user.  But you can copy
the lynx.cfg file -- either from your system /etc/lynx.cfg or
/usr/local/etc/lynx.cfg or downloading a copy from the internet
-- to your home directory, modify it to your satisfaction, and
then instruct lynx to use that config file instead.  For your
purposes, you might even be able to just use "echo" to put the
one line in a file without any text editor:

 $ echo 'STARTFILE:https://example.com' >> ~/.lynx.cfg

if you want to start at example.com

You then modify your *local* (not system-wide) shell configuration
file to create the command you use to override that config file:

 $ echo 'lynx() { command lynx -cfg ~/.lynx.cfg "$@" ; }' >>
~/.bashrc

or wh

Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-17 Thread Tim Chase
The big picture goal is to create a local/user-specific lynx.cfg file
in your home directory.  This can be as minimal as that one
"STARTFILE" line produced by the `echo` command, and then start lynx
using that config file.

You can use a text-editor to create/edit the ~/.lynx.cfg file and
append the line

  STARTFILE:https://ca.yahoo.com/news

at the bottom.  Alternatively you can use "echo" to append the file
(creating it if it doesn't already exist):

  $ echo "STARTFILE:https://ca.yahoo.com/news"; >> ~/.lynx.cfg

With that local/user-specific config file available, you can then
start lynx manually using that config file:

  $ lynx -cfg=$HOME/.lynx.cfg

but typing that whole thing every time gets tedious.  So to avoid
that tedium, you want to let your shell know that when you type
"lynx" (or "ly" or whatever short-hand you want) that you really mean
"every time I type `lynx`, pretend that I added -cfg=$HOME/.lynx.cfg
after it".  You can do this with an alias or with a function though
the function is a bit more flexible. This would be created in one of
your shell startup files. However the exact syntax and file-names for
that startup file depend on the shell you're using. That's why I'm
interested in the output of

  $ basename $SHELL

to make sure which shell you're running.  In all liklihood, it's
"bash" in which case it would also help for you to provide the output
of

  $ ls ~/.bash*

If that output includes a .bash_aliases file, that's the best place
to put an alias/function.  Otherwise, you can just append it to your
.bashrc (which would most likely be among the output).

However your shell could also be any of a number of common
alternatives like sh, ash, dash, zsh, ksh, csh, tcsh, fish, or yet
others.  Each one has its own configuration files and making sure
that the edit takes place in the right one is essential to ensuring
that the alias/function gets created properly.

But then once you have the alias/function in your local start-up
file, every time you type "lynx" (or "ly" or whatever short-hand you
prefer), it will start with your preferred configuration.

-tim


On 2019-11-17 14:10, Karen Lewellen wrote:
> Tim,
> *should* is an interesting concept.  What should  be does not
> always translate into what is.
> For example,
> Your echo line below is a fantastic example of the kind of command
> line idea I have been seeking the entire time.
> However, because there are   about ten different  lynx.cfg files in
> the home directory of my site hosted here on shellworld, running it
> did not produce any changes.
> I got no errors, meaning  likely something was changed, just not
> the lynx.cfg file governing  my karenlewellen.com workspace hosted
> at shellworld.
> still, it was at least the sort of  solution I desired, a simple
> command line  that could be run without editing altering or
> changing anything else.
> As I said to rick,  that he has done something himself in no way 
> translates to  the approximately 7 billion others sharing our world.
> Karen
> 
> 
> On Sun, 17 Nov 2019, Tim Chase wrote:
> 
> > There are system-level config files which you should be able to
> > read but not modify.  There are also user-level config files
> > which you are expected to be able to read and modify to make your
> > life easier.
> >
> > Yes, you can manually specify a config file every time on the
> > command line, or specify the start-URL on the command-line every
> > time, or establish environment variables every time you log in,
> > or define a function/alias everytime you log in.
> >
> > But the purpose of creating local/user-level config files is for
> > your own conveneince.  So that when you type "lynx" (or "ly" or
> > whatever short-hand abbreviation you want), it does exactly what
> > *you* want (within the software's limitations) every time.
> >
> > As David mentions, if your Shellworld account allows you to modify
> > system-level config files, that would impact everybody on the
> > system and be a big security issue.  But I suspect that the
> > administrator left permissions as their defaults and so you can't
> > change the site-wide settings as a mere user.  But you can copy
> > the lynx.cfg file -- either from your system /etc/lynx.cfg or
> > /usr/local/etc/lynx.cfg or downloading a copy from the internet
> > -- to your home directory, modify it to your satisfaction, and
> > then instruct lynx to use that config file instead.  For your
> > purposes, you might even be able to just use "echo" to put the
> > one line in a file without any text editor:
> >
> >  $ echo 'STARTFILE:https://example.com' >> ~/.lynx.cfg
> >
> > if you want to start at example.com
> >
> > You then modify your *local* (not system-wide) shell configuration
> > file to create the command you use to override that config file:
> >
> >  $ echo 'lynx() { command lynx -cfg ~/.lynx.cfg "$@" ; }' >>
> > ~/.bashrc
> >
> > or whatever your local shell-configuration file is depending on
> > your shell. Again, would be helpful to kno

Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-17 Thread Karen Lewellen

Chime,
i do not need to see all of my bookmarks
that is not my stated goal whatsoever.



On Sun, 17 Nov 2019, Chime Hart wrote:

Well Karen, if you have bookmarks enabled, you can just type from a 
commandline

lynx -book
You will then see all your bookmarks, which like any other page, you can type 
a link number or arrow-and-highlight an item.
Now probably back on Firday I inquired if there were a way of invoking an 
actual bookmark from a commandline? As an example if I want to go to bookmark 
145, are their ways of doing that? Thanks so much in advance

Chime




___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-17 Thread Chime Hart

Well Karen, if you have bookmarks enabled, you can just type from a commandline
lynx -book
You will then see all your bookmarks, which like any other page, you can type a 
link number or arrow-and-highlight an item.
Now probably back on Firday I inquired if there were a way of invoking an actual 
bookmark from a commandline? As an example if I want to go to bookmark 145, are 
their ways of doing that? Thanks so much in advance

Chime


___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-17 Thread Karen Lewellen

My goal is to use
ca.yahoo.com/news
as my startfile.
As I have several hundred bookmarks, how does using the bookmark page 
produce the result I desire?




On Sun, 17 Nov 2019, dan d. wrote:



I just rememberd another way using command line only to have an alternative 
start page.  Fromm the lynx hlp page:

-book use the bookmark page as the startfile (off)

Here from the info lynx file additional info:

-book  use  the bookmark page as the startfile.  The default or command
 line startfile is still set for the  Main  screen  command,  and
 will be used if the bookmark page is unavailable or blank.
On Sat, 16 Nov 2019, Karen Lewellen wrote:


folks,
  i. do. not. want. to. make. this. change. in lynx.cfg...at all!
How hard is that to understand?
I  asked for *command line* not all the ways I might screw up another
person's setup.



On Fri, 15 Nov 2019, Bela Lubkin wrote:


Karen Lewellen wrote:


since this is not my system,
I have no idea where the lynx.cfg file is.


While in Lynx, hit 'o' for options.  Near the very bottom is a line,

   View the file lynx.cfg.

Following the 'lynx.cfg' link, you see a rendition of the active
portions of your lynx.cfg.  Near the top of that is a comment:

   #Your primary configuration /path/to/system/lynx.cfg



We can reduce that somewhat.  'LYNXCFG:/' is the URL used in that
'lynx.cfg' link; we can dump that from the shell:

   $ lynx -dump LYNXCFG:/ | grep primary.config
   #Your primary configuration [4]/path/to/system/lynx.cfg

One way to make use of this:

   $ cd $HOME
   $ echo 'INCLUDE:/path/to/system/lynx.cfg' > .lynx_cfg
   $ echo 'STARTFILE:https://www.xyz.abc' >> .lynx_cfg
   $ lynx -cfg $HOME/.lynx_cfg   ### opens www.xyz.abc

This uses lynx.cfg's INCLUDE command to include the system lynx.cfg by
reference.  That way it will keep up with any changes the system
administrator might make (as long as they don't replace the lynx binary
with one compiled to look in a different location).  Setting STARTFILE
*after* the INCLUDE ensures that your setting overrides the system's.

Now all you need is one of the various alias techniques mentioned by
others...


Bela<


___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev



___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev



--
XB




___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-17 Thread Karen Lewellen

actually,
no they do not.
I cannot edit the  .bash_profile, because the edit command indicates that 
there is no such file or directory.

The echo option, while  terrific produced no changes i. e. when I run
lynx
I am still  taken  to the uniform location, which now produces an error 
because google learned of the

theoldgnews.com
Service  shutting it down.
As I just told Tim, *should*  and reality do not always match.
his option would have been amazing, if it actually worked.
Frankly I great deal of list traffic would have been avoided if the answer 
you suggest below, i. e. there is no command line option   without 
creating an alias first had been shared...as I have no interest in 
creating an alias.




On Sun, 17 Nov 2019, dan d. wrote:



Multiple ways were offered not involving lynx.cfg.

The only strickly command line approach is to include an url after any lynx 
optionss.

If one wants to avoid doing this each time lynx is used, one of the other 
methodds offered will work.

On Sat, 16 Nov 2019, Karen Lewellen wrote:


folks,
  i. do. not. want. to. make. this. change. in lynx.cfg...at all!
How hard is that to understand?
I  asked for *command line* not all the ways I might screw up another
person's setup.



On Fri, 15 Nov 2019, Bela Lubkin wrote:


Karen Lewellen wrote:


since this is not my system,
I have no idea where the lynx.cfg file is.


While in Lynx, hit 'o' for options.  Near the very bottom is a line,

   View the file lynx.cfg.

Following the 'lynx.cfg' link, you see a rendition of the active
portions of your lynx.cfg.  Near the top of that is a comment:

   #Your primary configuration /path/to/system/lynx.cfg



We can reduce that somewhat.  'LYNXCFG:/' is the URL used in that
'lynx.cfg' link; we can dump that from the shell:

   $ lynx -dump LYNXCFG:/ | grep primary.config
   #Your primary configuration [4]/path/to/system/lynx.cfg

One way to make use of this:

   $ cd $HOME
   $ echo 'INCLUDE:/path/to/system/lynx.cfg' > .lynx_cfg
   $ echo 'STARTFILE:https://www.xyz.abc' >> .lynx_cfg
   $ lynx -cfg $HOME/.lynx_cfg   ### opens www.xyz.abc

This uses lynx.cfg's INCLUDE command to include the system lynx.cfg by
reference.  That way it will keep up with any changes the system
administrator might make (as long as they don't replace the lynx binary
with one compiled to look in a different location).  Setting STARTFILE
*after* the INCLUDE ensures that your setting overrides the system's.

Now all you need is one of the various alias techniques mentioned by
others...


Bela<


___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev



___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev



--
XB




___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-17 Thread Chime Hart
Well Karen, I remember the many times I was able to work with folks over the 
phone, who knew their way around. While I am not archiving these messages, maybe 
if Rick or another expert could guide you live, I think you would finally have 
success. While I am not actually volunteering Rick, I know for many years he was 
ahead of myself in a Unix World. Anyway, I sincerely hope some1 can assist you 
in real time

Chime


___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-17 Thread Karen Lewellen

Tim,
*should* is an interesting concept.  What should  be does not  always 
translate into what is.

For example,
Your echo line below is a fantastic example of the kind of command line 
idea I have been seeking the entire time.
However, because there are   about ten different  lynx.cfg files in the 
home directory of my site hosted here on shellworld, running it did not 
produce any changes.
I got no errors, meaning  likely something was changed, just not the 
lynx.cfg file governing  my karenlewellen.com workspace hosted at 
shellworld.
still, it was at least the sort of  solution I desired, a simple command 
line  that could be run without editing altering or changing anything 
else.
As I said to rick,  that he has done something himself in no way 
translates to  the approximately 7 billion others sharing our world.

Karen


On Sun, 17 Nov 2019, Tim Chase wrote:


There are system-level config files which you should be able to read
but not modify.  There are also user-level config files which you are
expected to be able to read and modify to make your life easier.

Yes, you can manually specify a config file every time on the command
line, or specify the start-URL on the command-line every time, or
establish environment variables every time you log in, or define a
function/alias everytime you log in.

But the purpose of creating local/user-level config files is for your
own conveneince.  So that when you type "lynx" (or "ly" or whatever
short-hand abbreviation you want), it does exactly what *you* want
(within the software's limitations) every time.

As David mentions, if your Shellworld account allows you to modify
system-level config files, that would impact everybody on the system
and be a big security issue.  But I suspect that the administrator
left permissions as their defaults and so you can't change the
site-wide settings as a mere user.  But you can copy the lynx.cfg
file -- either from your system /etc/lynx.cfg or
/usr/local/etc/lynx.cfg or downloading a copy from the internet -- to
your home directory, modify it to your satisfaction, and then instruct
lynx to use that config file instead.  For your purposes, you might
even be able to just use "echo" to put the one line in a file without
any text editor:

 $ echo 'STARTFILE:https://example.com' >> ~/.lynx.cfg

if you want to start at example.com

You then modify your *local* (not system-wide) shell configuration
file to create the command you use to override that config file:

 $ echo 'lynx() { command lynx -cfg ~/.lynx.cfg "$@" ; }' >> ~/.bashrc

or whatever your local shell-configuration file is depending on your
shell. Again, would be helpful to know the output of

 $ basename $SHELL

to know which shell you're in.

Once you've configured these two things, invoking lynx should give
you the settings you want every time without needing to re-type them.

The local/user-level configuration files are there specifically to
make each user's life easier, without impacting other users on the
same system.

I'm still hoping I could get a Shellworld account so I can test some
of these things to give you a more targeted reply, but I've not heard
back from the admin on any of the occasions I've tried emailing them.

-tim

On 2019-11-16 22:39, Karen Lewellen wrote:

because this is not my service I wish to tamper with config files
as little  as possible.
If there is not a command line only method to accomplish this task,
much like  the -useragent one, then never mind.
thanks for all the ideas but  again  I am not interested in
altering lynx.cfg in any fashion.
Karen


On Fri, 15 Nov 2019, Tim Chase wrote:


Karen,

You can combine Thorsten's advice to use "-cfg=FILENAME" with my
previous shell-alias suggestion, which is what I've done in the
past to specify a local config file.  With that in place, you can
set your default home-page in your local lynx config file (say,
~/.lynx.cfg)

 echo "STARTFILE:https://example.com"; >> ~/.lynx.cfg

and then have your function/alias specify the config file:

 lynx() { command lynx -cfg=$HOME/.lynx.cfg "$@" ; }

I happen to like the TEXTFIELDS_NEED_ACTIVATION:TRUE set in my
.cfg file too, so this is how I get that behavior every time.

-tim


On 2019-11-15 22:56, Thorsten Glaser wrote:

Karen Lewellen dixit:


I am seeking a command line method  to override the site  listed
as the homepage for lynx regularly,  i. e. the page that appears
if i just entre lynx.


Then don’t enter just lynx ;-)

Otherwise, you can override the homepage in the lynx.cfg file.
Since you’re on a shellserver you cannot do that system-wide,
but you can copy the system-wide one into your home directory
and use the -cfg=FILENAME option to point to the changed file.


The idea is  to change this  default homepage, not just simply
visit a new site once.


But the “homepage” is only shown if you don’t tell it a site
to visit when starting.

It’s probably easiest to make an alias, something like this:

echo "alias 'ly=lynx http://the.new.start.site'

Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-17 Thread Karen Lewellen

Rick,
One thing unique to the human condition is individual skill based on 
experience.  Just because you have done something does not translate that 
every single child born of woman can do the same. 
Making such  is a matter of opinion  with which I disagree having tried at 
least 
one   suggestion.
Trying to save the  www_home parameter locked me into something  that kept 
producing a  > from which I could not exit.

Karen


On Sat, 16 Nov 2019, Rick Lewis wrote:


Karen,
I hope you have saved all of the suggestions. They will allow you to do what 
you want without affecting anyone else on the system.
I've done these things myself. They work, and will achieve what you want.
--
Rick

-Original Message-
From: Lynx-dev [mailto:lynx-dev-bounces+ricklew=shellworld@nongnu.org] On 
Behalf Of Karen Lewellen
Sent: Saturday, November 16, 2019 8:05 PM
To: Halaasz Saandor 
Cc: lynx-dev@nongnu.org
Subject: Re: [Lynx-dev] changing lynx default homepage from the comand line?

do you mind providing the exact command?
karen


On Sat, 16 Nov 2019, Halaasz Saandor via Lynx-dev wrote:


2019/11/15 18:26 ... Larry Hynes via Lynx-dev:

 If you can set the WWW_HOME environment variable, lynx will use that as
 the startfile.


I use this method, although I have complete control of my "lynx.cfg".

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev




___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev




___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-17 Thread dan d.

I just rememberd another way using command line only to have an alternative 
start page.  Fromm the lynx hlp page:

-book use the bookmark page as the startfile (off)

Here from the info lynx file additional info:

-book  use  the bookmark page as the startfile.  The default or command
  line startfile is still set for the  Main  screen  command,  and
  will be used if the bookmark page is unavailable or blank.
On Sat, 16 Nov 2019, Karen Lewellen wrote:

> folks,
>   i. do. not. want. to. make. this. change. in lynx.cfg...at all!
> How hard is that to understand?
> I  asked for *command line* not all the ways I might screw up another
> person's setup.
>
>
>
> On Fri, 15 Nov 2019, Bela Lubkin wrote:
>
> > Karen Lewellen wrote:
> >
> >> since this is not my system,
> >> I have no idea where the lynx.cfg file is.
> >
> > While in Lynx, hit 'o' for options.  Near the very bottom is a line,
> >
> >View the file lynx.cfg.
> >
> > Following the 'lynx.cfg' link, you see a rendition of the active
> > portions of your lynx.cfg.  Near the top of that is a comment:
> >
> >#Your primary configuration /path/to/system/lynx.cfg
> >
> > 
> >
> > We can reduce that somewhat.  'LYNXCFG:/' is the URL used in that
> > 'lynx.cfg' link; we can dump that from the shell:
> >
> >$ lynx -dump LYNXCFG:/ | grep primary.config
> >#Your primary configuration [4]/path/to/system/lynx.cfg
> >
> > One way to make use of this:
> >
> >$ cd $HOME
> >$ echo 'INCLUDE:/path/to/system/lynx.cfg' > .lynx_cfg
> >$ echo 'STARTFILE:https://www.xyz.abc' >> .lynx_cfg
> >$ lynx -cfg $HOME/.lynx_cfg   ### opens www.xyz.abc
> >
> > This uses lynx.cfg's INCLUDE command to include the system lynx.cfg by
> > reference.  That way it will keep up with any changes the system
> > administrator might make (as long as they don't replace the lynx binary
> > with one compiled to look in a different location).  Setting STARTFILE
> > *after* the INCLUDE ensures that your setting overrides the system's.
> >
> > Now all you need is one of the various alias techniques mentioned by
> > others...
> >
> >> Bela<
> >
> > ___
> > Lynx-dev mailing list
> > Lynx-dev@nongnu.org
> > https://lists.nongnu.org/mailman/listinfo/lynx-dev
> >
>
> ___
> Lynx-dev mailing list
> Lynx-dev@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lynx-dev
>

-- 
XB

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-17 Thread dan d.

Multiple ways were offered not involving lynx.cfg.

The only strickly command line approach is to include an url after any lynx 
optionss.

If one wants to avoid doing this each time lynx is used, one of the other 
methodds offered will work.

On Sat, 16 Nov 2019, Karen Lewellen wrote:

> folks,
>   i. do. not. want. to. make. this. change. in lynx.cfg...at all!
> How hard is that to understand?
> I  asked for *command line* not all the ways I might screw up another
> person's setup.
>
>
>
> On Fri, 15 Nov 2019, Bela Lubkin wrote:
>
> > Karen Lewellen wrote:
> >
> >> since this is not my system,
> >> I have no idea where the lynx.cfg file is.
> >
> > While in Lynx, hit 'o' for options.  Near the very bottom is a line,
> >
> >View the file lynx.cfg.
> >
> > Following the 'lynx.cfg' link, you see a rendition of the active
> > portions of your lynx.cfg.  Near the top of that is a comment:
> >
> >#Your primary configuration /path/to/system/lynx.cfg
> >
> > 
> >
> > We can reduce that somewhat.  'LYNXCFG:/' is the URL used in that
> > 'lynx.cfg' link; we can dump that from the shell:
> >
> >$ lynx -dump LYNXCFG:/ | grep primary.config
> >#Your primary configuration [4]/path/to/system/lynx.cfg
> >
> > One way to make use of this:
> >
> >$ cd $HOME
> >$ echo 'INCLUDE:/path/to/system/lynx.cfg' > .lynx_cfg
> >$ echo 'STARTFILE:https://www.xyz.abc' >> .lynx_cfg
> >$ lynx -cfg $HOME/.lynx_cfg   ### opens www.xyz.abc
> >
> > This uses lynx.cfg's INCLUDE command to include the system lynx.cfg by
> > reference.  That way it will keep up with any changes the system
> > administrator might make (as long as they don't replace the lynx binary
> > with one compiled to look in a different location).  Setting STARTFILE
> > *after* the INCLUDE ensures that your setting overrides the system's.
> >
> > Now all you need is one of the various alias techniques mentioned by
> > others...
> >
> >> Bela<
> >
> > ___
> > Lynx-dev mailing list
> > Lynx-dev@nongnu.org
> > https://lists.nongnu.org/mailman/listinfo/lynx-dev
> >
>
> ___
> Lynx-dev mailing list
> Lynx-dev@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lynx-dev
>

-- 
XB

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-17 Thread Tim Chase
There are system-level config files which you should be able to read
but not modify.  There are also user-level config files which you are
expected to be able to read and modify to make your life easier.

Yes, you can manually specify a config file every time on the command
line, or specify the start-URL on the command-line every time, or
establish environment variables every time you log in, or define a
function/alias everytime you log in.

But the purpose of creating local/user-level config files is for your
own conveneince.  So that when you type "lynx" (or "ly" or whatever
short-hand abbreviation you want), it does exactly what *you* want
(within the software's limitations) every time.

As David mentions, if your Shellworld account allows you to modify
system-level config files, that would impact everybody on the system
and be a big security issue.  But I suspect that the administrator
left permissions as their defaults and so you can't change the
site-wide settings as a mere user.  But you can copy the lynx.cfg
file -- either from your system /etc/lynx.cfg or
/usr/local/etc/lynx.cfg or downloading a copy from the internet -- to
your home directory, modify it to your satisfaction, and then instruct
lynx to use that config file instead.  For your purposes, you might
even be able to just use "echo" to put the one line in a file without
any text editor:

  $ echo 'STARTFILE:https://example.com' >> ~/.lynx.cfg

if you want to start at example.com

You then modify your *local* (not system-wide) shell configuration
file to create the command you use to override that config file:

  $ echo 'lynx() { command lynx -cfg ~/.lynx.cfg "$@" ; }' >> ~/.bashrc

or whatever your local shell-configuration file is depending on your
shell. Again, would be helpful to know the output of

  $ basename $SHELL

to know which shell you're in.

Once you've configured these two things, invoking lynx should give
you the settings you want every time without needing to re-type them.

The local/user-level configuration files are there specifically to
make each user's life easier, without impacting other users on the
same system.

I'm still hoping I could get a Shellworld account so I can test some
of these things to give you a more targeted reply, but I've not heard
back from the admin on any of the occasions I've tried emailing them.

-tim

On 2019-11-16 22:39, Karen Lewellen wrote:
> because this is not my service I wish to tamper with config files
> as little  as possible.
> If there is not a command line only method to accomplish this task,
> much like  the -useragent one, then never mind.
> thanks for all the ideas but  again  I am not interested in
> altering lynx.cfg in any fashion.
> Karen
> 
> 
> On Fri, 15 Nov 2019, Tim Chase wrote:
> 
> > Karen,
> >
> > You can combine Thorsten's advice to use "-cfg=FILENAME" with my
> > previous shell-alias suggestion, which is what I've done in the
> > past to specify a local config file.  With that in place, you can
> > set your default home-page in your local lynx config file (say,
> > ~/.lynx.cfg)
> >
> >  echo "STARTFILE:https://example.com"; >> ~/.lynx.cfg
> >
> > and then have your function/alias specify the config file:
> >
> >  lynx() { command lynx -cfg=$HOME/.lynx.cfg "$@" ; }
> >
> > I happen to like the TEXTFIELDS_NEED_ACTIVATION:TRUE set in my
> > .cfg file too, so this is how I get that behavior every time.
> >
> > -tim
> >
> >
> > On 2019-11-15 22:56, Thorsten Glaser wrote:  
> >> Karen Lewellen dixit:
> >>  
> >>> I am seeking a command line method  to override the site  listed
> >>> as the homepage for lynx regularly,  i. e. the page that appears
> >>> if i just entre lynx.  
> >>
> >> Then don’t enter just lynx ;-)
> >>
> >> Otherwise, you can override the homepage in the lynx.cfg file.
> >> Since you’re on a shellserver you cannot do that system-wide,
> >> but you can copy the system-wide one into your home directory
> >> and use the -cfg=FILENAME option to point to the changed file.
> >>  
> >>> The idea is  to change this  default homepage, not just simply
> >>> visit a new site once.  
> >>
> >> But the “homepage” is only shown if you don’t tell it a site
> >> to visit when starting.
> >>
> >> It’s probably easiest to make an alias, something like this:
> >>
> >> echo "alias 'ly=lynx http://the.new.start.site'" >>~/.bashrc
> >>
> >> Then typing ly will start lynx with the other start page.
> >> Easier than doing the config dance, unless you need that anyway.
> >>
> >> bye,
> >> //mirabilos
> >> --
> >> FWIW, I'm quite impressed with mksh interactively. I thought it
> >> was much *much* more bare bones. But it turns out it beats the
> >> living hell out of ksh93 in that respect. I'd even consider it
> >> for my daily use if I hadn't wasted half my life on my zsh
> >> setup. :-) -- Frank Terbeck in #!/bin/mksh
> >>
> >> ___
> >> Lynx-dev mailing list
> >> Lynx-dev@nongnu.org
> >> https://lists.nongnu.org/mailman/listinfo/lyn

Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-17 Thread David Woolley

On 17/11/2019 03:48, Karen Lewellen wrote:
i do not know where the lynx.cfg file is located.  I imagine this is 
wise to prevent accidents with  individuals  making changes.


If the service makes it possible for individuals to change a shared 
configuration file, they have very severe security issues and you 
shouldn't be using them.  The file should be easy to find, and should be 
write protected against ordinary users.



___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-16 Thread Rick Lewis
Karen,
I hope you have saved all of the suggestions. They will allow you to do what 
you want without affecting anyone else on the system.
I've done these things myself. They work, and will achieve what you want.
--
Rick

-Original Message-
From: Lynx-dev [mailto:lynx-dev-bounces+ricklew=shellworld@nongnu.org] On 
Behalf Of Karen Lewellen
Sent: Saturday, November 16, 2019 8:05 PM
To: Halaasz Saandor 
Cc: lynx-dev@nongnu.org
Subject: Re: [Lynx-dev] changing lynx default homepage from the comand line?

do you mind providing the exact command?
karen


On Sat, 16 Nov 2019, Halaasz Saandor via Lynx-dev wrote:

> 2019/11/15 18:26 ... Larry Hynes via Lynx-dev:
>>  If you can set the WWW_HOME environment variable, lynx will use that as
>>  the startfile.
>
> I use this method, although I have complete control of my "lynx.cfg".
>
> ___
> Lynx-dev mailing list
> Lynx-dev@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lynx-dev
>
>

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-16 Thread Karen Lewellen

do you mind providing the exact command?
karen


On Sat, 16 Nov 2019, Halaasz Saandor via Lynx-dev wrote:


2019/11/15 18:26 ... Larry Hynes via Lynx-dev:

 If you can set the WWW_HOME environment variable, lynx will use that as
 the startfile.


I use this method, although I have complete control of my "lynx.cfg".

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev




___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-16 Thread Karen Lewellen

to be sure, there are ten of them, none  of which have my name on it.
Which is why I have stated my goal has never been to involve the lynx.cfg 
file  in  any fashion.




On Sat, 16 Nov 2019, Jude DaShiell wrote:


run locate lynx.cfg and you will have an idea.

On Fri, 15 Nov 2019, Karen Lewellen wrote:


Date: Fri, 15 Nov 2019 18:32:20
From: Karen Lewellen 
To: Thorsten Glaser 
Cc: "lynx-dev@nongnu.org" 
Subject: Re: [Lynx-dev] changing lynx default homepage from the comand line?

The reason why I want a command to do this, say like the useragent  option Tom
provided in another thread is because, since this is not my system, I have no
idea where the lynx.cfg file is.
I wish to change the site that displays when I type lynx, without impacting
thesystem whatsoever.
How does that seem confusing?


On Fri, 15 Nov 2019, Thorsten Glaser wrote:


Karen Lewellen dixit:


I am seeking a command line method  to override the site  listed as the
homepage for lynx regularly,  i. e. the page that appears if i just entre
lynx.


Then don?t enter just lynx ;-)

Otherwise, you can override the homepage in the lynx.cfg file.
Since you?re on a shellserver you cannot do that system-wide,
but you can copy the system-wide one into your home directory
and use the -cfg=FILENAME option to point to the changed file.


The idea is  to change this  default homepage, not just simply visit a
new site once.


But the ?homepage? is only shown if you don?t tell it a site
to visit when starting.

It?s probably easiest to make an alias, something like this:

echo "alias 'ly=lynx http://the.new.start.site'" >>~/.bashrc

Then typing ly will start lynx with the other start page.
Easier than doing the config dance, unless you need that anyway.

bye,
//mirabilos
--
FWIW, I'm quite impressed with mksh interactively. I thought it was much
*much* more bare bones. But it turns out it beats the living hell out of
ksh93 in that respect. I'd even consider it for my daily use if I hadn't
wasted half my life on my zsh setup. :-) -- Frank Terbeck in #!/bin/mksh



___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev




--




___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-16 Thread Karen Lewellen

folks,
 i. do. not. want. to. make. this. change. in lynx.cfg...at all!
How hard is that to understand?
I  asked for *command line* not all the ways I might screw up another 
person's setup.




On Fri, 15 Nov 2019, Bela Lubkin wrote:


Karen Lewellen wrote:


since this is not my system,
I have no idea where the lynx.cfg file is.


While in Lynx, hit 'o' for options.  Near the very bottom is a line,

   View the file lynx.cfg.

Following the 'lynx.cfg' link, you see a rendition of the active
portions of your lynx.cfg.  Near the top of that is a comment:

   #Your primary configuration /path/to/system/lynx.cfg



We can reduce that somewhat.  'LYNXCFG:/' is the URL used in that
'lynx.cfg' link; we can dump that from the shell:

   $ lynx -dump LYNXCFG:/ | grep primary.config
   #Your primary configuration [4]/path/to/system/lynx.cfg

One way to make use of this:

   $ cd $HOME
   $ echo 'INCLUDE:/path/to/system/lynx.cfg' > .lynx_cfg
   $ echo 'STARTFILE:https://www.xyz.abc' >> .lynx_cfg
   $ lynx -cfg $HOME/.lynx_cfg   ### opens www.xyz.abc

This uses lynx.cfg's INCLUDE command to include the system lynx.cfg by
reference.  That way it will keep up with any changes the system
administrator might make (as long as they don't replace the lynx binary
with one compiled to look in a different location).  Setting STARTFILE
*after* the INCLUDE ensures that your setting overrides the system's.

Now all you need is one of the various alias techniques mentioned by
others...


Bela<


___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev



___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-16 Thread Karen Lewellen
I appreciate all of the suggestions, even if not the strict command line 
only  option I desired.
i do not know where the lynx.cfg file is located.  I imagine this is wise 
to prevent accidents with  individuals  making changes.
if no strict command line only solution exists, I will  ask the admin to 
make the change for me.




On Fri, 15 Nov 2019, Tim Chase wrote:


Karen,

While you might not be able to modify the system-wide lynx.cfg file,
you can copy the system one to your local directory and then use a
function/alias to start lynx with that lynx.cfg file instead of the
system one (see my previous message).  I do this all the time to get
the functionality that I want while still only needing to type "lynx"
at the command-prompt.

-tim

On 2019-11-15 18:42, Karen Lewellen wrote:

I cannot edit my lynx.cfg file, which is why I seek a command line
method. I am going to try the www_home method, I must not have
followed as I got locked into a >
window with no change.



On Fri, 15 Nov 2019, Larry Hynes wrote:


Karen Lewellen  wrote:

I am seeking a command line method  to override the site  listed
as the homepage for lynx regularly,  i. e. the page that appears
if i just entre lynx.
The idea is  to change this  default homepage, not just simply
visit a new site  once.
does that make more sense?


If you can set the WWW_HOME environment variable, lynx will use
that as the startfile.

If you can edit your lynx.cfg file, you can specify the startfile
in that, as in:

STARTFILE:http://thesitethatyouwant.com

I suppose a command line method would be something like entering

WWW_HOME='http://thesitethatyouwant.com'; lynx

on the command line or exporting the WWW_HOME environment
variable from your .profile or .bash_profile i.e. ensuring that
the line

export WWW_HOME='http://thesitethatyouwant.com'

is in your .profile (or wherever bash looks for environment
variables), in which case when you launch lynx it will go to that
site

There is also an option to launch lynx with the '-book' switch
which will use the bookmark page (if set) as the startfile. (See
'man lynx' for details.)




___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev






___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-16 Thread Karen Lewellen
because this is not my service I wish to tamper with config files as 
little  as possible.
If there is not a command line only method to accomplish this task, much 
like  the -useragent one, then never mind.
thanks for all the ideas but  again  I am not interested in altering 
lynx.cfg in any fashion.

Karen


On Fri, 15 Nov 2019, Tim Chase wrote:


Karen,

You can combine Thorsten's advice to use "-cfg=FILENAME" with my
previous shell-alias suggestion, which is what I've done in the past
to specify a local config file.  With that in place, you can set your
default home-page in your local lynx config file (say, ~/.lynx.cfg)

 echo "STARTFILE:https://example.com"; >> ~/.lynx.cfg

and then have your function/alias specify the config file:

 lynx() { command lynx -cfg=$HOME/.lynx.cfg "$@" ; }

I happen to like the TEXTFIELDS_NEED_ACTIVATION:TRUE set in my .cfg
file too, so this is how I get that behavior every time.

-tim


On 2019-11-15 22:56, Thorsten Glaser wrote:

Karen Lewellen dixit:


I am seeking a command line method  to override the site  listed
as the homepage for lynx regularly,  i. e. the page that appears
if i just entre lynx.


Then don’t enter just lynx ;-)

Otherwise, you can override the homepage in the lynx.cfg file.
Since you’re on a shellserver you cannot do that system-wide,
but you can copy the system-wide one into your home directory
and use the -cfg=FILENAME option to point to the changed file.


The idea is  to change this  default homepage, not just simply
visit a new site once.


But the “homepage” is only shown if you don’t tell it a site
to visit when starting.

It’s probably easiest to make an alias, something like this:

echo "alias 'ly=lynx http://the.new.start.site'" >>~/.bashrc

Then typing ly will start lynx with the other start page.
Easier than doing the config dance, unless you need that anyway.

bye,
//mirabilos
--
FWIW, I'm quite impressed with mksh interactively. I thought it was
much *much* more bare bones. But it turns out it beats the living
hell out of ksh93 in that respect. I'd even consider it for my
daily use if I hadn't wasted half my life on my zsh setup. :-) --
Frank Terbeck in #!/bin/mksh

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev





___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-16 Thread dan d.

Your best bet would be to set an alias with all commandline optionss desired, 
including the start url.

This alias could be put in a local to your account .bashrc or .bash_profile, or 
similar depending on the system os and shell used.

I use a custom local start.html page I constructed with the most commonly 
visited urls in one place as my start url.

On Fri, 15 Nov 2019, Karen Lewellen wrote:

> no,
> What I am asking for is a way to *change the site  shown when I type lynx*
> for  good, without using the lynx.cfg file.
> Since this is not registering,  let me be very specific.
> For many years  the default site displayed when typing lynx here was
> google news.
> For me I could gather things for work,   then use the g command to move
> to different sites.
> I am in Canada discovering that ca.yahoo.com/news
> produces something a great deal like the  old  google news, desiring it to
> be the site I reach when opening lynx, without having to type the url
> Presently in fact lur lynx default page produces an error making moving
> forward sometimes an issue.
> Still, I am  likely the only person needing Canadian news easy to hand
> regularly. and all of the lynx.cf g files belong to the service manager.
> so...the goal is a permanent change to the default one.
>
>
>
> On Sat, 16 Nov 2019, Thorsten Glaser wrote:
>
> > Karen Lewellen dixit:
> >
> >> I wish to change the site that displays when I type lynx, without 
> >> impacting the
> >
> > You can fix that the easiest way by not typing lynx.
> >
> > This is precisely what you asked for: the command-line way to
> > solve your request. The startpage is only ever displayed right
> > after starting lynx, so giving it an URL effectively changes it.
> >
> > bye,
> > //m.
> >
> >
>
> ___
> Lynx-dev mailing list
> Lynx-dev@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lynx-dev
>

-- 
XB

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-16 Thread Halaasz Saandor via Lynx-dev

2019/11/15 18:26 ... Larry Hynes via Lynx-dev:

If you can set the WWW_HOME environment variable, lynx will use that as
the startfile.


I use this method, although I have complete control of my "lynx.cfg".

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-15 Thread Jude DaShiell
run locate lynx.cfg and you will have an idea.

On Fri, 15 Nov 2019, Karen Lewellen wrote:

> Date: Fri, 15 Nov 2019 18:32:20
> From: Karen Lewellen 
> To: Thorsten Glaser 
> Cc: "lynx-dev@nongnu.org" 
> Subject: Re: [Lynx-dev] changing lynx default homepage from the comand line?
>
> The reason why I want a command to do this, say like the useragent  option Tom
> provided in another thread is because, since this is not my system, I have no
> idea where the lynx.cfg file is.
> I wish to change the site that displays when I type lynx, without impacting
> thesystem whatsoever.
> How does that seem confusing?
>
>
> On Fri, 15 Nov 2019, Thorsten Glaser wrote:
>
> > Karen Lewellen dixit:
> >
> >> I am seeking a command line method  to override the site  listed as the
> >> homepage for lynx regularly,  i. e. the page that appears if i just entre
> >> lynx.
> >
> > Then don?t enter just lynx ;-)
> >
> > Otherwise, you can override the homepage in the lynx.cfg file.
> > Since you?re on a shellserver you cannot do that system-wide,
> > but you can copy the system-wide one into your home directory
> > and use the -cfg=FILENAME option to point to the changed file.
> >
> >> The idea is  to change this  default homepage, not just simply visit a
> >> new site once.
> >
> > But the ?homepage? is only shown if you don?t tell it a site
> > to visit when starting.
> >
> > It?s probably easiest to make an alias, something like this:
> >
> > echo "alias 'ly=lynx http://the.new.start.site'" >>~/.bashrc
> >
> > Then typing ly will start lynx with the other start page.
> > Easier than doing the config dance, unless you need that anyway.
> >
> > bye,
> > //mirabilos
> > --
> > FWIW, I'm quite impressed with mksh interactively. I thought it was much
> > *much* more bare bones. But it turns out it beats the living hell out of
> > ksh93 in that respect. I'd even consider it for my daily use if I hadn't
> > wasted half my life on my zsh setup. :-) -- Frank Terbeck in #!/bin/mksh
> >
> >
> ___
> Lynx-dev mailing list
> Lynx-dev@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lynx-dev
>
>

-- 


___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-15 Thread Jude DaShiell
That's in /etc/lynx.cfg.  However, making a bash script mylynx with:
#!/usr/bin/bash
# file: mylynx - use my preferred home page
lynx https://my.preferred.homepage

then chmod 755 mylynx
then ./mylynx  ought to get that done.
Only thing is use which bash just in case shellworld.net has bash in a
different location for that first line.
Maybe better yet which env and use:
#!/path/env bash
where path is location of env.

On
Fri, 15 Nov 2019, Karen Lewellen wrote:

> Date: Fri, 15 Nov 2019 17:35:30
> From: Karen Lewellen 
> To: "lynx-dev@nongnu.org" 
> Subject: [Lynx-dev] changing lynx default homepage from the comand line?
>
> Hi everyone,
> I wish to override the default homepage  we have for lynx here, and am hoping
> for a command line option.
> shellworld uses bash if that helps.
> thanks,
> Karen
>
>
> ___
> Lynx-dev mailing list
> Lynx-dev@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lynx-dev
>
>

-- 


___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-15 Thread Bela Lubkin
Karen Lewellen wrote:

> since this is not my system, 
> I have no idea where the lynx.cfg file is.

While in Lynx, hit 'o' for options.  Near the very bottom is a line,

View the file lynx.cfg.

Following the 'lynx.cfg' link, you see a rendition of the active
portions of your lynx.cfg.  Near the top of that is a comment:

#Your primary configuration /path/to/system/lynx.cfg



We can reduce that somewhat.  'LYNXCFG:/' is the URL used in that
'lynx.cfg' link; we can dump that from the shell:

$ lynx -dump LYNXCFG:/ | grep primary.config
#Your primary configuration [4]/path/to/system/lynx.cfg

One way to make use of this:

$ cd $HOME
$ echo 'INCLUDE:/path/to/system/lynx.cfg' > .lynx_cfg
$ echo 'STARTFILE:https://www.xyz.abc' >> .lynx_cfg
$ lynx -cfg $HOME/.lynx_cfg   ### opens www.xyz.abc

This uses lynx.cfg's INCLUDE command to include the system lynx.cfg by
reference.  That way it will keep up with any changes the system
administrator might make (as long as they don't replace the lynx binary
with one compiled to look in a different location).  Setting STARTFILE
*after* the INCLUDE ensures that your setting overrides the system's.

Now all you need is one of the various alias techniques mentioned by
others...

>Bela<

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-15 Thread Tim Chase
Karen,

You can set up a shell alias with something like

  alias ly='lynx https://google.com'

which lets you just type "ly" at the command-prompt and it will go to
whatever default URL you set.  This is a local alias and doesn't
require editing any system configuration files.  If you want it to
persist past one shell session, you can put that line in your local
account's shell configuration file.  That's likely your ~/.bashrc or
~/.bash_aliases if your shell is bash, but might be your ~/.profile
or ~/.kshrc or ~/.zshrc or something else depending on your shell.

You should be able to check which shell you're running by using

  $ basename $SHELL

If it happens to be either "csh" or "tcsh", you have to use a space
where the equal-sign is:

  alias ly 'lynx https://google.com'

If you want to get really fancy, you might create a shell function
like

  ly() { lynx "${1:-https://google.com}"; ; }

which lets you specify a URL if you want one

  $ ly https://shellworld.net

but if you don't specify one, will go to Google (or whatever you
specify) by default.

-tim



On 2019-11-15 17:52, Karen Lewellen wrote:
> sigh,
> Let me try this again.
> I am seeking a command line method  to override the site  listed as
> the homepage for lynx regularly,  i. e. the page that appears if i
> just entre lynx.
> The idea is  to change this  default homepage, not just simply
> visit a new site  once.
> does that make more sense?
> 
> 
> Kare,
> Who cannot wait for Mercury retrograde to end!
> 
> On Fri, 15 Nov 2019, Thorsten Glaser wrote:
> 
> > Karen Lewellen dixit:
> >  
> >> I wish to override the default homepage  we have for lynx here,
> >> and am hoping for a command line option.  
> >
> > Just enter the URL you want to call after the word lynx and a
> > space.
> >
> > bye,
> > //mirabilos
> > -- 
> > Yes, I hate users and I want them to suffer.
> > -- Marco d'Itri on gmane.linux.debian.devel.general
> >
> >  
> 
> ___
> Lynx-dev mailing list
> Lynx-dev@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lynx-dev



___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-15 Thread Tim Chase
Karen,

While you might not be able to modify the system-wide lynx.cfg file,
you can copy the system one to your local directory and then use a
function/alias to start lynx with that lynx.cfg file instead of the
system one (see my previous message).  I do this all the time to get
the functionality that I want while still only needing to type "lynx"
at the command-prompt.

-tim

On 2019-11-15 18:42, Karen Lewellen wrote:
> I cannot edit my lynx.cfg file, which is why I seek a command line
> method. I am going to try the www_home method, I must not have
> followed as I got locked into a >
> window with no change.
> 
> 
> 
> On Fri, 15 Nov 2019, Larry Hynes wrote:
> 
> > Karen Lewellen  wrote:  
> >> I am seeking a command line method  to override the site  listed
> >> as the homepage for lynx regularly,  i. e. the page that appears
> >> if i just entre lynx.
> >> The idea is  to change this  default homepage, not just simply
> >> visit a new site  once.
> >> does that make more sense?  
> >
> > If you can set the WWW_HOME environment variable, lynx will use
> > that as the startfile.
> >
> > If you can edit your lynx.cfg file, you can specify the startfile
> > in that, as in:
> >
> > STARTFILE:http://thesitethatyouwant.com
> >
> > I suppose a command line method would be something like entering
> >
> > WWW_HOME='http://thesitethatyouwant.com'; lynx
> >
> > on the command line or exporting the WWW_HOME environment
> > variable from your .profile or .bash_profile i.e. ensuring that
> > the line
> >
> > export WWW_HOME='http://thesitethatyouwant.com'
> >
> > is in your .profile (or wherever bash looks for environment
> > variables), in which case when you launch lynx it will go to that
> > site
> >
> > There is also an option to launch lynx with the '-book' switch
> > which will use the bookmark page (if set) as the startfile. (See
> > 'man lynx' for details.)
> >
> >  
> 
> ___
> Lynx-dev mailing list
> Lynx-dev@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lynx-dev



___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-15 Thread Tim Chase
Karen,

You can combine Thorsten's advice to use "-cfg=FILENAME" with my
previous shell-alias suggestion, which is what I've done in the past
to specify a local config file.  With that in place, you can set your
default home-page in your local lynx config file (say, ~/.lynx.cfg)

  echo "STARTFILE:https://example.com"; >> ~/.lynx.cfg

and then have your function/alias specify the config file:

  lynx() { command lynx -cfg=$HOME/.lynx.cfg "$@" ; }

I happen to like the TEXTFIELDS_NEED_ACTIVATION:TRUE set in my .cfg
file too, so this is how I get that behavior every time.

-tim


On 2019-11-15 22:56, Thorsten Glaser wrote:
> Karen Lewellen dixit:
> 
> > I am seeking a command line method  to override the site  listed
> > as the homepage for lynx regularly,  i. e. the page that appears
> > if i just entre lynx.  
> 
> Then don’t enter just lynx ;-)
> 
> Otherwise, you can override the homepage in the lynx.cfg file.
> Since you’re on a shellserver you cannot do that system-wide,
> but you can copy the system-wide one into your home directory
> and use the -cfg=FILENAME option to point to the changed file.
> 
> > The idea is  to change this  default homepage, not just simply
> > visit a new site once.  
> 
> But the “homepage” is only shown if you don’t tell it a site
> to visit when starting.
> 
> It’s probably easiest to make an alias, something like this:
> 
> echo "alias 'ly=lynx http://the.new.start.site'" >>~/.bashrc
> 
> Then typing ly will start lynx with the other start page.
> Easier than doing the config dance, unless you need that anyway.
> 
> bye,
> //mirabilos
> -- 
> FWIW, I'm quite impressed with mksh interactively. I thought it was
> much *much* more bare bones. But it turns out it beats the living
> hell out of ksh93 in that respect. I'd even consider it for my
> daily use if I hadn't wasted half my life on my zsh setup. :-) --
> Frank Terbeck in #!/bin/mksh
> 
> ___
> Lynx-dev mailing list
> Lynx-dev@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lynx-dev



___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-15 Thread Thorsten Glaser
Karen Lewellen dixit:

> so...the goal is a permanent change to the default one.

Which I showed you, multiple ways even.

Someone else even pointed out another.

End of discussion,
//m.

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-15 Thread Karen Lewellen

no,
What I am asking for is a way to *change the site  shown when I type lynx* 
for  good, without using the lynx.cfg file.

Since this is not registering,  let me be very specific.
For many years  the default site displayed when typing lynx here was 
google news.
For me I could gather things for work,   then use the g command to move 
to different sites.

I am in Canada discovering that ca.yahoo.com/news
produces something a great deal like the  old  google news, desiring it to 
be the site I reach when opening lynx, without having to type the url
Presently in fact lur lynx default page produces an error making moving 
forward sometimes an issue.
Still, I am  likely the only person needing Canadian news easy to hand 
regularly. and all of the lynx.cf g files belong to the service manager.

so...the goal is a permanent change to the default one.



On Sat, 16 Nov 2019, Thorsten Glaser wrote:


Karen Lewellen dixit:


I wish to change the site that displays when I type lynx, without impacting the


You can fix that the easiest way by not typing lynx.

This is precisely what you asked for: the command-line way to
solve your request. The startpage is only ever displayed right
after starting lynx, so giving it an URL effectively changes it.

bye,
//m.




___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-15 Thread Chime Hart
You know, I was remembering that it would be nice if I could even enter a 
-bookmark number on a commandline, but as an example, I don't think I can type

lynx -book 145
Thanks in advance
Chime


___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-15 Thread Thorsten Glaser
Karen Lewellen dixit:

> I wish to change the site that displays when I type lynx, without impacting 
> the

You can fix that the easiest way by not typing lynx.

This is precisely what you asked for: the command-line way to
solve your request. The startpage is only ever displayed right
after starting lynx, so giving it an URL effectively changes it.

bye,
//m.

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-15 Thread Karen Lewellen
Which is why chime I am seeking a command line avenue to address the issue 
smiles.

Kare


On Fri, 15 Nov 2019, Chime Hart wrote:


Well Karen, you can try these.
type
locate lynx.cfg
or
which lynx
I use locate alot here on Shellworld, but it will probably display several 
users lynx.cfg file names.

Chime




___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-15 Thread Karen Lewellen

I cannot edit my lynx.cfg file, which is why I seek a command line method.
I am going to try the www_home method, I must not have followed as I got 
locked into a >

window with no change.



On Fri, 15 Nov 2019, Larry Hynes wrote:


Karen Lewellen  wrote:

I am seeking a command line method  to override the site  listed as the
homepage for lynx regularly,  i. e. the page that appears if i just entre
lynx.
The idea is  to change this  default homepage, not just simply visit a new
site  once.
does that make more sense?


If you can set the WWW_HOME environment variable, lynx will use that as
the startfile.

If you can edit your lynx.cfg file, you can specify the startfile in
that, as in:

STARTFILE:http://thesitethatyouwant.com

I suppose a command line method would be something like entering

WWW_HOME='http://thesitethatyouwant.com'; lynx

on the command line or exporting the WWW_HOME environment variable from
your .profile or .bash_profile i.e. ensuring that the line

export WWW_HOME='http://thesitethatyouwant.com'

is in your .profile (or wherever bash looks for environment variables),
in which case when you launch lynx it will go to that site

There is also an option to launch lynx with the '-book' switch which
will use the bookmark page (if set) as the startfile. (See 'man lynx'
for details.)




___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-15 Thread Chime Hart

Well Karen, you can try these.
type
locate lynx.cfg
or
which lynx
I use locate alot here on Shellworld, but it will probably display several users 
lynx.cfg file names.

Chime


___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-15 Thread Karen Lewellen
The reason why I want a command to do this, say like the useragent  option 
Tomprovided in another thread is because, since this is not my system, 
I have no idea where the lynx.cfg file is.
I wish to change the site that displays when I type lynx, without 
impacting thesystem whatsoever.

How does that seem confusing?


On Fri, 15 Nov 2019, Thorsten Glaser wrote:


Karen Lewellen dixit:


I am seeking a command line method  to override the site  listed as the
homepage for lynx regularly,  i. e. the page that appears if i just entre lynx.


Then don’t enter just lynx ;-)

Otherwise, you can override the homepage in the lynx.cfg file.
Since you’re on a shellserver you cannot do that system-wide,
but you can copy the system-wide one into your home directory
and use the -cfg=FILENAME option to point to the changed file.


The idea is  to change this  default homepage, not just simply visit a
new site once.


But the “homepage” is only shown if you don’t tell it a site
to visit when starting.

It’s probably easiest to make an alias, something like this:

echo "alias 'ly=lynx http://the.new.start.site'" >>~/.bashrc

Then typing ly will start lynx with the other start page.
Easier than doing the config dance, unless you need that anyway.

bye,
//mirabilos
--
FWIW, I'm quite impressed with mksh interactively. I thought it was much
*much* more bare bones. But it turns out it beats the living hell out of
ksh93 in that respect. I'd even consider it for my daily use if I hadn't
wasted half my life on my zsh setup. :-) -- Frank Terbeck in #!/bin/mksh



___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-15 Thread Larry Hynes via Lynx-dev
Karen Lewellen  wrote:
> I am seeking a command line method  to override the site  listed as the 
> homepage for lynx regularly,  i. e. the page that appears if i just entre 
> lynx.
> The idea is  to change this  default homepage, not just simply visit a new 
> site  once.
> does that make more sense?

If you can set the WWW_HOME environment variable, lynx will use that as
the startfile.

If you can edit your lynx.cfg file, you can specify the startfile in
that, as in:

STARTFILE:http://thesitethatyouwant.com

I suppose a command line method would be something like entering

WWW_HOME='http://thesitethatyouwant.com'; lynx

on the command line or exporting the WWW_HOME environment variable from
your .profile or .bash_profile i.e. ensuring that the line

export WWW_HOME='http://thesitethatyouwant.com'

is in your .profile (or wherever bash looks for environment variables),
in which case when you launch lynx it will go to that site

There is also an option to launch lynx with the '-book' switch which
will use the bookmark page (if set) as the startfile. (See 'man lynx'
for details.)

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-15 Thread Thorsten Glaser
Karen Lewellen dixit:

> I am seeking a command line method  to override the site  listed as the
> homepage for lynx regularly,  i. e. the page that appears if i just entre 
> lynx.

Then don’t enter just lynx ;-)

Otherwise, you can override the homepage in the lynx.cfg file.
Since you’re on a shellserver you cannot do that system-wide,
but you can copy the system-wide one into your home directory
and use the -cfg=FILENAME option to point to the changed file.

> The idea is  to change this  default homepage, not just simply visit a
> new site once.

But the “homepage” is only shown if you don’t tell it a site
to visit when starting.

It’s probably easiest to make an alias, something like this:

echo "alias 'ly=lynx http://the.new.start.site'" >>~/.bashrc

Then typing ly will start lynx with the other start page.
Easier than doing the config dance, unless you need that anyway.

bye,
//mirabilos
-- 
FWIW, I'm quite impressed with mksh interactively. I thought it was much
*much* more bare bones. But it turns out it beats the living hell out of
ksh93 in that respect. I'd even consider it for my daily use if I hadn't
wasted half my life on my zsh setup. :-) -- Frank Terbeck in #!/bin/mksh

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-15 Thread Karen Lewellen

sigh,
Let me try this again.
I am seeking a command line method  to override the site  listed as the 
homepage for lynx regularly,  i. e. the page that appears if i just entre 
lynx.
The idea is  to change this  default homepage, not just simply visit a new 
site  once.

does that make more sense?


Kare,
Who cannot wait for Mercury retrograde to end!

On Fri, 15 Nov 2019, Thorsten Glaser wrote:


Karen Lewellen dixit:


I wish to override the default homepage  we have for lynx here, and am
hoping for a command line option.


Just enter the URL you want to call after the word lynx and a space.

bye,
//mirabilos
--
Yes, I hate users and I want them to suffer.
-- Marco d'Itri on gmane.linux.debian.devel.general




___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] changing lynx default homepage from the comand line?

2019-11-15 Thread Thorsten Glaser
Karen Lewellen dixit:

> I wish to override the default homepage  we have for lynx here, and am 
> hoping for a command line option.

Just enter the URL you want to call after the word lynx and a space.

bye,
//mirabilos
-- 
Yes, I hate users and I want them to suffer.
-- Marco d'Itri on gmane.linux.debian.devel.general

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


[Lynx-dev] changing lynx default homepage from the comand line?

2019-11-15 Thread Karen Lewellen

Hi everyone,
I wish to override the default homepage  we have for lynx here, and am 
hoping for a command line option.

shellworld uses bash if that helps.
thanks,
Karen


___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev