サーバ諸設定
Ubuntu Serverを使って鯖を立てた時の諸設定
IPアドレスの固定
% vi /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 #iface eth0 inet dhcp iface eth0 inet static address 192.168.0.12 netmask 255.255.255.0 gateway 192.168.0.1 dns-nameservers 192.168.0.1 % sudo /etc/init.d/networking restart
MyDNS(ダイナミックDNS)の設定
MyDNSのでアカウントのIDとパスワードを取得後
% sudo apt-get install fetchmail % vi ~/.fetchmailrc defaults no rewrite no mimedecode poll mail.mydns.jp protocol pop3 username id password password % chmod 700 ~/.fetchmailrc % crontab -e # m h dom mon dow command */10 * * * * /usr/bin/fetchmail --all >/dev/null 2>&1
ユーザーディレクトリ(~user/public_html)の公開設定
% sudo a2enmod userdir
% sudo service apache2 restart
また追記すると思う.