LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Keymap and font (http://www.linuxquestions.org/questions/linux-from-scratch-13/keymap-and-font-349588/)

satimis 08-03-2005 10:06 AM

Keymap and font
 
Hi folks,

LFS 6.1
FC3

Where can I find the keymap table and font set?

I'm now coming to
7.6. Configuring the Linux Console
http://www.linuxfromscratch.org/lfs/...7/console.html

I mistakenly ran following commands
Code:

cat >/etc/sysconfig/console <<"EOF"
KEYMAP="[arguments for loadkeys]"
FONT="[arguments for setfont]"
EOF

resulting in the /etc/sysconfig/console replaced.

Keymap preferred = American English
Font = standard font

Went through following sections without problem except those stated
6.15. Coreutils-5.2.1
6.16. Zlib-1.2.2
6.17. Mktemp-1.5
6.18. Iana-Etc-1.04
6.19. Findutils-4.2.23
6.19. Findutils-4.2.23
6.21. Ncurses-5.4
6.22. Readline-5.0
6.23. Vim-6.3
6.24. M4-1.4.3
6.25. Bison-2.0
6.26. Less-382
6.27. Groff-1.19.1
6.28. Sed-4.1.4
6.29. Flex-2.5.31
6.30. Gettext-0.14.3
6.31. Inetutils-1.4.2
6.32. IPRoute2-2.6.11-050330


6.33. Perl-5.8.6
http://www.linuxfromscratch.org/lfs/...er06/perl.html

root:/sources/iproute2-2.6.11# cd ..
root:/sources# tar xjf perl-5.8.6.tar.bz2
root:/sources# cd perl-5.8.6
root:/sources/perl-5.8.6# ./configure.gnu --prefix=/usr -Dpager="/bin/less -isR"
root:/sources/perl-5.8.6# make
Code:


......
make[1]: Leaving directory `/sources/perl-5.8.6/ext/Errno'
make: [extras.make] Error 1 (ignored)

        Everything is up to date. Type 'make test' to run test suite.

root:/sources/perl-5.8.6# echo "127.0.0.1 localhost $(hostname)" > /etc/hosts
root:/sources/perl-5.8.6# echo "127.0.0.1 localhost $(hostname)" > /etc/hosts
root:/sources/perl-5.8.6# make test
Code:


make[2]: *** [_test_tty] Error 1
make[2]: Leaving directory `/sources/perl-5.8.6'
make[1]: *** [_test] Error 2
make[1]: Leaving directory `/sources/perl-5.8.6'
make: *** [test] Error 2

root:/sources/perl-5.8.6# make install
(No complaint)

Is it necessary to redo this section because of the error warning?

6.34. Texinfo-4.8
6.35. Autoconf-2.59
6.36. Automake-1.9.5
6.37. Bash-3.0
6.38. File-4.13
6.39. Libtool-1.5.14
6.40. Bzip2-1.0.3
6.41. Diffutils-2.8.1
6.42. Kbd-1.12

6.43. E2fsprogs-1.37
I supposed to run following commands on the directory of e2fsprogs-1.37
root:/sources# cd e2fsprogs-1.37
root:/sources/e2fsprogs-1.37# sed -i -e 's/-DTEST/$(ALL_CFLAGS) &/' lib/e2p/Makefile.in

Tried on sources/ directory
root:/sources/e2fsprogs-1.37# cd ..
root:/sources# sed -i -e 's/-DTEST/$(ALL_CFLAGS) &/' lib/e2p/Makefile.in
Code:

sed: can't read lib/e2p/Makefile.in: No such file or directory
root:/sources# cd e2fsprogs-1.37
root:/sources/e2fsprogs-1.37# mkdir build
root:/sources/e2fsprogs-1.37# cd build
root:/sources/e2fsprogs-1.37/build# ../configure --prefix=/usr --with-root-prefix="" \
> --enable-elf-shlibs --disable-evms
root:/sources/e2fsprogs-1.37/build# make
root:/sources/e2fsprogs-1.37/build# make install
root:/sources/e2fsprogs-1.37/build# make install-libs
All went throught without complaint

6.44. Grep-2.5.1a
6.45. GRUB-0.96
6.46. Gzip-1.3.5
6.47. Hotplug-2004_09_23

6.48. Man-1.5p
http://www.linuxfromscratch.org/lfs/...ter06/man.html

root:/sources/hotplug-2004_09_23# cd ..
root:/sources# cd man-1.5p
root:/sources/man-1.5p# sed -i 's@-is@&R@g' configure
root:/sources/man-1.5p# sed -i 's@MANPATH./usr/man@#&@g' src/man.conf.in
root:/sources/man-1.5p# ./configure -confdir=/etc
root:/sources/man-1.5p# make
root:/sources/man-1.5p# make install

Started another Console
[satimis@localhost ~]$ nano /mnt/lfs/etc/man.conf
verifying:
NROFF /usr/bin/nroff -Tlatin1 -mandoc


6.49. Make-3.80
6.50. Module-Init-Tools-3.1
6.51. Patch-2.5.4
6.52. Procps-3.2.5
6.53. Psmisc-21.6

6.54. Shadow-4.0.9
http://www.linuxfromscratch.org/lfs/...06/shadow.html
6.54.2. Configuring Shadow
root:/sources/shadow-4.0.9# pwconv
(No printout)
root:/sources/shadow-4.0.9# grpconv
(hanging for long time until pressing [Ctrl]+c to stop it

skipped
6.54.3. Setting the root password

6.55. Sysklogd-1.4.1
6.56. Sysvinit-2.86
6.57. Tar-1.15.1
6.58. Udev-056
6.59. Util-linux-2.12q
6.61. Stripping Again

6.62. Cleaning Up
Re - Note
Code:

Removing /tools will also remove the temporary copies of Tcl, Expect, and DejaGNU which were used for running the toolchain tests. If you need these programs later on, they will need to be recompiled and re-installed. The BLFS book has instructions for this (see http://www.linuxfromscratch.org/blfs/).
I retained /tools for the time being

7.2. LFS-Bootscripts-3.2.1
7.5. Configuring the setclock Script

Please advise how to proceed further? Jump to Section 7.8. Creating the /etc/inputrc File?

TIA

B.R.
satimis

kjordan 08-03-2005 02:36 PM

Since you wanted an American English console, you didn't even need to remake the /etc/sysconfig/console. You can do a make install again in your lfs-bootscripts source directory and it should put the config file you need back. The instructions at the beginning of the section state: If non-ASCII characters (e.g., the British pound sign and Euro character) will not be used and the keyboard is a U.S. one, skip this section. Without the configuration file, the console bootscript will do nothing.

Edit: After reading that for myself, just remove /etc/sysconfig/console and I believe it should use the default which is American English and some default font.

Your perl should be fine.

The second sed failed because you were outside of the e2fsprogs directory, but your first sed should have done it.

satimis 08-03-2005 07:52 PM

Hi kjordan,

Tks for your advice.

Quote:

Since you wanted an American English console, you didn't even need to remake the /etc/sysconfig/console.
<snip
Edit: After reading that for myself, just remove /etc/sysconfig/console and I believe it should use the default which is American English and some default font.

If I understand the above correctly. I just remove /etc/sysconfig/console, not necessary to re-run "make install" lfs-bootscripts. If I'm wrong please correct me. Tks.

I checked /etc/sysconfig/console on LFS LiveCD 6.1. It was an empty file.

Quote:

Your perl should be fine.

The second sed failed because you were outside of the e2fsprogs directory, but your first sed should have done it.

Noted with thanks.

Afterwards I'll do the rest part of section "7.6. Configuring the Linux Console" and continue moving on to;
7.8. Creating the /etc/inputrc File
http://www.linuxfromscratch.org/lfs/...7/inputrc.html

Besides from now onwards, each day when I start the PC whether I just run
Code:

chroot "$LFS" /usr/bin/env -i \
    HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
    PATH=/bin:/usr/bin:/sbin:/usr/sbin \
    /bin/bash --login

(6.62. Cleaning Up
http://www.linuxfromscratch.org/lfs/...sedchroot.html
referred)

after running
[satimis@localhost ~]$ su
Password:
[root@localhost satimis]# export LFS=/mnt/lfs
[root@localhost satimis]# mount /dev/hda6 /mnt/lfs
[root@localhost satimis]# mkdir -p $LFS
[root@localhost satimis]# echo $LFS
/mnt/lfs

and skip
6.8.2. Mounting tmpfs and Populating /dev
http://www.linuxfromscratch.org/lfs/...6/devices.html


Beside this chroot options differs from
6.3. Entering the Chroot Environment
http://www.linuxfromscratch.org/lfs/...06/chroot.html
Code:

chroot "$LFS" /tools/bin/env -i \
    HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
    PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
    /tools/bin/bash --login +h

TIA

B.R.
satimis

kjordan 08-03-2005 08:05 PM

Yes, just remove, no need for make install for the bootscripts.

And yes, use the last chroot command they gave you.


All times are GMT -5. The time now is 05:19 PM.