Sponsored Link

« 有線LAN工事しました。 | メイン | iTunesサーバ »

2008年02月23日

debian etchにアップグレード

telnetでログイン
# fdisk /dev/hdc

d
n
p
1
Enterボタン
Enterボタン
t
83
w

# mke2fs -O none /dev/hdc1
# mount /dev/hdc1 /mnt
# mount -t ramfs none /home/ftp/pub
# chmod 777 /home/ftp/pub

ftpで各種ファイルを転送後、展開
ユーザ:ftp
パスワード:なし

# gzip -cd /home/ftp/pub/debian-etch-a9-1.tgz | (cd /mnt; tar xf -)
# gzip -cd /home/ftp/pub/debian-etch-a9-2.tgz | (cd /mnt; tar xf -)
# gzip -cd /home/ftp/pub/debian-etch-a9-3.tgz | (cd /mnt; tar xf -)
# gzip -cd /home/ftp/pub/debian-etch-a9-4.tgz | (cd /mnt; tar xf -)
# gzip -cd /home/ftp/pub/debian-etch-a9-5.tgz | (cd /mnt; tar xf -)
# cp /home/ftp/pub/Image.gz /mnt/boot/Image.gz

fstabを編集
# vi /mnt/etc/fstab

i
/dev/hda1 / ext2 defaults,errors=remount-ro 0 1

/dev/hdc1 / ext2 defaults,errors=remount-ro 0 1
Escボタン
:wq

アンマウント
# umount /mnt

sshが入ってなかったので、
# apt-get update
# apt-get install openssh-server
proftpdが調子悪かったので、vsftpdに変更。
# apt-get install vsftpd
おかげで動作が軽く転送速度も2倍から1.5倍に上がりました。
web鯖もあまり使わないのでapacheからthttpdに変更。
# apt-get install thttpd

postfixも調子悪かったのでmain.cfを編集
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

# TLS parameters
#smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
#smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
#smtpd_use_tls=yes
#smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
#smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = debian
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = localdomain, localhost, localhost.localdomain, localhost, hoge.com
relayhost =
mynetworks = 127.0.0.0/8, 192.168.0.0/24
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

時刻の設定
# apt-get install nptdate
# tzconfig
y
5
Tokyo
# ntpdate ntpサーバのIPアドレス
# hwclock --systohc -u

投稿者 chihansen : 2008年02月23日 01:50

コメント

コメントしてください




保存しますか?