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.…

Raspberry Pi の見分け方

次のコマンドを実行する $ cat /proc/cpuinfo | grep "^Revision" 表示された Revision の値をメモる Revision : 000e ブラウザーで https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md を開いて、メモった値を探す

仮想マシンに追加した SCSI デバイスが認識されない

すっかり忘れてた。 原因 "SCSI ポート 7" になっていたため "SCSI ポート 7" は、システムに予約されている 対処 "SCSI ポート 7" 以外にする

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, wh…

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 環境 Exim 4.82 Ubuntu 14.04 LTS 原因 IPv6 を無効にしているのに、dc_loc…

Qwt 6.0.1 のビルドが失敗する

次のメッセージが表示される qwt-6.0.1> mingw32-make qwt_clipper.cpp: In instantiation of 'Polygon QwtPolygonClipper<Polygon, Rect, Point, T>::clipPolygon(const Polygon&, bool) const [with Polygon = QPolygon; Rect = QRect; Point = QPoint; T = int]': qwt_clipper.cpp:</polygon,>…

Organizations と HasComponentの違い

Organizations ≒ タグ HasComponent ≒ フォルダー 参考 https://opcfoundation.org/forum/opc-ua-standard/difference-between-referencetype-organizes-and-hascomponent/

autoheader 実行時に "error: AC_CONFIG_HEADERS not found in configure.ac" が表示される

エラーメッセージ autoheader: error: AC_CONFIG_HEADERS not found in configure.ac 訳 autoheader: エラー: configure.ac に AC_CONFIG_HEADERS がありません 環境 autoheader (GNU Autoconf) 2.69 原因 "AM_CONFIG_HEADER" が使われていた。 対処 "AC_CON…

automake 実行時に "no proper invocation of AM_INIT_AUTOMAKE was found." が表示される

エラーメッセージ configure.ac: error: no proper invocation of AM_INIT_AUTOMAKE was found. 原因と対処 typo してた。 誤:AC_INIT_AUTOMAKE 正:AM_INIT_AUTOMAKE 修正後は、aclocal コマンドからやり直す。 $ aclocal $ automake -a -c

Makefile のターゲットの一覧を表示する方法

「そんなものはない」 ので次のコマンドで代用している。 $ grep ^\w\+: Makefile

Qt Creator のサンプルが表示されない

環境 Ubuntu 14.04 対処 次のパッケージをインストールする。 * qtbase5-examples * qtbase5-doc-html 参考文献 https://askubuntu.com/questions/450983/ubuntu-14-04-qtcreator-qt5-examples-missing

SoMachine と SoMachine Basic の違い

SoMachine → 汎用 SoMachine Basic → M221 専用 https://www.schneider-electric.com/en/faqs/FA307649/

PREFERRED_PROVIDER

If multiple recipes provide an item, this variable determines which recipe should be given preference. You should always suffix the variable with the name of the provided item, and you should set it to the PN of the recipe to which you wan…

PROVIDES

