debianユーザランドの構築
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
*debootstrap [#mc61b334]
debootstrapを使用して、debianのユーザランドを構築する例を...
-cmd.sh~
まず、debootstrapを呼び出すcmd.shを作成~
#pre{{
#!/bin/sh
debootstrap --arch sh4 \
--exclude=\
gcc-3.0-base,gcc-3.3-base,gcc-3.3,cpp-3.3,g++-3.3,\
libstdc++3,libstdc++5,libstdc++5-3.3-dev \
--include=\
kernel-image-2.6.13-sh,module-init-tools,reiserfsprogs,ke...
gcc-3.4-base,libstdc++6,\
dialog,libncursesw5,telnetd \
sarge /debian26 http://eggplant.ddo.jp/www/download/debia...
}}
-debootstrap実行~
#pre{{
landisk:~# chmod +x cmd.sh
landisk:~# mkdir /debian26
landisk:~# ./cmd.sh
I: Validating debootstrap.invalid_dists_sarge_Release
I: Validating debootstrap.invalid_dists_sarge_main_binary...
I: Checking adduser...
I: Checking apt...
I: Checking apt-utils...
・・・省略・・・
I: Base system installed successfully.
umount: /debian26/dev/pts: not mounted
umount: /debian26/dev/shm: not mounted
umount: /debian26/proc/bus/usb: not found
landisk:~#
}}
-動作確認~
出来上がったユーザランドはchroot下でそのまま動作させるこ...
--debian26_start ・・・ chroot起動スクリプト~
#pre{{
#!/bin/sh
root=/debian26
if [ ! -e $root/proc/cpuinfo ]; then
/usr/sbin/chroot $root mount -t proc proc /proc
fi
/usr/sbin/chroot $root /bin/bash
}}
--chrootで起動
#pre{{
landisk:~# chmod +x debian26_start
landisk:~# ./debian26_start
chroot:~/#
chroot:~/# dpkg -l
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-confi...
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Stat...
||/ Name Version Description
+++-==============-==============-=======================...
ii adduser 3.63 Add and remove users an...
ii apt 0.5.28.1 Advanced front-end for ...
ii apt-utils 0.5.28.1 APT utility programs
ii aptitude 0.2.15.8-1 terminal-based apt fron...
ii at 3.1.8-11 Delayed job execution a...
ii base-config 2.53.8 Debian base system conf...
ii base-files 3.1.2 Debian base system misc...
ii base-passwd 3.5.9 Debian base system mast...
ii bash 2.05b-24 The GNU Bourne Again SH...
ii bsdmainutils 6.0.17 collection of more util...
ii bsdutils 2.12p-4 Basic utilities from 4....
ii console-common 0.7.49 Basic infrastructure fo...
ii console-data 2002.12.04dbs- Keymaps, fonts, charset...
ii console-tools 0.2.3dbs-56 Linux console and font ...
ii coreutils 5.2.1-2 The GNU core utilities
ii cpio 2.5-1.2 GNU cpio -- a program t...
ii cron 3.0pl1-86 management of regular b...
ii debconf 1.4.30.11 Debian configuration ma...
ii debconf-i18n 1.4.30.11 full internationalizati...
ii debianutils 2.8.4 Miscellaneous utilities...
ii dhcp-client 2.0pl5-19.1 DHCP Client
ii dialog 1.0-20050306-1 Displays user-friendly ...
ii diff 2.8.1-11 File comparison utilities
ii dpkg 1.10.27 Package maintenance sys...
ii dselect 1.10.27 a user tool to manage D...
ii e2fslibs 1.37-2sarge1 ext2 filesystem libraries
ii e2fsprogs 1.37-2sarge1 ext2 file system utilit...
ii ed 0.2-20 The classic unix line e...
ii exim4 4.50-4 metapackage to ease exi...
ii exim4-base 4.50-4 support files for all e...
ii exim4-config 4.50-4 configuration for the e...
ii exim4-daemon-l 4.50-4 lightweight exim MTA (v...
ii findutils 4.1.20-5 utilities for finding f...
&color(red){ii gcc-3.4-base 3.4.3-13 The GNU Com...
ii gettext-base 0.14.1-7 GNU Internationalizatio...
ii grep 2.5.1.ds1-4 GNU grep, egrep and fgrep
ii groff-base 1.18.1.1-7 GNU troff text-formatti...
ii gzip 1.3.5-9 The GNU compression uti...
ii hostname 2.13 A utility to set/show t...
ii ifupdown 0.6.4-4.12 high level tools to con...
ii info 4.7-2.2 Standalone GNU Info doc...
ii initscripts 2.86.ds1-1 Standard scripts needed...
ii iptables 1.2.11-8 Linux kernel 2.4+ iptab...
ii iputils-ping 20020927-2 Tools to test the reach...
&color(red){ii kernel-image-2 landisk.0.3 Linux kerne...
&color(red){ii kexec-tools 1.99-kogiidena kexec tool};
ii klogd 1.4.1-16 Kernel Logging Daemon
ii libacl1 2.2.23-1 Access control list sha...
ii libattr1 2.4.16-1 Extended attribute shar...
ii libblkid1 1.37-2sarge1 block device id library
&color(red){ii libc6 2.3.5-6 GNU C Libra...
ii libcap1 1.10-14 support for getting/set...
ii libcomerr2 1.37-2sarge1 common error descriptio...
ii libconsole 0.2.3dbs-56 Shared libraries for Li...
ii libdb1-compat 2.1.3-7 The Berkeley database r...
ii libdb3 3.2.9-22 Berkeley v3 Database Li...
ii libdb4.2 4.2.52-18 Berkeley v4.2 Database ...
ii libgcc1 3.4.3-13 GCC support library
ii libgcrypt11 1.2.0-4 LGPL Crypto library - r...
ii libgdbm3 1.8.3-2 GNU dbm database routin...
ii libgnutls11 1.0.16-9 GNU TLS library - runti...
ii libgpg-error0 1.0-1 library for common erro...
ii liblocale-gett 1.01-17 Using libc functions fo...
ii liblockfile1 1.06 NFS-safe locking librar...
ii liblzo1 1.08-1.2 A real-time data compre...
ii libncurses5 5.4-4 Shared libraries for te...
ii libncursesw5 5.4-4 Shared libraries for te...
ii libnewt0.51 0.51.6-20 Not Erik's Windowing To...
ii libopencdk8 0.5.5-10 Open Crypto Development...
ii libpam-modules 0.76-22 Pluggable Authenticatio...
ii libpam-runtime 0.76-22 Runtime support for the...
ii libpam0g 0.76-22 Pluggable Authenticatio...
ii libpcap0.7 0.7.2-7 System interface for us...
ii libpcre3 4.5-1.1 Perl 5 Compatible Regul...
ii libperl5.8 5.8.4-8 Shared Perl library
ii libpopt0 1.7-5 lib for parsing cmdline...
ii libsigc++-1.2- 1.2.5-4 type-safe Signal Framew...
ii libss2 1.37-2sarge1 command-line interface ...
ii libssl0.9.7 0.9.7e-2 SSL shared libraries
ii libstdc++6 3.4.3-13 The GNU Standard C++ Li...
ii libtasn1-2 0.2.10-3 Manage ASN.1 structures...
ii libtext-charwi 0.04-1 get display widths of c...
ii libtext-iconv- 1.2-3 Convert between charact...
ii libtext-wrapi1 0.06-1 internationalized subst...
ii libtextwrap1 0.1-1 text-wrapping library w...
ii libuuid1 1.37-2sarge1 universally unique id l...
ii libwrap0 7.6.dbs-8 Wietse Venema's TCP wra...
ii login 4.0.3-31sarge1 system login tools
ii logrotate 3.7-2 Log rotation utility
ii mailx 8.1.2-0.200405 A simple mail user agent
ii makedev 2.3.1-77 creates device files in...
ii man-db 2.4.2-21 The on-line manual pager
ii manpages 1.70-1 Manual pages about usin...
ii mawk 1.3.3-11 a pattern scanning and ...
ii module-init-to 3.2-pre1-2 tools for managing Linu...
ii modutils 2.4.26-1.2 Linux module utilities
ii mount 2.12p-4 Tools for mounting and ...
ii nano 1.2.4-3 free Pico clone with so...
ii ncurses-base 5.4-4 Descriptions of common ...
ii ncurses-bin 5.4-4 Terminal-related progra...
ii net-tools 1.60-10 The NET-3 networking to...
ii netbase 4.20 Basic TCP/IP networking...
ii netkit-inetd 0.10-10 The Internet Superserver
ii nvi 1.79-22 4.4BSD re-implementatio...
ii passwd 4.0.3-31sarge1 change and administer p...
ii perl-base 5.8.4-8 The Pathologically Ecle...
ii ppp 2.4.2+20040428 Point-to-Point Protocol...
ii pppconfig 2.3.11 A text menu based utili...
ii pppoe 3.5-4 PPP over Ethernet driver
ii pppoeconf 1.5 configures PPPoE/ADSL c...
ii procps 3.2.1-2 The /proc file system u...
ii reiserfsprogs 3.6.19-1 User-level tools for Re...
ii sed 4.1.2-8 The GNU sed stream editor
ii slang1a-utf8 1.4.9dbs-8 The S-Lang programming ...
ii sysklogd 1.4.1-16 System Logging Daemon
ii sysv-rc 2.86.ds1-1 Standard boot mechanism...
ii sysvinit 2.86.ds1-1 System-V like init
ii tar 1.13.93-4 GNU tar
ii tasksel 2.24 Tool for selecting task...
ii tcpd 7.6.dbs-8 Wietse Venema's TCP wra...
ii telnet 0.17-26 The telnet client.
ii telnetd 0.17-26 The telnet server.
ii util-linux 2.12p-4 Miscellaneous system ut...
ii wget 1.9.1-8 retrieves files from th...
ii whiptail 0.51.6-20 Displays user-friendly ...
ii zlib1g 1.2.2-4 compression library - r...
}}
*各種設定 [#i17552e7]
-参考資料~
次のページを参考にしてユーザランドの設定を行いました。て...
--[[SH Linux TIPS - 第1回 Debian SH sid をインストールし...
--[[mizore Wiki - LANDISK を debian で入れ換える:http://w...
~
-ファイルシステム
--/etc/fstab~
起動時fsckをスキップさせるため、6カラム目を0にする。~
シリアルコンソールがない場合、手のほどこししようがなくな...
#pre{{
# UNCONFIGURED FSTAB FOR BASE SYSTEM
/dev/hda3 / ext2 defaults 0 &col...
proc /proc proc defaults 0 0
/dev/hda2 swap swap defaults 0 0
}}
-タイムゾーンの設定~
--/etc/default/rcS
#pre{{
UTC=&color(red){no};
}}
--Asia/Tokyoを設定~
#pre{{
# tzconfig
Your current time zone is set to UTC
Do you want to change that? [n]: y
…省略
Your default time zone is set to 'Asia/Tokyo'.
Local time is now: Sat Apr 9 18:01:07 JST 2005.
Universal Time is now: Sat Apr 9 09:01:07 UTC 2005.
}}
-ネットワーク設定~
--/etc/hosts~
#pre{{
127.0.0.1 localhost
192.168.1.81 landisk
}}
--/etc/hostname~
landisk
--/etc/resolv.conf~
nameserver 192.168.1.1
--/etc/network/interfaces~
#pre{{
# Used by ifup(8) and ifdown(8). See the interfaces(5) ma...
# /usr/share/doc/ifupdown/examples for more information.
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.81
netmask 255.255.255.0
gateway 192.168.1.1
}}
-login/セキュリティ関係~
--/etc/securetty
#pre{{
# /etc/securetty: list of terminals on which root is allo...
# See securetty(5) and login(1).
console
&color(red){ttySC1 ←追加};
}}
--/etc/inittab
#pre{{
# Note that on most Debian systems tty7 is used by the X ...
# so if you want to add more getty's go ahead but skip tt...
#
&color(red){1:2345:respawn:/sbin/getty 9600 ttySC1 ← 追...
&color(red){#};1:2345:respawn:/sbin/getty 38400 tty1 ← ...
&color(red){#};2:23:respawn:/sbin/getty 38400 tty2
&color(red){#};3:23:respawn:/sbin/getty 38400 tty3
&color(red){#};4:23:respawn:/sbin/getty 38400 tty4
&color(red){#};5:23:respawn:/sbin/getty 38400 tty5
&color(red){#};6:23:respawn:/sbin/getty 38400 tty6
}}
--/etc/hosts.allow
#pre{{
ALL : 127.0.0.1 192.168.1. 192.168.0. ← 追加
}}
--/etc/hosts.deny
#pre{{
ALL : ALL ← 追加
}}
--rootパスワードの設定
#pre{{
# passwd
Enter new UNIX password: landisk ← 例です。
Retype new UNIX password: landisk
passwd: password updated successfully
}}
--ユーザ作成~
#pre{{
# adduser landisk
…省略
}}
-apt-get関係
--/etc/apt/sources.list
#pre{{
deb http://eggplant.ddo.jp/www/download/debian26/binary-s...
deb http://eggplant.ddo.jp/www/download/debian26/working/...
#deb-src http://ftp.jp.debian.org/debian/ sarge main non-...
deb-src http://ftp.debian.or.jp/debian/ sarge main non-fr...
deb-src http://ftp.debian.or.jp/debian-non-US sarge/non-U...
}}
-その他~
--/root/.emacs
--/root/.xsession
--/root/.Xresources
--/root/.twmrc
--/boot/kernelsw.conf
--apt-get clean
#counter
終了行:
*debootstrap [#mc61b334]
debootstrapを使用して、debianのユーザランドを構築する例を...
-cmd.sh~
まず、debootstrapを呼び出すcmd.shを作成~
#pre{{
#!/bin/sh
debootstrap --arch sh4 \
--exclude=\
gcc-3.0-base,gcc-3.3-base,gcc-3.3,cpp-3.3,g++-3.3,\
libstdc++3,libstdc++5,libstdc++5-3.3-dev \
--include=\
kernel-image-2.6.13-sh,module-init-tools,reiserfsprogs,ke...
gcc-3.4-base,libstdc++6,\
dialog,libncursesw5,telnetd \
sarge /debian26 http://eggplant.ddo.jp/www/download/debia...
}}
-debootstrap実行~
#pre{{
landisk:~# chmod +x cmd.sh
landisk:~# mkdir /debian26
landisk:~# ./cmd.sh
I: Validating debootstrap.invalid_dists_sarge_Release
I: Validating debootstrap.invalid_dists_sarge_main_binary...
I: Checking adduser...
I: Checking apt...
I: Checking apt-utils...
・・・省略・・・
I: Base system installed successfully.
umount: /debian26/dev/pts: not mounted
umount: /debian26/dev/shm: not mounted
umount: /debian26/proc/bus/usb: not found
landisk:~#
}}
-動作確認~
出来上がったユーザランドはchroot下でそのまま動作させるこ...
--debian26_start ・・・ chroot起動スクリプト~
#pre{{
#!/bin/sh
root=/debian26
if [ ! -e $root/proc/cpuinfo ]; then
/usr/sbin/chroot $root mount -t proc proc /proc
fi
/usr/sbin/chroot $root /bin/bash
}}
--chrootで起動
#pre{{
landisk:~# chmod +x debian26_start
landisk:~# ./debian26_start
chroot:~/#
chroot:~/# dpkg -l
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-confi...
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Stat...
||/ Name Version Description
+++-==============-==============-=======================...
ii adduser 3.63 Add and remove users an...
ii apt 0.5.28.1 Advanced front-end for ...
ii apt-utils 0.5.28.1 APT utility programs
ii aptitude 0.2.15.8-1 terminal-based apt fron...
ii at 3.1.8-11 Delayed job execution a...
ii base-config 2.53.8 Debian base system conf...
ii base-files 3.1.2 Debian base system misc...
ii base-passwd 3.5.9 Debian base system mast...
ii bash 2.05b-24 The GNU Bourne Again SH...
ii bsdmainutils 6.0.17 collection of more util...
ii bsdutils 2.12p-4 Basic utilities from 4....
ii console-common 0.7.49 Basic infrastructure fo...
ii console-data 2002.12.04dbs- Keymaps, fonts, charset...
ii console-tools 0.2.3dbs-56 Linux console and font ...
ii coreutils 5.2.1-2 The GNU core utilities
ii cpio 2.5-1.2 GNU cpio -- a program t...
ii cron 3.0pl1-86 management of regular b...
ii debconf 1.4.30.11 Debian configuration ma...
ii debconf-i18n 1.4.30.11 full internationalizati...
ii debianutils 2.8.4 Miscellaneous utilities...
ii dhcp-client 2.0pl5-19.1 DHCP Client
ii dialog 1.0-20050306-1 Displays user-friendly ...
ii diff 2.8.1-11 File comparison utilities
ii dpkg 1.10.27 Package maintenance sys...
ii dselect 1.10.27 a user tool to manage D...
ii e2fslibs 1.37-2sarge1 ext2 filesystem libraries
ii e2fsprogs 1.37-2sarge1 ext2 file system utilit...
ii ed 0.2-20 The classic unix line e...
ii exim4 4.50-4 metapackage to ease exi...
ii exim4-base 4.50-4 support files for all e...
ii exim4-config 4.50-4 configuration for the e...
ii exim4-daemon-l 4.50-4 lightweight exim MTA (v...
ii findutils 4.1.20-5 utilities for finding f...
&color(red){ii gcc-3.4-base 3.4.3-13 The GNU Com...
ii gettext-base 0.14.1-7 GNU Internationalizatio...
ii grep 2.5.1.ds1-4 GNU grep, egrep and fgrep
ii groff-base 1.18.1.1-7 GNU troff text-formatti...
ii gzip 1.3.5-9 The GNU compression uti...
ii hostname 2.13 A utility to set/show t...
ii ifupdown 0.6.4-4.12 high level tools to con...
ii info 4.7-2.2 Standalone GNU Info doc...
ii initscripts 2.86.ds1-1 Standard scripts needed...
ii iptables 1.2.11-8 Linux kernel 2.4+ iptab...
ii iputils-ping 20020927-2 Tools to test the reach...
&color(red){ii kernel-image-2 landisk.0.3 Linux kerne...
&color(red){ii kexec-tools 1.99-kogiidena kexec tool};
ii klogd 1.4.1-16 Kernel Logging Daemon
ii libacl1 2.2.23-1 Access control list sha...
ii libattr1 2.4.16-1 Extended attribute shar...
ii libblkid1 1.37-2sarge1 block device id library
&color(red){ii libc6 2.3.5-6 GNU C Libra...
ii libcap1 1.10-14 support for getting/set...
ii libcomerr2 1.37-2sarge1 common error descriptio...
ii libconsole 0.2.3dbs-56 Shared libraries for Li...
ii libdb1-compat 2.1.3-7 The Berkeley database r...
ii libdb3 3.2.9-22 Berkeley v3 Database Li...
ii libdb4.2 4.2.52-18 Berkeley v4.2 Database ...
ii libgcc1 3.4.3-13 GCC support library
ii libgcrypt11 1.2.0-4 LGPL Crypto library - r...
ii libgdbm3 1.8.3-2 GNU dbm database routin...
ii libgnutls11 1.0.16-9 GNU TLS library - runti...
ii libgpg-error0 1.0-1 library for common erro...
ii liblocale-gett 1.01-17 Using libc functions fo...
ii liblockfile1 1.06 NFS-safe locking librar...
ii liblzo1 1.08-1.2 A real-time data compre...
ii libncurses5 5.4-4 Shared libraries for te...
ii libncursesw5 5.4-4 Shared libraries for te...
ii libnewt0.51 0.51.6-20 Not Erik's Windowing To...
ii libopencdk8 0.5.5-10 Open Crypto Development...
ii libpam-modules 0.76-22 Pluggable Authenticatio...
ii libpam-runtime 0.76-22 Runtime support for the...
ii libpam0g 0.76-22 Pluggable Authenticatio...
ii libpcap0.7 0.7.2-7 System interface for us...
ii libpcre3 4.5-1.1 Perl 5 Compatible Regul...
ii libperl5.8 5.8.4-8 Shared Perl library
ii libpopt0 1.7-5 lib for parsing cmdline...
ii libsigc++-1.2- 1.2.5-4 type-safe Signal Framew...
ii libss2 1.37-2sarge1 command-line interface ...
ii libssl0.9.7 0.9.7e-2 SSL shared libraries
ii libstdc++6 3.4.3-13 The GNU Standard C++ Li...
ii libtasn1-2 0.2.10-3 Manage ASN.1 structures...
ii libtext-charwi 0.04-1 get display widths of c...
ii libtext-iconv- 1.2-3 Convert between charact...
ii libtext-wrapi1 0.06-1 internationalized subst...
ii libtextwrap1 0.1-1 text-wrapping library w...
ii libuuid1 1.37-2sarge1 universally unique id l...
ii libwrap0 7.6.dbs-8 Wietse Venema's TCP wra...
ii login 4.0.3-31sarge1 system login tools
ii logrotate 3.7-2 Log rotation utility
ii mailx 8.1.2-0.200405 A simple mail user agent
ii makedev 2.3.1-77 creates device files in...
ii man-db 2.4.2-21 The on-line manual pager
ii manpages 1.70-1 Manual pages about usin...
ii mawk 1.3.3-11 a pattern scanning and ...
ii module-init-to 3.2-pre1-2 tools for managing Linu...
ii modutils 2.4.26-1.2 Linux module utilities
ii mount 2.12p-4 Tools for mounting and ...
ii nano 1.2.4-3 free Pico clone with so...
ii ncurses-base 5.4-4 Descriptions of common ...
ii ncurses-bin 5.4-4 Terminal-related progra...
ii net-tools 1.60-10 The NET-3 networking to...
ii netbase 4.20 Basic TCP/IP networking...
ii netkit-inetd 0.10-10 The Internet Superserver
ii nvi 1.79-22 4.4BSD re-implementatio...
ii passwd 4.0.3-31sarge1 change and administer p...
ii perl-base 5.8.4-8 The Pathologically Ecle...
ii ppp 2.4.2+20040428 Point-to-Point Protocol...
ii pppconfig 2.3.11 A text menu based utili...
ii pppoe 3.5-4 PPP over Ethernet driver
ii pppoeconf 1.5 configures PPPoE/ADSL c...
ii procps 3.2.1-2 The /proc file system u...
ii reiserfsprogs 3.6.19-1 User-level tools for Re...
ii sed 4.1.2-8 The GNU sed stream editor
ii slang1a-utf8 1.4.9dbs-8 The S-Lang programming ...
ii sysklogd 1.4.1-16 System Logging Daemon
ii sysv-rc 2.86.ds1-1 Standard boot mechanism...
ii sysvinit 2.86.ds1-1 System-V like init
ii tar 1.13.93-4 GNU tar
ii tasksel 2.24 Tool for selecting task...
ii tcpd 7.6.dbs-8 Wietse Venema's TCP wra...
ii telnet 0.17-26 The telnet client.
ii telnetd 0.17-26 The telnet server.
ii util-linux 2.12p-4 Miscellaneous system ut...
ii wget 1.9.1-8 retrieves files from th...
ii whiptail 0.51.6-20 Displays user-friendly ...
ii zlib1g 1.2.2-4 compression library - r...
}}
*各種設定 [#i17552e7]
-参考資料~
次のページを参考にしてユーザランドの設定を行いました。て...
--[[SH Linux TIPS - 第1回 Debian SH sid をインストールし...
--[[mizore Wiki - LANDISK を debian で入れ換える:http://w...
~
-ファイルシステム
--/etc/fstab~
起動時fsckをスキップさせるため、6カラム目を0にする。~
シリアルコンソールがない場合、手のほどこししようがなくな...
#pre{{
# UNCONFIGURED FSTAB FOR BASE SYSTEM
/dev/hda3 / ext2 defaults 0 &col...
proc /proc proc defaults 0 0
/dev/hda2 swap swap defaults 0 0
}}
-タイムゾーンの設定~
--/etc/default/rcS
#pre{{
UTC=&color(red){no};
}}
--Asia/Tokyoを設定~
#pre{{
# tzconfig
Your current time zone is set to UTC
Do you want to change that? [n]: y
…省略
Your default time zone is set to 'Asia/Tokyo'.
Local time is now: Sat Apr 9 18:01:07 JST 2005.
Universal Time is now: Sat Apr 9 09:01:07 UTC 2005.
}}
-ネットワーク設定~
--/etc/hosts~
#pre{{
127.0.0.1 localhost
192.168.1.81 landisk
}}
--/etc/hostname~
landisk
--/etc/resolv.conf~
nameserver 192.168.1.1
--/etc/network/interfaces~
#pre{{
# Used by ifup(8) and ifdown(8). See the interfaces(5) ma...
# /usr/share/doc/ifupdown/examples for more information.
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.81
netmask 255.255.255.0
gateway 192.168.1.1
}}
-login/セキュリティ関係~
--/etc/securetty
#pre{{
# /etc/securetty: list of terminals on which root is allo...
# See securetty(5) and login(1).
console
&color(red){ttySC1 ←追加};
}}
--/etc/inittab
#pre{{
# Note that on most Debian systems tty7 is used by the X ...
# so if you want to add more getty's go ahead but skip tt...
#
&color(red){1:2345:respawn:/sbin/getty 9600 ttySC1 ← 追...
&color(red){#};1:2345:respawn:/sbin/getty 38400 tty1 ← ...
&color(red){#};2:23:respawn:/sbin/getty 38400 tty2
&color(red){#};3:23:respawn:/sbin/getty 38400 tty3
&color(red){#};4:23:respawn:/sbin/getty 38400 tty4
&color(red){#};5:23:respawn:/sbin/getty 38400 tty5
&color(red){#};6:23:respawn:/sbin/getty 38400 tty6
}}
--/etc/hosts.allow
#pre{{
ALL : 127.0.0.1 192.168.1. 192.168.0. ← 追加
}}
--/etc/hosts.deny
#pre{{
ALL : ALL ← 追加
}}
--rootパスワードの設定
#pre{{
# passwd
Enter new UNIX password: landisk ← 例です。
Retype new UNIX password: landisk
passwd: password updated successfully
}}
--ユーザ作成~
#pre{{
# adduser landisk
…省略
}}
-apt-get関係
--/etc/apt/sources.list
#pre{{
deb http://eggplant.ddo.jp/www/download/debian26/binary-s...
deb http://eggplant.ddo.jp/www/download/debian26/working/...
#deb-src http://ftp.jp.debian.org/debian/ sarge main non-...
deb-src http://ftp.debian.or.jp/debian/ sarge main non-fr...
deb-src http://ftp.debian.or.jp/debian-non-US sarge/non-U...
}}
-その他~
--/root/.emacs
--/root/.xsession
--/root/.Xresources
--/root/.twmrc
--/boot/kernelsw.conf
--apt-get clean
#counter
ページ名: