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 ksh-download-http "http://www.research.att.com/~gsf/download/tgz/ast-ksh.&ksh-version;.tgz">
|
---|
8 | <!ENTITY ksh-download-ftp " ">
|
---|
9 | <!ENTITY ksh-md5sum "630096418741335fd757cda3f054aa11">
|
---|
10 | <!ENTITY ksh-size "1.7 MB">
|
---|
11 |
|
---|
12 | <!ENTITY init-download-http "http://www.research.att.com/~gsf/download/tgz/INIT.&ksh-version;.tgz">
|
---|
13 | <!ENTITY init-download-ftp " ">
|
---|
14 | <!ENTITY init-md5sum "adb05b9940046d3ca6b4b24038131725">
|
---|
15 | <!ENTITY init-size "350 KB">
|
---|
16 |
|
---|
17 | <!ENTITY ksh-buildsize "34 MB">
|
---|
18 | <!ENTITY ksh-time "1.5 SBU">
|
---|
19 | ]>
|
---|
20 |
|
---|
21 | <sect1 id="ksh" xreflabel="ksh-&ksh-version;">
|
---|
22 | <?dbhtml filename="ksh.html"?>
|
---|
23 |
|
---|
24 |
|
---|
25 | <title>ksh-&ksh-version;</title>
|
---|
26 |
|
---|
27 | <indexterm zone="ksh">
|
---|
28 | <primary sortas="a-ksh">ksh</primary>
|
---|
29 | </indexterm>
|
---|
30 |
|
---|
31 | <sect2 role="package">
|
---|
32 | <title>Introduction to ksh</title>
|
---|
33 |
|
---|
34 | <para><application>ksh</application> is the AT&T Korn Shell.</para>
|
---|
35 |
|
---|
36 | <note>
|
---|
37 | <para>You must agree to the terms of the CPL-1.0 license in order to
|
---|
38 | download the software. The download site is password protected, and the
|
---|
39 | username and password are listed at the bottom of
|
---|
40 | <ulink url="http://www.research.att.com/~gsf/license/cpl-1.0.html">this
|
---|
41 | license</ulink>.</para>
|
---|
42 | </note>
|
---|
43 |
|
---|
44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
45 | <itemizedlist spacing="compact">
|
---|
46 | <listitem>
|
---|
47 | <para>Ksh Download (HTTP): <ulink url="&ksh-download-http;"/></para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>Ksh Download (FTP): <ulink url="&ksh-download-ftp;"/></para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>Ksh Download MD5 sum: &ksh-md5sum;</para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para>Ksh Download size: &ksh-size;</para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>INIT Download (HTTP): <ulink url="&init-download-http;"/></para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>INIT Download (FTP): <ulink url="&init-download-ftp;"/></para>
|
---|
63 | </listitem>
|
---|
64 | <listitem>
|
---|
65 | <para>INIT Download MD5 sum: &init-md5sum;</para>
|
---|
66 | </listitem>
|
---|
67 | <listitem>
|
---|
68 | <para>INIT Download size: &init-size;</para>
|
---|
69 | </listitem>
|
---|
70 | <listitem>
|
---|
71 | <para>Estimated disk space required: &ksh-buildsize;</para>
|
---|
72 | </listitem>
|
---|
73 | <listitem>
|
---|
74 | <para>Estimated build time: &ksh-time;</para>
|
---|
75 | </listitem>
|
---|
76 | </itemizedlist>
|
---|
77 |
|
---|
78 | <para condition="html" role="usernotes">User Notes:
|
---|
79 | <ulink url="&blfs-wiki;/ksh"/></para>
|
---|
80 |
|
---|
81 | </sect2>
|
---|
82 |
|
---|
83 | <sect2 role="installation">
|
---|
84 | <title>Installation of ksh</title>
|
---|
85 |
|
---|
86 | <para>Unlike other BLFS packages, you will need to first create a working
|
---|
87 | directory in which to extract the sources and perform the build. Install
|
---|
88 | <application>ksh</application> by running the following commands:</para>
|
---|
89 |
|
---|
90 | <screen><userinput>mkdir ksh &&
|
---|
91 | cd ksh &&
|
---|
92 | tar -xf ../INIT.&ksh-version;.tgz &&
|
---|
93 | tar -xf ../ast-ksh.&ksh-version;.tgz &&
|
---|
94 | bin/package make</userinput></screen>
|
---|
95 |
|
---|
96 | <para>The test suite for this package requires other packages from the
|
---|
97 | AT&T ast software library, namely <application>nmake</application>,
|
---|
98 | in which case, you'd be better to install the
|
---|
99 | <application>ast-base</application> package using the same
|
---|
100 | instructions. The <application>package</application> command will accept
|
---|
101 | a <parameter>test</parameter> argument to test the package.</para>
|
---|
102 |
|
---|
103 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
104 |
|
---|
105 | <screen role="root"><userinput>install -v -m755 arch/linux.i386/bin/ksh /bin &&
|
---|
106 | install -v -m644 arch/linux.i386/man/man1/sh.1 \
|
---|
107 | /usr/share/man/man1/ksh.1 &&
|
---|
108 | install -v -m755 -d /usr/share/doc/ksh-&ksh-version; &&
|
---|
109 | install -v -m644 lib/package/{ast-ksh,INIT}.html \
|
---|
110 | /usr/share/doc/ksh-&ksh-version;</userinput></screen>
|
---|
111 |
|
---|
112 | </sect2>
|
---|
113 |
|
---|
114 | <sect2 role="commands">
|
---|
115 | <title>Command Explanations</title>
|
---|
116 |
|
---|
117 | <para><command>bin/package make</command>: This command rebuilds the ast
|
---|
118 | <application>INIT</application> package and builds the ast
|
---|
119 | <application>ksh</application> package.</para>
|
---|
120 |
|
---|
121 | </sect2>
|
---|
122 |
|
---|
123 | <sect2 role="configuration">
|
---|
124 | <title>Configuring ksh</title>
|
---|
125 |
|
---|
126 | <sect3 id="ksh-config">
|
---|
127 | <title>Config Files</title>
|
---|
128 |
|
---|
129 | <para><application>ksh</application> sources
|
---|
130 | <filename>/etc/profile</filename>,
|
---|
131 | <filename>/etc/suid_profile</filename>, and
|
---|
132 | <filename>$HOME/.profile</filename>.</para>
|
---|
133 |
|
---|
134 | <indexterm zone="ksh ksh-config">
|
---|
135 | <primary sortas="e-etc-profile">/etc/profile</primary>
|
---|
136 | </indexterm>
|
---|
137 |
|
---|
138 | <indexterm zone="ksh ksh-config">
|
---|
139 | <primary sortas="e-AHOME-.profile">$HOME/.profile</primary>
|
---|
140 | </indexterm>
|
---|
141 |
|
---|
142 | <indexterm zone="ksh ksh-config">
|
---|
143 | <primary sortas="e-etc-suid-profile">/etc/suid_profile</primary>
|
---|
144 | </indexterm>
|
---|
145 |
|
---|
146 | </sect3>
|
---|
147 |
|
---|
148 | <sect3>
|
---|
149 | <title>Configuration Information</title>
|
---|
150 |
|
---|
151 | <para>Update <filename>/etc/shells</filename> to include the
|
---|
152 | <application>ksh</application> shell by issuing the following command
|
---|
153 | as the <systemitem class="username">root</systemitem> user:</para>
|
---|
154 |
|
---|
155 | <screen role="root"><userinput>cat >> /etc/shells << "EOF"
|
---|
156 | <literal>/bin/ksh</literal>
|
---|
157 | EOF</userinput></screen>
|
---|
158 |
|
---|
159 | </sect3>
|
---|
160 |
|
---|
161 | </sect2>
|
---|
162 |
|
---|
163 | <sect2 role="content">
|
---|
164 | <title>Contents</title>
|
---|
165 |
|
---|
166 | <segmentedlist>
|
---|
167 | <segtitle>Installed Program</segtitle>
|
---|
168 | <segtitle>Installed Libraries</segtitle>
|
---|
169 | <segtitle>Installed Directory</segtitle>
|
---|
170 |
|
---|
171 | <seglistitem>
|
---|
172 | <seg>ksh</seg>
|
---|
173 | <seg>None</seg>
|
---|
174 | <seg>/usr/share/doc/ksh-&ksh-version;</seg>
|
---|
175 | </seglistitem>
|
---|
176 | </segmentedlist>
|
---|
177 |
|
---|
178 | <variablelist>
|
---|
179 | <bridgehead renderas="sect3">Short Description</bridgehead>
|
---|
180 | <?dbfo list-presentation="list"?>
|
---|
181 | <?dbhtml list-presentation="table"?>
|
---|
182 |
|
---|
183 | <varlistentry id="ksh-prog">
|
---|
184 | <term><command>ksh</command></term>
|
---|
185 | <listitem>
|
---|
186 | <para>is the AT&T ast Korn shell.</para>
|
---|
187 | <indexterm zone="ksh ksh-prog">
|
---|
188 | <primary sortas="b-ksh">ksh</primary>
|
---|
189 | </indexterm>
|
---|
190 | </listitem>
|
---|
191 | </varlistentry>
|
---|
192 |
|
---|
193 | </variablelist>
|
---|
194 |
|
---|
195 | </sect2>
|
---|
196 |
|
---|
197 | </sect1>
|
---|