暁なIT備忘録

AKATSUKI Information Technology Memorandum.

Linux 導入後の初期設定:その他細々とした調整

Tags: ,

あまり重要ではないけれど、やっておいた方がマシかな、というレベルの作業内容です。

■■■■■ その他細々とした調整 ■■■■■

■文字コードの変更 

※今回はこれは見送り

> # vi /etc/sysconfig/i18n
> =====
> LANG=”ja_JP.UTF-8″
> —–
> LANG=”en_US.UTF-8″
> #LANG=”ja_JP.UTF-8″
> =====

■Ctrl + Alt + Del 再起動を無効化 ※RHEL5 向け

> # rcsdiff -r1.1 /etc/inittab
> ===================================================================
> RCS file: /etc/RCS/inittab,v
> retrieving revision 1.1
> diff -r1.1 /etc/inittab
> 32c32
> < ca::ctrlaltdel:/sbin/shutdown -t3 -r now > —
> > ca::ctrlaltdel:/usr/bin/logger “CTRL-ALT-DELETE trap is disabled”

■Ctrl + Alt + Del 再起動を無効化 ※RHEL6 向け

# rcsdiff /etc/init/control-alt-delete.conf
===================================================================
RCS file: /etc/init/RCS/control-alt-delete.conf,v
retrieving revision 1.1
diff -r1.1 /etc/init/control-alt-delete.conf
8c8
< exec /sbin/shutdown -r now "Control-Alt-Delete pressed"
---
> exec /usr/bin/logger "CTRL-ALT-DELETE trap is disabled"

作業:Ctrl + Alt + Del 再起動を無効化

■Postfix の IPv6 無効化

# rcsdiff /etc/postfix/main.cf
===================================================================
RCS file: /etc/postfix/RCS/main.cf,v
retrieving revision 1.1
diff -r1.1 /etc/postfix/main.cf
119c119
< inet_protocols = all
---
> inet_protocols = ipv4

# service postfix restart
postfix を停止中:                                          [  OK  ]
postfix を起動中:                                          [  OK  ]

作業:Postfix の IPv6 無効化

■GNOME にて右クリックメニューに端末表示を追加

# yum list | grep nautilus-open-terminal
nautilus-open-terminal.x86_64          0.17-3.el6                       base

# yum -y install nautilus-open-terminal
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * base: www.ftp.ne.jp
 * extras: www.ftp.ne.jp
 * updates: www.ftp.ne.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package nautilus-open-terminal.x86_64 0:0.17-3.el6 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================
 Package                                Arch                   Version                       Repository            Size
========================================================================================================================
Installing:
 nautilus-open-terminal                 x86_64                 0.17-3.el6                    base                  63 k

Transaction Summary
========================================================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 63 k
Installed size: 201 k
Downloading Packages:
nautilus-open-terminal-0.17-3.el6.x86_64.rpm                                                     |  63 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : nautilus-open-terminal-0.17-3.el6.x86_64                                                         1/1

Installed:
  nautilus-open-terminal.x86_64 0:0.17-3.el6

Complete!

作業:GNOME にて右クリックメニューに端末表示を追加

■GNOME のユーザホーム直下の個別フォルダ名に日本語化解除

参照:http://www.atmarkit.co.jp/flinux/rensai/linuxtips/a077changelang.html

(1) > LANG=C xdg-user-dirs-gtk-update
(2) [システム]メニューの[設定]-[自動起動するアプリ]を選択して、[自動起動するプログラム]ダイアログボックスで[ユーザフォルダの更新]のチェックマークをオフにする。

■ライブラリ参照箇所の追加

# vi /etc/ld.so.conf.d/usr_local.conf
=====
/usr/local/lib
/usr/local/lib64
=====

# ldconfig

作業:ライブラリ参照箇所の追加

■乱数種を保存継続

# vi /etc/init.d/random
=====
#!/bin/bash
#
# random	Script to snapshot random state and reload it at boot time.
#
# Author:	Theodore Ts'o 
#
# chkconfig: 2345 20 80
# description: Saves and restores system entropy pool for higher quality \
#		random number generation.

. /etc/init.d/functions

random_seed=/var/lib/random-seed

# See how we were called.
case "$1" in
  start)
	# Carry a random seed from start-up to start-up
	# Load and then save 512 bytes, which is the size of the entropy pool
	if [ -f $random_seed ]; then
		cat $random_seed >/dev/urandom
	else
		touch $random_seed
	fi
	action $"Initializing random number generator: " /bin/true
	chmod 600 $random_seed
	dd if=/dev/urandom of=$random_seed count=1 bs=512 2>/dev/null
	touch /var/lock/subsys/random

	;;
  stop)
	# Carry a random seed from shut-down to start-up
	# Save 512 bytes, which is the size of the entropy pool
	touch $random_seed
	chmod 600 $random_seed
	action $"Saving random seed: " dd if=/dev/urandom of=$random_seed count=1 bs=512 2>/dev/null

	rm -f /var/lock/subsys/random
	;;
  status)
	# this is way overkill, but at least we have some status output...
	if [ -c /dev/random ] ; then
		echo $"The random data source exists"
	else
		echo $"The random data source is missing"
	fi
	;;
  restart|reload)
	# do not do anything; this is unreasonable
	:
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 1
esac

exit 0
=====

# chmod 755 /etc/init.d/random
# chkconfig --add random
# chkconfig --list random
random          0:off   1:off   2:on    3:on    4:on    5:on    6:off

作業:乱数種を保存継続

以上

Tags: ,

Leave a Reply

© 2009 暁なIT備忘録. All Rights Reserved.

This blog is powered by the Wordpress platform and beach rentals.