Những câu hỏi thường gặp về Linux
H:
Làm thế nào để tạo đĩa cấp cứu (rescue disk)
Đ:
Make a file system on it with bin, etc, lib và dev directorieseverything you need. Install a kernel on it
và arrange to have LILO boot it from the floppy (see the LILO documentation, in [lilo.u.*.ps]).
If you build the kernel (or tell LILO to tell the kernel) to have a RAM disk the same size as the floppy
the RAM disk will be loaded tại boot time và mounted as root in place of the floppy.
See the Bootdisk HOWTO (http://www.tldp.org/HOWTO/Bootdisk-HOWTO/index.html).
H:
How To Remap a Keyboard to Anh, French, Etc.
Đ:
For recent kernels, get [/pub/Linux/system/Keyboards/kbd-0.90.tar.gz] from ftp://metalab.unc.edu/.
Make sure you get the appropriate version; you have to use the right keyboard mapping package for your
kernel version.
For older kernels you have to edit the top-level kernel [Makefile], in [/usr/src/linux/].
You may find more helpful information in The Linux Keyboard và Console HOWTO, bởi Andries
Brouwer, tại ftp://metalab.unc.edu/pub/Linux/docs/HOWTO/.
H:
Làm thế nào để đèn NUM LOCK mặc định là bật
Đ:
Use the setleds program, for example (in [/etc/rc.local] or one of the [/etc/rc.d/*] files):
for t in 1 2 3 4 5 6 7 8
do
setleds +num
< /dev/tty$t > /dev/null
done
setleds
is part of the kbd package ("How do I remap my keyboard to Anh, French, etc.? ").
Alternatively, patch your kernel. You need to arrange for
KBD_DEFLEDS
to be defined to (
1
<<
VC_NUMLOCK
) when compiling [drivers/char/keyboard.c].
H:
Làm thế nào để đặt (hoặc khởi động lại) màu ban đầu của terminal
Đ:
The following shell script should work for VGA consoles:
for n in 1 2 4 5 6 7 8;
do
setterm -fore yellow -bold on -back blue -store > /dev/tty$n
done
Substitute your favorite colors, và use [/dev/ttyS$n] for serial terminals.
To make sure they are reset when people log out (if they’ve been changed):
57