[773c358] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[773c358] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[ac1de6f] | 7 | <!ENTITY lynx-download-http "https://invisible-mirror.net/archives/lynx/tarballs/lynx&lynx-version;.tar.bz2">
|
---|
[783108e] | 8 | <!ENTITY lynx-download-ftp " ">
|
---|
[ac1de6f] | 9 | <!ENTITY lynx-md5sum "44316f1b8a857b59099927edc26bef79">
|
---|
[087af8c0] | 10 | <!ENTITY lynx-size "2.5 MB">
|
---|
| 11 | <!ENTITY lynx-buildsize "31 MB">
|
---|
| 12 | <!ENTITY lynx-time "0.3 SBU">
|
---|
[773c358] | 13 | ]>
|
---|
| 14 |
|
---|
[377584f] | 15 | <sect1 id="lynx" xreflabel="Lynx-&lynx-version;">
|
---|
[f9a9bb3e] | 16 | <?dbhtml filename="lynx.html"?>
|
---|
[50b8d8b] | 17 |
|
---|
[f9a9bb3e] | 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
[50b8d8b] | 22 |
|
---|
[f9a9bb3e] | 23 | <title>Lynx-&lynx-version;</title>
|
---|
[50b8d8b] | 24 |
|
---|
[f9a9bb3e] | 25 | <indexterm zone="lynx">
|
---|
| 26 | <primary sortas="a-Lynx">Lynx</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Lynx</title>
|
---|
[50b8d8b] | 31 |
|
---|
[7c56ece] | 32 | <para>
|
---|
| 33 | <application>Lynx</application> is a text based web browser.
|
---|
| 34 | </para>
|
---|
[50b8d8b] | 35 |
|
---|
[66d551c] | 36 | &lfs101_checked;
|
---|
[bc40324] | 37 |
|
---|
[f9a9bb3e] | 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
[740ef14] | 40 | <listitem>
|
---|
[7c56ece] | 41 | <para>
|
---|
| 42 | Download (HTTP): <ulink url="&lynx-download-http;"/>
|
---|
| 43 | </para>
|
---|
[740ef14] | 44 | </listitem>
|
---|
[f9a9bb3e] | 45 | <listitem>
|
---|
[7c56ece] | 46 | <para>
|
---|
| 47 | Download (FTP): <ulink url="&lynx-download-ftp;"/>
|
---|
| 48 | </para>
|
---|
[f9a9bb3e] | 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
[7c56ece] | 51 | <para>
|
---|
| 52 | Download MD5 sum: &lynx-md5sum;
|
---|
| 53 | </para>
|
---|
[f9a9bb3e] | 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
[7c56ece] | 56 | <para>
|
---|
| 57 | Download size: &lynx-size;
|
---|
| 58 | </para>
|
---|
[f9a9bb3e] | 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
[7c56ece] | 61 | <para>
|
---|
| 62 | Estimated disk space required: &lynx-buildsize;
|
---|
| 63 | </para>
|
---|
[f9a9bb3e] | 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
[7c56ece] | 66 | <para>
|
---|
| 67 | Estimated build time: &lynx-time;
|
---|
| 68 | </para>
|
---|
[f9a9bb3e] | 69 | </listitem>
|
---|
| 70 | </itemizedlist>
|
---|
[ac1de6f] | 71 | <!--
|
---|
[a96719e] | 72 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 73 | <itemizedlist spacing="compact">
|
---|
| 74 | <listitem>
|
---|
| 75 | <para>
|
---|
[f22fa770] | 76 | Patch to build with openssl-1.1:
|
---|
[a96719e] | 77 | <ulink url="&patch-root;/lynx-&lynx-version;-openssl_1.1.0-1.patch"/>
|
---|
| 78 | </para>
|
---|
| 79 | </listitem>
|
---|
[5cd05010] | 80 | <listitem>
|
---|
| 81 | <para>
|
---|
| 82 | Patch to build with ncurses-6.1:
|
---|
| 83 | <ulink url="&patch-root;/lynx-&lynx-version;-ncurses_6.1-1.patch"/>
|
---|
| 84 | </para>
|
---|
| 85 | </listitem>
|
---|
[a96719e] | 86 | </itemizedlist>
|
---|
[ac1de6f] | 87 | -->
|
---|
[f9a9bb3e] | 88 | <bridgehead renderas="sect3">Lynx Dependencies</bridgehead>
|
---|
[94b42903] | 89 | <!--
|
---|
[f22fa770] | 90 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 91 | <para role="recommended">
|
---|
| 92 | <xref linkend="openssl"/>
|
---|
| 93 | </para>
|
---|
[94b42903] | 94 | -->
|
---|
[f9a9bb3e] | 95 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[f42801c] | 96 | <para role="optional">
|
---|
[f22fa770] | 97 | <xref linkend="gnutls"/> (experimental, to replace openssl),
|
---|
[f42801c] | 98 | <xref linkend="zip"/>,
|
---|
| 99 | <xref linkend="unzip"/>,
|
---|
[7c56ece] | 100 | an <xref linkend="server-mail"/> (that provides a
|
---|
| 101 | <command>sendmail</command> command), and
|
---|
[3ec1600] | 102 | <xref linkend='sharutils'/> (for the <command>uudecode</command> program)
|
---|
[f42801c] | 103 | </para>
|
---|
[50b8d8b] | 104 |
|
---|
[c22b9f4] | 105 | <!-- Attempt to utilize S-Lang (- -with-screen=slang) leads to a build failure -->
|
---|
| 106 |
|
---|
[061ec9d] | 107 | <para condition="html" role="usernotes">User Notes:
|
---|
[6c42d4e] | 108 | <ulink url="&blfs-wiki;/Lynx"/></para>
|
---|
[061ec9d] | 109 |
|
---|
[f9a9bb3e] | 110 | </sect2>
|
---|
[50b8d8b] | 111 |
|
---|
[f9a9bb3e] | 112 | <sect2 role="installation">
|
---|
| 113 | <title>Installation of Lynx</title>
|
---|
[ac1de6f] | 114 | <!--
|
---|
[a96719e] | 115 | <para>
|
---|
[f22fa770] | 116 | Apply a patch to build <application>Lynx</application> with openssl-1.1:
|
---|
[a96719e] | 117 | </para>
|
---|
| 118 |
|
---|
[a4a3fc9] | 119 | <screen><userinput>patch -p1 -i ../lynx-&lynx-version;-openssl_1.1.0-1.patch</userinput></screen>
|
---|
[f9a9bb3e] | 120 |
|
---|
[5cd05010] | 121 | <para>
|
---|
| 122 | Apply a patch to build <application>Lynx</application> with ncurses-6.1:
|
---|
| 123 | </para>
|
---|
| 124 |
|
---|
| 125 | <screen><userinput>patch -p1 -i ../lynx-&lynx-version;-ncurses_6.1-1.patch</userinput></screen>
|
---|
[ac1de6f] | 126 | -->
|
---|
[7c56ece] | 127 | <para>
|
---|
| 128 | Install <application>Lynx</application> by running the following
|
---|
| 129 | commands:
|
---|
| 130 | </para>
|
---|
[f9a9bb3e] | 131 |
|
---|
[ab2d4d1e] | 132 | <screen><userinput>./configure --prefix=/usr \
|
---|
[597caf43] | 133 | --sysconfdir=/etc/lynx \
|
---|
| 134 | --datadir=/usr/share/doc/lynx-&lynx-version; \
|
---|
[f42801c] | 135 | --with-zlib \
|
---|
| 136 | --with-bzlib \
|
---|
[f22fa770] | 137 | --with-ssl \
|
---|
[c22b9f4] | 138 | --with-screen=ncursesw \
|
---|
| 139 | --enable-locale-charset &&
|
---|
[f9a9bb3e] | 140 | make</userinput></screen>
|
---|
[50b8d8b] | 141 |
|
---|
[7c56ece] | 142 | <para>
|
---|
| 143 | This package does not come with a test suite.
|
---|
| 144 | </para>
|
---|
[d6f100c] | 145 |
|
---|
[7c56ece] | 146 | <para>
|
---|
| 147 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 148 | </para>
|
---|
[520d0fe] | 149 |
|
---|
[597caf43] | 150 | <screen role='root'><userinput>make install-full &&
|
---|
| 151 | chgrp -v -R root /usr/share/doc/lynx-&lynx-version;/lynx_doc</userinput></screen>
|
---|
[50b8d8b] | 152 |
|
---|
[f9a9bb3e] | 153 | </sect2>
|
---|
[50b8d8b] | 154 |
|
---|
[f9a9bb3e] | 155 | <sect2 role="commands">
|
---|
| 156 | <title>Command Explanations</title>
|
---|
[50b8d8b] | 157 |
|
---|
[7c56ece] | 158 | <para>
|
---|
| 159 | <parameter>--sysconfdir=/etc/lynx</parameter>: This parameter is
|
---|
| 160 | used so that the configuration files are located in
|
---|
| 161 | <filename class="directory">/etc/lynx</filename> instead of
|
---|
| 162 | <filename class="directory">/usr/etc</filename>.
|
---|
| 163 | </para>
|
---|
| 164 |
|
---|
| 165 | <para>
|
---|
| 166 | <parameter>--datadir=/usr/share/doc/lynx-&lynx-version;</parameter>:
|
---|
| 167 | This parameter is used so that the documentation files are installed into
|
---|
| 168 | <filename class="directory">/usr/share/doc/lynx-&lynx-version;</filename>
|
---|
| 169 | instead of
|
---|
| 170 | <filename class="directory">/usr/share/lynx_{doc,help}</filename>.
|
---|
| 171 | </para>
|
---|
| 172 |
|
---|
| 173 | <para>
|
---|
| 174 | <parameter>--with-zlib</parameter>: This enables support for
|
---|
| 175 | linking <filename class="libraryfile">libz</filename> into
|
---|
| 176 | <application>Lynx</application>.
|
---|
| 177 | </para>
|
---|
| 178 |
|
---|
| 179 | <para>
|
---|
| 180 | <parameter>--with-bzlib</parameter>: This enables support for
|
---|
| 181 | linking <filename class="libraryfile">libbz2</filename> into
|
---|
| 182 | <application>Lynx</application>.
|
---|
| 183 | </para>
|
---|
| 184 |
|
---|
| 185 | <para>
|
---|
| 186 | <parameter>--with-ssl</parameter>: This enables support for
|
---|
| 187 | linking SSL into <application>Lynx</application>.
|
---|
| 188 | </para>
|
---|
| 189 |
|
---|
| 190 | <para>
|
---|
| 191 | <parameter>--with-screen=ncursesw</parameter>: This switch enables
|
---|
| 192 | the use of advanced wide-character support present in the system
|
---|
| 193 | <application>NCurses</application> library. This is needed for
|
---|
| 194 | proper display of characters and line wrapping in multibyte locales.
|
---|
| 195 | </para>
|
---|
| 196 |
|
---|
| 197 | <para>
|
---|
| 198 | <parameter>--enable-locale-charset</parameter>: This switch allows
|
---|
| 199 | <application>Lynx</application> to deduce the proper character encoding
|
---|
| 200 | for terminal output from the current locale. A configuration step is
|
---|
| 201 | still needed (see below), but unlike the situation without this switch,
|
---|
| 202 | the configuration step becomes the same for all users (without the
|
---|
| 203 | switch one must specify the display character set explicitly). This is
|
---|
| 204 | important for environments such as a LiveCD, where the amount of
|
---|
| 205 | system-specific configuration steps has to be reduced to the minimum.
|
---|
| 206 | </para>
|
---|
| 207 |
|
---|
[abde9c1c] | 208 | <para>
|
---|
| 209 | <option>--enable-ipv6</option>: This switch allows
|
---|
| 210 | <application>Lynx</application> to use IPv6, along with IPv4. Use
|
---|
| 211 | it if your ISP provides an IPv6 configuration.
|
---|
| 212 | </para>
|
---|
| 213 |
|
---|
[7c56ece] | 214 | <para>
|
---|
| 215 | <option>--enable-nls</option>: This switch allows
|
---|
| 216 | <application>Lynx</application> to print translated messages (such as
|
---|
| 217 | questions about cookies and SSL certificates).
|
---|
| 218 | </para>
|
---|
| 219 |
|
---|
| 220 | <para>
|
---|
| 221 | <option>--with-gnutls</option>: This enables experimental support
|
---|
| 222 | for linking <application>GnuTLS</application> into
|
---|
| 223 | <application>Lynx</application>. Remove the
|
---|
| 224 | <parameter>--with-ssl</parameter> switch if you want to use gnutls.
|
---|
| 225 | </para>
|
---|
| 226 |
|
---|
| 227 | <para>
|
---|
| 228 | <command>make install-full</command>: In addition to the standard
|
---|
| 229 | installation, this target installs the documentation and help files.
|
---|
| 230 | </para>
|
---|
| 231 |
|
---|
| 232 | <para>
|
---|
| 233 | <command>
|
---|
| 234 | chgrp -v -R root /usr/share/doc/lynx-&lynx-version;/lynx_doc
|
---|
| 235 | </command>:
|
---|
| 236 | This command corrects the improper group ownership of installed
|
---|
| 237 | documentation files.
|
---|
| 238 | </para>
|
---|
[67ca8f6] | 239 |
|
---|
[597caf43] | 240 | <!-- This was fixed in the 2.8.6 release, though it still could
|
---|
| 241 | be considered an issue by some
|
---|
[67ca8f6] | 242 | <note>
|
---|
[7c56ece] | 243 | <para>
|
---|
| 244 | There has been a security vulnerability identified if you enable
|
---|
| 245 | support for CGI links by passing the <option>-enable-cgi-links</option>
|
---|
| 246 | parameter to <command>configure</command>. See <ulink
|
---|
| 247 | url="http://seclists.org/lists/vulnwatch/2005/Oct-Dec/0041.html"/> for
|
---|
| 248 | details.
|
---|
| 249 | </para>
|
---|
[67ca8f6] | 250 | </note>
|
---|
[597caf43] | 251 | -->
|
---|
[bccbdaea] | 252 |
|
---|
[f9a9bb3e] | 253 | </sect2>
|
---|
[50b8d8b] | 254 |
|
---|
[f9a9bb3e] | 255 | <sect2 role="configuration">
|
---|
| 256 | <title>Configuring Lynx</title>
|
---|
| 257 |
|
---|
| 258 | <sect3 id="lynx-config">
|
---|
| 259 | <title>Config Files</title>
|
---|
[50b8d8b] | 260 |
|
---|
[7c56ece] | 261 | <para>
|
---|
| 262 | <filename>/etc/lynx/lynx.cfg</filename>
|
---|
| 263 | </para>
|
---|
[50b8d8b] | 264 |
|
---|
[f9a9bb3e] | 265 | <indexterm zone="lynx lynx-config">
|
---|
[597caf43] | 266 | <primary sortas="e-etc-lynx-lynx.cfg">/etc/lynx/lynx.cfg</primary>
|
---|
[f9a9bb3e] | 267 | </indexterm>
|
---|
[50b8d8b] | 268 |
|
---|
[f9a9bb3e] | 269 | </sect3>
|
---|
[50b8d8b] | 270 |
|
---|
[f9a9bb3e] | 271 | <sect3>
|
---|
| 272 | <title>Configuration Information</title>
|
---|
[50b8d8b] | 273 |
|
---|
[7c56ece] | 274 | <para>
|
---|
| 275 | The proper way to get the display character set is to examine the
|
---|
| 276 | current locale. However, <application>Lynx</application> does not do
|
---|
| 277 | this by default. As the <systemitem class="username">root</systemitem>
|
---|
| 278 | user, change this setting:
|
---|
| 279 | </para>
|
---|
[c22b9f4] | 280 |
|
---|
[0fe2f5b] | 281 | <screen role="root"><userinput>sed -e '/#LOCALE/ a LOCALE_CHARSET:TRUE' \
|
---|
| 282 | -i /etc/lynx/lynx.cfg</userinput></screen>
|
---|
[c22b9f4] | 283 |
|
---|
[7c56ece] | 284 | <para>
|
---|
| 285 | The built-in editor in <application>Lynx</application> <xref
|
---|
| 286 | linkend="locale-wrong-multibyte-characters"/>. This issue manifests
|
---|
| 287 | itself in multibyte locales, e.g., as the Backspace key not erasing
|
---|
| 288 | non-ASCII characters properly, and as incorrect data being sent to the
|
---|
| 289 | network when one edits the contents of text areas. The only solution
|
---|
| 290 | to this problem is to configure <application>Lynx</application> to
|
---|
| 291 | use an external editor (bound to the <quote>Ctrl+X e</quote> key
|
---|
| 292 | combination by default). Still as the
|
---|
| 293 | <systemitem class="username">root</systemitem> user:
|
---|
| 294 | </para>
|
---|
| 295 |
|
---|
[0fe2f5b] | 296 | <screen role="root"><userinput>sed -e '/#DEFAULT_ED/ a DEFAULT_EDITOR:vi' \
|
---|
| 297 | -i /etc/lynx/lynx.cfg</userinput></screen>
|
---|
[d37f788] | 298 |
|
---|
[7c56ece] | 299 | <para>
|
---|
| 300 | <application>Lynx</application> handles the following values of
|
---|
| 301 | the DEFAULT_EDITOR option specially by adding cursor-positioning
|
---|
| 302 | arguments: <quote>emacs</quote>, <quote>jed</quote>,
|
---|
| 303 | <quote>jmacs</quote>, <quote>joe</quote>, <quote>jove</quote>,
|
---|
| 304 | <quote>jpico</quote>, <quote>jstar</quote>, <quote>nano</quote>,
|
---|
| 305 | <quote>pico</quote>, <quote>rjoe</quote>, <quote>vi</quote> (but not
|
---|
| 306 | <quote>vim</quote>: in order to position the cursor in
|
---|
| 307 | <xref linkend="vim"/>, set this option to <quote>vi</quote>).
|
---|
| 308 | </para>
|
---|
| 309 |
|
---|
| 310 | <para>
|
---|
| 311 | By default, <application>Lynx</application> doesn't save cookies
|
---|
| 312 | between sessions. Again as the
|
---|
| 313 | <systemitem class="username">root</systemitem> user, change this
|
---|
| 314 | setting:
|
---|
| 315 | </para>
|
---|
[0fe2f5b] | 316 | <screen role="root"><userinput>sed -e '/#PERSIST/ a PERSISTENT_COOKIES:TRUE' \
|
---|
| 317 | -i /etc/lynx/lynx.cfg</userinput></screen>
|
---|
[d37f788] | 318 |
|
---|
[7c56ece] | 319 | <para>
|
---|
| 320 | Many other system-wide settings such as proxies can also be set
|
---|
| 321 | in the <filename>/etc/lynx/lynx.cfg</filename> file.
|
---|
| 322 | </para>
|
---|
[50b8d8b] | 323 |
|
---|
[f9a9bb3e] | 324 | </sect3>
|
---|
[50b8d8b] | 325 |
|
---|
[f9a9bb3e] | 326 | </sect2>
|
---|
[50b8d8b] | 327 |
|
---|
[f9a9bb3e] | 328 | <sect2 role="content">
|
---|
| 329 | <title>Contents</title>
|
---|
| 330 |
|
---|
| 331 | <segmentedlist>
|
---|
| 332 | <segtitle>Installed Program</segtitle>
|
---|
| 333 | <segtitle>Installed Libraries</segtitle>
|
---|
[597caf43] | 334 | <segtitle>Installed Directories</segtitle>
|
---|
[50b8d8b] | 335 |
|
---|
[f9a9bb3e] | 336 | <seglistitem>
|
---|
| 337 | <seg>lynx</seg>
|
---|
| 338 | <seg>None</seg>
|
---|
[597caf43] | 339 | <seg>/etc/lynx and /usr/share/doc/lynx-&lynx-version;</seg>
|
---|
[f9a9bb3e] | 340 | </seglistitem>
|
---|
| 341 | </segmentedlist>
|
---|
[50b8d8b] | 342 |
|
---|
[f9a9bb3e] | 343 | <variablelist>
|
---|
| 344 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 345 | <?dbfo list-presentation="list"?>
|
---|
| 346 | <?dbhtml list-presentation="table"?>
|
---|
[50b8d8b] | 347 |
|
---|
[f9a9bb3e] | 348 | <varlistentry id="lynx-prog">
|
---|
| 349 | <term><command>lynx</command></term>
|
---|
| 350 | <listitem>
|
---|
[7c56ece] | 351 | <para>
|
---|
| 352 | is a general purpose, text-based, distributed information
|
---|
[4c24eb0a] | 353 | browser for the World Wide Web
|
---|
[7c56ece] | 354 | </para>
|
---|
[f9a9bb3e] | 355 | <indexterm zone="lynx lynx-prog">
|
---|
| 356 | <primary sortas="b-lynx">lynx</primary>
|
---|
| 357 | </indexterm>
|
---|
| 358 | </listitem>
|
---|
| 359 | </varlistentry>
|
---|
[50b8d8b] | 360 |
|
---|
[f9a9bb3e] | 361 | </variablelist>
|
---|
| 362 |
|
---|
| 363 | </sect2>
|
---|
[f45b1953] | 364 |
|
---|
| 365 | </sect1>
|
---|