# apt-get update # update repository
# apt-get install ubuntu-desktop
Ubuntu Serverインストール後のubuntu-desktop install
2011年3月18日Postfix設定
2011年3月17日# apt-get install postfix
# dpkg-reconfigure postfix (if you reconfigure)
The user interface will be displayed. On each screen, select the following values:
Internet Site
mail.example.com
steve
mail.example.com, localhost.localdomain, localhost
No
127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/24
0
+
all
# vi /etc/aliases # edit aliases
alease: your@email.com
# newaliases
Ubuntu – NFS設定
2011年3月16日NFSホスト:
# apt-get install nfs-kernel-server
/etc/exportsに以下を追加
/directory ipaddress(rw,sync)
# /etc/init.d/nfs-kernel-server restart
NFSクライアント:
# apt-get install nfs-common, portmap
# mount ipaddress:/directory /local_directory
# df -kh
webdav SSL設定
2010年7月1日以下コマンドでdav_moduleが読み込まれているか確認
# httpd -M
以下を/var/httpd/conf.d/ssl.confに挿入
### DAV 有効化 ###
Dav On
### IP 制限 ###
Order allow,deny
Allow from 192.168.0.100
### 基本認証 ###
AuthType Basic
AuthBasicProvider file
AuthUserFile /var/www/dav/conf/.htpasswd
AuthGroupFile /dev/null
AuthName “Please enter your ID and password”
Require user username
参考サイト:
http://c-brains.jp/blog/wsg/10/05/20-091807.php
http://kajuhome.com/webdav.shtml
phpmyadminインストール
2010年6月11日yum install phpmyadmin
続く………予定
Logwatch 自作スクリプト
2010年6月8日Logwatch自身のconfファイルとディレクトリ:
/usr/share/logwatch/script/default.conf/logwatch.conf
Script File Directory: /usr/share/logwatch/script/services/File_Name
(ここに自作シェルスクリプトを置く)
Config File Directory: /usr/share/logwatch/Default.conf/services/File_Name.conf
(ここにはconfファイル、今回はzz-disk_space.confをコピーし編集)
上記2つのファイルがあればLogwatchとして機能する。
参考サイト:
http://jviz.research.iat.sfu.ca/wiki/index.php?title=Customizing_Logwatch
http://www.atmarkit.co.jp/fsecurity/rensai/iprotect06/iprotect02.html
Kernel ParameterのValue変更
2010年6月3日# cat >> /etc/sysctl.conf << EOF
> kernel.shmall = 2097152
> kernel.shmmax = 536870912
> kernel.shmmni = 4096
> kernel.sem = 250 32000 100 128
> fs.file-max = 65536
> net.ipv4.ip_local_port_range = 1024 65000
> EOF
# /sbin/sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_max = 262144
Run the following commands as root to verify your settings:
/sbin/sysctl -a | grep shm
/sbin/sysctl -a | grep sem
/sbin/sysctl -a | grep file-max
/sbin/sysctl -a | grep ip_local_port_range
/sbin/sysctl -a | grep rmem_default
/sbin/sysctl -a | grep rmem_max
/sbin/sysctl -a | grep wmem_default
/sbin/sysctl -a | grep wmem_maxEx
参考サイト
http://www.oracle.com/technology/pub/articles/smiley_10gdb_install.html
TCP Wrapper – hosts.allowとhosts.denyについて
2010年5月18日hosts.allow、hosts.denyが関係するプログラムはTCP Wrapperを利用しているプログラムになります。TCP Wrapperの実態はlibwrapという共有ライブラリになり言い換えればlibwrapを利用しているプログラムはhosts.allowとhosts.denyによりアクセスを制限することができるということになります。
一度に大量のファイルを消すコマンド
2010年4月21日一度に大量のファイルを消すコマンド
#echo ./test* | xargs rm
Daylight Saving Time対応状況確認コマンド
2010年3月12日# zdump -v /etc/localtime | grep 2010
/etc/localtime Sun Mar 14 07:59:59 2010 UTC = Sun Mar 14 01:59:59 2010 CST isds
/etc/localtime Sun Mar 14 08:00:00 2010 UTC = Sun Mar 14 03:00:00 2010 CDT isds
/etc/localtime Sun Nov 7 06:59:59 2010 UTC = Sun Nov 7 01:59:59 2010 CDT isds
/etc/localtime Sun Nov 7 07:00:00 2010 UTC = Sun Nov 7 01:00:00 2010 CST isds
