(none):~# hostname (none)では情けないので、ホスト名をつける。
(none):/etc/init.d# hostname ude (none):/etc/init.d# cat /etc/hostname cat: /etc/hostname: No such file or directory (none):/etc/init.d# echo ude > /etc/hostname (none):/etc/init.d# hostname ude (none):/etc/init.d# exit logout Debian GNU/Linux 3.1 ude ttyS0 ude login: root Password: Last login: Fri Sep 15 06:00:25 2006 on ttyS0 Linux (none) 2.6.12.6-arm1 #75 Sun Jun 11 14:33:24 JST 2006 armv5tejl GNU/Linux The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. ude:~#
ude:~# ls -l /etc/hosts ls: /etc/hosts: No such file or directory ude:~#何でないの。
ude:~# cat > /etc/hosts 127.0.0.1 localhost localhost.localdomain 192.168.1.38 ude # LS-160GL CTRL-D ude:~# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain 192.168.1.38 ude # LS-160GL ude:~#
ude:~# cat /etc/resolv.conf search yamasita.jp nameserver 192.168.1.32 nameserver 192.168.1.2 ude:~#あれ?作った覚えないぞ。
ude:~# ls -l !$ ls -l /etc/resolv.conf -rw-r--r-- 1 root root 66 Sep 16 03:59 /etc/resolv.conf ude:~# date Sat Sep 16 04:02:04 JST 2006 ude:~#ブート時に DHCP か。
ude:~# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda2 1969424 174036 1695344 10% / tmpfs 63100 0 63100 0% /dev/shm /dev/sda1 190387 10477 170081 6% /boot ude:~# free total used free shared buffers cached Mem: 126204 30628 95576 0 15556 9512 -/+ buffers/cache: 5560 120644 Swap: 0 0 0 ude:~#/dev/sda4 がマウントされていないし、swap も使えていない。
ude:~# cat /etc/fstab # /etc/fstab: static file system information. # #念のためリブートすると、/dev/sda2 / ext3 defaults,noatime,errors=remount-ro 0 0 proc /proc proc defaults 0 0 none /dev/pts devpts gid=5,mode=20 0 0 /dev/sda3 swap swap defaults 0 0 /dev/sda1 /boot ext3 defaults,noatime 0 1 /dev/sda4 /mnt ext3 defaults,noatime 0 2 ude:~#
ude:~# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda2 1969424 174164 1695216 10% / tmpfs 63100 0 63100 0% /dev/shm /dev/sda1 190387 10477 170081 6% /boot /dev/sda4 7435424 32828 7024896 1% /mnt ude:~# mount /dev/sda2 on / type ext3 (rw,noatime,errors=remount-ro) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=20,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw) usbfs on /proc/bus/usb type usbfs (rw) /dev/sda1 on /boot type ext3 (rw,noatime) /dev/sda4 on /mnt type ext3 (rw,noatime) ude:~# free total used free shared buffers cached Mem: 126204 30584 95620 0 15384 9460 -/+ buffers/cache: 5740 120464 Swap: 250872 0 250872 ude:~#OK
ude:~# cat /etc/apt/sources.list deb http://ftp.jp.debian.org/debian/ sarge main contrib non-free deb http://ftp.jp.debian.org/debian-non-US/ sarge/non-US main contrib non-free deb http://security.debian.org/ sarge/updates main contrib non-free deb-src http://ftp.jp.debian.org/debian/ sarge main contrib non-free deb-src http://ftp.jp.debian.org/debian-non-US/ sarge/non-US main contrib non-free ude:~# apt-get update Hit http://ftp.jp.debian.org sarge/main Packages : Reading Package Lists... Done ude:~#何だか、素人の debian 設定日記(汗)
← LG-GL:debian:起動時のエラーつぶし |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ LS-GL:debian:不要なパッケージの削除 |