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