CentOS7 Install memo

CentOS7に色々入れたいので、その基盤を作る。

  1. /etc/hostnameにhostnameを入れておく
  2. /etc/sysconfig/selinux の設定はPermissiveにする
  3. /etc/ssh/sshd_configを修正し、Port/PermitRootLogin/PasswordAuthenticationの設定を修正
    • sshのpublic keyの転送を忘れずに
  4. Accountを作成
  5. firewalldの設定を変更しておく (systemctl disable firewall.service 等)
  6. XenServer Toolsを入れる
  7. 当然 yum updateを実行する
  8. yum install ntp して、ntpdの設定
  9. resolv.confをちゃんと設定する。
    • 異論はあるだろうが、options timeout:1 attempts:5 single-request-reopen 位を設定する
  10. snapshotをとる

あとは、必要なpackageをyumから入れる