
Linux From Scratch - Version 7.0
90
Create a new file /etc/nsswitch.conf by running the following:
cat > /etc/nsswitch.conf << "EOF"
# Begin /etc/nsswitch.conf
passwd: files
group: files
shadow: files
hosts: files dns
networks: files
protocols: files
services: files
ethers: files
rpc: files
# End /etc/nsswitch.conf
EOF
One way to determine the local time zone, run the following script:
tzselect
After answering a few questions about the location, the script will output the name of the time zone (e.g., America/
Edmonton). There are also some other possible timezones listed in /usr/share/zoneinfo such as Canada/
Eastern or EST5EDT that are not identified by the script but can be used.
Then create the /etc/localtime file by running:
cp -v --remove-destination /usr/share/zoneinfo/<xxx> \
/etc/localtime
Replace <xxx> with the name of the time zone selected (e.g., Canada/Eastern).
The meaning of the cp option:
--remove-destination
This is needed to force removal of the already existing symbolic link. The reason for copying the file instead of
using a symlink is to cover the situation where /usr is on a separate partition. This could be important when
booted into single user mode.
6.9.3. Configuring the Dynamic Loader
By default, the dynamic loader (/lib/ld-linux.so.2) searches through /lib and /usr/lib for dynamic
libraries that are needed by programs as they are run. However, if there are libraries in directories other than /lib
and /usr/lib, these need to be added to the /etc/ld.so.conf file in order for the dynamic loader to find
them. Two directories that are commonly known to contain additional libraries are /usr/local/lib and /opt/
lib, so add those directories to the dynamic loader's search path.
Comentarios a estos manuales