|
发表于 2005-7-28 18:26:10
|
显示全部楼层
[code:1]
CUSTOMIZING THE CD CONTENTS
================
It is possible to burn a customized version of the official Linux From
Scratch LiveCD, with your own files added. To do that, follow the
instructions below.
* Burn the official CD in multi session mode:
cdrecord dev=/dev/cdrom -v -multi -tao lfslivecd-x86-1-[version].iso
* Prepare a directory with the files you want to add, delete or change:
mkdir second-session && cd second-session
vim path/to/new-file
vim path/to/file-to-be-changed
touch path/to/.wh.file-to-be-deleted
cd ..
* Make an image contatining those files:
mkisofs -M lfslivecd-x86-6.1-1-[version].iso \
-C `cdrecord -msinfo dev=/dev/cdrom` \
-R -o second-session.iso second-session
* Append the image you just created to the official Linux From Scratch
LiveCD:
cdrecord dev=/dev/cdrom -v -multi -tao second-session.iso
AUTOSSHD
================
It is possible to start the sshd daemon automatically upon boot. To do that,
you have to customize the CD as described above. Add the following files:
* /.autosshd
This is the file that indicates that the sshd daemon should be
started automatically. It should be empty.
* /root/.ssh/authorized_keys
Add your public key to that file in order to be able to log in.
Alternatively, modify /etc/shadow.
* /etc/shadow
Edit this file if you want to allow root to login using a password via
ssh. It is more secure to use public key based authentication instead.
* /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_rsa_key
Create those files as described in the ssh-keygen(1) manual page. If you
don't fo that, random host keys will be generated for you automatically
during the boot process. This is less secure, because you can't verify
them.
* /etc/sysconfig/network-devices/ifconfig.eth0
Configure a known static IP address there, as described in the LFS book,
section "7.12. Configuring the network Script".
INTERNATIONALIZATION
================
It is possible to specify the locale and the console keymap using the
bootloader prompt, like this:
linux LANG=es_ES.ISO-8859-1 KEYMAP=es
Alternatively, these items can be configured interactively using dialog-based
interface if the locale is not specified on the boot prompt. The bootscripts
will guess the proper screen font for you in either case.
Only locales with 8-bit characters and left-to-right writing order are
supported. UTF-8 based locales do not work on this CD. Many applications (e.g.
gawk, lynx, mutt) are known to function incorrectly in such locales, and
console input is not configured properly in them.
By default, the Euro character is not added to the keymap. You can add it
manually later by typing:
loadkeys euro
(this will put the Euro sign and Eurocent to Alt+E and Alt+C, respectively)
or
loadkeys euro1
(this will put the Euro sign and Eurocent to AltGr+5 and AltGr+C, respectively)
or
loadkeys euro2
(this will put the Euro sign and Eurocent to AltGr+E and AltGr+C, respectively)
For some locales (e.g. lv_LV.ISO-8859-13) there is no valid console keymap,
but there is a keymap for X. In this case, the only solution is to use X.
While this CD configures the LANG environment variable, console font and
keymap for you, it's your responsibility to configure other locale-dependent
parameters manually. You may want to configure the X keymap in
/etc/X11/xorg.conf, character sets for SAMBA in /etc/samba/smb.conf, and to
explicitly specify the "iocharset" and "codepage" options when mounting
filesystems with Windows origin (e.g., vfat and isofs).
The CD contains TrueType fonts that cover the orthography of most of European
languages. No additional configuration is required in order to use them.
[/code:1]
Just in the README
Good Luck and DON'T forget to tell me if you succeed |
|