./configure make; make install cd etc.sample; cp services protocols /etc mv /usr/bin/ping /bin
make; make install mv /usr/bin/netstat /bin cd /usr/sbin; mv ifconfig route /sbin
/etc/init.d/localnet
������ ���� �����.
#!/bin/sh # Begin /etc/init.d/localnet check_status() { if [ $? = 0 ] then echo "OK" else echo "FAILED" fi } echo -n "Setting up loopback device..." /sbin/ifconfig lo 127.0.0.1 check_status echo -n "Setting up hostname..." /bin/hostname --file /etc/hostname check_status # End /etc/init.d/localnet
chmod 755 /etc/init.d/localnet �� �����Ͽ� ������ �˸°�
�����Ѵ�.
cd /etc/rcS.d; ln -s ../init.d/localnet S03localnet
��
�����Ͽ� ������ �ɺ��� ��ũ�� �����Ѵ�./etc/hostname
������ ���� ����� ȣ��Ʈ �̸��� �� �ȿ�
����ִ´�. �� ������ FQDN(Fully Qualified Domain Name)�� �ƴϴ�.
�������� ��Ʈ�� �� �������� ��ǻ�� �θ��� ���� �� �� �̸��̴�.
���� ��Ʈ�� ī�带 �����ϰ� �ʹٸ� /etc/hosts ���� �ȿ��� �� IP �ּҿ� FQDN, �����ϴٸ� �˸��ƽ� ���� �����ؾ� �Ѵ�. �Ʒ��� �� �����̴�:
<myip> myhost.mydomain.org aliases
IP �ּҰ� �缳 ���� IP �ּ� ���� �ȿ� �ֵ��� �ض�. ������ ���� ������ ����:
Class Networks A 10.0.0.0 B 172.16.0.0 through 172.31.0.0 C 192.168.0.0 through 192.168.255.0
������ IP �ּҴ� 192.168.1.1�� �� �ִ�. �� IP�� ���� FQDN�� me.linuxfromscratch.org�� �� �ִ�.
���� �������� ��Ʈ�� ī�带 ������� ���� ������ ���� ������ FQDN�� �ʿ��ϴ�. �̴� Sendmail ���� ���α����� ���������� �۵��ϴ� �� �ʿ��ϴ� (������ Sendmail�� FQDN�� �������� ���ϸ� �۵����� �ʴ´�).
�Ʒ��� �������� ��Ʈ�� ī�带 �������� �ʴ� ����� /etc/hosts
�����̴�:
# Begin /etc/hosts (no network card version) 127.0.0.1 me.lfs.org <contents of /etc/hostname> localhost # End /etc/hosts (no network card version)
�Ʒ��� ��Ʈ�� ī�带 �����ϴ� ����� /etc/hosts
�����̴�:
# Begin /etc/hosts (network card version) 127.0.0.1 localhost 192.168.1.1 me.lfs.org <contents of /etc/hostname> # End /etc/hosts (network card version)
����, 192.168.1.1�� me.lfs.org�� �������� ��ȣ�� �°�(Ȥ�� �������� ��Ʈ��/�ý��� �����ڷκ��� IP �ּҸ� �Ҵ�Ұ� �� �ӽ��� �� ��Ʈ���� ������ ��ȹ�̶�� �ű �°�) �ٲ۴�.
�� �κ��� �������� ��Ʈ�� ī�带 �����ϴ� ��쿡�� �ش�ȴ�. ���� �ʴٸ� �� �κ��� �پ�Ѿ �ȴ�.
�Ʒ��� �����ϵ��� /etc/init.d/ethnet
������ ���� �����:
#!/bin/sh # Begin /etc/init.d/ethnet check_status() { if [ $? = 0 ] then echo "OK" else echo "FAILED" fi } /sbin/ifconfig eth0 <ipaddress> check_status # End /etc/init.d/ethnet
chmod 755 ethnet
�� �����Ͽ� �˸°� ���� ������ �Ѵ�.cd ../rc2.d; ln -s ../init.d/ethnet S10ethnet
�� �����Ͽ�
�ɺ��� ��ũ�� �����.
/etc/init.d/localnet
�� �����Ͽ� ��� ���� localnet ��ũ��Ʈ��
���۽�Ų��./etc/init.d/ethnet
�� �����Ͽ�
�̸� ���۽�Ų��.
ping <your FQDN> ping <what you choose for hostname> ping localhost ping 127.0.0.1 ping 192.168.1.1 (only when you configured your network card)
�� �ټ����� ping ���ɵ��� ��� ���� ���� �۵��ؾ� �Ѵ�. ���ٸ� �⺻���� ��Ʈ���� �� �۵��ϴ� ���̴�.
���� ��� ����Ʈ��� ��ġ�Ǿ��� ��Ʈ��ũ��Ʈ���� ����������� ���� ��Ʈ���� �����Ǿ����Ƿ� �������� ��ǻ�� �������Ͽ� �� �� ��ũ��Ʈ���� ������ �۵��ϴ����� ���� ���� �˻縦 �� �� �ð��̴�. �켱�� /etc/init.d ���丮���� ���� �����Ͽ� ���� ���� ������ (��Ÿ�� �߸��� ��� ��)�� ��ġ�� �ٶ� ���̴�. �� ��ũ��Ʈ���� ���� ��������� �� �� �۵��Ѵٸ� �ý����� ���۰� ���� �ÿ��� ���������� �۵��ؾ� �Ѵ�. �̸� �����ϴ� ����� ���� �ϳ��̴�. ���� shutdown -r �������� �ý����� ������ �� LFS�� ����� �Ͽ���. ����� ���Ŀ� �������� ������ ������ �ý��ۿ����� ���� ������ �α� ������Ʈ�� ���� �� ���̴� (�������� XDM�̳� ��Ÿ �ٸ� Display Manager (XDM�� KDE ���� KDE ����)�� ������� �ʴ´ٸ�).
�� ������ �������� �⺻���� LFS �ý����� ����� �غ� �Ǿ���. ���ݺ��� ���� �͵��� ��� ���û����̸� �������� �Ǵܿ� ���� ��Ű������ �پ���� �� �ִ�. ���� �������� ��Ű������ ��ġ�� �پ�Ѵ´ٸ� (Ư�� ���̺귯����) �ٸ� ��Ű������ �������� ��ĥ �� �ִٴ� ���� �����ؾ� �Ѵ�.