source: networking/textweb/lynx.xml@ 7c56ece

10.0 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 7c56ece was 7c56ece, checked in by Pierre Labastie <pieere@…>, 4 years ago

Finish formatting "networking"

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

  • Property mode set to 100644
File size: 11.5 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 &lfs91_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 a <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-nls</option>: This switch allows
210 <application>Lynx</application> to print translated messages (such as
211 questions about cookies and SSL certificates).
212 </para>
213
214 <para>
215 <option>--with-gnutls</option>: This enables experimental support
216 for linking <application>GnuTLS</application> into
217 <application>Lynx</application>. Remove the
218 <parameter>--with-ssl</parameter> switch if you want to use gnutls.
219 </para>
220
221 <para>
222 <command>make install-full</command>: In addition to the standard
223 installation, this target installs the documentation and help files.
224 </para>
225
226 <para>
227 <command>
228 chgrp -v -R root /usr/share/doc/lynx-&lynx-version;/lynx_doc
229 </command>:
230 This command corrects the improper group ownership of installed
231 documentation files.
232 </para>
233
234 <!-- This was fixed in the 2.8.6 release, though it still could
235 be considered an issue by some
236 <note>
237 <para>
238 There has been a security vulnerability identified if you enable
239 support for CGI links by passing the <option>-enable-cgi-links</option>
240 parameter to <command>configure</command>. See <ulink
241 url="http://seclists.org/lists/vulnwatch/2005/Oct-Dec/0041.html"/> for
242 details.
243 </para>
244 </note>
245 -->
246
247 </sect2>
248
249 <sect2 role="configuration">
250 <title>Configuring Lynx</title>
251
252 <sect3 id="lynx-config">
253 <title>Config Files</title>
254
255 <para>
256 <filename>/etc/lynx/lynx.cfg</filename>
257 </para>
258
259 <indexterm zone="lynx lynx-config">
260 <primary sortas="e-etc-lynx-lynx.cfg">/etc/lynx/lynx.cfg</primary>
261 </indexterm>
262
263 </sect3>
264
265 <sect3>
266 <title>Configuration Information</title>
267
268 <para>
269 The proper way to get the display character set is to examine the
270 current locale. However, <application>Lynx</application> does not do
271 this by default. As the <systemitem class="username">root</systemitem>
272 user, change this setting:
273 </para>
274
275<screen role="root"><userinput>sed -e '/#LOCALE/ a LOCALE_CHARSET:TRUE' \
276 -i /etc/lynx/lynx.cfg</userinput></screen>
277
278 <para>
279 The built-in editor in <application>Lynx</application> <xref
280 linkend="locale-wrong-multibyte-characters"/>. This issue manifests
281 itself in multibyte locales, e.g., as the Backspace key not erasing
282 non-ASCII characters properly, and as incorrect data being sent to the
283 network when one edits the contents of text areas. The only solution
284 to this problem is to configure <application>Lynx</application> to
285 use an external editor (bound to the <quote>Ctrl+X e</quote> key
286 combination by default). Still as the
287 <systemitem class="username">root</systemitem> user:
288 </para>
289
290<screen role="root"><userinput>sed -e '/#DEFAULT_ED/ a DEFAULT_EDITOR:vi' \
291 -i /etc/lynx/lynx.cfg</userinput></screen>
292
293 <para>
294 <application>Lynx</application> handles the following values of
295 the DEFAULT_EDITOR option specially by adding cursor-positioning
296 arguments: <quote>emacs</quote>, <quote>jed</quote>,
297 <quote>jmacs</quote>, <quote>joe</quote>, <quote>jove</quote>,
298 <quote>jpico</quote>, <quote>jstar</quote>, <quote>nano</quote>,
299 <quote>pico</quote>, <quote>rjoe</quote>, <quote>vi</quote> (but not
300 <quote>vim</quote>: in order to position the cursor in
301 <xref linkend="vim"/>, set this option to <quote>vi</quote>).
302 </para>
303
304 <para>
305 By default, <application>Lynx</application> doesn't save cookies
306 between sessions. Again as the
307 <systemitem class="username">root</systemitem> user, change this
308 setting:
309 </para>
310<screen role="root"><userinput>sed -e '/#PERSIST/ a PERSISTENT_COOKIES:TRUE' \
311 -i /etc/lynx/lynx.cfg</userinput></screen>
312
313 <para>
314 Many other system-wide settings such as proxies can also be set
315 in the <filename>/etc/lynx/lynx.cfg</filename> file.
316 </para>
317
318 </sect3>
319
320 </sect2>
321
322 <sect2 role="content">
323 <title>Contents</title>
324
325 <segmentedlist>
326 <segtitle>Installed Program</segtitle>
327 <segtitle>Installed Libraries</segtitle>
328 <segtitle>Installed Directories</segtitle>
329
330 <seglistitem>
331 <seg>lynx</seg>
332 <seg>None</seg>
333 <seg>/etc/lynx and /usr/share/doc/lynx-&lynx-version;</seg>
334 </seglistitem>
335 </segmentedlist>
336
337 <variablelist>
338 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
339 <?dbfo list-presentation="list"?>
340 <?dbhtml list-presentation="table"?>
341
342 <varlistentry id="lynx-prog">
343 <term><command>lynx</command></term>
344 <listitem>
345 <para>
346 is a general purpose, text-based, distributed information
347 browser for the World Wide Web.
348 </para>
349 <indexterm zone="lynx lynx-prog">
350 <primary sortas="b-lynx">lynx</primary>
351 </indexterm>
352 </listitem>
353 </varlistentry>
354
355 </variablelist>
356
357 </sect2>
358
359</sect1>
Note: See TracBrowser for help on using the repository browser.