source: networking/textweb/lynx.xml@ abde9c1c

10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since abde9c1c was abde9c1c, checked in by Ken Moffat <ken@…>, 3 years ago

Lynx : --enable-ipv6 is an option,
format it as such, move after the parameters.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@24206 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 11.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
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 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>Lynx-&lynx-version;</title>
24
25 <indexterm zone="lynx">
26 <primary sortas="a-Lynx">Lynx</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Lynx</title>
31
32 <para>
33 <application>Lynx</application> is a text based web browser.
34 </para>
35
36 &lfs10_checked;
37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>
42 Download (HTTP): <ulink url="&lynx-download-http;"/>
43 </para>
44 </listitem>
45 <listitem>
46 <para>
47 Download (FTP): <ulink url="&lynx-download-ftp;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download MD5 sum: &lynx-md5sum;
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download size: &lynx-size;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Estimated disk space required: &lynx-buildsize;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated build time: &lynx-time;
68 </para>
69 </listitem>
70 </itemizedlist>
71<!--
72 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
73 <itemizedlist spacing="compact">
74 <listitem>
75 <para>
76 Patch to build with openssl-1.1:
77 <ulink url="&patch-root;/lynx-&lynx-version;-openssl_1.1.0-1.patch"/>
78 </para>
79 </listitem>
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>
86 </itemizedlist>
87-->
88 <bridgehead renderas="sect3">Lynx Dependencies</bridgehead>
89<!--
90 <bridgehead renderas="sect4">Recommended</bridgehead>
91 <para role="recommended">
92 <xref linkend="openssl"/>
93 </para>
94-->
95 <bridgehead renderas="sect4">Optional</bridgehead>
96 <para role="optional">
97 <xref linkend="gnutls"/> (experimental, to replace openssl),
98 <xref linkend="zip"/>,
99 <xref linkend="unzip"/>,
100 an <xref linkend="server-mail"/> (that provides a
101 <command>sendmail</command> command), and
102 <xref linkend='sharutils'/> (for the <command>uudecode</command> program)
103 </para>
104
105<!-- Attempt to utilize S-Lang (- -with-screen=slang) leads to a build failure -->
106
107 <para condition="html" role="usernotes">User Notes:
108 <ulink url="&blfs-wiki;/Lynx"/></para>
109
110 </sect2>
111
112 <sect2 role="installation">
113 <title>Installation of Lynx</title>
114<!--
115 <para>
116 Apply a patch to build <application>Lynx</application> with openssl-1.1:
117 </para>
118
119<screen><userinput>patch -p1 -i ../lynx-&lynx-version;-openssl_1.1.0-1.patch</userinput></screen>
120
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>
126-->
127 <para>
128 Install <application>Lynx</application> by running the following
129 commands:
130 </para>
131
132<screen><userinput>./configure --prefix=/usr \
133 --sysconfdir=/etc/lynx \
134 --datadir=/usr/share/doc/lynx-&lynx-version; \
135 --with-zlib \
136 --with-bzlib \
137 --with-ssl \
138 --with-screen=ncursesw \
139 --enable-locale-charset &amp;&amp;
140make</userinput></screen>
141
142 <para>
143 This package does not come with a test suite.
144 </para>
145
146 <para>
147 Now, as the <systemitem class="username">root</systemitem> user:
148 </para>
149
150<screen role='root'><userinput>make install-full &amp;&amp;
151chgrp -v -R root /usr/share/doc/lynx-&lynx-version;/lynx_doc</userinput></screen>
152
153 </sect2>
154
155 <sect2 role="commands">
156 <title>Command Explanations</title>
157
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
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
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>
239
240 <!-- This was fixed in the 2.8.6 release, though it still could
241 be considered an issue by some
242 <note>
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>
250 </note>
251 -->
252
253 </sect2>
254
255 <sect2 role="configuration">
256 <title>Configuring Lynx</title>
257
258 <sect3 id="lynx-config">
259 <title>Config Files</title>
260
261 <para>
262 <filename>/etc/lynx/lynx.cfg</filename>
263 </para>
264
265 <indexterm zone="lynx lynx-config">
266 <primary sortas="e-etc-lynx-lynx.cfg">/etc/lynx/lynx.cfg</primary>
267 </indexterm>
268
269 </sect3>
270
271 <sect3>
272 <title>Configuration Information</title>
273
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>
280
281<screen role="root"><userinput>sed -e '/#LOCALE/ a LOCALE_CHARSET:TRUE' \
282 -i /etc/lynx/lynx.cfg</userinput></screen>
283
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
296<screen role="root"><userinput>sed -e '/#DEFAULT_ED/ a DEFAULT_EDITOR:vi' \
297 -i /etc/lynx/lynx.cfg</userinput></screen>
298
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>
316<screen role="root"><userinput>sed -e '/#PERSIST/ a PERSISTENT_COOKIES:TRUE' \
317 -i /etc/lynx/lynx.cfg</userinput></screen>
318
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>
323
324 </sect3>
325
326 </sect2>
327
328 <sect2 role="content">
329 <title>Contents</title>
330
331 <segmentedlist>
332 <segtitle>Installed Program</segtitle>
333 <segtitle>Installed Libraries</segtitle>
334 <segtitle>Installed Directories</segtitle>
335
336 <seglistitem>
337 <seg>lynx</seg>
338 <seg>None</seg>
339 <seg>/etc/lynx and /usr/share/doc/lynx-&lynx-version;</seg>
340 </seglistitem>
341 </segmentedlist>
342
343 <variablelist>
344 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
345 <?dbfo list-presentation="list"?>
346 <?dbhtml list-presentation="table"?>
347
348 <varlistentry id="lynx-prog">
349 <term><command>lynx</command></term>
350 <listitem>
351 <para>
352 is a general purpose, text-based, distributed information
353 browser for the World Wide Web.
354 </para>
355 <indexterm zone="lynx lynx-prog">
356 <primary sortas="b-lynx">lynx</primary>
357 </indexterm>
358 </listitem>
359 </varlistentry>
360
361 </variablelist>
362
363 </sect2>
364
365</sect1>
Note: See TracBrowser for help on using the repository browser.