Index: general.ent
===================================================================
--- general.ent (revision 0fb1ed298adafca7a5beba6373383441728ad923)
+++ general.ent (revision 99e8a2293b3733b739d409344a3950e18025a291)
@@ -1,3 +1,3 @@
-
+
Index: postlfs/config/profile.xml
===================================================================
--- postlfs/config/profile.xml (revision 0fb1ed298adafca7a5beba6373383441728ad923)
+++ postlfs/config/profile.xml (revision 99e8a2293b3733b739d409344a3950e18025a291)
@@ -18,6 +18,6 @@
help create an environment. Each file has a specific use and
may affect login and interactive environments differently. The files in
-the /etc directory generally provide global
-settings. If an equivalent file exists in your home directory it may
+the /etc directory generally provide
+global settings. If an equivalent file exists in your home directory it may
override the global settings.
@@ -26,5 +26,6 @@
/bin/login, by reading the /etc/passwd
file. This shell invocation normally reads /etc/profile
-and its private equivalent ~/.bash_profile upon startup.
+and its private equivalent ~/.bash_profile upon
+startup.
An interactive non-login shell is normally started at the command-line
@@ -46,7 +47,7 @@
interactive login shell.
-To the standard files, we also add /etc/bashrc
-which is called from the user's ~/.bashrc for
-system wide initialization of non-login shells.
+To the standard files, /etc/bashrc is called from
+the user's ~/.bashrc for system wide initialization of
+non-login shells.
For more information see info bash --
@@ -54,6 +55,9 @@
Shells.
-
+
/etc/profile
+
+/etc/profile
+
Here is a base /etc/profile. This file starts by
@@ -131,5 +135,5 @@
done
-# Now to clean up after ourselves
+# Now to clean up
unset pathremove pathprepend pathappend
@@ -137,10 +141,21 @@
EOF
-Now create the /etc/profile.d directory.
+The /etc/profile.d directory
+
+/etc/profile.d
+
+
+Now create the /etc/profile.d
+directory, where the individual initialization scripts are placed.
install --directory --mode=0755 --owner=root --group=root /etc/profile.d
-
-
+
+
+
/etc/profile.d/dircolors.sh
+
+/etc/profile.d/dircolors.sh
+
This script uses the ~/.dircolors and
@@ -148,6 +163,5 @@
directory listing. They control colorized output of things like ls
--color. The explaination of how to initialize these files is at the
-end of this section.
-
+end of this section.
cat > /etc/profile.d/dircolors.sh << "EOF"
@@ -164,13 +178,17 @@
-
-
+
-
+
/etc/profile.d/readline.sh
-
-This script sets up the default inputrc configuration file.
-If the user does not have individual settings, it uses the global file.
+
+/etc/profile.d/readline.sh
+
+
+This script sets up the default inputrc
+configuration file. If the user does not have individual settings, it uses the
+global file.
cat > /etc/profile.d/readline.sh << "EOF"
@@ -214,8 +237,13 @@
-
+
/etc/profile.d/tinker-term.sh
-
-Some applications need a specific TERM setting to support color.
+
+/etc/profile.d/tinker-term.sh
+
+
+Some applications need a specific TERM setting to support
+color.
cat > /etc/profile.d/tinker-term.sh << "EOF"
@@ -233,10 +261,14 @@
-
+
/etc/profile.d/umask.sh
-
-Setting the umask value is important for security. Here
-we turn off the default group write permissions for system users and when the
-user name and group name are not the same.
+
+/etc/profile.d/umask.sh
+
+
+Setting the umask value is important for security.
+Here the default group write permissions are turned off for system users and when
+the user name and group name are not the same.
cat > /etc/profile.d/umask.sh << "EOF"
@@ -250,9 +282,13 @@
-
+
/etc/profile.d/X.sh
-
-If X is installed, we also update the PATH
-and PKG_CONFIG_PATH variables.
+
+/etc/profile.d/X.sh
+
+
+If X is installed, the PATH
+and PKG_CONFIG_PATH variables are also updated.
cat > /etc/profile.d/X.sh << "EOF"
@@ -266,11 +302,16 @@
-
+
/etc/profile.d/xterm-titlebars.sh
-
-This script shows an example of a different way of setting the prompt. The normal
-variable, PS1, is supplemented by PROMPT_COMMAND.
-If set, the value of PROMPT_COMMAND is executed as a command prior to
-issuing each primary prompt.
+
+/etc/profile.d/titlebars.sh
+
+
+This script shows an example of a different way of setting the prompt.
+The normal variable, PS1, is supplemented by
+PROMPT_COMMAND. If set, the value of
+PROMPT_COMMAND is executed as a command prior to issuing each
+primary prompt.
cat > /etc/profile.d/xterm-titlebars.sh << "EOF"
@@ -283,6 +324,10 @@
-
+
/etc/profile.d/i18n.sh
+
+/etc/profile.d/i18n.sh
+
This script shows how to set some environment variables necessary for
@@ -327,7 +372,8 @@
EOF
-The LC_ALL variable sets the same value for all locale categories. For
-better control, you may prefer to set values individually for all categories
-listed in the output of the locale command.
+The LC_ALL variable sets the same value for all locale
+categories. For better control, you may prefer to set values individually for
+all categories listed in the output of the locale
+command.
The G_FILENAME_ENCODING variable tells applications
@@ -341,6 +387,6 @@
Other initialization values
-Other initialization can easily be added to the profile
-by adding additional scripts to the
+Other initialization can easily be added to the
+profile by adding additional scripts to the
/etc/profile.d directory.
@@ -348,6 +394,11 @@
-
+
/etc/bashrc
+
+/etc/bashrc
+
+
Here is a base /etc/bashrc. Comments in the
file should explain everything you need.
@@ -393,7 +444,9 @@
-
-
+
~/.bash_profile
+
+~/.bash_profile
+
Here is a base ~/.bash_profile. If you want each
@@ -445,6 +498,9 @@
-
+
~/.bashrc
+
+~/.bashrc
+
Here is a base ~/.bashrc. The comments and
@@ -474,6 +530,9 @@
-
+
~/.bash_logout
+
+~/.bash_logout
+
This is an empty ~/.bash_logout that can be used as
@@ -494,12 +553,18 @@
-
+
/etc/dircolors
+
+/etc/dircolors
+
+
+~/.dircolors
+
If you want to use the dircolors capability, then
run the following command. The /etc/skel
setup steps seen above also can be used here to provide a
-.dircolors file when a new user is set up. As before, just
-change the output file name on the following command and assure the
+~/.dircolors file when a new user is set up. As before,
+just change the output file name on the following command and assure the
permissions, owner, and group are correct on the files created and/or copied.
@@ -514,6 +579,7 @@
Finally, Ian Macdonald has written an excellent collection of tips and
tricks to enhance your shell environment. You can read it online at
-http://www.caliban.org/bash/index.shtml.
+
+http://www.caliban.org/bash/index.shtml.