Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
1 answers
2009 views
How do I configure lynx to pass images to xloadimage, xv or zvg?
I know that it's possible to configure `lynx` to pass images (PNG/GIF/JPEG/JPG) to `xloadimage`, `xv` or `zvg` and I've looked online ([Description of lynx configuration][1]; [Use lynx with browser image support][2] ; [Lynx with HTML Images][3]) for documentation for how to do this, to no avail. I'v...
I know that it's possible to configure lynx to pass images (PNG/GIF/JPEG/JPG) to xloadimage, xv or zvg and I've looked online (Description of lynx configuration ; Use lynx with browser image support ; Lynx with HTML Images ) for documentation for how to do this, to no avail. I've tried changing/adding directives to lynx's configuration file (lynx.cfg), without success. What is the correct configuration for images? Do I need to compile lynx from source and, if so, what flags/parameters do I need to specify? Should I rather use Netscape Navigator/Communicator (as that seems to support images without configuration)?
Agi Hammerthief (622 rep)
Mar 15, 2014, 09:17 AM • Last activity: Jul 29, 2025, 01:05 PM
1 votes
1 answers
3605 views
How to disable TLS certificate validation in lynx?
I need to access some webpage for which the TLS certificate is invalid, but `lynx` refuses to connect. Is there an option similar to `curl -k` for `lynx`? Here's config file as request .h1 Auxiliary Facilities .h2 INCLUDE .ex .ex .h2 STARTFILE .ex .h2 HELPFILE .url http://lynx.isc.org/release/breako...
I need to access some webpage for which the TLS certificate is invalid, but lynx refuses to connect. Is there an option similar to curl -k for lynx? Here's config file as request .h1 Auxiliary Facilities .h2 INCLUDE .ex .ex .h2 STARTFILE .ex .h2 HELPFILE .url http://lynx.isc.org/release/breakout/lynx_help/lynx_help_main.html .ex HELPFILE:file://localhost/usr/share/doc/lynx-cur/lynx_help/lynx_help_main.html.gz .h2 DEFAULT_INDEX_FILE DEFAULT_INDEX_FILE:http://scout.wisc.edu/ .h1 Interaction .h2 GOTOBUFFER .h2 JUMP_PROMPT .h1 Auxiliary Facilities .h2 JUMPFILE .ex .h2 JUMPBUFFER .h1 Internal Behavior .h2 SAVE_SPACE .h2 REUSE_TEMPFILES .h2 LYNX_HOST_NAME .h2 LOCALHOST_ALIAS .ex 2 .h2 LOCAL_DOMAIN .h1 Session support .h2 AUTO_SESSION .h2 SESSION_FILE .h2 SESSION_LIMIT .h1 Character Sets .h2 CHARACTER_SET .nf .fi .url http://tools.ietf.org/html/rfc1345 CHARACTER_SET:iso-8859-1 .h2 LOCALE_CHARSET LOCALE_CHARSET:TRUE .h2 HTML5_CHARSETS .h2 ASSUME_CHARSET .h2 ASSUMED_DOC_CHARSET_CHOICE .h2 DISPLAY_CHARSET_CHOICE .ex .ex 4 .h2 ASSUME_LOCAL_CHARSET .h2 PREPEND_CHARSET_TO_SOURCE PREPEND_CHARSET_TO_SOURCE:FALSE .h2 NCR_IN_BOOKMARKS .h2 FORCE_8BIT_TOUPPER .h2 OUTGOING_MAIL_CHARSET .h2 ASSUME_UNREC_CHARSET .h2 PREFERRED_LANGUAGE PREFERRED_LANGUAGE:en .h2 PREFERRED_CHARSET .url http://tools.ietf.org/html/rfc2068 .h2 CHARSETS_DIRECTORY .h2 CHARSET_SWITCH_RULES .h1 Interaction .h2 URL_DOMAIN_PREFIXES .h2 URL_DOMAIN_SUFFIXES .h2 FORMS_OPTIONS .h2 PARTIAL .h2 PARTIAL_THRES .h2 SHOW_KB_RATE .h2 SHOW_KB_NAME .url http://www.romulus2.com/articles/guides/misc/bitsbytes.shtml .h1 Timeouts .h2 INFOSECS .h2 MESSAGESECS .h2 ALERTSECS .h2 NO_PAUSE .h2 DEBUGSECS .h2 REPLAYSECS .h1 Appearance .h2 USE_SELECT_POPUPS .h2 SHOW_CURSOR SHOW_CURSOR:TRUE .h2 UNDERLINE_LINKS .h2 BOLD_HEADERS .h2 BOLD_H1 .h2 BOLD_NAME_ANCHORS .h1 Internal Behavior .h2 DEFAULT_CACHE_SIZE .h2 DEFAULT_VIRTUAL_MEMORY_SIZE .h2 SOURCE_CACHE .h2 SOURCE_CACHE_FOR_ABORTED .h2 ALWAYS_RESUBMIT_POSTS .h2 TRIM_INPUT_FIELDS .h1 HTML Parsing .h2 NO_ISMAP_IF_USEMAP .h2 SEEK_FRAG_MAP_IN_CUR .h2 SEEK_FRAG_AREA_IN_CUR .h1 CGI scripts .h2 LOCAL_EXECUTION_LINKS_ALWAYS_ON .h2 LOCAL_EXECUTION_LINKS_ON_BUT_NOT_REMOTE LOCAL_EXECUTION_LINKS_ALWAYS_ON:FALSE LOCAL_EXECUTION_LINKS_ON_BUT_NOT_REMOTE:FALSE .h2 TRUSTED_EXEC TRUSTED_EXEC:none .h2 ALWAYS_TRUSTED_EXEC ALWAYS_TRUSTED_EXEC:none .h2 TRUSTED_LYNXCGI TRUSTED_LYNXCGI:none .h2 LYNXCGI_ENVIRONMENT .h2 LYNXCGI_DOCUMENT_ROOT .h1 Cookies .h2 FORCE_SSL_COOKIES_SECURE .h1 Internal Behavior .h2 MAIL_SYSTEM_ERROR_LOGGING .h2 CHECKMAIL .h1 News-groups .h2 NNTPSERVER .url http://tools.ietf.org/html/rfc1738 .h2 LIST_NEWS_NUMBERS .h2 LIST_NEWS_DATES .h2 NEWS_CHUNK_SIZE .h2 NEWS_MAX_CHUNK .h2 NEWS_POSTING .h2 LYNX_SIG_FILE .h1 Bibliographic Protocol (bibp scheme) .h2 BIBP_GLOBAL_SERVER .h2 BIBP_BIBHOST .h1 Interaction .h2 SCROLLBAR .h2 SCROLLBAR_ARROW .h2 USE_MOUSE .h1 HTML Parsing .h2 COLLAPSE_BR_TAGS .h2 TAGSOUP .h1 Cookies .h2 SET_COOKIES .h2 ACCEPT_ALL_COOKIES .h2 COOKIE_ACCEPT_DOMAINS .h2 COOKIE_REJECT_DOMAINS .h2 COOKIE_LOOSE_INVALID_DOMAINS .h2 COOKIE_STRICT_INVALID_DOMAINS .h2 COOKIE_QUERY_INVALID_DOMAINS .h2 MAX_COOKIES_DOMAIN .h2 MAX_COOKIES_GLOBAL .h2 MAX_COOKIES_BUFFER .h2 PERSISTENT_COOKIES PERSISTENT_COOKIES:FALSE .h2 COOKIE_FILE .h2 COOKIE_SAVE_FILE .h1 Mail-related .h2 SYSTEM_MAIL .h2 SYSTEM_MAIL_FLAGS .ex 2 .ex 2 .ex 2 .ex 2 .ex 2 .url http://lynx.isc.org/lynx-2.8.1/lynx_w32.zip .url ftp://lynx.isc.org/lynx-2.8.1/lynx_w32.zip .url http://glob.com.au/sendmail/ .h2 MAIL_ADRS .h2 USE_FIXED_RECORDS .h1 Keyboard Input .h2 VI_KEYS_ALWAYS_ON .h2 EMACS_KEYS_ALWAYS_ON .h2 DEFAULT_KEYPAD_MODE .h2 NUMBER_LINKS_ON_LEFT .h2 NUMBER_FIELDS_ON_LEFT .h2 DEFAULT_KEYPAD_MODE_IS_NUMBERS_AS_ARROWS .h2 CASE_SENSITIVE_ALWAYS_ON .h1 Auxiliary Facilities .h2 DEFAULT_BOOKMARK_FILE .h2 MULTI_BOOKMARK_SUPPORT .h2 BLOCK_MULTI_BOOKMARKS .h1 Interaction .h2 DEFAULT_USER_MODE .h1 External Programs .h2 DEFAULT_EDITOR .h2 SYSTEM_EDITOR .h3 POSITIONABLE_EDITOR .h1 Proxy .h2 HTTP_PROXY .h2 HTTPS_PROXY .h2 FTP_PROXY .h2 GOPHER_PROXY .h2 NEWSPOST_PROXY .h2 NEWSREPLY_PROXY .h2 NEWS_PROXY .h2 NNTP_PROXY .h2 SNEWSPOST_PROXY .h2 SNEWSREPLY_PROXY .h2 SNEWS_PROXY .h2 WAIS_PROXY .h2 FINGER_PROXY .h2 CSO_PROXY .ex 15 .h2 NO_PROXY .ex .ex .h1 External Programs .h2 PRINTER .h2 DOWNLOADER .h2 UPLOADER .ex 3 .ex .ex .ex .ex .ex .ex .ex .ex 2 .ex .h1 Interaction .h2 NO_DOT_FILES NO_DOT_FILES:FALSE .h1 Internal Behavior .h2 NO_FROM_HEADER .h2 NO_REFERER_HEADER .h1 Internal Behavior .h2 NO_FILE_REFERER .h2 REFERER_WITH_QUERY .h1 Appearance .h2 VERBOSE_IMAGES .h2 MAKE_LINKS_FOR_ALL_IMAGES .h2 MAKE_PSEUDO_ALTS_FOR_INLINES .h2 SUBSTITUTE_UNDERSCORES .h1 Interaction .h2 QUIT_DEFAULT_YES .h1 HTML Parsing .h2 HISTORICAL_COMMENTS .h2 MINIMAL_COMMENTS MINIMAL_COMMENTS:TRUE .h2 SOFT_DQUOTES .h2 STRIP_DOTDOT_URLS .h1 Appearance .h2 ENABLE_SCROLLBACK .h2 SCAN_FOR_BURIED_NEWS_REFS .h2 PREPEND_BASE_TO_SOURCE .h1 External Programs .h2 GLOBAL_EXTENSION_MAP .h2 PERSONAL_EXTENSION_MAP GLOBAL_EXTENSION_MAP:/etc/mime.types PERSONAL_EXTENSION_MAP:.mime.types .h2 SUFFIX_ORDER .h2 SUFFIX .ex .ex .ex .ex .ex 29 SUFFIX:.tgz:application/octet-stream SUFFIX:.deb:application/octet-stream .h2 XLOADIMAGE_COMMAND .h2 VIEWER .ex 7 .h2 GLOBAL_MAILCAP .h2 PERSONAL_MAILCAP .url http://tools.ietf.org/html/rfc1524 GLOBAL_MAILCAP:/etc/mailcap PERSONAL_MAILCAP:.mailcap .h2 PREFERRED_MEDIA_TYPES .h2 PREFERRED_ENCODING .h1 Keyboard Input .h2 KEYBOARD_LAYOUT .h2 KEYMAP .nf .fi .nf .fi .nf .fi .nf .fi .nf .fi .nf .fi .nf .fi .h1 External Programs .h2 CSWING_PATH .h1 Internal Behavior .h2 AUTO_UNCACHE_DIRLISTS .h1 Appearance .h2 LIST_FORMAT .nf .fi .ex .ex .ex .h1 External Programs .h2 DIRED_MENU .nf .fi .h1 Internal Behavior .h2 NONRESTARTING_SIGWINCH .h2 NO_FORCED_CORE_DUMP .h1 Appearance .h2 COLOR .nf .fi COLOR:6:brightred:black .h2 COLOR_STYLE .h2 NESTED_TABLES .h2 ASSUMED_COLOR .h2 DEFAULT_COLORS .h1 External Programs .h2 EXTERNAL .h2 EXTERNAL_MENU .ex 1 .h1 Internal Behavior .h2 RULE .h2 RULESFILE .ex 5 .h1 Appearance .h2 PRETTYSRC .h2 PRETTYSRC_SPEC .nf .fi .ex .ex .ex .h2 HTMLSRC_ATTRNAME_XFORM .h2 HTMLSRC_TAGNAME_XFORM .h2 PRETTYSRC_VIEW_NO_ANCHOR_NUMBERING .h1 HTML Parsing .h2 FORCE_EMPTY_HREFLESS_A .h2 HIDDEN_LINK_MARKER .h2 XHTML_PARSING .h1 Appearance .h2 JUSTIFY .h2 JUSTIFY_MAX_VOID_PERCENT .h1 Interaction .h2 TEXTFIELDS_NEED_ACTIVATION .h2 LEFTARROW_IN_TEXTFIELD_PROMPT .h1 Timeouts .h2 CONNECT_TIMEOUT .h2 READ_TIMEOUT .h1 Internal Behavior .h2 FTP_PASSIVE .h2 ENABLE_LYNXRC .nf .fi .h1 External Programs .h2 BZIP2_PATH .h2 CHMOD_PATH .h2 COMPRESS_PATH .h2 COPY_PATH .h2 GZIP_PATH .h2 INFLATE_PATH .h2 INSTALL_PATH .h2 MKDIR_PATH .h2 MV_PATH .h2 RLOGIN_PATH .h2 RMDIR_PATH .h2 RM_PATH .h2 SETFONT_PATH .h2 TAR_PATH .h2 TELNET_PATH .h2 TN3270_PATH .h2 TOUCH_PATH .h2 UNCOMPRESS_PATH .h2 UNZIP_PATH .h2 UUDECODE_PATH .h2 ZCAT_PATH .h2 ZIP_PATH .h1 Interaction .h2 FORCE_SSL_PROMPT .h2 FORCE_COOKIE_PROMPT .h2 SSL_CERT_FILE SSL_CERT_FILE:/etc/ssl/certs/ca-certificates.crt .h1 Appearance .h2 SCREEN_SIZE .h2 NO_MARGINS .h2 NO_TITLE .h1 External Programs .h2 SYSLOG_REQUESTED_URLS SYSLOG_REQUESTED_URLS:FALSE .h2 SYSLOG_TEXT .h1 Internal Behavior .h2 BROKEN_FTP_RETR .h2 BROKEN_FTP_EPSV .h1 Appearance .h2 FTP_FORMAT .h1 Internal Behavior .h2 STATUS_BUFFER_SIZE .h2 MAX_URI_SIZE .h1 Appearance .h2 UNIQUE_URLS .h1 Character Sets .h2 MESSAGE_LANGUAGE .h2 CONV_JISX0201KANA .h1 External Programs .h2 WAIT_VIEWER_TERMINATION .h1 Mail-related .h2 BLAT_MAIL .url http://www.blat.net .h2 ALT_BLAT_MAIL .url http://www.piedey.co.jp/blatj/ .h1 Internal Behavior .h2 TRACK_INTERNAL_LINKS EXTERNAL:ftp:w3m %s:TRUE EXTERNAL:file:w3m %s:TRUE EXTERNAL:http:w3m %s:TRUE EXTERNAL:http:wget %s:TRUE EXTERNAL:http:wget -r %s:TRUE EXTERNAL:ftp:x-www-browser %s:TRUE EXTERNAL:file:x-www-browser %s:TRUE EXTERNAL:http:x-www-browser %s:TRUE INCLUDE:/etc/lynx-cur/local.cfg INCLUDE:~/.lynx/colors:COLOR INCLUDE:~/.lynx/keymap:KEYMAP INCLUDE:~/.lynx/viewers:VIEWER INCLUDE:~/.lynx/external:EXTERNAL Complete file (with comments) can be found [here](https://clbin.com/hxB4N)
ychaouche (1033 rep)
Jan 24, 2023, 11:21 AM • Last activity: Jun 30, 2025, 11:05 AM
2 votes
1 answers
81 views
How to check consistency of a generated web site using recursive HTML parsing
I have a FOSS project whose web site is generated by `asciidoc` and some custom scripts as an horde (thousands) of static files locally in the source files' repo, copied into another workspace and uploaded to github.io style repository, and eventually is rendered as an HTTP server for browsers aroun...
I have a FOSS project whose web site is generated by asciidoc and some custom scripts as an horde (thousands) of static files locally in the source files' repo, copied into another workspace and uploaded to github.io style repository, and eventually is rendered as an HTTP server for browsers around the world to see. Users occasionally report that some of the links between site pages end up broken (lead nowhere). The website build platform is generally POSIX-ish, although most often the agent doing the regular work is a Debian/Linux one. *Maybe* the platform differences cause the "page outages"; maybe this bug is platform-independent. I had a thought about crafting a check for the two local directories as well as the resulting site to crawl all relative links (and/or absolute ones starting with its domain name(s)), and report any broken pages so I could focus on finding why they fail and/or avoiding publication of "bad" iterations - same as with compilers, debuggers and warnings elsewhere. The general train of thought is about using some wget spider mode, though any other command-line tool (curl, lynx...), python script, shell with sed, etc. would do as well. Surely this particular wheel has been invented too many times for me to even think about making my own? A quick and cursory googling session while on commute did not come up with any good fit however. So, suggestions are welcome :)
Jim Klimov (131 rep)
May 7, 2024, 07:04 AM • Last activity: Jan 12, 2025, 09:01 AM
0 votes
1 answers
248 views
How Can I Change The Backgound Color in Lynx From `lynx.cfg`?
I am using [this script](https://unix.stackexchange.com/a/291089/553864), from another stack extange post. It allows me to force Lynx to use the proper terminal colors. The issue is that the backgound color is incorrect, and it is reading the 7th terminal color instead of the actual terminal backgro...
I am using [this script](https://unix.stackexchange.com/a/291089/553864) , from another stack extange post. It allows me to force Lynx to use the proper terminal colors. The issue is that the backgound color is incorrect, and it is reading the 7th terminal color instead of the actual terminal background. How would I override the background color (including the color behind selections that are intended to be the background color)? For this to work it would have to be done in the lynx.cfg because the lynx.lss is blank. Here is the current script:
#!/bin/sh
# invoke lynx built with color-style, overriding the color options to use the
# non-color-style scheme -TD

my_cfg=${TMPDIR:-/tmp}/lynxcfg$$
my_lss=${TMPDIR:-/tmp}/lynxlss$$
trap "rm -f $my_lss $my_cfg" 0 1 2 5 15

echo >$my_lss

rm -f "$my_cfg"
echo "DEFAULT_COLORS:off" >>$my_cfg
if test -n "$LYNX_CFG" ; then
        echo "include:$LYNX_CFG" >>$my_cfg
fi
echo "COLOR_STYLE:" >>$my_cfg
echo "NESTED_TABLES:off" >>$my_cfg

LYNX_CFG=$my_cfg
export LYNX_CFG
LYNX_LSS=$my_lss
export LYNX_LSS

${LYNX_PROG-lynx} "$@"
VehementHam (3 rep)
Mar 6, 2024, 04:37 AM • Last activity: Mar 6, 2024, 09:08 AM
1 votes
3 answers
5912 views
Turn off cookie prompts in Lynx
How can I turn off cookie prompts and disallow cookies in the Lynx browser? Here is my `.lynxrc:` ```none ACCEPT_ALL_COOKIES:FALSE SET_COOKIES:FALSE ```
How can I turn off cookie prompts and disallow cookies in the Lynx browser? Here is my .lynxrc:
ACCEPT_ALL_COOKIES:FALSE
SET_COOKIES:FALSE
Dan (203 rep)
Jul 26, 2020, 02:36 AM • Last activity: Feb 6, 2024, 03:18 PM
0 votes
2 answers
107 views
lynx - change Line Edit Style / lineedit_mode
#### What I want to know: What is the name of the variable name in `/etc/lynx/lynx.cfg` with the option `Line Edit Style`? I am trying to set it to `Bash-like Bindings`, but I can't find any documentation on that. --- #### What I have tried: I know I can set the `Line Edit Style` via the `options me...
#### What I want to know: What is the name of the variable name in /etc/lynx/lynx.cfg with the option Line Edit Style? I am trying to set it to Bash-like Bindings, but I can't find any documentation on that. --- #### What I have tried: I know I can set the Line Edit Style via the options menu by pressing o. And the [documentation](https://lynx.invisible-island.net/lynx_help/keystrokes/bashlike_edit_help.html) mentions an option called lineedit_mode, but couldn't find anything further on that. Why is lynx so poorly documented? :(
Bog (1134 rep)
Oct 24, 2023, 04:27 PM • Last activity: Oct 25, 2023, 11:47 PM
0 votes
3 answers
1275 views
How to open several local (HTML) documents in lynx?
I was planning to use `lynx` for reading all local HTML files in a folder: lynx ~/Documents/webpages/* I don't know how to move beyond the first document. Quitting with `qq` exits the program and returns to the shell. Specifying the directory (`lynx ~/Documents/webpages/`) requires manually selectin...
I was planning to use lynx for reading all local HTML files in a folder: lynx ~/Documents/webpages/* I don't know how to move beyond the first document. Quitting with qq exits the program and returns to the shell. Specifying the directory (lynx ~/Documents/webpages/) requires manually selecting each entry (but lynx at least remembers the last one, when going back). **note**: lynx doesn't support tabs and there's no need to open the pages at once.
user598527 (735 rep)
May 21, 2022, 03:59 PM • Last activity: Aug 11, 2023, 01:19 PM
0 votes
0 answers
197 views
How to sequentially open URLs in lynx?
from `$ man lynx` page: > If more than one local file or remote URL is listed on the command line, Lynx will open only the last interactively. All of the names (local files and remote URLs) are added to the G)oto history. Since I prefer not having to manually move between documents (`G)oto history`)...
from $ man lynx page: > If more than one local file or remote URL is listed on the command line, Lynx will open only the last interactively. All of the names (local files and remote URLs) are added to the G)oto history. Since I prefer not having to manually move between documents (G)oto history), I'm currently using xargs to send multiple URLs (in a text file, one per line) in order to sequentially open all in lynx: xargs --max-lines=1 lynx Q twice to proceed to the next webpage. Directly opening several URLs opens the last one interactively, as mentioned on the man page: lynx https://example.com/ https://example.net/ https://example.org/ https://example.edu/ --- related questions: https://unix.stackexchange.com/questions/17659/opening-multiple-urls-from-a-text-file-as-different-tabs-in-firefox-chrome https://unix.stackexchange.com/questions/703399/how-to-open-several-local-html-documents-in-lynx/
user598527 (735 rep)
Aug 11, 2023, 12:57 PM
0 votes
1 answers
194 views
What are Lynx CGI scripts?
In `lynx.cfg`, it contains: ``` .h1 CGI scripts # These settings control Lynx's ability to execute various types of scripts. .h2 LOCAL_EXECUTION_LINKS_ALWAYS_ON .h2 LOCAL_EXECUTION_LINKS_ON_BUT_NOT_REMOTE # Local execution links and scripts are by default completely disabled, # unless a change is ma...
In lynx.cfg, it contains:
.h1 CGI scripts
# These settings control Lynx's ability to execute various types of scripts.

.h2 LOCAL_EXECUTION_LINKS_ALWAYS_ON
.h2 LOCAL_EXECUTION_LINKS_ON_BUT_NOT_REMOTE
# Local execution links and scripts are by default completely disabled,
# unless a change is made to the userdefs.h file to enable them or
# the configure script is used with the corresponding options
# (-enable-exec-links and -enable-exec-scripts).
# See the Lynx source code distribution and the userdefs.h
# file for more detail on enabling execution links and scripts.
#
# If you have enabled execution links or scripts the following
# two variables control Lynx's action when an execution link
# or script is encountered.
#
# If LOCAL_EXECUTION_LINKS_ALWAYS_ON is set to TRUE any execution
# link or script will be executed no matter where it came from.
# This is EXTREMELY dangerous.  Since Lynx can access files from
# anywhere in the world, you may encounter links or scripts that
# will cause damage or compromise the security of your system.
#
# If LOCAL_EXECUTION_LINKS_ON_BUT_NOT_REMOTE is set to TRUE only
# links or scripts that reside on the local machine and are
# referenced with a URL beginning with "file://localhost/" or meet
# TRUSTED_EXEC or ALWAYS_TRUSTED_EXEC rules (see below) will be
# executed.  This is much less dangerous than enabling all execution
# links, but can still be dangerous.
#
#LOCAL_EXECUTION_LINKS_ALWAYS_ON:FALSE
#LOCAL_EXECUTION_LINKS_ON_BUT_NOT_REMOTE:FALSE

.h2 TRUSTED_EXEC
# If LOCAL_EXECUTION_LINK_ON_BUT_NOT_REMOTE is TRUE, and no TRUSTED_EXEC
# rule is defined, it defaults to "file://localhost/" and any lynxexec
# or lynxprog command will be permitted if it was referenced from within
# a document whose URL begins with that string.  If you wish to restrict the
# referencing URLs further, you can extend the string to include a trusted
# path.  You also can specify a trusted directory for http URLs, which will
# then be treated as if they were local rather than remote.  For example:
#
#	TRUSTED_EXEC:file://localhost/trusted/
#	TRUSTED_EXEC:http://www.wfbr.edu/trusted/ 
#
# If you also wish to restrict the commands which can be executed, create
# a series of rules with the path (Unix) or command name (VMS) following
# the string, separated by a tab.  For example:
#
# Unix:
# ====
#	TRUSTED_EXEC:file://localhost//bin/cp
#	TRUSTED_EXEC:file://localhost//bin/rm
# VMS:
# ===
#	TRUSTED_EXEC:file://localhost/copy
#	TRUSTED_EXEC:file://localhost/delete
#
# Once you specify a TRUSTED_EXEC referencing string, the default is
# replaced, and all the referencing strings you desire must be specified
# as a series.  Similarly, if you associate a command with the referencing
# string, you must specify all of the allowable commands as a series of
# TRUSTED_EXEC rules for that string.  If you specify ALWAYS_TRUSTED_EXEC
# rules below, you need not repeat them as TRUSTED_EXEC rules.
#
# If EXEC_LINKS and JUMPFILE have been defined, any lynxexec or lynxprog
# URLs in that file will be permitted, regardless of other settings.  If
# you also set LOCAL_EXECUTION_LINKS_ON_BUT_NOT_REMOTE:TRUE and a single
# TRUSTED_EXEC rule that will always fail (e.g., "none"), then *ONLY* the
# lynxexec or lynxprog URLs in JUMPFILE (and any ALWAYS_TRUSTED_EXEC rules,
# see below) will be allowed.  Note, however, that if Lynx was compiled with
# CAN_ANONYMOUS_JUMP set to FALSE (default is TRUE), or -restrictions=jump
# is included with the -anonymous switch at run time, then users of an
# anonymous account will not be able to access the jumps file or enter
# 'j'ump shortcuts, and this selective execution feature will be overridden
# as well (i.e., they will only be able to access lynxexec or lynxprog
# URLs which meet any ALWAYS_TRUSTED_EXEC rules).
#
#TRUSTED_EXEC:none

.h2 ALWAYS_TRUSTED_EXEC
# If EXEC_LINKS was defined, any lynxexec or lynxprog URL can be made
# always enabled by an ALWAYS_TRUSTED_EXEC rule for it.  This is useful for
# anonymous accounts in which you have disabled execution links generally,
# and may also have disabled jumps file links, but still want to allow
# execution of particular utility scripts or programs.  The format is
# like that for TRUSTED_EXEC.  For example:
#
# Unix:
# ====
#   ALWAYS_TRUSTED_EXEC:file://localhost//usr/local/kinetic/bin/usertime
#   ALWAYS_TRUSTED_EXEC:http://www.more.net//usr/local/kinetic/bin/who.sh 
# VMS:
# ===
#   ALWAYS_TRUSTED_EXEC:file://localhost/usertime
#   ALWAYS_TRUSTED_EXEC:http://www.more.net/show  users
#
# The default ALWAYS_TRUSTED_EXEC rule is "none".
#
#ALWAYS_TRUSTED_EXEC:none

.h2 TRUSTED_LYNXCGI
# Unix:
# =====
# TRUSTED_LYNXCGI rules define the permitted sources and/or paths for
# lynxcgi links (if LYNXCGI_LINKS is defined in userdefs.h).  The format
# is the same as for TRUSTED_EXEC rules (see above).  Example rules:
#
#	TRUSTED_LYNXCGI:file://localhost/
#	TRUSTED_LYNXCGI:/usr/local/etc/httpd/cgi-bin/
#	TRUSTED_LYNXCGI:file://localhost//usr/local/www/cgi-bin/
#
# VMS:
# ====
# Do not define this.
#
# The default TRUSTED_LYNXCGI rule is "none".
#
TRUSTED_LYNXCGI:none

.h2 LYNXCGI_ENVIRONMENT
# Unix:
# =====
# LYNXCGI_ENVIRONMENT adds the current value of the specified
# environment variable to the list of environment variables passed on to the
# lynxcgi script.  Useful variables are HOME, USER, etc...  If proxies
# are in use, and the script invokes another copy of lynx (or a program like
# wget) in a subsidiary role, it can be useful to add http_proxy and other
# *_proxy variables.
#
# VMS:
# ====
# Do not define this.
#
#LYNXCGI_ENVIRONMENT:

.h2 LYNXCGI_DOCUMENT_ROOT
# Unix:
# =====
# LYNXCGI_DOCUMENT_ROOT is the value of DOCUMENT_ROOT that will be passed
# to lynxcgi scripts.  If set and the URL has PATH_INFO data, then
# PATH_TRANSLATED will also be generated.  Examples:
#	LYNXCGI_DOCUMENT_ROOT:/usr/local/etc/httpd/htdocs
#	LYNXCGI_DOCUMENT_ROOT:/data/htdocs/
#
# VMS:
# ====
# Do not define this.
#
#LYNXCGI_DOCUMENT_ROOT:
What type of script is Lynx referring to in this context? It doesn't appear to be JavaScript (and several sources indicate that Lynx does not support it). Aren't CGI scripts primarily executed on the server side? Why is a web browser like Lynx involved with them?
Ignis Incendio (153 rep)
Jul 4, 2023, 08:31 AM • Last activity: Jul 4, 2023, 10:17 AM
0 votes
1 answers
137 views
Does Lynx have a view similar to Browser "Reader view"
Is there a Reader view for [Lynx][2]? to explain trying to find answers to the following questions: - is there a Reader view (similar to [Firefox: Reader View][3])? - is it possible to create add-in or extension? - is it possible to modify the default view? - is there a 'issue list' where i could re...
Is there a Reader view for Lynx ? to explain trying to find answers to the following questions: - is there a Reader view (similar to Firefox: Reader View )? - is it possible to create add-in or extension? - is it possible to modify the default view? - is there a 'issue list' where i could request such a feature? (I am aware of mailing group Lynx-dev ) The default Lynx layout includes everything on the web page, This can be frustrating as there are often large menus and other content not related to the main body content. I absolutely love Lynx , its simplicity and speed make browsing for most sites preferable. I still use Firefox with JS sites. My experienced is mostly with Java and scripting languages and haven't coded using C flavors, hence doing it myself isn't an option.
dank8 (105 rep)
May 17, 2023, 02:31 AM • Last activity: May 17, 2023, 01:42 PM
3 votes
1 answers
3065 views
How to make Lynx COLUMN width infinite?
-width=NUMBER number of columns for formatting of dumps, default is 80. **My question:** "-width=999999" is not so good.. "-width=0" isn't working. How can I give the "-width" an infinite number? UPDATE: I am just trying to download a txt file (that has longer lines) with: lynx --dump foo.com/bar.tx...
-width=NUMBER number of columns for formatting of dumps, default is 80. **My question:** "-width=999999" is not so good.. "-width=0" isn't working. How can I give the "-width" an infinite number? UPDATE: I am just trying to download a txt file (that has longer lines) with: lynx --dump foo.com/bar.txt
gasko peter (5634 rep)
Jan 24, 2014, 08:43 PM • Last activity: Apr 3, 2023, 12:27 AM
17 votes
1 answers
8856 views
How to pipe html into lynx?
I am testing some ajax call from the console. I like get rid of the meta-information noise that is html markup and just read the content, hence I like to pipe it into a terminal browser, e.g. lynx. Yet: curl www.google.de | lynx just opens a new instance of lynx. I don't want to: curl www.google.de...
I am testing some ajax call from the console. I like get rid of the meta-information noise that is html markup and just read the content, hence I like to pipe it into a terminal browser, e.g. lynx. Yet: curl www.google.de | lynx just opens a new instance of lynx. I don't want to: curl www.google.de > someFile.html && lynx someFile.html
k0pernikus (16501 rep)
Mar 24, 2016, 01:56 PM • Last activity: Feb 12, 2023, 06:23 PM
3 votes
0 answers
94 views
Lynx browser access and braille
[![text based web browser][1]][1] Hello fellow Stack Exchange users can you please help? Does anyone know if there is an ability to adapt webpages for the braille alphabet within the Lynx browser? This seems like the perfect web browser to have such a tool because it is already text based to start w...
text based web browser Hello fellow Stack Exchange users can you please help? Does anyone know if there is an ability to adapt webpages for the braille alphabet within the Lynx browser? This seems like the perfect web browser to have such a tool because it is already text based to start with. Any ideas for web use with people that have visual disabilities to plug in a braille pad and have this work?
Jonathan Lee (63 rep)
Jan 25, 2023, 02:54 AM • Last activity: Jan 25, 2023, 08:41 AM
0 votes
0 answers
51 views
DNS lookup from lynx failing to ncbi eutils using ISP DNS but ok with 8.8.8.8
I have several utilities that use the [NCBI Eutils server ][1] via wget or lynx. Recently, lynx started failing with a DNS error, Looking up eutils.ncbi.nlm.nih.gov Making HTTPS connection to eutils.ncbi.nlm.nih.gov Alert!: Unable to connect to remote host. lynx: Can't access startfile https://eutil...
I have several utilities that use the NCBI Eutils server via wget or lynx. Recently, lynx started failing with a DNS error, Looking up eutils.ncbi.nlm.nih.gov Making HTTPS connection to eutils.ncbi.nlm.nih.gov Alert!: Unable to connect to remote host. lynx: Can't access startfile https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?tool=biotechmarchywka&email=marchywka@hotmail.com&db=pmc&retmax=1&usehistory=y&term=dog+hypothyroidim Modification of /etc/resolv.conf fixes the problem. cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 8.8.8.8 nameserver 127.0.1.1 search gha.chartermi.net lynx info is, lynx --version Lynx Version 2.8.9dev.8 (21 Dec 2015) libwww-FM 2.14, SSL-MM 1.4.1, GNUTLS 3.4.9, ncurses 6.0.20160213(wide) Built on linux-gnu. Copyrights held by the Lynx Developers Group, the University of Kansas, CERN, and other contributors. Distributed under the GNU General Public License (Version 2). See http://lynx.invisible-island.net/ and the online help for more information. I'm not sure it is unique to lynx but that is the only app complaining right now AFAICT. My question is if this is a known problem and if an updated version may be a solution. Thanks.
mike marchywka (21 rep)
Jan 9, 2023, 05:01 PM • Last activity: Jan 9, 2023, 10:44 PM
12 votes
3 answers
22501 views
Console browser for Centos 8
What console browser work under Centos 8? I tried to install them all but sudo yum -y install lynx w3m links elinks links2 netrik No match for argument: lynx No match for argument: w3m No match for argument: links No match for argument: elinks No match for argument: links2 No match for argument: net...
What console browser work under Centos 8? I tried to install them all but sudo yum -y install lynx w3m links elinks links2 netrik No match for argument: lynx No match for argument: w3m No match for argument: links No match for argument: elinks No match for argument: links2 No match for argument: netrik Error: Unable to find a match
Smenov (147 rep)
Nov 9, 2019, 04:14 PM • Last activity: Dec 9, 2022, 03:39 PM
0 votes
1 answers
727 views
Lynx cookies not being saved
If I'm not wrong, Lynx will save the cookies from a session on a file, the default is `~/.lynx_cookies`. But, when I accept cookies in Lynx session with `Always` or `Yes` when prompted, the cookies doesn't saved! Lynx man page says: > -cookie_file=FILENAME specifies a file to use to read cookies. If...
If I'm not wrong, Lynx will save the cookies from a session on a file, the default is ~/.lynx_cookies. But, when I accept cookies in Lynx session with Always or Yes when prompted, the cookies doesn't saved! Lynx man page says: > -cookie_file=FILENAME specifies a file to use to read cookies. If none is specified, the default value is ~/.lynx_cookies for most systems, but ~/cookies for MS-DOS. -cookie_save_file=FILENAME specifies a file to use to store cookies. If none is specified, the value given by -cookie_file is used. But I don't have such file on my home directory. What should I do to enable cookies on Lynx? EDIT: Thanks @stoney! It works! What I have done:
$ cp /etc/lynx.cfg $HOME
$ export LYNX_CFG=$HOME/lynx.cfg
Add/edit this line on $HOME/lynx.cfg
SET_COOKIES:TRUE
PERSISTENT_COOKIES:TRUE
COOKIE_FILE:~/.lynx_cookies
COOKIE_SAVE_FILE:~/.lynx_cookies
Restart your terminal (or just source your .bashrc). Then, restart lynx. Done!
manungsa (137 rep)
Nov 14, 2022, 10:42 AM • Last activity: Nov 14, 2022, 02:07 PM
29 votes
2 answers
17400 views
Open HTML attachments externally in Mutt
I recently managed to set up my mailcap so that [Mutt](https://en.wikipedia.org/wiki/Mutt_(email_client)) can show HTML e-mails in the message window: # ~/.mailcap text/html; lynx -dump '%s' | more; nametemplate=%s.html; copiousoutput; which is automated by: # ~/.muttrc auto_view text/html Although...
I recently managed to set up my mailcap so that [Mutt](https://en.wikipedia.org/wiki/Mutt_(email_client)) can show HTML e-mails in the message window: # ~/.mailcap text/html; lynx -dump '%s' | more; nametemplate=%s.html; copiousoutput; which is automated by: # ~/.muttrc auto_view text/html Although I think [Lynx](https://en.wikipedia.org/wiki/Lynx_(web_browser)) does a decent job on converting the HTML to text, sometimes this doesn't cut it and I would like to be able to open the HTML attachment in my web browser [Luakit](https://luakit.github.io/) . Is there a way to transparently do this? A good workflow for me would look like: 1. open mail (Lynx converts it) 2. see that it is too complicated for Lynx 3. press v 4. navigate to HTML attachment 5. press Enter to open the mail in Luakit.
romeovs (1720 rep)
Jul 10, 2012, 09:34 AM • Last activity: Sep 19, 2022, 08:00 PM
5 votes
2 answers
3593 views
Change default web browser to lynx from terminal
I'm on Linux Mint Olivia. I just installed Lynx. How do I set Lynx as my browser, so when I open links from the terminal, they open in that terminal with Lynx?
I'm on Linux Mint Olivia. I just installed Lynx. How do I set Lynx as my browser, so when I open links from the terminal, they open in that terminal with Lynx?
user193661 (153 rep)
Jan 23, 2016, 04:50 AM • Last activity: Aug 24, 2022, 06:00 AM
2 votes
1 answers
634 views
How to get around 403 errors on websites with text-based browsers?
The issue seems to stem from a misconfigured web server and has affected some domains I've came across in `lynx` and `w3m`, but `links` can access at least in some instances. Can this be resolved on the user-side? 403 Forbidden ------------------------------------------------------------------------...
The issue seems to stem from a misconfigured web server and has affected some domains I've came across in lynx and w3m, but links can access at least in some instances. Can this be resolved on the user-side? 403 Forbidden ------------------------------------------------------------------------------------- nginx
user598527 (735 rep)
May 19, 2022, 08:26 AM • Last activity: May 19, 2022, 12:30 PM
0 votes
1 answers
260 views
Is it possible to multiple login on the same server with wget?
The aim is to enter different accounts at the same time. With **lynx** this is possible using files for each account with the *-cfg=~/file* argument. **wget** has a *.wgetrc* file that can be configured with: cookies = on load_cookies = ~/cookies.txt save_cookies = ~/cookies.txt But unlike **lynx**...
The aim is to enter different accounts at the same time. With **lynx** this is possible using files for each account with the *-cfg=~/file* argument. **wget** has a *.wgetrc* file that can be configured with: cookies = on load_cookies = ~/cookies.txt save_cookies = ~/cookies.txt But unlike **lynx** you don't have the option to invoke it with settings for multiple profiles, it simply loads when **wget** is started with a single cookie for the same server. I use the script below that should create and maintain cookies without the need to have the *.wgetrc* file, but for some reason that I don't know **is only successful with *.wgetrc*.** #!/bin/bash LOGIN='login=Account&pass=12345678' wget -qO- --save-cookies cookies.txt \ --keep-session-cookies \ --body-data="$LOGIN" \ --method=POST \ http://example.net/?sign_in=1 # after login wget -qO- --load-cookies cookies.txt \ http://example.net/user Based on this information I ask; _Is **wget** capable of logging in from multiple accounts on the same server? If yes, how? ***Lynx** is perfectly capable of doing this, but I didn't want to have to use it.* enter image description here
Ueliton Alves Dos Santos (13 rep)
Apr 23, 2022, 06:30 AM • Last activity: Apr 23, 2022, 05:09 PM
Showing page 1 of 20 total questions