プロファイル設定追加

  • /etc/profile.d/TakeAsh.sh
    # Customization for TakeAsh.net
    
    alias lsh='ls -agh --no-group --color=auto'
    alias dfh='df -h'

パッケージ管理システム更新

  • インストール
    # dnf upgrade -y
    # dnf install -y dnf-automatic
  • /etc/dnf/automatic.conf
    #apply_updates = no
    apply_updates = yes
  • サービス有効化 & サービス起動
    # systemctl enable dnf-automatic.timer
    # systemctl start dnf-automatic.timer

リポジトリ追加

  • EPEL
    libmp4v2(mp4tags)

    # dnf install -y epel-release
    # dnf config-manager --set-enabled PowerTools
    # dnf config-manager --set-enabled epel-playground
  • MariaDB
    MariaDB-server

  • RPM Fusion
    ffmpeg

    # dnf install --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm

etckeeper

  • インストール(EPEL)
    # dnf install -y etckeeper git
  • /etc/etckeeper/etckeeper.conf

    #PUSH_REMOTE=""
    PUSH_REMOTE="origin"
  • 初期設定

    # cd /etc/
    # etckeeper init
    # git remote add origin <バックアップ用リポジトリのURL>
    # etckeeper commit 'first commit'
    # git push --set-upstream origin master

その他のインストール

# dnf install -y mailx logwatch setroubleshoot-server

時刻同期設定

  • インストール
    # yum install chrony
    • /etc/chrony.conf
      (既存の server 行はコメントアウト)
      server ntp.nict.jp iburst
      server ntp.jst.mfeed.ad.jp iburst
      
      #allow 192.168/16
      allow 192.168/16
  • サービス起動 & 自動起動サービス登録
    # systemctl enable chronyd
    # systemctl start chronyd

postfix設定

  • インストール
    # dnf install -y postfix
    # alternatives --config mta (/usr/sbin/sendmail.postfix の番号を選択)
  • /etc/aliases に転送先メールアドレスを追加。
    root:           Actual.User@example.com
    unknown_user:   /dev/null
  • 転送設定反映。
    # newaliases
  • 転送テスト
    # date | mail -s "root メール転送テスト" root

tmpfiles エラー対応

  • legacy directory /var/run/, updating /var/run/xxx → /run/xxx
    /usr/lib/tmpfiles.d/*.conf で /var/run/ 下を使用するものは /etc/tmpfiles.d/ に conf ファイルをコピーし、内容を変更する。
    • 例) /etc/tmpfiles.d/mdadm.conf
      d /run/mdadm 0710 root root -