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