valuedomainの設定欄に以下を記入
mx @ 10
a * <IP address>
rootログインはなし(パスワード未入力)
/etc/ssh/sshd_config (変更点のみ)
Port xxxx
PermitRootLogin no
PasswordAuthentication no
http://wiki.debian.org/iptables
に書いてあるとおり設定.(SSHのポート番号部分を sshd_config で設定したものに置き換え)
sudo aptitude install zsh vim git ntp gcc make ruby libssl-dev zlib1g-dev libyaml-dev libncurses5-dev libreadline-dev
.zshrc, .vimrc をローカルからコピー.
echo 'export MAKEOPTS="-j3"' > ~/.zshenv
参照:
- http://www.nxmnpg.com/ja/8/ntpd
- http://support.sakura.ad.jp/manual/vps/ossetup.html
- http://16777215.blogspot.jp/2008/08/kurobako-debian-ntpdate.html
- http://linux.kororo.jp/cont/server/ntp.php
/etc/ntp.conf
server ntp1.sakura.ad.jp iburst
restrict default ignore
restrict -6 default ignore
restrict ntp1.sakura.ad.jp kod nomodify notrap nopeer noquery
#restrict -4 default kod notrap nomodify nopeer noquery
#restrict -6 default kod notrap nomodify nopeer noquery
sudo insserv -r ntp # 自動起動させない(debian6からは insserv を使う)
/etc/cron.daily/ntpd-q
#!/bin/sh
if [ ! -x /usr/sbin/ntpd ]; then
exit 0
fi
/usr/sbin/ntpd -qx
/sbin/hwclock --systohc
sudo chmod +x /etc/cron.daily/ntpd-q
if-up時も同期させる
sudo cp /etc/cron.daily/ntpd-q /etc/network/if-up.d/ntpd-q
参照: http://blog.eiel.info/blog/2012/07/11/nginx-on-debian/
wget http://nginx.org/keys/nginx_signing.key
sudo apt-key add nginx_signing.key
/etc/apt/sources.list
deb http://nginx.org/packages/debian/ squeeze nginx
deb-src http://nginx.org/packages/debian/ squeeze nginx
sudo aptitude update
sudo aptitude safe-upgrade
sudo aptitude install nginx
sudo /etc/init.d/nginx status
https://github.com/sstephenson/rbenv/ に書いてあるとおりに
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zprofile
echo 'eval "$(rbenv init -)"' >> ~/.zprofile
続いて ruby-build
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
そんで rubyをインストール
rbenv install 1.9.3-p374 --verbose
rbenv install 2.0.0-preview2 --verbose
postfixをインストール(exim4は削除される)
sudo aptitude install postfix
exim4の残りファイルも削除
sudo aptitude purge exim4 exim4-base exim4-config exim4-daemon-light
参考: http://server-setting.info/debian/first-setting-debian-server.html
sudo aptitude purge nfs-common portmap at
/etc/inittab の仮想コンソール数を減らす