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 "3ce01505e82626ca4d7291d7e649c4c9">
|
---|
10 | <!ENTITY lynx-size "2.7 MB">
|
---|
11 | <!ENTITY lynx-buildsize "25 MB">
|
---|
12 | <!ENTITY lynx-time "0.4 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 | &lfs122_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="sect4">Optional</bridgehead>
|
---|
69 | <para role="optional">
|
---|
70 | <xref linkend="gnutls"/> (experimental, to replace openssl),
|
---|
71 | <xref linkend="zip"/>,
|
---|
72 | <xref linkend="unzip"/>,
|
---|
73 | an <xref linkend="server-mail"/> (that provides a
|
---|
74 | <command>sendmail</command> command), and
|
---|
75 | <xref linkend='sharutils'/> (for the <command>uudecode</command> program)
|
---|
76 | </para>
|
---|
77 |
|
---|
78 | </sect2>
|
---|
79 |
|
---|
80 | <sect2 role="installation">
|
---|
81 | <title>Installation of Lynx</title>
|
---|
82 |
|
---|
83 | <para>
|
---|
84 | Install <application>Lynx</application> by running the following
|
---|
85 | commands:
|
---|
86 | </para>
|
---|
87 |
|
---|
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; &&
|
---|
96 | make</userinput></screen>
|
---|
97 |
|
---|
98 | <para>
|
---|
99 | This package does not come with a test suite.
|
---|
100 | </para>
|
---|
101 |
|
---|
102 | <!-- note that chgrp needed if building as a non-root user and then
|
---|
103 | install via sudo or su -->
|
---|
104 | <para>
|
---|
105 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
106 | </para>
|
---|
107 |
|
---|
108 | <screen role='root'><userinput>make install-full
|
---|
109 | chgrp -v -R root /usr/share/doc/lynx-&lynx-version;/lynx_doc</userinput></screen>
|
---|
110 |
|
---|
111 | </sect2>
|
---|
112 |
|
---|
113 | <sect2 role="commands">
|
---|
114 | <title>Command Explanations</title>
|
---|
115 |
|
---|
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 |
|
---|
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 |
|
---|
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>
|
---|
197 |
|
---|
198 | <!-- This was fixed in the 2.8.6 release, though it still could
|
---|
199 | be considered an issue by some
|
---|
200 | <note>
|
---|
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>
|
---|
208 | </note>
|
---|
209 | -->
|
---|
210 |
|
---|
211 | </sect2>
|
---|
212 |
|
---|
213 | <sect2 role="configuration">
|
---|
214 | <title>Configuring Lynx</title>
|
---|
215 |
|
---|
216 | <sect3 id="lynx-config">
|
---|
217 | <title>Config Files</title>
|
---|
218 |
|
---|
219 | <para>
|
---|
220 | <filename>/etc/lynx/lynx.cfg</filename>
|
---|
221 | </para>
|
---|
222 |
|
---|
223 | <indexterm zone="lynx lynx-config">
|
---|
224 | <primary sortas="e-etc-lynx-lynx.cfg">/etc/lynx/lynx.cfg</primary>
|
---|
225 | </indexterm>
|
---|
226 |
|
---|
227 | </sect3>
|
---|
228 |
|
---|
229 | <sect3>
|
---|
230 | <title>Configuration Information</title>
|
---|
231 |
|
---|
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>
|
---|
238 |
|
---|
239 | <screen role="root"><userinput>sed -e '/#LOCALE/ a LOCALE_CHARSET:TRUE' \
|
---|
240 | -i /etc/lynx/lynx.cfg</userinput></screen>
|
---|
241 |
|
---|
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 |
|
---|
254 | <screen role="root"><userinput>sed -e '/#DEFAULT_ED/ a DEFAULT_EDITOR:vi' \
|
---|
255 | -i /etc/lynx/lynx.cfg</userinput></screen>
|
---|
256 |
|
---|
257 | <para>
|
---|
258 | <application>Lynx</application> handles the following values of
|
---|
259 | the DEFAULT_EDITOR option specially by adding cursor-positioning
|
---|
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>).
|
---|
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>
|
---|
274 | <screen role="root"><userinput>sed -e '/#PERSIST/ a PERSISTENT_COOKIES:TRUE' \
|
---|
275 | -i /etc/lynx/lynx.cfg</userinput></screen>
|
---|
276 |
|
---|
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>
|
---|
281 |
|
---|
282 | </sect3>
|
---|
283 |
|
---|
284 | </sect2>
|
---|
285 |
|
---|
286 | <sect2 role="content">
|
---|
287 | <title>Contents</title>
|
---|
288 |
|
---|
289 | <segmentedlist>
|
---|
290 | <segtitle>Installed Program</segtitle>
|
---|
291 | <segtitle>Installed Libraries</segtitle>
|
---|
292 | <segtitle>Installed Directories</segtitle>
|
---|
293 |
|
---|
294 | <seglistitem>
|
---|
295 | <seg>lynx</seg>
|
---|
296 | <seg>None</seg>
|
---|
297 | <seg>/etc/lynx and /usr/share/doc/lynx-&lynx-version;</seg>
|
---|
298 | </seglistitem>
|
---|
299 | </segmentedlist>
|
---|
300 |
|
---|
301 | <variablelist>
|
---|
302 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
303 | <?dbfo list-presentation="list"?>
|
---|
304 | <?dbhtml list-presentation="table"?>
|
---|
305 |
|
---|
306 | <varlistentry id="lynx-prog">
|
---|
307 | <term><command>lynx</command></term>
|
---|
308 | <listitem>
|
---|
309 | <para>
|
---|
310 | is a general purpose, text-based, distributed information
|
---|
311 | browser for the World Wide Web
|
---|
312 | </para>
|
---|
313 | <indexterm zone="lynx lynx-prog">
|
---|
314 | <primary sortas="b-lynx">lynx</primary>
|
---|
315 | </indexterm>
|
---|
316 | </listitem>
|
---|
317 | </varlistentry>
|
---|
318 |
|
---|
319 | </variablelist>
|
---|
320 |
|
---|
321 | </sect2>
|
---|
322 |
|
---|
323 | </sect1>
|
---|