Amazon Drive でロケールを指定する


Macの言語と地域 (Language & Region) を英語にしていると、
Amazon の接続先が になってしまう。
言語と地域は英語のままで に接続したい。

Amazon Version 3.5.4.f946b2a3 を利用。

ロケールを ja_JP で Amazon を起動

defaults write AppleLocale 'ja_JP'

ロケールを en_US で Amazon を起動

defaults write AppleLocale 'en_US'


Amazon - ヘルプコミュニティ - Cloud Driveデスクトップアプリの接続先

tlmgr で gnupg not available


tlmgr update --self --all を実行したらエラー.

% tlmgr update --self --all
tlmgr: package repository (not verified: gnupg not available)
tlmgr: saving backups to /usr/local/texlive/2016/tlpkg/backups

% tlmgr update --self --all
tlmgr: package repository (not verified: gnupg not available)
tlmgr: saving backups to /usr/local/texlive/2016/tlpkg/backups

% tlmgr key list
gnupg is not found or not set up, cannot continue with action `key'
tlmgr: An error has occurred. See above messages. Exiting.

% brew install gnupg2

% tlmgr key list
pub   2048R/06BAB6BC 2016-03-19
uid       [ultimate] TeX Live Distribution <>
sub   2048R/B001980F 2016-03-19
sub   2048R/19438C70 2016-03-19 [expires: 2017-09-10]

% tlmgr update --self --all
tlmgr: package repository (verified)
tlmgr: saving backups to /usr/local/texlive/2016/tlpkg/backups



NIST(National Institute of Standards and Technology) の部門CSD(Computer Security Division) が発行する
Special Publication 800-63B Digital Authentication Guideline の Memorized Secret Verifiers についての話題。


Verifiers SHOULD NOT require memorized secrets to be changed arbitrarily (e.g., periodically) unless there is evidence of compromise of the authenticator or a subscriber requests a change.


Memorized secret verifiers SHALL NOT permit the subscriber to store a “hint” that is accessible to an unauthenticated claimant. Verifiers also SHALL NOT prompt subscribers to use specific types of information (e.g., “What was the name of your first pet?”) when choosing memorized secrets.


DRAFT NIST Special Publication 800-63B Digital Authentication Guideline


やじうまWatch - 2016-06-27 - 「パスワードの定期変更をユーザーに求めるべきではない」……NISTの文書でついに明示へ

login と sudo を2要素認証にする


Google Authenticator を使ってlogin と sudo を2要素認証にする。


% sudo apt-get install libpam-google-authenticator


auth    [success=1 default=ignore] nullok_secure
auth required

initialize google-authenticator

% google-authenticator
Do you want me to update your "/home/USER/.google_authenticator" file (y/n) y
Do you want to disallow multiple uses of the same authentication token? This restricts you to one login about every 30s, but it increases your chances to notice or even prevent man-in-the-middle attacks (y/n)
By default, tokens are good for 30 seconds, and to compensate for possible time-skew between the client and the server, we allow an extra token before and after the current time. If you experience problems with poor time synchronization, you can increase the window from its default size of 1:30min to about 4min. Do you want to do so (y/n)
If the computer that you are logging into isn't hardened against brute-force login attempts, you can enable rate-limiting for the authentication module. By default, this limits attackers to no more than 3 login attempts every 30s. Do you want to enable rate-limiting (y/n)

質問に回答後、 16ケタのsecret key, 6ケタのverification code, 5つの緊急コードが表示される。
secret key は Google Authenticator App の設定に必要。

set up Google Authenticator App

Google Authenticator Appを起動
+ をタップ
Manual entry をタップ
Key を入力

Reference - 2016-05-13 - How to Set Up 2-Factor Authentication for Login and sudo

iTunes - Google Authenticaticator

Google Play - Google Authenticator

Googleアカウントヘルプ - Google 認証システムのインストール

CUI でタイムゾーン指定


dpkg-reconfigure tzdata


timedatactl を使う

sudo timedatectl set-timezone UTC
sudo timedatectl set-timezone Asia/Tokyo


How to change time-zone settings from the command line - Ask Ubuntu

HTTP API Design - Herokuが実践しているAPIデザインガイド



HTTP API design guide extracted from work on the Heroku Platform API


SOTA - 2014-06-02 - HerokuのAPIデザイン


GitHub - interagent/http-api-design: HTTP API design guide extracted from work on the Heroku Platform API

GitBooks - HTTP API Design


SOTA - 2014-06-02 - HerokuのAPIデザイン

/var/log/messages - 2014-06-22 - http api design