/etc/DIR_COLORS が存在しない

問題

/etc/DIR_COLORS を編集しろという記事を見たが、ファイルが存在しない

環境

Debian 6.0.10 (squeeze) i386

原因

/etc/DIR_COLORS を使わないようになっているため

対処

代わりに ~/.dircolors ファイルを使う。

なければ作る。

$ dircolors  -p  > ~/.dircolors

注)~/.dircolors ファイルが在ればこれを、無ければ "dircolors -b" コマンド出力を使うようになっている(~/.bashrc 内)

linux レシピのビルドが "fatal error: linux/compiler-gcc5.h: No such file or directory" で失敗する

環境
原因
  • コンパイラーに gcc 5 を使ったため
    • 現在のバージョンが gcc 5 をサポートしていないため
解決方法
  1. gcc 4 を使う

  2. Linux 3.18 以降を使う

参考文献

smtp.gmail.com から gmail-smtp-msa.l.google.com を調べる方法

host コマンド使えばいいらしい。

$ host smtp.gmail.com
smtp.gmail.com is an alias for gmail-smtp-msa.l.google.com.
gmail-smtp-msa.l.google.com has address 74.125.204.108
gmail-smtp-msa.l.google.com has address 74.125.204.109
gmail-smtp-msa.l.google.com has IPv6 address 2404:6800:4008:c00::6c

参考

Raspberry Pi の見分け方

次のコマンドを実行する

$ cat /proc/cpuinfo | grep "^Revision"

表示された Revision の値をメモる

Revision        : 000e

ブラウザーhttps://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md を開いて、メモった値を探す

INSANE_SKIP

Specifies the QA checks to skip for a specific package within a recipe. For example, to skip the check for symbolic link .so files in the main package of a recipe, add the following to the recipe. The package name override must be used, which in this example is ${PN}:

レシピ内の指定したパッケージの QA のチェックをスキップします。たとえば、レシピのメインパッケージ内のシンボリックリンク .so ファイルのチェックをスキップするには、レシピに次の行を追加します。 パッケージ名のオーバーライドを使う必要があります。この例では ${PN} です。

INSANE_SKIP_${PN} += "dev-so"

See the "insane.bbclass" section for a list of the valid QA checks you can specify using this variable.

この変数で指定できる QA のチェック項目は、"insane.bbclass" セクションを参照してください。

exim4 を restart すると "ALERT: exim paniclog /var/log/exim4/paniclog has non-zero size, mail system possibly broken" と表示される

paniclog に次のようなメッセージが記録されている。

2019-01-18 13:45:30 socket bind() to port 25 for address ::1 failed: Cannot assign requested address: daemon abandoned

環境

原因

IPv6 を無効にしているのに、dc_local_interfaces の値に "::1" (IPv6 アドレス)を書いていたため。

/etc/exim4/update-exim4.conf.conf

dc_local_interfaces='127.0.0.1 ; ::1'

解決方法

dc_local_interfaces の値から "::1" を消す。

/etc/exim4/update-exim4.conf.conf

dc_local_interfaces='127.0.0.1'

paniclog ファイルを削除する。

$ sudo rm /var/log/exim4/paniclog