Banana Pi 測試 – Gentoo Linux 安裝系統紀錄器

Gentoo Linux 提供許多個系統記錄器的選擇。分別為 sysklogd,它是一個傳統的系統記錄伺服器,syslog-ng ,是一個進階的系統記錄器。
# emerge -s syslog-ng
Searching…
[ Results for search key : syslog-ng ]
[ Applications found : 1 ]

*  app-admin/syslog-ng
      Latest version available: 3.4.8
      Latest version installed: [ Not Installed ]
      Size of files: 3,095 kB
      Homepage:      http://www.balabit.com/network-security/syslog-ng
      Description:   syslog replacement with advanced filtering features
      License:       GPL-2+ LGPL-2.1+

# emerge -s sysklogd
Searching…
[ Results for search key : sysklogd ]
[ Applications found : 1 ]

*  app-admin/sysklogd
      Latest version available: 1.5.1
      Latest version installed: [ Not Installed ]
      Size of files: 112 kB
      Homepage:      http://www.infodrom.org/projects/sysklogd/
      Description:   Standard log daemons
      License:       BSD
[@more@]
安裝系統紀錄器 sysklogd
# emerge sysklogd

啟動 sysklogd
# /etc/init.d/sysklogd start

開機時啟動
# rc-update add sysklogd default

或安裝 syslog-ng 系統紀錄器
# emerge syslog-ng

啟動 sysklogd
# /etc/init.d/syslog-ng start

開機時啟動
# rc-update add syslog-ng default

安裝紀錄檔置換程式
# emerge logrotate

Banaana Pi – Gentoo Linux 套件庫訊息

在做套件更新或安裝時,有時會出現類似下面的訊息
* IMPORTANT: 8 news items need reading for repository ‘gentoo’.
 * Use eselect news to read news items.

在網路上搜尋了一下,在下面的網址找到了解答
Gentoo Taiwan 討論區 • 檢視主題 – 安裝PHP 問題[@more@]
列出這 8 項的項次
# eselect news list
News items:
  [1]      2012-05-21  Portage config-protect-if-modified default
  [2]      2012-11-06  PYTHON_TARGETS deployment
  [3]      2013-06-07  Portage preserve-libs default
  [4]      2013-08-23  Language of messages in emerge logs and output
  [5]      2013-09-27  Separate /usr on Linux requires initramfs
  [6]      2014-06-15  GCC 4.8.3 defaults to -fstack-protector
  [7]      2014-10-26  GCC 4.7 Introduced the New C++11 ABI
  [8]      2014-11-07  Upgrade to udev >= 217 or eudev >= 2.1

列出第一項
# eselect news read 1
2012-05-21-portage-config-protect-if-modified
  Title                     Portage config-protect-if-modified default
  Author                    Zac Medico <zmedico@gentoo.org>
  Posted                    2012-05-21
  Revision                  1

Beginning with sys-apps/portage-2.1.10.61, FEATURES=config-protect-if-modified
is enabled by default. This causes the CONFIG_PROTECT behavior to be skipped
for files that have not been modified since they were installed.

If you would like to disable this behavior by default, then set
FEATURES=”-config-protect-if-modified” in make.conf. See the make.conf(5) man
page for more information about this feature.

列出全部的前 15 行
# eselect news read new | head -15
2012-05-21-portage-config-protect-if-modified
  Title                     Portage config-protect-if-modified default
  Author                    Zac Medico <zmedico@gentoo.org>
  Posted                    2012-05-21
  Revision                  1

Beginning with sys-apps/portage-2.1.10.61, FEATURES=config-protect-if-modified
is enabled by default. This causes the CONFIG_PROTECT behavior to be skipped
for files that have not been modified since they were installed.

If you would like to disable this behavior by default, then set
FEATURES=”-config-protect-if-modified” in make.conf. See the make.conf(5) man
page for more information about this feature.