source: networking/textweb/lynx.xml

trunk
Last change on this file was 567056a, checked in by Ken Moffat <ken@…>, 2 months ago

some tags.

  • Property mode set to 100644
File size: 11.1 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY lynx-download-http "https://invisible-mirror.net/archives/lynx/tarballs/lynx&lynx-version;.tar.bz2">
8 <!ENTITY lynx-download-ftp " ">
9 <!ENTITY lynx-md5sum "44316f1b8a857b59099927edc26bef79">
10 <!ENTITY lynx-size "2.5 MB">
11 <!ENTITY lynx-buildsize "31 MB">
12 <!ENTITY lynx-time "0.3 SBU">
13]>
14
15<sect1 id="lynx" xreflabel="Lynx-&lynx-version;">
16 <?dbhtml filename="lynx.html"?>
17
18
19 <title>Lynx-&lynx-version;</title>
20
21 <indexterm zone="lynx">
22 <primary sortas="a-Lynx">Lynx</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to Lynx</title>
27
28 <para>
29 <application>Lynx</application> is a text based web browser.
30 </para>
31
32 &lfs121_checked;
33
34 <bridgehead renderas="sect3">Package Information</bridgehead>
35 <itemizedlist spacing="compact">
36 <listitem>
37 <para>
38 Download (HTTP): <ulink url="&lynx-download-http;"/>
39 </para>
40 </listitem>
41 <listitem>
42 <para>
43 Download (FTP): <ulink url="&lynx-download-ftp;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download MD5 sum: &lynx-md5sum;
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download size: &lynx-size;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Estimated disk space required: &lynx-buildsize;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated build time: &lynx-time;
64 </para>
65 </listitem>
66 </itemizedlist>
67
68 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
69 <itemizedlist spacing="compact">
70 <listitem>
71 <para>
72 Required patch:
73 <ulink url="&patch-root;/lynx-&lynx-version;-security_fix-1.patch"/>
74 </para>
75 </listitem>
76 </itemizedlist>
77
78 <bridgehead renderas="sect3">Lynx Dependencies</bridgehead>
79<!--
80 <bridgehead renderas="sect4">Recommended</bridgehead>
81 <para role="recommended">
82 <xref linkend="openssl"/>
83 </para>
84-->
85 <bridgehead renderas="sect4">Optional</bridgehead>
86 <para role="optional">
87 <xref linkend="gnutls"/> (experimental, to replace openssl),
88 <xref linkend="zip"/>,
89 <xref linkend="unzip"/>,
90 an <xref linkend="server-mail"/> (that provides a
91 <command>sendmail</command> command), and
92 <xref linkend='sharutils'/> (for the <command>uudecode</command> program)
93 </para>
94
95<!-- Attempt to utilize S-Lang (- -with-screen=slang) leads to a build failure -->
96
97 </sect2>
98
99 <sect2 role="installation">
100 <title>Installation of Lynx</title>
101
102 <para>
103 First, apply a patch to fix a security vulnerability:
104 </para>
105
106<screen><userinput>patch -p1 -i ../lynx-&lynx-version;-security_fix-1.patch</userinput></screen>
107
108 <para>
109 Install <application>Lynx</application> by running the following
110 commands:
111 </para>
112
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; &amp;&amp;
121make</userinput></screen>
122
123 <para>
124 This package does not come with a test suite.
125 </para>
126
127 <para>
128 Now, as the <systemitem class="username">root</systemitem> user:
129 </para>
130
131<screen role='root'><userinput>make install-full &amp;&amp;
132chgrp -v -R root /usr/share/doc/lynx-&lynx-version;/lynx_doc</userinput></screen>
133
134 </sect2>
135
136 <sect2 role="commands">
137 <title>Command Explanations</title>
138
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
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
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>
220
221 <!-- This was fixed in the 2.8.6 release, though it still could
222 be considered an issue by some
223 <note>
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>
231 </note>
232 -->
233
234 </sect2>
235
236 <sect2 role="configuration">
237 <title>Configuring Lynx</title>
238
239 <sect3 id="lynx-config">
240 <title>Config Files</title>
241
242 <para>
243 <filename>/etc/lynx/lynx.cfg</filename>
244 </para>
245
246 <indexterm zone="lynx lynx-config">
247 <primary sortas="e-etc-lynx-lynx.cfg">/etc/lynx/lynx.cfg</primary>
248 </indexterm>
249
250 </sect3>
251
252 <sect3>
253 <title>Configuration Information</title>
254
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>
261
262<screen role="root"><userinput>sed -e '/#LOCALE/ a LOCALE_CHARSET:TRUE' \
263 -i /etc/lynx/lynx.cfg</userinput></screen>
264
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
277<screen role="root"><userinput>sed -e '/#DEFAULT_ED/ a DEFAULT_EDITOR:vi' \
278 -i /etc/lynx/lynx.cfg</userinput></screen>
279
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>
297<screen role="root"><userinput>sed -e '/#PERSIST/ a PERSISTENT_COOKIES:TRUE' \
298 -i /etc/lynx/lynx.cfg</userinput></screen>
299
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>
304
305 </sect3>
306
307 </sect2>
308
309 <sect2 role="content">
310 <title>Contents</title>
311
312 <segmentedlist>
313 <segtitle>Installed Program</segtitle>
314 <segtitle>Installed Libraries</segtitle>
315 <segtitle>Installed Directories</segtitle>
316
317 <seglistitem>
318 <seg>lynx</seg>
319 <seg>None</seg>
320 <seg>/etc/lynx and /usr/share/doc/lynx-&lynx-version;</seg>
321 </seglistitem>
322 </segmentedlist>
323
324 <variablelist>
325 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
326 <?dbfo list-presentation="list"?>
327 <?dbhtml list-presentation="table"?>
328
329 <varlistentry id="lynx-prog">
330 <term><command>lynx</command></term>
331 <listitem>
332 <para>
333 is a general purpose, text-based, distributed information
334 browser for the World Wide Web
335 </para>
336 <indexterm zone="lynx lynx-prog">
337 <primary sortas="b-lynx">lynx</primary>
338 </indexterm>
339 </listitem>
340 </varlistentry>
341
342 </variablelist>
343
344 </sect2>
345
346</sect1>
Note: See TracBrowser for help on using the repository browser.