SSブログ

Emacs 23、およびxinetdへの移行 [Debian]

Debian GNU/Linux 6.0 において、Emacs 23、および xinetd への移行を行った。
詳細は、下記の通りである。

1. Emacs 22 から Emacs 23 への更新


(1) Emacs 23 のインストール

# apt-get install emacs23


(2) Emacs 22 のアン・インストール

# dpkg --purge emacs22 emacs22-bin-common emacs22-common

2. openbsd-inetd から xinetd への移行


(1) xinetd のインストール

# apt-get install xinetd


(2) openbsd-inetd のアン・インストール

# apt-get --purge remove openbsd-inetd


(3) xinetd の設定ファイルの更新・新規作成

# /etc
# diff xinetd.conf xinetd.conf.org
12,20d11
< # Define general logging characteristics.
< 	log_type	= SYSLOG authpriv
< 	log_on_failure	= HOST
< 	log_on_success	= PID HOST DURATION EXIT
< 
< # Define access restriction defaults
< 	cps		= 50 10
< 	instances	= 50
< 	per_source	= 10
# cat /etc/xinetd.d/proftpd
service ftp
{
	socket_type		= stream
	protocol		= tcp
	wait			= no
	user			= root
	server			= /usr/sbin/in.proftpd
	nice			= 10
	disable			= no
}
# cat /etc/xinetd.d/telnet 
service telnet
{
	socket_type		= stream
	protocol		= tcp
	wait			= no
	user			= root
	log_on_failure		+= USERID
	server			= /usr/sbin/in.telnetd
	disable			= no
}
# cat /etc/xinetd.d/rsh
service shell
{
	socket_type		= stream
	protocol		= tcp
	wait			= no
	user			= root
	log_on_success		+= USERID
	log_on_failure		+= USERID
	server			= /usr/sbin/in.rshd
	disable			= no
}
# cat /etc/xinetd.d/rlogin 
service login
{
	socket_type		= stream
	protocol		= tcp
	wait			= no
	user			= root
	log_on_success		+= USERID
	log_on_failure		+= USERID
	server			= /usr/sbin/in.rlogind
	disable			= no
}


(注) /etc/inetd.conf から xinetd の設定ファイルの雛形を作成できる。

# cd /tmp
# itox -daemon_dir /usr/sbin < /etc/inetd.conf > itox.log


(4) 設定の反映

# /etc/init.d/xinetd restart


(5) xinetd の動作確認


(6) inetd の設定の削除

# rm /etc/inetd.conf*


nice!(0)  コメント(0)  トラックバック(0) 
共通テーマ:パソコン・インターネット

nice! 0

コメント 0

コメントを書く

お名前:[必須]
URL:
コメント:
画像認証:
下の画像に表示されている文字を入力してください。

※ブログオーナーが承認したコメントのみ表示されます。

トラックバック 0

この広告は前回の更新から一定期間経過したブログに表示されています。更新すると自動で解除されます。