smb.conf に "min protocol = SMB2" を書いたら smbclient が NT_STATUS_CONNECTION_RESET エラーで失敗した

$ smbclient -L 192.168.0.1
Enter user's password: 
protocol negotiation failed: NT_STATUS_CONNECTION_RESET

原因

  • "min protocol" と書いていたため
    • "min protocol" は "server min protocol" と同義のため、クライアントの動作には効かない

対処

"client min protocol" と書く

client min protocol = SMB2

/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" セクションを参照してください。