A list of aliases that a recipe also provides. These aliases are useful for satisfying dependencies of other recipes during the build (as specified by DEPENDS). レシピが提供するエイリアスのリストです。これらのエイリアスは、ビルド中に( DEP…

python3 が "No module named 'encodings'" エラーで失敗する

事象 python3 の実行が次のエラーで失敗する $ python3 Fatal Python error: Py_Initialize: Unable to get the locale encoding ImportError: No module named 'encodings' Aborted 翻訳: Python の致命的なエラー: Py_Initialize: ローカルのエンコードを…

.pro ファイルの日本語が文字化けする

問題 Qt Creator で UTF-8 の .pro ファイルを開く プロジェクトにファイルを追加する .pro ファイル内の日本語が文字化けしている ファイル追加前 # ハローワールド ファイル追加後 # ハローワール��? 環境 Qt Creator 3.2.1 (with Qt 5.3.2) Windows 7 Pro…

Anaconda Prompt 起動時に Python が動作を停止する

問題 Anaconda Prompt の起動時に次のエラーが発生する。 Python は動作を停止しました 原因 旧い環境変数 "PYTHONHOME=C:\Python27" が残っていたため。 解決方法 環境変数 "PYTHONHOME" を削除する。 参考 Issue 27054: Python installation problem: No m…

git diff の結果をファイルごとに分割する

$ csplit 差分ファイル /^diff\ / {*} 例: $ csplit a.diff /^diff\ / {*}

ルートファイルシステムを読み取り専用でマウントしているのに mount コマンドの rootfs 行に rw と表示される

結論 "rootfs" 行は無視して、"/dev/root" 行を見る。 説明 "rootfs" は RAM(メモリー)上に作られる起動初期のルートファイルシステム "/dev/root" が正規のルートファイルシステム 参考 linux - Mount ext2 as totally readonly system from busybox - St…

Ubuntu 14.04 で ssh から x11vnc を起動するコマンド

$ sudo x11vnc -auth /var/run/lightdm/root/:0

man page of pamusb-conf

pamusb-conf(1) PAM_USB pamusb-conf(1) 名前 pamusb-conf - pam_usb 構成ツール 要項 pamusb-conf [--help] [--verbose] [--config=path] [--add-user=name | --add-device=name] 説明 pamusb-conf は pamusb.conf 構成ファイル生成を助けるよう設計された…

alsa-utils レシピの configure タスクが失敗する

詳細 ログに次のメッセージが出力される。 checking for new_panel in -lpanelw... no configure: error: panelw library not found 原因 不明 対処 alsa-tools と ncurses をリビルドする。 $ bitbake alsa-tools -c cleansstate $ bitbake ncurses -c clea…

Linux Input / evdev イベントを確認する方法

evtest コマンドを使う。 # evtest No device specified, trying to scan all of /dev/input/event* Available devices: /dev/input/event0: Power Button /dev/input/event1: Sleep Button /dev/input/event2: AT Translated Set 2 keyboard /dev/input/eve…

extern が undefined reference エラーになる

C++

コード a.cpp: const char * const Hello = "Hello."; b.cpp: extern const char * const Hello; エラー b.cpp:001: エラー: undefined reference to `Hello' 原因 C++ では const は、暗黙 static になるため。 解決方法 定義行に "extern" を付加する。 a.…

Microsoft Network Adapter Multiplexor Protocol を再インストールできない

問題 ネットワークアダプターのプロパティーで Microsoft Network Adapter Multiplexor Protocol をインストールしようとすると「必要なモジュールが見つかりません。」といった旨のエラーが表示され再インストールできない。 環境 Windows 10 Enterprise 20…

bitnami-redmine (Debian 9 stretch) のキーボードレイアウトを変更する

そもそもパッケージが足りてないっぽい。次のコマンドでインストール。 # apt install console-setup console-data dialog

/etc/mysql/mariadb.conf.d/50-server.cnf の bind-address で複数の IP アドレスにバインドする

できない。 この項目は、1つか全てかで考えるようだ。 環境 MariaDB 10.1.26 Debian 9.3 参考 https://serverfault.com/questions/139323/how-to-bind-mysql-server-to-more-than-one-ip-address

man page of pamusb-agent

pamusb-agent(1) PAM_USB pamusb-agent(1) 名前 pamusb-agent - pam_usb イベントハンドラー 要項 pamusb-agent [--help] [--config=path] [--daemon] [--check=path] 説明 pamusb-agent は USB デバイス挿入時 (pam_usb を通して一度認証されます) と 抜取…

ERROR: Please ensure that your setting of VIRTUAL-RUNTIME_init_manager (sysvinit) matches the entries enabled in DISTRO_FEATURES

エラー: VIRTUAL-RUNTIME_init_manager (sysvinit) の設定が DISTRO_FEATURES で有効な項目と一致するようにしてください。

十字キー8方向の英語表記

あれこれ検索して、やっとヒットしたのでメモ。 Up Down Left Right Up Left Up Right Down Left Down Right 8方向を英語で表すとそれぞれどうなるのでしょうか? - ゲームコン... - Yahoo!知恵袋 より