1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

sysutils/bsdstats インスコ→設定メモ

Posted at

何しよるん?

マシンに関する匿名統計を報告するための月次スクリプト
っま、インスコして統計に参加する単なる自己満足なヤツ

インスコはぶち簡単

# cd /usr/ports/sysutils/bsdstats/ && make install
===>  License BSD4CLAUSE accepted by the user
===>   bsdstats-7.0 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by bsdstats-7.0 for building
===>  Extracting for bsdstats-7.0
===>  Patching for bsdstats-7.0
===>  Configuring for bsdstats-7.0
===>  Staging for bsdstats-7.0
===>   Generating temporary packing list
/bin/mkdir -p /usr/ports/sysutils/bsdstats/work/stage/usr/local/etc/periodic/monthly
install  -m 555 /usr/ports/sysutils/bsdstats/work/300.statistics  /usr/ports/sysutils/bsdstats/work/stage/usr/local/etc/periodic/monthly
install  -m 555 /usr/ports/sysutils/bsdstats/work/bsdstats-send  /usr/ports/sysutils/bsdstats/work/stage/usr/local/bin/bsdstats-send
====> Compressing man pages (compress-man)
===> Staging rc.d startup script(s)
====> Running Q/A tests (stage-qa)
===>  Installing for bsdstats-7.0
===>  Checking if bsdstats is already installed
===>   Registering installation for bsdstats-7.0
Installing bsdstats-7.0...
You installed BSDstats: script reporting statistics about your machine.

To disable monthly reporting, add this line to /etc/periodic.conf:
        monthly_statistics_enable="NO"

To disable parts of reporting, add these lines to /etc/periodic.conf:
        monthly_statistics_report_devices="NO"
        monthly_statistics_report_ports="NO"

To limit which ports are being submitted:
        create /usr/local/etc/bsdstats.conf and list ports to report in
        the form ${category}/${portname}, one entry per line. It is also
        possible to use the special self explanatory keyword "all-ports".
Example:
        sysutils/bsdstats
        ports-mgmt/pkg

To enable reporting on bootup, add this line to /etc/rc.conf:
        bsdstats_enable="YES"

To run it manually any time:
        bsdstats-send

To view current statistics, go to:
        http://www.bsdstats.org/

You can build bsdstats with TOR port option to submit anonymously

これだけ(^_^)v

野良 ports は統計に入れたくないよのぉ

インスコの最後にメッセージが出ちゃってるけ、その指示に沿ってファイルを作成するダケのお手軽さ👏
その際に、野良 ports のカテゴリと名前を書き入れるのじゃが現在インスコしよるのを表示させるワンライナーを実行して、そこから統計に参加させたくない野良 ports を探して書き入れちゃる。

/usr/local/etc/bsdstats.confに記述しよるports一覧するワンライナー
pkg info -ao | awk '{print$2}' | sort

初回のおまじない

bsdstats-send

コレで、毎週勝手にhttps://bsdstats.org/へ送信されて、統計に参加出来ちゃる。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?