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