Files
2013-10-15 16:00:05 -04:00

45 lines
1.1 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
]>
<sect1 id="ch-scripts-profile">
<?dbhtml filename="profile.html"?>
<title>Creating /etc/profile</title>
<indexterm zone="ch-scripts-profile">
<primary sortas="e-/etc/profile">/etc/profile</primary>
</indexterm>
<para>Is the file that specifices how to your environment will function.</para>
<para os="a">Now we will create the profile file for use with our system:</para>
<screen os="b"><userinput>cat &gt; ${CLFS}/targetfs/etc/profile&lt;&lt; "EOF"
<literal># /etc/profile
# Set the initial path
export PATH=/bin:/usr/bin
if [ `id -u` -eq 0 ] ; then
PATH=/bin:/sbin:/usr/bin:/usr/sbin
unset HISTFILE
fi
# Setup some environment variables.
export USER=`id -un`
export LOGNAME=$USER
export HOSTNAME=`/bin/hostname`
export HISTSIZE=1000
export HISTFILESIZE=1000
export PAGER='/bin/more '
export EDITOR='/bin/vi'
# End /etc/profile</literal>
EOF</userinput></screen>
</sect1>