source: clfs-embedded/BOOK/bootscripts/common/profile.xml@ 3457e8b

Last change on this file since 3457e8b was bd48e48, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Updated CLFS-Embedded book sources to use DocBook-XML DTD 4.5.

  • Property mode set to 100644
File size: 1.3 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
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 &gt; ${CLFS}/etc/profile&lt;&lt; "EOF"
30<literal># /etc/profile
31
32# Set the initial path
33export PATH=/bin:/usr/bin
34
35if [ `id -u` -eq 0 ] ; then
36 PATH=/bin:/sbin:/usr/bin:/usr/sbin
37 unset HISTFILE
38fi
39
40# Setup some environment variables.
41export USER=`id -un`
42export LOGNAME=$USER
43export HOSTNAME=`/bin/hostname`
44export HISTSIZE=1000
45export HISTFILESIZE=1000
46export PAGER='/bin/more '
47export EDITOR='/bin/vi'
48export INPUTRC=/etc/inputrc
49
50# End /etc/profile</literal>
51EOF</userinput></screen>
52
53 </sect2>
54
55</sect1>
Note: See TracBrowser for help on using the repository browser.