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