source: clfs-embedded/BOOK/bootscripts/common/profile.xml@ 096729a

Last change on this file since 096729a was cb0e00d, checked in by Jim Gifford <clfs@…>, 16 years ago

Finish removal if /etc/inputrc

  • Property mode set to 100644
File size: 1.1 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="e-/etc/profile">/etc/profile</primary>
15 </indexterm>
16
17 <para>Is the file that specifices how to your environment will function.</para>
18
19 <para os="a">Now we will create the profile file for use with our system:</para>
20
21<screen os="b"><userinput>cat &gt; ${CLFS}/etc/profile&lt;&lt; "EOF"
22<literal># /etc/profile
23
24# Set the initial path
25export PATH=/bin:/usr/bin
26
27if [ `id -u` -eq 0 ] ; then
28 PATH=/bin:/sbin:/usr/bin:/usr/sbin
29 unset HISTFILE
30fi
31
32# Setup some environment variables.
33export USER=`id -un`
34export LOGNAME=$USER
35export HOSTNAME=`/bin/hostname`
36export HISTSIZE=1000
37export HISTFILESIZE=1000
38export PAGER='/bin/more '
39export EDITOR='/bin/vi'
40
41# End /etc/profile</literal>
42EOF</userinput></screen>
43
44</sect1>
Note: See TracBrowser for help on using the repository browser.