Last change
on this file since 4d57ce8 was 7165e5c, checked in by Jim Gifford <clfs@…>, 18 years ago |
Move the end to Beyond CLFS
Added /etc/profile
Added /etc/inpurc
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Rev | Line | |
---|
[7165e5c] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-scripts-profile">
|
---|
| 9 | <?dbhtml filename="profile.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Creating /etc/profile</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-scripts-profile">
|
---|
| 14 | <primary sortas="a-profile">profile</primary>
|
---|
| 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
| 19 |
|
---|
| 20 | <para>Is the file that specifices how to your environment will function.</para>
|
---|
| 21 |
|
---|
| 22 | </sect2>
|
---|
| 23 |
|
---|
| 24 | <sect2>
|
---|
| 25 | <title>Create /etc/profile</title>
|
---|
| 26 |
|
---|
| 27 | <para os="a">Now we will create the profile file for use with our system:</para>
|
---|
| 28 |
|
---|
| 29 | <screen os="b"><userinput>cat > ${CLFS}/etc/profile<< "EOF"
|
---|
| 30 | <literal># /etc/profile
|
---|
| 31 |
|
---|
| 32 | # Set the initial path
|
---|
| 33 | export PATH=/bin:/usr/bin
|
---|
| 34 |
|
---|
| 35 | if [ `id -u` -eq 0 ] ; then
|
---|
| 36 | PATH=/bin:/sbin:/usr/bin:/usr/sbin
|
---|
| 37 | unset HISTFILE
|
---|
| 38 | fi
|
---|
| 39 |
|
---|
| 40 | # Setup some environment variables.
|
---|
| 41 | export USER=`id -un`
|
---|
| 42 | export LOGNAME=$USER
|
---|
| 43 | export HOSTNAME=`/bin/hostname`
|
---|
| 44 | export HISTSIZE=1000
|
---|
| 45 | export HISTFILESIZE=1000
|
---|
| 46 | export PAGER='/bin/more '
|
---|
| 47 | export EDITOR='/bin/vi'
|
---|
| 48 | export INPUTRC=/etc/inputrc
|
---|
| 49 |
|
---|
| 50 | # End /etc/profile</literal>
|
---|
| 51 | EOF</userinput></screen>
|
---|
| 52 |
|
---|
| 53 | </sect2>
|
---|
| 54 |
|
---|
| 55 | </sect1>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.