{ "version": "https://jsonfeed.org/version/1.1", "user_comment": "This feed allows you to read the posts from this site in any feed reader that supports the JSON Feed format. To add this feed to your reader, copy the following URL -- https://matoken.org/blog/tag/debian-linux/feed/json/ -- and add it your reader.", "next_url": "https://matoken.org/blog/tag/debian-linux/feed/json/?paged=2", "home_page_url": "https://matoken.org/blog/tag/debian-linux/", "feed_url": "https://matoken.org/blog/tag/debian-linux/feed/json/", "language": "ja", "title": "Debian – matoken's blog", "description": "Is there no plan B?", "icon": "https://matoken.org/blog/wp-content/uploads/2025/03/cropped-1865f695c4eecc844385acef2f078255036adccd42c254580ea3844543ab56d9.jpeg", "items": [ { "id": "https://matoken.org/blog/?p=4909", "url": "https://matoken.org/blog/2025/12/11/latest-snac-using-debian-backports/", "title": "Debian 13 trixie\u3067backports\u3092\u4f7f\u3044\u6700\u65b0\u306esnac\u3092\u5229\u7528", "content_html": "
\n
\n
\n

\"snac

\n
\n
\n

\u3055\u304f\u3089\u306e\u30ca\u30ec\u30c3\u30b8\u306b\u8efd\u91cfActivityPub Server \u306esnac \u306b\u3064\u3044\u3066\u306e\u8a18\u4e8b\u3092\u5bc4\u7a3f\u3057\u307e\u3057\u305f\uff0e

\n
\n\n
\n

\u3053\u3053\u306b\u66f8\u304b\u306a\u304b\u3063\u305fsnac \u306e\u3053\u3068\u3092\u3044\u304f\u3064\u304b\u66f8\u3044\u3066\u3044\u3053\u3046\u3068\u601d\u3044\u307e\u3059\uff0e
\n\u4eca\u65e5\u306fDebian trixie backports \u306esnac \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3046\u3088\u3046\u8a2d\u5b9a\u3057\u3066\u307f\u307e\u3059\uff0e

\n
\n

\n

\n
\n
\n

Debian \u3067\u306esnac2 \u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3

\n
\n
\n

snac2 \u306fDebian \u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u306a\u3063\u3066\u3044\u307e\u3059\uff0e\u3057\u304b\u3057\uff0cstable \u306eDebian 13 trixie \u306esnac2 \u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f 2.75-2 \u3067\u5c11\u3057\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3059\uff0e
\nstable-backports \u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u73fe\u5728\u306e\u4e0a\u6d41\u306e\u6700\u65b0\u3068\u540c\u3058 2.85 \u306a\u306e\u3067\u3053\u308c\u3092\u5229\u7528\u3057\u3066\u307f\u307e\u3059\uff0e

\n
\n
\n
\n
$ rmadison snac2| grep -v debug\nsnac2      | 2.75-2~bpo12+1 | oldstable-backports       | source, amd64, arm64, armel, armhf, i386, mips64el, mipsel, ppc64el, s390x\nsnac2      | 2.75-2         | stable                    | source, amd64, arm64, armel, armhf, i386, ppc64el, riscv64, s390x\nsnac2      | 2.84-3~bpo13+1 | stable-backports          | source, riscv64\nsnac2      | 2.85-1~bpo13+1 | stable-backports          | source, amd64, arm64, armel, armhf, i386, ppc64el, s390x\nsnac2      | 2.85-1         | testing                   | source, amd64, arm64, armhf, i386, ppc64el, riscv64, s390x\nsnac2      | 2.85-1         | unstable                  | source, amd64, arm64, armhf, i386, ppc64el, riscv64, s390x
\n
\n
\n\n
\n
\n
\n

Debian 13 trixie \u306b backports \u3092\u8a2d\u5b9a

\n
\n
\n

Debian backports \u306fDebian stable \u3067\u4e00\u90e8\u306etesting \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u8abf\u6574\u3055\u308c\u305f\u3082\u306e\u3067\u5bfe\u5fdc\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u3042\u308c\u3070stable \u3088\u308a\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u5229\u7528\u3067\u304d\u307e\u3059\uff0e

\n
\n\n
\n

\u3053\u308c\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306b\u306fbackports \u60c5\u5831\u3092 sources.list \u306b\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\uff0e
\n\u3053\u3053\u3067\u306f\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3068\u540c\u3058 /etc/apt/sources.list.d/debian-backports.sources \u3068\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\uff0e

\n
\n
\n
/etc/apt/sources.list.d/debian-backports.sources \u3092\u4f5c\u6210
\n
\n
Types: deb deb-src\nURIs: http://deb.debian.org/debian\nSuites: trixie-backports\nComponents: main\nEnabled: yes\nSigned-By: /usr/share/keyrings/debian-archive-keyring.gpg
\n
\n
\n
\n

\u7d9a\u3044\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u60c5\u5831\u3092backports \u3092\u542b\u3080\u6700\u65b0\u72b6\u614b\u306b\u3057\u307e\u3059\uff0e

\n
\n
\n
\u30d1\u30c3\u30b1\u30fc\u30b8\u60c5\u5831\u66f4\u65b0
\n
\n
$ sudo apt update
\n
\n
\n
\n

backports \u306e snac \u3092\u5c0e\u5165

\n
\n

backpots \u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u901a\u5e38\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u306f\u5c0e\u5165\u3055\u308c\u307e\u305b\u3093\uff0ebackports \u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5c0e\u5165\u3059\u308b\u306b\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u306b /trixie-backports \u3092\u4ed8\u3051\u3066\u5c0e\u5165\u3057\u307e\u3059\uff0e

\n
\n
\n
\n
$ sudo apt install snac2/trixie-backports
\n
\n
\n
\n

\u3082\u3057\u304f\u306f -t trixie-backports \u3092\u4ed8\u3051\u3066\u5c0e\u5165\u3059\u308b\u3068\u4e0d\u8db3\u3057\u305f\u4f9d\u5b58\u95a2\u4fc2\u3082\u5c0e\u5165\u3055\u308c\u308b\u3088\u3046\u3067\u3059\uff0e

\n
\n
\n
\n
$ sudo apt install -t trixie-backports snac2
\n
\n
\n
\n
\n
$ dpkg-query -W snac2\nsnac2   2.85-1~bpo13+1\n$ snac version\nsnac 2.85 - A simple, minimalistic ActivityPub instance\nCopyright (c) 2022 - 2025 grunfink et al. / MIT license\n\nupgrade {basedir}                    Upgrade to a new version
\n
\n
\n
\n

\u5c0e\u5165\u3055\u308c\u305fbackports \u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u901a\u5e38\u3068\u540c\u3058\u512a\u5148\u5ea6100\u306b\u56fa\u5b9a\u3055\u308c\u308b\u306e\u3067\u5c0e\u5165\u5f8c\u306f\u3044\u3064\u3082\u306e apt upgrade \u3067backports \u30d1\u30c3\u30b1\u30fc\u30b8\u3082\u66f4\u65b0\u3055\u308c\u307e\u3059\uff0e\u3064\u307e\u308a\u901a\u5e38\u306e\u904b\u7528\u3067\u5927\u4e08\u592b\u3067\u3059\uff0e

\n
\n
\n
\n
\n
\n

snac \u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u64cd\u4f5c

\n
\n
\n

snac \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u6642\u306b\u30c7\u30a3\u30b9\u30af\u69cb\u6210\u304c\u5909\u308f\u308b\u3053\u3068\u304c\u3042\u308a\uff0c\u305d\u306e\u5834\u5408snac \u304c\u8d77\u52d5\u3057\u306a\u3044\u3088\u3046\u3067\u3059\uff0e\u305d\u306e\u5834\u5408snac \u306e upgrade \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3088\u3046\u3067\u3059\uff0e
\n\u81ea\u5206\u306f\u5ff5\u306e\u70ba\u6bce\u56de\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\uff0e

\n
\n
\n
snac(8)\u3088\u308a
\n
\n
\n
\n
Upgrading to a new version\n    Sometimes, the data storage disk layout changes between versions. If there is such a change, snac will refuse to run and require an upgrade. Do this by running
\n
\n
\n
\n
\n
snac upgrade $HOME/snac-data
\n
\n
\n
\n
\n
Take special care to execute this upgrade operation without any snac processes serving on the same folder. You can break everything. I know this because Tyler knows this.
\n
\n
\n
\n
\n
\n
\n
$ snac | grep upgrade\nupgrade {basedir}                    Upgrade to a new version
\n
\n
\n
\n

upgrade \u30b3\u30de\u30f3\u30c9\u306f\u30c7\u30fc\u30e2\u30f3\u304c\u8d77\u52d5\u3057\u3066\u3044\u306a\u3044\u72b6\u614b\u3067\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u4e00\u65e6snac \u3092\u505c\u6b62\u3057\u3066\u304b\u3089\u5b9f\u884c\uff0c\u305d\u306e\u5f8csnac \u3092\u8d77\u52d5\u3057\u307e\u3059\uff0e

\n
\n
\n
\n
$ sudo service snac2 stop (1)\n$ sudo -u debian-snac snac upgrade /var/lib/snac2/ (2)\n19:45:50 Linux sandbox not compiled in\n19:45:50 OK\n$ sudo service snac2 start (3)\n$ w3m -dump https://snac.kagolug.org/info | tail -1 (4)\nabout this site - powered by snac/2.83
\n
\n
\n
\n
    \n
  1. \n

    snac \u505c\u6b62

    \n
  2. \n
  3. \n

    snac upgrade

    \n
  4. \n
  5. \n

    snac \u8d77\u52d5

    \n
  6. \n
  7. \n

    \u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d

    \n
  8. \n
\n
\n
\n

\u3068\u3044\u3046\u611f\u3058\u3067Debian stable \u3067\u3082\u6700\u65b0\u306esnac \u304c\u5229\u7528\u3067\u304d\u3066\u3044\u307e\u3059\uff0e\u4e00\u65e6\u8a2d\u5b9a\u3059\u308b\u3068\u901a\u5e38\u306eDebian \u30d1\u30c3\u30b1\u30fc\u30b8\u66f4\u65b0\u64cd\u4f5c\u3067\u8ffd\u5f93\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u904b\u7528\u3082\u3044\u3064\u3082\u3068\u5909\u308f\u308a\u307e\u305b\u3093\uff0e\u66f4\u65b0\u30bf\u30a4\u30df\u30f3\u30b0\u3082\u516c\u5f0f\u3068\u898b\u6bd4\u3079\u308b\u3068\u7d50\u69cb\u3059\u3050\u5bfe\u5fdc\u3057\u3066\u304f\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\uff0e

\n
\n\n
\n
\n", "content_text": "\u3055\u304f\u3089\u306e\u30ca\u30ec\u30c3\u30b8\u306b\u8efd\u91cfActivityPub Server \u306esnac \u306b\u3064\u3044\u3066\u306e\u8a18\u4e8b\u3092\u5bc4\u7a3f\u3057\u307e\u3057\u305f\uff0e\n\n\n\n\n\u3055\u304f\u3089\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306e\u3055\u304f\u3089\u306e\u30ca\u30ec\u30c3\u30b8\u306bsnac\u306e\u8a18\u4e8b\u3092\u5bc4\u7a3f \u2013 matoken’s blog\n\n\n\n\n\u3053\u3053\u306b\u66f8\u304b\u306a\u304b\u3063\u305fsnac \u306e\u3053\u3068\u3092\u3044\u304f\u3064\u304b\u66f8\u3044\u3066\u3044\u3053\u3046\u3068\u601d\u3044\u307e\u3059\uff0e\n\u4eca\u65e5\u306fDebian trixie backports \u306esnac \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3046\u3088\u3046\u8a2d\u5b9a\u3057\u3066\u307f\u307e\u3059\uff0e\n\n\n\n\n\nDebian \u3067\u306esnac2 \u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\n\n\nsnac2 \u306fDebian \u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u306a\u3063\u3066\u3044\u307e\u3059\uff0e\u3057\u304b\u3057\uff0cstable \u306eDebian 13 trixie \u306esnac2 \u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f 2.75-2 \u3067\u5c11\u3057\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3059\uff0e\nstable-backports \u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u73fe\u5728\u306e\u4e0a\u6d41\u306e\u6700\u65b0\u3068\u540c\u3058 2.85 \u306a\u306e\u3067\u3053\u308c\u3092\u5229\u7528\u3057\u3066\u307f\u307e\u3059\uff0e\n\n\n\n$ rmadison snac2| grep -v debug\nsnac2 | 2.75-2~bpo12+1 | oldstable-backports | source, amd64, arm64, armel, armhf, i386, mips64el, mipsel, ppc64el, s390x\nsnac2 | 2.75-2 | stable | source, amd64, arm64, armel, armhf, i386, ppc64el, riscv64, s390x\nsnac2 | 2.84-3~bpo13+1 | stable-backports | source, riscv64\nsnac2 | 2.85-1~bpo13+1 | stable-backports | source, amd64, arm64, armel, armhf, i386, ppc64el, s390x\nsnac2 | 2.85-1 | testing | source, amd64, arm64, armhf, i386, ppc64el, riscv64, s390x\nsnac2 | 2.85-1 | unstable | source, amd64, arm64, armhf, i386, ppc64el, riscv64, s390x\n\n\n\n\n\nDebian — \u30d1\u30c3\u30b1\u30fc\u30b8\u691c\u7d22\u7d50\u679c — snac2\n\n\n\n\n\n\nDebian 13 trixie \u306b backports \u3092\u8a2d\u5b9a\n\n\nDebian backports \u306fDebian stable \u3067\u4e00\u90e8\u306etesting \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u8abf\u6574\u3055\u308c\u305f\u3082\u306e\u3067\u5bfe\u5fdc\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u3042\u308c\u3070stable \u3088\u308a\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u5229\u7528\u3067\u304d\u307e\u3059\uff0e\n\n\n\n\nDebian Backports\n\n\nInstructions\n\n\n\n\n\u3053\u308c\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306b\u306fbackports \u60c5\u5831\u3092 sources.list \u306b\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\uff0e\n\u3053\u3053\u3067\u306f\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3068\u540c\u3058 /etc/apt/sources.list.d/debian-backports.sources \u3068\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\uff0e\n\n\n/etc/apt/sources.list.d/debian-backports.sources \u3092\u4f5c\u6210\n\nTypes: deb deb-src\nURIs: http://deb.debian.org/debian\nSuites: trixie-backports\nComponents: main\nEnabled: yes\nSigned-By: /usr/share/keyrings/debian-archive-keyring.gpg\n\n\n\n\u7d9a\u3044\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u60c5\u5831\u3092backports \u3092\u542b\u3080\u6700\u65b0\u72b6\u614b\u306b\u3057\u307e\u3059\uff0e\n\n\n\u30d1\u30c3\u30b1\u30fc\u30b8\u60c5\u5831\u66f4\u65b0\n\n$ sudo apt update\n\n\n\nbackports \u306e snac \u3092\u5c0e\u5165\n\nbackpots \u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u901a\u5e38\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u306f\u5c0e\u5165\u3055\u308c\u307e\u305b\u3093\uff0ebackports \u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5c0e\u5165\u3059\u308b\u306b\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u306b /trixie-backports \u3092\u4ed8\u3051\u3066\u5c0e\u5165\u3057\u307e\u3059\uff0e\n\n\n\n$ sudo apt install snac2/trixie-backports\n\n\n\n\u3082\u3057\u304f\u306f -t trixie-backports \u3092\u4ed8\u3051\u3066\u5c0e\u5165\u3059\u308b\u3068\u4e0d\u8db3\u3057\u305f\u4f9d\u5b58\u95a2\u4fc2\u3082\u5c0e\u5165\u3055\u308c\u308b\u3088\u3046\u3067\u3059\uff0e\n\n\n\n$ sudo apt install -t trixie-backports snac2\n\n\n\n\n$ dpkg-query -W snac2\nsnac2 2.85-1~bpo13+1\n$ snac version\nsnac 2.85 - A simple, minimalistic ActivityPub instance\nCopyright (c) 2022 - 2025 grunfink et al. / MIT license\n\nupgrade {basedir} Upgrade to a new version\n\n\n\n\u5c0e\u5165\u3055\u308c\u305fbackports \u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u901a\u5e38\u3068\u540c\u3058\u512a\u5148\u5ea6100\u306b\u56fa\u5b9a\u3055\u308c\u308b\u306e\u3067\u5c0e\u5165\u5f8c\u306f\u3044\u3064\u3082\u306e apt upgrade \u3067backports \u30d1\u30c3\u30b1\u30fc\u30b8\u3082\u66f4\u65b0\u3055\u308c\u307e\u3059\uff0e\u3064\u307e\u308a\u901a\u5e38\u306e\u904b\u7528\u3067\u5927\u4e08\u592b\u3067\u3059\uff0e\n\n\n\n\n\nsnac \u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u64cd\u4f5c\n\n\nsnac \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u6642\u306b\u30c7\u30a3\u30b9\u30af\u69cb\u6210\u304c\u5909\u308f\u308b\u3053\u3068\u304c\u3042\u308a\uff0c\u305d\u306e\u5834\u5408snac \u304c\u8d77\u52d5\u3057\u306a\u3044\u3088\u3046\u3067\u3059\uff0e\u305d\u306e\u5834\u5408snac \u306e upgrade \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3088\u3046\u3067\u3059\uff0e\n\u81ea\u5206\u306f\u5ff5\u306e\u70ba\u6bce\u56de\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\uff0e\n\n\nsnac(8)\u3088\u308a\n\n\n\nUpgrading to a new version\n Sometimes, the data storage disk layout changes between versions. If there is such a change, snac will refuse to run and require an upgrade. Do this by running\n\n\n\n\nsnac upgrade $HOME/snac-data\n\n\n\n\nTake special care to execute this upgrade operation without any snac processes serving on the same folder. You can break everything. I know this because Tyler knows this.\n\n\n\n\n\n\n$ snac | grep upgrade\nupgrade {basedir} Upgrade to a new version\n\n\n\nupgrade \u30b3\u30de\u30f3\u30c9\u306f\u30c7\u30fc\u30e2\u30f3\u304c\u8d77\u52d5\u3057\u3066\u3044\u306a\u3044\u72b6\u614b\u3067\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u4e00\u65e6snac \u3092\u505c\u6b62\u3057\u3066\u304b\u3089\u5b9f\u884c\uff0c\u305d\u306e\u5f8csnac \u3092\u8d77\u52d5\u3057\u307e\u3059\uff0e\n\n\n\n$ sudo service snac2 stop (1)\n$ sudo -u debian-snac snac upgrade /var/lib/snac2/ (2)\n19:45:50 Linux sandbox not compiled in\n19:45:50 OK\n$ sudo service snac2 start (3)\n$ w3m -dump https://snac.kagolug.org/info | tail -1 (4)\nabout this site - powered by snac/2.83\n\n\n\n\n\nsnac \u505c\u6b62\n\n\nsnac upgrade\n\n\nsnac \u8d77\u52d5\n\n\n\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d\n\n\n\n\n\u3068\u3044\u3046\u611f\u3058\u3067Debian stable \u3067\u3082\u6700\u65b0\u306esnac \u304c\u5229\u7528\u3067\u304d\u3066\u3044\u307e\u3059\uff0e\u4e00\u65e6\u8a2d\u5b9a\u3059\u308b\u3068\u901a\u5e38\u306eDebian \u30d1\u30c3\u30b1\u30fc\u30b8\u66f4\u65b0\u64cd\u4f5c\u3067\u8ffd\u5f93\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u904b\u7528\u3082\u3044\u3064\u3082\u3068\u5909\u308f\u308a\u307e\u305b\u3093\uff0e\u66f4\u65b0\u30bf\u30a4\u30df\u30f3\u30b0\u3082\u516c\u5f0f\u3068\u898b\u6bd4\u3079\u308b\u3068\u7d50\u69cb\u3059\u3050\u5bfe\u5fdc\u3057\u3066\u304f\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\uff0e\n\n\n\n\n\u30bf\u30b0 – grunfink/snac2 – Codeberg.org\n\n\nDebian Package Tracker", "date_published": "2025-12-11T18:35:57+09:00", "date_modified": "2025-12-11T18:35:58+09:00", "authors": [ { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" } ], "author": { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" }, "tags": [ "ActivityPub", "Debian", "snac", "Linux", "trixie" ] }, { "id": "https://matoken.org/blog/?p=4135", "url": "https://matoken.org/blog/2024/10/15/converting-debian-to-parrotos/", "title": "Debian\u3092ParrotOS\u306b\u5909\u63db\u3057\u3066\u307f\u308b", "content_html": "

\n
\n

Debian \u304b\u3089 ParrotOS \u306b\u5909\u63db\u3059\u308b Debian Conversion Script \u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e

\n
\n
\n\n
\n

\n
\n

ParrotOS \u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8\u3067\u3044\u308d\u3044\u308d\u306a\u9078\u629e\u80a2\u304c\u3042\u308b\u306a\u3068\u898b\u3066\u3044\u308b\u3068\uff0c

\n
\n
\n
\n
\n

Choose the right edition for you
\nFollow the steps below to determine the edition of ParrotOS that best suits your needs and preferences.

\n
\n
\n
\n
\n

Debian Conversion Script \u3068\u3044\u3046\u306e\u3092\u898b\u304b\u3051\u3066\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e

\n
\n
\n
\n
\n

Debian Conversion Script

\n
\n
\n

Quick script to convert an existing Debian installation to Parrot (all editions).

\n
\n
\n
\n
\n

\u307e\u305a Debian stable 12.7.0 \u3092 netinst iso(debian-12.7.0-amd64-netinst.iso)\u304b\u3089\u5c0e\u5165\u3057\u3066\u8d77\u52d5\u3057\u307e\u3057\u305f\uff0e

\n
\n
\n

\u305d\u3057\u3066\u3053\u3061\u3089\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306e script \u3092\u5229\u7528\u3057\u307e\u3059\uff0e

\n
\n
\n\n
\n
\n

\u521d\u671f\u72b6\u614b\u3067\u306f\u5165\u3063\u3066\u3044\u306a\u3044 git \u3092\u5c0e\u5165\u3057\u3066 clone\uff0c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u5b9f\u884c\u6a29\u3092\u4ed8\u3051\u3066\u5b9f\u884c\u3057\u307e\u3059\uff0e

\n
\n
\n
\n
$ sudo apt install git\n$ git clone https://gitlab.com/parrotsec/project/debian-conversion-script.git\n$ cd debian-conversion-script\n$ sudo chmod +x ./install.sh\n$ script\n$ sudo ./install.sh
\n
\n
\n
\n

\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u9078\u629e\u80a2\u304c\u51fa\u3066\u304f\u308b\u306e\u3067\u597d\u307f\u306e Edition \u3092\u9078\u629e\u3057\u307e\u3059\uff0e\u4eca\u56de\u306f\u307e\u305a 2 \u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306e\u65e5\u5e38\u7528\u9014\u3092\u9078\u3073\u307e\u3057\u305f\uff0e

\n
\n
\n
\n
========== ParrotOS Editions Installer ==========\n1) Install Core Edition: Minimal installation for server use.\n2) Install Home Edition: Full desktop environment for daily use.\n3) Install Security Edition: Tools for security testing and auditing.\n4) Install Hack The Box Edition: Customized environment for Hack The Box labs.\n5) Install Headless Edition: Minimal installation without GUI for servers.\n6) Exit\n=================================================\nEnter the option number: 2
\n
\n
\n
\n

\u3057\u3070\u3089\u304f\u5f85\u3064\u3068\u5c0e\u5165\u3055\u308c\u308b\u306e\u3067\u518d\u8d77\u52d5\u3057\u3066 ParrotOS \u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3092\u78ba\u8a8d\u3057\u307e\u3059\uff0e
\nXfce \u3067\u3057\u305f\u304c\uff0cMATE \u306b\u306a\u308a\u58c1\u7d19\u306a\u3069\u3082 Parrot \u306b\uff0eHome Edition \u3060\u3068\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u306f\u3042\u307e\u308a\u5909\u308f\u3089\u306a\u305d\u3046\u3067\u3059\uff0e\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30b9\u30c8\u306f ./config/packages/ \u4ee5\u4e0b\u306b Edition \u3054\u3068\u306b\u7f6e\u3044\u3066\u3042\u308a\u307e\u3059\uff0e

\n
\n
\n

\"parrotos\"/
\n\"parrotos

\n
\n
\n

\u3068\u3044\u3046\u611f\u3058\u3067\u7c21\u5358\u306b ParrotOS \u306b\u306a\u308a\u307e\u3057\u305f\uff0e\u518d\u5ea6\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb script \u3092\u5b9f\u884c\u3057\u3066\u4ed6\u306e Edition \u3092\u9078\u629e\u3057\u76f4\u3059\u3053\u3068\u3082\u3067\u304d\u307e\u3057\u305f\uff0e

\n
\n
\n

Debian \u3067\u3082 forensics-* \u3042\u305f\u308a\u306e metapackage \u3092\u5165\u308c\u308c\u3070\u826f\u3044\u306e\u3067\u306f\u3068\u601d\u3063\u305f\u308a\u3057\u307e\u3059\u304c\u3057\u3070\u3089\u304f ParrotOS \u3082\u8a66\u3057\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\uff0e

\n
\n
\n
\n
$ apt-cache search ^forensic\nforemost - forensic program to recover lost files\nforensic-artifacts - knowledge base of forensic artifacts (data files)\nforensics-all - Debian Forensics Environment - essential components (metapackage)\nforensics-all-gui - Debian Forensics Environment - GUI components (metapackage)\nforensics-colorize - show differences between files using color graphics\nforensics-extra - Forensics Environment - extra console components (metapackage)\nforensics-extra-gui - Forensics Environment - extra GUI components (metapackage)\nforensics-full - Full forensics station (metapackage)\nforensics-samples-all - Set of files to help learn/test forensics tools and techniques (metapackage)\nforensics-samples-btrfs - Set of files to help learn/test forensics tools and techniques (btrfs)\nforensics-samples-exfat - Set of files to help learn/test forensics tools and techniques (exFAT)\nforensics-samples-ext2 - Set of files to help learn/test forensics tools and techniques (ext2)\nforensics-samples-ext4 - Set of files to help learn/test forensics tools and techniques (ext4)\nforensics-samples-files - Set of files to help learn/test forensics tools and techniques (files)\nforensics-samples-multiple - Set of files to help learn/test forensics tools and techniques (multiple FS)\nforensics-samples-ntfs - Set of files to help learn/test forensics tools and techniques (ntfs)\nforensics-samples-tools - Set of files to help learn/test forensics tools and techniques (tools)\nforensics-samples-vfat - Set of files to help learn/test forensics tools and techniques (vfat)\nguymager - Forensic imaging tool based on Qt\nunhide - forensic tool to find hidden processes and ports\nunhide.rb - Forensics tool to find processes hidden by rootkits\nvinetto - forensics tool to examine Thumbs.db files
\n
\n
\n", "content_text": "Debian \u304b\u3089 ParrotOS \u306b\u5909\u63db\u3059\u308b Debian Conversion Script \u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e\n\n\n\n\nParrot Security\n\n\n\n\n\nParrotOS \u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8\u3067\u3044\u308d\u3044\u308d\u306a\u9078\u629e\u80a2\u304c\u3042\u308b\u306a\u3068\u898b\u3066\u3044\u308b\u3068\uff0c\n\n\n\n\nChoose the right edition for you\nFollow the steps below to determine the edition of ParrotOS that best suits your needs and preferences.\n\n\n\n\nDebian Conversion Script \u3068\u3044\u3046\u306e\u3092\u898b\u304b\u3051\u3066\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e\n\n\n\n\nDebian Conversion Script\n\n\nQuick script to convert an existing Debian installation to Parrot (all editions).\n\n\n\n\n\u307e\u305a Debian stable 12.7.0 \u3092 netinst iso(debian-12.7.0-amd64-netinst.iso)\u304b\u3089\u5c0e\u5165\u3057\u3066\u8d77\u52d5\u3057\u307e\u3057\u305f\uff0e\n\n\n\u305d\u3057\u3066\u3053\u3061\u3089\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306e script \u3092\u5229\u7528\u3057\u307e\u3059\uff0e\n\n\n\n\nparrotsec / project / Debian Conversion Script \u00b7 GitLab\n\n\n\n\n\u521d\u671f\u72b6\u614b\u3067\u306f\u5165\u3063\u3066\u3044\u306a\u3044 git \u3092\u5c0e\u5165\u3057\u3066 clone\uff0c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u5b9f\u884c\u6a29\u3092\u4ed8\u3051\u3066\u5b9f\u884c\u3057\u307e\u3059\uff0e\n\n\n\n$ sudo apt install git\n$ git clone https://gitlab.com/parrotsec/project/debian-conversion-script.git\n$ cd debian-conversion-script\n$ sudo chmod +x ./install.sh\n$ script\n$ sudo ./install.sh\n\n\n\n\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u9078\u629e\u80a2\u304c\u51fa\u3066\u304f\u308b\u306e\u3067\u597d\u307f\u306e Edition \u3092\u9078\u629e\u3057\u307e\u3059\uff0e\u4eca\u56de\u306f\u307e\u305a 2 \u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306e\u65e5\u5e38\u7528\u9014\u3092\u9078\u3073\u307e\u3057\u305f\uff0e\n\n\n\n========== ParrotOS Editions Installer ==========\n1) Install Core Edition: Minimal installation for server use.\n2) Install Home Edition: Full desktop environment for daily use.\n3) Install Security Edition: Tools for security testing and auditing.\n4) Install Hack The Box Edition: Customized environment for Hack The Box labs.\n5) Install Headless Edition: Minimal installation without GUI for servers.\n6) Exit\n=================================================\nEnter the option number: 2\n\n\n\n\u3057\u3070\u3089\u304f\u5f85\u3064\u3068\u5c0e\u5165\u3055\u308c\u308b\u306e\u3067\u518d\u8d77\u52d5\u3057\u3066 ParrotOS \u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3092\u78ba\u8a8d\u3057\u307e\u3059\uff0e\nXfce \u3067\u3057\u305f\u304c\uff0cMATE \u306b\u306a\u308a\u58c1\u7d19\u306a\u3069\u3082 Parrot \u306b\uff0eHome Edition \u3060\u3068\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u306f\u3042\u307e\u308a\u5909\u308f\u3089\u306a\u305d\u3046\u3067\u3059\uff0e\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30b9\u30c8\u306f ./config/packages/ \u4ee5\u4e0b\u306b Edition \u3054\u3068\u306b\u7f6e\u3044\u3066\u3042\u308a\u307e\u3059\uff0e\n\n\n\n\n\n\n\u3068\u3044\u3046\u611f\u3058\u3067\u7c21\u5358\u306b ParrotOS \u306b\u306a\u308a\u307e\u3057\u305f\uff0e\u518d\u5ea6\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb script \u3092\u5b9f\u884c\u3057\u3066\u4ed6\u306e Edition \u3092\u9078\u629e\u3057\u76f4\u3059\u3053\u3068\u3082\u3067\u304d\u307e\u3057\u305f\uff0e\n\n\nDebian \u3067\u3082 forensics-* \u3042\u305f\u308a\u306e metapackage \u3092\u5165\u308c\u308c\u3070\u826f\u3044\u306e\u3067\u306f\u3068\u601d\u3063\u305f\u308a\u3057\u307e\u3059\u304c\u3057\u3070\u3089\u304f ParrotOS \u3082\u8a66\u3057\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\uff0e\n\n\n\n$ apt-cache search ^forensic\nforemost - forensic program to recover lost files\nforensic-artifacts - knowledge base of forensic artifacts (data files)\nforensics-all - Debian Forensics Environment - essential components (metapackage)\nforensics-all-gui - Debian Forensics Environment - GUI components (metapackage)\nforensics-colorize - show differences between files using color graphics\nforensics-extra - Forensics Environment - extra console components (metapackage)\nforensics-extra-gui - Forensics Environment - extra GUI components (metapackage)\nforensics-full - Full forensics station (metapackage)\nforensics-samples-all - Set of files to help learn/test forensics tools and techniques (metapackage)\nforensics-samples-btrfs - Set of files to help learn/test forensics tools and techniques (btrfs)\nforensics-samples-exfat - Set of files to help learn/test forensics tools and techniques (exFAT)\nforensics-samples-ext2 - Set of files to help learn/test forensics tools and techniques (ext2)\nforensics-samples-ext4 - Set of files to help learn/test forensics tools and techniques (ext4)\nforensics-samples-files - Set of files to help learn/test forensics tools and techniques (files)\nforensics-samples-multiple - Set of files to help learn/test forensics tools and techniques (multiple FS)\nforensics-samples-ntfs - Set of files to help learn/test forensics tools and techniques (ntfs)\nforensics-samples-tools - Set of files to help learn/test forensics tools and techniques (tools)\nforensics-samples-vfat - Set of files to help learn/test forensics tools and techniques (vfat)\nguymager - Forensic imaging tool based on Qt\nunhide - forensic tool to find hidden processes and ports\nunhide.rb - Forensics tool to find processes hidden by rootkits\nvinetto - forensics tool to examine Thumbs.db files", "date_published": "2024-10-15T07:39:32+09:00", "date_modified": "2024-10-15T07:39:35+09:00", "authors": [ { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" } ], "author": { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" }, "tags": [ "Debian", "ParrotOS", "bookworm", "Linux", "lory" ] }, { "id": "https://matoken.org/blog/?p=3835", "url": "https://matoken.org/blog/2023/02/02/debian-testing-source-list-non-free-firmware/", "title": "Debian testing \u306e source.list \u306b non-free-firmware \u3092\u767b\u9332", "content_html": "
\n
\n
\n

Debian \u3067 non-free-firmware \u3068\u3044\u3046\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u5897\u3048\u308b\u3053\u3068\u306b\u306a\u308a\uff0c\u5b9f\u969b\u306b\u79fb\u52d5\u3057\u59cb\u3081\u305f\u3068\u306e\u3053\u3068\u3067\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3057\u305f\uff0e

\n
\n

\n\n\n
\n

/etc/apt/sources.list \u3092\u7de8\u96c6\u3057\u307e\u3059\uff0e\u76f4\u306b\u7de8\u96c6\u3059\u308b\u3053\u3068\u3082\u51fa\u6765\u307e\u3059\u304c\uff0c apt edit-sources \u3092\u4f7f\u3046\u3068\u4fdd\u5b58\u6642\u306b\u6587\u6cd5\u30c1\u30a7\u30c3\u30af\u3092\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u304a\u3059\u3059\u3081\u3067\u3059\uff0e

\n
\n
\n
\n
$ sudo apt edit-source
\n
\n
\n
\n
\u7de8\u96c6\u4f8b
\n
\n
$ sudo git -C /etc diff /etc/apt/sources.list\ndiff --git a/apt/sources.list b/apt/sources.list\nindex d9af843..11f6837 100644\n--- a/apt/sources.list\n+++ b/apt/sources.list\n@@ -2,8 +2,8 @@\n\n #deb cdrom:[Debian GNU/Linux testing _Bookworm_ - Official Snapshot amd64 DVD Binary-1 20220919-00:24]/ bookworm contrib main\n\n-deb http://deb.debian.org/debian/ bookworm main contrib non-free\n-deb-src http://deb.debian.org/debian/ bookworm main contrib non-free\n+deb http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware\n+deb-src http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware\n #deb http://security.debian.org/debian-security bookworm-security main contrib\n #deb-src http://security.debian.org/debian-security bookworm-security main contrib\n\n@@ -13,13 +13,13 @@ deb-src http://deb.debian.org/debian/ bookworm main contrib non-free\n # are provided as examples, but you should amend them as appropriate\n # for your mirror of choice.\n #\n-deb http://deb.debian.org/debian/ bookworm-updates main contrib non-free\n-deb-src http://deb.debian.org/debian/ bookworm-updates main contrib non-free\n+deb http://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware\n+deb-src http://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware\n\n # bookworm-backports, previously on backports.debian.org\n # A network mirror was not selected during install.  The following entries\n # are provided as examples, but you should amend them as appropriate\n # for your mirror of choice.\n #\n-deb http://deb.debian.org/debian/ bookworm-backports main contrib non-free\n-deb-src http://deb.debian.org/debian/ bookworm-backports main contrib non-free\n+deb http://deb.debian.org/debian/ bookworm-backports main contrib non-free non-free-firmware\n+deb-src http://deb.debian.org/debian/ bookworm-backports main contrib non-free non-free-firmware
\n
\n
\n
\n

apt update \u30b3\u30de\u30f3\u30c9\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30b9\u30c8\u3092\u66f4\u65b0\uff0c apt upgrade \u30b3\u30de\u30f3\u30c9\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u6700\u65b0\u306b\u3057\u307e\u3059\uff0e

\n
\n
\n
\n
$ sudo apt update\n$ sudo apt upgrade
\n
\n
\n
\n

\u65e9\u901f non-free-firmware \u304b\u3089 firmware-iwlwifi \u304c\u964d\u3063\u3066\u304d\u307e\u3057\u305f\uff0e

\n
\n
\n
\n
\u53d6\u5f97:1 http://deb.debian.org/debian bookworm/non-free-firmware amd64 firmware-iwlwifi all 20221214-5 [20.5 MB]
\n
\n
\n
\n

\u4eca\u56de bookworm(testing) \u3067\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u304c\uff0csid(unstable) \u306e\u5834\u5408\u3082\u540c\u69d8\u3060\u3068\u601d\u3044\u307e\u3059\uff0e

\n
\n
\n
\u74b0\u5883
\n
\n
$ lsb_release -a\nDistributor ID:\tDebian\nDescription:\tDebian GNU/Linux bookworm/sid\nRelease:\tn/a\nCodename:\tbookworm\n$ dpkg-query -W apt dpkg\napt\t2.5.5\ndpkg\t1.21.19\n$ arch\nx86_64
\n
\n
\n
\n
\n
\n

\u8ffd\u8a18) Bookworm \u65b0\u898f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u5834\u5408

\n
\n
\n

non-free-firmware \u304c\u6709\u52b9\u306b\u306a\u3063\u305f Debian-Installer Bookworm Alpha 2 \u304c\u51fa\u305f\u306e\u3067\u5c11\u3057\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e
\n\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u306e\u8a2d\u5b9a\u3067\uff0c\u300cnon-free \u306e\u30d5\u30a1\u30fc\u30e0\u30a6\u30a7\u30a2\u3092\u4f7f\u7528\u3057\u307e\u3059\u304b?\u300d\u3067\u300c\u306f\u3044\u300d\u3092\u9078\u629e\u3059\u308b\u3053\u3068\u3067\uff0c source.list \u306b non-free-firmware \u304c\u8a2d\u5b9a\u3055\u308c\u308b\u306e\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\uff0e

\n
\n
\n

\"d
\n\"d

\n
\n
\n
\n", "content_text": "Debian \u3067 non-free-firmware \u3068\u3044\u3046\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u5897\u3048\u308b\u3053\u3068\u306b\u306a\u308a\uff0c\u5b9f\u969b\u306b\u79fb\u52d5\u3057\u59cb\u3081\u305f\u3068\u306e\u3053\u3068\u3067\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3057\u305f\uff0e\n\n\n\n\n\nDebian11 “bullseye” 2021/8/14\u30ea\u30ea\u30fc\u30b9 (@debianjp): “non-free\u306b\u5165\u3063\u3066\u3044\u305f\u30d5\u30a1\u30fc\u30e0\u30a6\u30a7\u30a2\u304cnon-free-firmware\u306b\u79fb\u52d5\u3057\u59cb\u3081\u305f\u3088\u3046\u3067\u3059\u3002 https://deb.debian.org/debian/dists/testing/ testing/unstable\u3092\u4f7f\u3063\u3066\u308b\u65b9\u306f\u3054\u6ce8\u610f\u3092\u3002” | nitter\n\n\n\n\n\nFirmware vote result – the people have spoken! – Steve\u2019s blog\nGeneral Resolution: non-free firmware\nFirmware – Debian Wiki\nSourcesList – Debian Wiki\n\n\n\n/etc/apt/sources.list \u3092\u7de8\u96c6\u3057\u307e\u3059\uff0e\u76f4\u306b\u7de8\u96c6\u3059\u308b\u3053\u3068\u3082\u51fa\u6765\u307e\u3059\u304c\uff0c apt edit-sources \u3092\u4f7f\u3046\u3068\u4fdd\u5b58\u6642\u306b\u6587\u6cd5\u30c1\u30a7\u30c3\u30af\u3092\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u304a\u3059\u3059\u3081\u3067\u3059\uff0e\n\n\n\n$ sudo apt edit-source\n\n\n\n\u7de8\u96c6\u4f8b\n\n$ sudo git -C /etc diff /etc/apt/sources.list\ndiff --git a/apt/sources.list b/apt/sources.list\nindex d9af843..11f6837 100644\n--- a/apt/sources.list\n+++ b/apt/sources.list\n@@ -2,8 +2,8 @@\n\n #deb cdrom:[Debian GNU/Linux testing _Bookworm_ - Official Snapshot amd64 DVD Binary-1 20220919-00:24]/ bookworm contrib main\n\n-deb http://deb.debian.org/debian/ bookworm main contrib non-free\n-deb-src http://deb.debian.org/debian/ bookworm main contrib non-free\n+deb http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware\n+deb-src http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware\n #deb http://security.debian.org/debian-security bookworm-security main contrib\n #deb-src http://security.debian.org/debian-security bookworm-security main contrib\n\n@@ -13,13 +13,13 @@ deb-src http://deb.debian.org/debian/ bookworm main contrib non-free\n # are provided as examples, but you should amend them as appropriate\n # for your mirror of choice.\n #\n-deb http://deb.debian.org/debian/ bookworm-updates main contrib non-free\n-deb-src http://deb.debian.org/debian/ bookworm-updates main contrib non-free\n+deb http://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware\n+deb-src http://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware\n\n # bookworm-backports, previously on backports.debian.org\n # A network mirror was not selected during install. The following entries\n # are provided as examples, but you should amend them as appropriate\n # for your mirror of choice.\n #\n-deb http://deb.debian.org/debian/ bookworm-backports main contrib non-free\n-deb-src http://deb.debian.org/debian/ bookworm-backports main contrib non-free\n+deb http://deb.debian.org/debian/ bookworm-backports main contrib non-free non-free-firmware\n+deb-src http://deb.debian.org/debian/ bookworm-backports main contrib non-free non-free-firmware\n\n\n\napt update \u30b3\u30de\u30f3\u30c9\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30b9\u30c8\u3092\u66f4\u65b0\uff0c apt upgrade \u30b3\u30de\u30f3\u30c9\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u6700\u65b0\u306b\u3057\u307e\u3059\uff0e\n\n\n\n$ sudo apt update\n$ sudo apt upgrade\n\n\n\n\u65e9\u901f non-free-firmware \u304b\u3089 firmware-iwlwifi \u304c\u964d\u3063\u3066\u304d\u307e\u3057\u305f\uff0e\n\n\n\n\u53d6\u5f97:1 http://deb.debian.org/debian bookworm/non-free-firmware amd64 firmware-iwlwifi all 20221214-5 [20.5 MB]\n\n\n\n\u4eca\u56de bookworm(testing) \u3067\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u304c\uff0csid(unstable) \u306e\u5834\u5408\u3082\u540c\u69d8\u3060\u3068\u601d\u3044\u307e\u3059\uff0e\n\n\n\u74b0\u5883\n\n$ lsb_release -a\nDistributor ID:\tDebian\nDescription:\tDebian GNU/Linux bookworm/sid\nRelease:\tn/a\nCodename:\tbookworm\n$ dpkg-query -W apt dpkg\napt\t2.5.5\ndpkg\t1.21.19\n$ arch\nx86_64\n\n\n\n\n\n\u8ffd\u8a18) Bookworm \u65b0\u898f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u5834\u5408\n\n\nnon-free-firmware \u304c\u6709\u52b9\u306b\u306a\u3063\u305f Debian-Installer Bookworm Alpha 2 \u304c\u51fa\u305f\u306e\u3067\u5c11\u3057\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e\n\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u306e\u8a2d\u5b9a\u3067\uff0c\u300cnon-free \u306e\u30d5\u30a1\u30fc\u30e0\u30a6\u30a7\u30a2\u3092\u4f7f\u7528\u3057\u307e\u3059\u304b?\u300d\u3067\u300c\u306f\u3044\u300d\u3092\u9078\u629e\u3059\u308b\u3053\u3068\u3067\uff0c source.list \u306b non-free-firmware \u304c\u8a2d\u5b9a\u3055\u308c\u308b\u306e\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\uff0e", "date_published": "2023-02-02T20:14:59+09:00", "date_modified": "2023-03-10T19:10:15+09:00", "authors": [ { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" } ], "author": { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" }, "tags": [ "deb", "Debian", "source.list", "bookworm", "Linux", "testing" ] }, { "id": "http://matoken.org/blog/?p=3504", "url": "https://matoken.org/blog/2022/03/03/check-the-package-version-with-rmadison/", "title": "rmadison \u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d", "content_html": "
\n

Twitter\u3067 rmadison \u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u3092\u6559\u3048\u3066\u3082\u3089\u3044\u307e\u3057\u305f\uff0e

\n
\n

$ rmadison
\nopenssh \u3068\u304b\u3082\u30d0\u30fc\u30b8\u30e7\u30f3\u8abf\u3079\u308b\u306e\u306b\u3088\u3044\u304b\u3082

\n

\u2014 henrich (@henrich) 2022\u5e742\u670825\u65e5

\n
\n

\n
\n

\n
\n

rmadison \u306f\u30ea\u30e2\u30fc\u30c8\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831\u3092\u8868\u793a\u3057\u3066\u304f\u308c\u308b\u30b3\u30de\u30f3\u30c9\u3067\uff0cDebian\u3067\u306f devscripts \u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u542b\u307e\u308c\u3066\u3044\u307e\u3059\uff0e

\n
\n
\n
\n
$ rmadison --help\nUsage: rmadison [OPTION] PACKAGE[...]\nDisplay information about PACKAGE(s).\n\n  -a, --architecture=ARCH    only show info for ARCH(s)\n  -b, --binary-type=TYPE     only show info for binary TYPE\n  -c, --component=COMPONENT  only show info for COMPONENT(s)\n  -g, --greaterorequal       show buildd 'dep-wait pkg >= {highest version}' info\n  -G, --greaterthan          show buildd 'dep-wait pkg >> {highest version}' info\n  -h, --help                 show this help and exit\n  -r, --regex                treat PACKAGE as a regex [not supported everywhere]\n  -s, --suite=SUITE          only show info for this suite\n  -S, --source-and-binary    show info for the binary children of source pkgs\n  -t, --time                 show projectb snapshot date\n  -u, --url=URL              use URL instead of debian\n\n  --noconf, --no-conf        don't read devscripts configuration files\n\nARCH, COMPONENT and SUITE can be comma (or space) separated lists, e.g.\n    --architecture=m68k,i386\n\nAliases for URLs:\n        debian  https://api.ftp-master.debian.org/madison\n        new     https://api.ftp-master.debian.org/madison?s=new\n        qa      https://qa.debian.org/madison.php\n        ubuntu  https://people.canonical.com/~ubuntu-archive/madison.cgi\n        udd     https://qa.debian.org/cgi-bin/madison.cgi
\n
\n
\n
\n

\u4f8b\u3048\u3070 OpenSSH \u3092\u6307\u5b9a\u3059\u308b\u3068\u3053\u3093\u306a\u611f\u3058\u3067testing\u4ee5\u964d\u306b 8.9p1 \u304c\u6765\u3066\u3044\u308b\u306e\u304c\u5206\u304b\u308a\u307e\u3059\uff0e

\n
\n
\n
\n
a$ rmadison openssh\nopenssh    | 1:6.7p1-5+deb8u4   | oldoldoldstable        | source\nopenssh    | 1:7.4p1-10+deb9u7  | oldoldstable           | source\nopenssh    | 1:7.4p1-10+deb9u7  | oldoldstable-debug     | source\nopenssh    | 1:7.9p1-10+deb10u2 | oldstable              | source\nopenssh    | 1:7.9p1-10+deb10u2 | oldstable-debug        | source\nopenssh    | 1:8.4p1-2~bpo10+1  | buster-backports       | source\nopenssh    | 1:8.4p1-2~bpo10+1  | buster-backports-debug | source\nopenssh    | 1:8.4p1-5          | stable                 | source\nopenssh    | 1:8.8p1-1          | testing                | source\nopenssh    | 1:8.9p1-3          | unstable               | source\nopenssh    | 1:8.9p1-3          | unstable-debug         | source
\n
\n
\n
\n

url\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067Ubuntu\u306e\u60c5\u5831\u3082

\n
\n
\n
\n
$ rmadison -u https://people.canonical.com/~ubuntu-archive/madison.cgi openssh\n openssh | 1:6.6p1-2ubuntu1    | trusty          | source\n openssh | 1:6.6p1-2ubuntu2.13 | trusty-security | source\n openssh | 1:6.6p1-2ubuntu2.13 | trusty-updates  | source\n openssh | 1:7.2p2-4           | xenial          | source\n openssh | 1:7.2p2-4ubuntu2.8  | xenial-security | source\n openssh | 1:7.2p2-4ubuntu2.10 | xenial-updates  | source\n openssh | 1:7.6p1-4           | bionic          | source\n openssh | 1:7.6p1-4ubuntu0.5  | bionic-security | source\n openssh | 1:7.6p1-4ubuntu0.6  | bionic-proposed | source\n openssh | 1:7.6p1-4ubuntu0.6  | bionic-updates  | source\n openssh | 1:8.2p1-4           | focal           | source\n openssh | 1:8.2p1-4ubuntu0.2  | focal-security  | source\n openssh | 1:8.2p1-4ubuntu0.4  | focal-updates   | source\n openssh | 1:8.4p1-6ubuntu2    | impish          | source\n openssh | 1:8.4p1-6ubuntu2.1  | impish-updates  | source\n openssh | 1:8.8p1-1           | jammy           | source\n openssh | 1:8.9p1-3           | jammy-proposed  | source
\n
\n
\n
\n

\u30ea\u30e2\u30fc\u30c8\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3057\u306b\u884c\u304f\u306e\u3067\u56de\u7dda\u304c\u306a\u3044\u3068\u4f7f\u3048\u307e\u305b\u3093\uff0e

\n
\n
\n
\n
$ https_proxy='dummy' rmadison openssh\ncurl: (5) Could not resolve proxy: dummy
\n
\n
\n
\n

\u3053\u3046\u3044\u3063\u305f\u60c5\u5831\u306f\u3053\u308c\u307e\u3067 https://packages.debian.org/ \u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u78ba\u8a8d\u3057\u3066\u3044\u305f\u306e\u3067\u4fbf\u5229\u306b\u306a\u308a\u307e\u3057\u305f :)

\n
\n
\n
\n
$ w3m -dump https://packages.debian.org/openssh-server | grep ^Package\\ openssh-server$ -A24\nPackage openssh-server\n\n  \u2022 stretch (oldoldstable) (net): secure shell (SSH) server, for secure access\n    from remote machines\n    1:7.4p1-10+deb9u7: amd64 arm64 armel armhf i386 mips mips64el mipsel\n    ppc64el s390x\n  \u2022 buster (oldstable) (net): secure shell (SSH) server, for secure access from\n    remote machines\n    1:7.9p1-10+deb10u2: amd64 arm64 armel armhf i386 mips mips64el mipsel\n    ppc64el s390x\n  \u2022 buster-backports (net): secure shell (SSH) server, for secure access from\n    remote machines\n    1:8.4p1-2~bpo10+1: amd64 arm64 armel armhf i386 mips mips64el mipsel\n    ppc64el s390x\n  \u2022 bullseye (stable) (net): secure shell (SSH) server, for secure access from\n    remote machines\n    1:8.4p1-5: amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x\n  \u2022 bookworm (testing) (net): secure shell (SSH) server, for secure access from\n    remote machines\n    1:8.8p1-1: amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x\n  \u2022 sid (unstable) (net): secure shell (SSH) server, for secure access from\n    remote machines\n    1:8.9p1-3: alpha amd64 arm64 armel armhf hppa i386 ia64 m68k mips64el\n    mipsel ppc64 ppc64el riscv64 s390x sh4 sparc64 x32
\n
\n
\n
\n
\u74b0\u5883
\n
\n
dison --version\nrmadison 0.4 (devscripts 2.22.1)\n(C) 2006-2010 Christoph Berg <myon@debian.org>\n(C) 2010 Uli Martens <uli@youam.net>\n$ dpkg-query -W devscripts\ndevscripts      2.22.1\n$ lsb_release -dr\nDescription:    Debian GNU/Linux bookworm/sid\nRelease:        unstable\n$ arch\nx86_64
\n
\n
\n", "content_text": "Twitter\u3067 rmadison \u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u3092\u6559\u3048\u3066\u3082\u3089\u3044\u307e\u3057\u305f\uff0e\n\n$ rmadison\nopenssh \u3068\u304b\u3082\u30d0\u30fc\u30b8\u30e7\u30f3\u8abf\u3079\u308b\u306e\u306b\u3088\u3044\u304b\u3082\n\u2014 henrich (@henrich) 2022\u5e742\u670825\u65e5\n\n\n\n\n\nrmadison \u306f\u30ea\u30e2\u30fc\u30c8\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831\u3092\u8868\u793a\u3057\u3066\u304f\u308c\u308b\u30b3\u30de\u30f3\u30c9\u3067\uff0cDebian\u3067\u306f devscripts \u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u542b\u307e\u308c\u3066\u3044\u307e\u3059\uff0e\n\n\n\n$ rmadison --help\nUsage: rmadison [OPTION] PACKAGE[...]\nDisplay information about PACKAGE(s).\n\n -a, --architecture=ARCH only show info for ARCH(s)\n -b, --binary-type=TYPE only show info for binary TYPE\n -c, --component=COMPONENT only show info for COMPONENT(s)\n -g, --greaterorequal show buildd 'dep-wait pkg >= {highest version}' info\n -G, --greaterthan show buildd 'dep-wait pkg >> {highest version}' info\n -h, --help show this help and exit\n -r, --regex treat PACKAGE as a regex [not supported everywhere]\n -s, --suite=SUITE only show info for this suite\n -S, --source-and-binary show info for the binary children of source pkgs\n -t, --time show projectb snapshot date\n -u, --url=URL use URL instead of debian\n\n --noconf, --no-conf don't read devscripts configuration files\n\nARCH, COMPONENT and SUITE can be comma (or space) separated lists, e.g.\n --architecture=m68k,i386\n\nAliases for URLs:\n debian https://api.ftp-master.debian.org/madison\n new https://api.ftp-master.debian.org/madison?s=new\n qa https://qa.debian.org/madison.php\n ubuntu https://people.canonical.com/~ubuntu-archive/madison.cgi\n udd https://qa.debian.org/cgi-bin/madison.cgi\n\n\n\n\u4f8b\u3048\u3070 OpenSSH \u3092\u6307\u5b9a\u3059\u308b\u3068\u3053\u3093\u306a\u611f\u3058\u3067testing\u4ee5\u964d\u306b 8.9p1 \u304c\u6765\u3066\u3044\u308b\u306e\u304c\u5206\u304b\u308a\u307e\u3059\uff0e\n\n\n\na$ rmadison openssh\nopenssh | 1:6.7p1-5+deb8u4 | oldoldoldstable | source\nopenssh | 1:7.4p1-10+deb9u7 | oldoldstable | source\nopenssh | 1:7.4p1-10+deb9u7 | oldoldstable-debug | source\nopenssh | 1:7.9p1-10+deb10u2 | oldstable | source\nopenssh | 1:7.9p1-10+deb10u2 | oldstable-debug | source\nopenssh | 1:8.4p1-2~bpo10+1 | buster-backports | source\nopenssh | 1:8.4p1-2~bpo10+1 | buster-backports-debug | source\nopenssh | 1:8.4p1-5 | stable | source\nopenssh | 1:8.8p1-1 | testing | source\nopenssh | 1:8.9p1-3 | unstable | source\nopenssh | 1:8.9p1-3 | unstable-debug | source\n\n\n\nurl\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067Ubuntu\u306e\u60c5\u5831\u3082\n\n\n\n$ rmadison -u https://people.canonical.com/~ubuntu-archive/madison.cgi openssh\n openssh | 1:6.6p1-2ubuntu1 | trusty | source\n openssh | 1:6.6p1-2ubuntu2.13 | trusty-security | source\n openssh | 1:6.6p1-2ubuntu2.13 | trusty-updates | source\n openssh | 1:7.2p2-4 | xenial | source\n openssh | 1:7.2p2-4ubuntu2.8 | xenial-security | source\n openssh | 1:7.2p2-4ubuntu2.10 | xenial-updates | source\n openssh | 1:7.6p1-4 | bionic | source\n openssh | 1:7.6p1-4ubuntu0.5 | bionic-security | source\n openssh | 1:7.6p1-4ubuntu0.6 | bionic-proposed | source\n openssh | 1:7.6p1-4ubuntu0.6 | bionic-updates | source\n openssh | 1:8.2p1-4 | focal | source\n openssh | 1:8.2p1-4ubuntu0.2 | focal-security | source\n openssh | 1:8.2p1-4ubuntu0.4 | focal-updates | source\n openssh | 1:8.4p1-6ubuntu2 | impish | source\n openssh | 1:8.4p1-6ubuntu2.1 | impish-updates | source\n openssh | 1:8.8p1-1 | jammy | source\n openssh | 1:8.9p1-3 | jammy-proposed | source\n\n\n\n\u30ea\u30e2\u30fc\u30c8\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3057\u306b\u884c\u304f\u306e\u3067\u56de\u7dda\u304c\u306a\u3044\u3068\u4f7f\u3048\u307e\u305b\u3093\uff0e\n\n\n\n$ https_proxy='dummy' rmadison openssh\ncurl: (5) Could not resolve proxy: dummy\n\n\n\n\u3053\u3046\u3044\u3063\u305f\u60c5\u5831\u306f\u3053\u308c\u307e\u3067 https://packages.debian.org/ \u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u78ba\u8a8d\u3057\u3066\u3044\u305f\u306e\u3067\u4fbf\u5229\u306b\u306a\u308a\u307e\u3057\u305f :)\n\n\n\n$ w3m -dump https://packages.debian.org/openssh-server | grep ^Package\\ openssh-server$ -A24\nPackage openssh-server\n\n \u2022 stretch (oldoldstable) (net): secure shell (SSH) server, for secure access\n from remote machines\n 1:7.4p1-10+deb9u7: amd64 arm64 armel armhf i386 mips mips64el mipsel\n ppc64el s390x\n \u2022 buster (oldstable) (net): secure shell (SSH) server, for secure access from\n remote machines\n 1:7.9p1-10+deb10u2: amd64 arm64 armel armhf i386 mips mips64el mipsel\n ppc64el s390x\n \u2022 buster-backports (net): secure shell (SSH) server, for secure access from\n remote machines\n 1:8.4p1-2~bpo10+1: amd64 arm64 armel armhf i386 mips mips64el mipsel\n ppc64el s390x\n \u2022 bullseye (stable) (net): secure shell (SSH) server, for secure access from\n remote machines\n 1:8.4p1-5: amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x\n \u2022 bookworm (testing) (net): secure shell (SSH) server, for secure access from\n remote machines\n 1:8.8p1-1: amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x\n \u2022 sid (unstable) (net): secure shell (SSH) server, for secure access from\n remote machines\n 1:8.9p1-3: alpha amd64 arm64 armel armhf hppa i386 ia64 m68k mips64el\n mipsel ppc64 ppc64el riscv64 s390x sh4 sparc64 x32\n\n\n\n\u74b0\u5883\n\ndison --version\nrmadison 0.4 (devscripts 2.22.1)\n(C) 2006-2010 Christoph Berg <myon@debian.org>\n(C) 2010 Uli Martens <uli@youam.net>\n$ dpkg-query -W devscripts\ndevscripts 2.22.1\n$ lsb_release -dr\nDescription: Debian GNU/Linux bookworm/sid\nRelease: unstable\n$ arch\nx86_64", "date_published": "2022-03-03T23:10:32+09:00", "date_modified": "2022-03-03T23:19:16+09:00", "authors": [ { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" } ], "author": { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" }, "tags": [ "Debian", "package", "Ubuntu", "Linux" ] }, { "id": "http://matoken.org/blog/?p=2420", "url": "https://matoken.org/blog/2019/07/11/apt-update-after-releasing-debian-10-buster-testing-results-in-an-error/", "title": "Debian 10 Buster testing \u3092\u30ea\u30ea\u30fc\u30b9\u5f8c\u306b apt update \u3059\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308b", "content_html": "
\n

2019-07-06 \u306b Debian Buster 10 \u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\uff0e

\n
\n
\n\n
\n
\n

Debian 10 Buster testing \u74b0\u5883\u3067\u30ea\u30ea\u30fc\u30b9\u5f8c\u306b apt update \u3092\u3059\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\uff0e

\n
\n
\n
\n
$ sudo apt update\r\nGet:1 http://security.debian.org/debian-security buster/updates InRelease [39.1 kB]\r\nGet:2 http://deb.debian.org/debian buster InRelease [118 kB]\r\nN: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Version' value from '' to '10'\r\nE: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'testing' to 'stable'\r\nN: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.\r\nDo you want to accept these changes and continue updating from this repository? [y/N]\r\nN: Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Version' value from '' to '10.0'\r\nE: Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Suite' value from 'testing' to 'stable'\r\nN: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.\r\nDo you want to accept these changes and continue updating from this repository? [y/N]\r\nReading package lists... Done\r\nE: Failed to fetch http://deb.debian.org/debian/dists/buster/InRelease\r\nE: Failed to fetch http://security.debian.org/debian-security/dists/buster/updates/InRelease\r\nE: Some index files failed to download. They have been ignored, or old ones used instead.
\n
\n
\n
\n

--allow-releaseinfo-change \u3092\u6307\u5b9a\u3057\u3066APT \u306b\u30ea\u30ea\u30fc\u30b9\u3092\u60c5\u5831\u3092\u78ba\u8a8d\u3057\u305f\u3053\u3068\u3092\u6559\u3048\u307e\u3059\uff0e

\n
\n
\n
\n
$ sudo apt --allow-releaseinfo-change update
\n
\n
\n
\n

\u6b21\u304b\u3089\u306f\u30aa\u30d7\u30b7\u30e7\u30f3\u7121\u3057\u3067\u5b9f\u884c\u3057\u3066\u3082\u30a8\u30e9\u30fc\u304c\u51fa\u306a\u304f\u306a\u308a\u307e\u3059\uff0e

\n
\n
\n
\n
$ sudo apt update\r\nHit:1 http://deb.debian.org/debian buster InRelease\r\nHit:2 http://security.debian.org/debian-security buster/updates InRelease\r\nReading package lists... Done\r\nBuilding dependency tree\r\nReading state information... Done\r\n3 packages can be upgraded. Run 'apt list --upgradable' to see them.
\n
\n
\n
\n

\u3061\u306a\u307f\u306b stable \u3067\u306a\u304f testing \u74b0\u5883\u3092\u4f7f\u3044\u7d9a\u3051\u305f\u3044\u5834\u5408\u306f /etc/apt/sources.list \u3092\u73fe\u5728\u306e Debian testing \u306e bullseye \u306b\u4fee\u6b63\u3059\u308c\u3070\u3044\u3044\u306f\u305a\uff0e

\n
\n
\n
\u53c2\u8003URL
\n\n
\n
\n
\u74b0\u5883
\n
\n
$ dpkg-query -W apt\r\napt     1.8.2\r\n$ hostnamectl | egrep 'Operating System|Architecture'\r\n  Operating System: Debian GNU/Linux 10 (buster)\r\n      Architecture: x86-64
\n
\n
\n

\n", "content_text": "2019-07-06 \u306b Debian Buster 10 \u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\uff0e\n\n\n\n\nDebian — News — Debian 10 “buster” released\n\n\n\n\nDebian 10 Buster testing \u74b0\u5883\u3067\u30ea\u30ea\u30fc\u30b9\u5f8c\u306b apt update \u3092\u3059\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\uff0e\n\n\n\n$ sudo apt update\r\nGet:1 http://security.debian.org/debian-security buster/updates InRelease [39.1 kB]\r\nGet:2 http://deb.debian.org/debian buster InRelease [118 kB]\r\nN: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Version' value from '' to '10'\r\nE: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'testing' to 'stable'\r\nN: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.\r\nDo you want to accept these changes and continue updating from this repository? [y/N]\r\nN: Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Version' value from '' to '10.0'\r\nE: Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Suite' value from 'testing' to 'stable'\r\nN: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.\r\nDo you want to accept these changes and continue updating from this repository? [y/N]\r\nReading package lists... Done\r\nE: Failed to fetch http://deb.debian.org/debian/dists/buster/InRelease\r\nE: Failed to fetch http://security.debian.org/debian-security/dists/buster/updates/InRelease\r\nE: Some index files failed to download. They have been ignored, or old ones used instead.\n\n\n\n--allow-releaseinfo-change \u3092\u6307\u5b9a\u3057\u3066APT \u306b\u30ea\u30ea\u30fc\u30b9\u3092\u60c5\u5831\u3092\u78ba\u8a8d\u3057\u305f\u3053\u3068\u3092\u6559\u3048\u307e\u3059\uff0e\n\n\n\n$ sudo apt --allow-releaseinfo-change update\n\n\n\n\u6b21\u304b\u3089\u306f\u30aa\u30d7\u30b7\u30e7\u30f3\u7121\u3057\u3067\u5b9f\u884c\u3057\u3066\u3082\u30a8\u30e9\u30fc\u304c\u51fa\u306a\u304f\u306a\u308a\u307e\u3059\uff0e\n\n\n\n$ sudo apt update\r\nHit:1 http://deb.debian.org/debian buster InRelease\r\nHit:2 http://security.debian.org/debian-security buster/updates InRelease\r\nReading package lists... Done\r\nBuilding dependency tree\r\nReading state information... Done\r\n3 packages can be upgraded. Run 'apt list --upgradable' to see them.\n\n\n\n\u3061\u306a\u307f\u306b stable \u3067\u306a\u304f testing \u74b0\u5883\u3092\u4f7f\u3044\u7d9a\u3051\u305f\u3044\u5834\u5408\u306f /etc/apt/sources.list \u3092\u73fe\u5728\u306e Debian testing \u306e bullseye \u306b\u4fee\u6b63\u3059\u308c\u3070\u3044\u3044\u306f\u305a\uff0e\n\n\n\u53c2\u8003URL\n\n\nIf you use apt-get to upgrade to buster, you won’t be asked about the security repository info changed from ‘testing’ to ‘stable’. Use the –allow-releaseinfo-change option, as Eriberto Mota explains here: http://eriberto.pro.br/blog/2019/07/07/debian-repository-changed-its-suite-value-from-testing-to-stable/ or use apt instead\n\n\nDebian: repository changed its \u2018Suite\u2019 value from \u2018testing\u2019 to \u2018stable\u2019 | Eriberto Blog\n\n\n\n\n\u74b0\u5883\n\n$ dpkg-query -W apt\r\napt 1.8.2\r\n$ hostnamectl | egrep 'Operating System|Architecture'\r\n Operating System: Debian GNU/Linux 10 (buster)\r\n Architecture: x86-64", "date_published": "2019-07-11T06:22:00+09:00", "date_modified": "2019-07-11T02:06:08+09:00", "authors": [ { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" } ], "author": { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" }, "tags": [ "apt", "Debian", "Debian buster", "buster", "Linux", "testing" ] }, { "id": "http://matoken.org/blog/?p=2304", "url": "https://matoken.org/blog/2019/03/03/enable-dmesg-command-only-for-certain-groups/", "title": "\u7279\u5b9a\u30b0\u30eb\u30fc\u30d7\u3067\u306e\u307f dmesg command \u3092\u6709\u52b9\u306b\u3059\u308b", "content_html": "

Debian \u306e linux 4.8.0 \u4ee5\u964d\u3067\u4e00\u822c\u30e6\u30fc\u30b6\u306b\u3088\u308b dmesg \u304c\u7121\u52b9\u5316\u3055\u308c\u305f\u306e\u3067\uff0ckernel\u30d1\u30e9\u30e1\u30fc\u30bf\u306e kernel.dmesg_restrict \u3092\u4fee\u6b63\u3057\u3066 dmesg command \u3092\u4e00\u822c\u30e6\u30fc\u30b6\u3067\u3082\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u304c\u3053\u308c\u3060\u3068\u5168\u30e6\u30fc\u30b6\u3067\u5b9f\u884c\u3067\u304d\u3066\u3057\u307e\u3044\u307e\u3059\uff0esudo \u3092\u8a2d\u5b9a\u3057\u3066\u30ed\u30b0\u306e\u8aad\u3081\u308b adm \u30e6\u30fc\u30b6\u3060\u3051\u304c dmesg command \u3092\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3057\u305f\uff0e

\n\n

dmesg\u3092\u5b9f\u884c\u3057\u305f\u3044\u30e6\u30fc\u30b6\u3092adm group \u306b\u767b\u9332\u3059\u308b(login\u3057\u76f4\u3057\u3066\u53cd\u6620\u3057\u3066\u304a\u304f)

\n
$ sudo addgroup matoken adm\r\n$ exit\r\n
\n

visudo command \u3067 /etc/sudoers \u3092\u7de8\u96c6\u3057\u3066 adm group \u306f NOPASSWD \u3067 dmesg command \u3092\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b(\u5ff5\u306e\u70ba\u7de8\u96c6\u524d\u306b\u3082\u30461\u679a\u7aef\u672b\u3092\u958b\u3044\u3066 sudo -s \u3057\u3066\u304a\u3044\u305f\u308a\uff0cat\u7b49\u30675\u5206\u5f8c\u306b /etc/sudoers \u3092\u5dfb\u304d\u623b\u3059\u3088\u3046\u306b\u3057\u3066\u304a\u304f\u3068\u30df\u30b9\u3063\u3066\u3082\u5b89\u5fc3)

\n
$ sudo visudo\r\n$ sudo git diff /etc/sudoers\r\ndiff --git a/sudoers b/sudoers\r\nindex d4cc632..ac3bd77 100644\r\n--- a/sudoers\r\n+++ b/sudoers\r\n@@ -21,6 +21,7 @@ root  ALL=(ALL:ALL) ALL\r\n\r\n # Allow members of group sudo to execute any command\r\n %sudo  ALL=(ALL:ALL) ALL\r\n+%adm   ALL=NOPASSWD: /usr/bin/dmesg\r\n\r\n # See sudoers(5) for more information on "#include" directives:\r\n\r\n
\n

adm group \u306e\u30e6\u30fc\u30b6\u3067dmesg \u30b3\u30de\u30f3\u30c9\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u308b\u306e\u3092\u78ba\u8a8d

\n
$ sudo -l | grep dmesg\r\n    (root) NOPASSWD: /usr/bin/dmesg\r\n
\n

adm group \u306e\u30e6\u30fc\u30b6\u304c\u8a8d\u8a3c\u7121\u3057\u3067 sudo dmesg \u304c\u5b9f\u884c\u3067\u304d\u308b\u306e\u3092\u78ba\u8a8d

\n
$ id | grep -o adm\r\nadm\r\n$ sudo dmesg -H | tail -1\r\n[  +0.015080] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1\r\n
\n

\u3053\u306e\u3068\u304d kernel.dmesg_restrict = 1 \u3067 sudo \u3092\u901a\u3055\u306a\u3044\u3068 dmesg \u306f\u5b9f\u884c\u3067\u304d\u306a\u3044

\n
$ cat /proc/sys/kernel/dmesg_restrict\r\n1\r\n$ dmesg \r\ndmesg: read kernel buffer failed: Operation not permitted\r\n$ LC_MESSAGES=ja_JP.UTF-8 dmesg \r\ndmesg: read kernel buffer failed: \u8a31\u53ef\u3055\u308c\u3066\u3044\u306a\u3044\u64cd\u4f5c\u3067\u3059\r\n
\n

~/.profile \u306balias \u3092\u8a2d\u5b9a

\n
$ echo 'alias dmesg="sudo dmesg"' | tee -a ~/.profile                                                                                                                                   \r\nalias dmesg="sudo dmesg"\r\n$ source ~/.profile\r\n$ dmesg -H | tail -1\r\n[  +0.015080] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1\r\n
\n

\u74b0\u5883

\n
$ dpkg-query -W sudo util-linux linux-image-*\r\nlinux-image-4.19.0-2-arm64      4.19.16-1\r\nlinux-image-4.19.0-2-arm64-unsigned\r\nlinux-image-arm64       4.19+102\r\nsudo    1.8.27-1\r\nutil-linux      2.33.1-0.1\r\n$ lsb_release -dr\r\nDescription:    Debian GNU/Linux buster/sid\r\nRelease:        testing\r\n$ uname -a\r\nLinux rpi3 4.19.0-2-arm64 #1 SMP Debian 4.19.16-1 (2019-01-17) aarch64 GNU/Linux\r\n$ cat /proc/device-tree/model ;echo\r\nRaspberry Pi 3 Model B Rev 1.2\r\n
\n

\n", "content_text": "Debian \u306e linux 4.8.0 \u4ee5\u964d\u3067\u4e00\u822c\u30e6\u30fc\u30b6\u306b\u3088\u308b dmesg \u304c\u7121\u52b9\u5316\u3055\u308c\u305f\u306e\u3067\uff0ckernel\u30d1\u30e9\u30e1\u30fc\u30bf\u306e kernel.dmesg_restrict \u3092\u4fee\u6b63\u3057\u3066 dmesg command \u3092\u4e00\u822c\u30e6\u30fc\u30b6\u3067\u3082\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u304c\u3053\u308c\u3060\u3068\u5168\u30e6\u30fc\u30b6\u3067\u5b9f\u884c\u3067\u304d\u3066\u3057\u307e\u3044\u307e\u3059\uff0esudo \u3092\u8a2d\u5b9a\u3057\u3066\u30ed\u30b0\u306e\u8aad\u3081\u308b adm \u30e6\u30fc\u30b6\u3060\u3051\u304c dmesg command \u3092\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3057\u305f\uff0e\n\nDebian buster/sid \u3067dmesg\u3092\u4e00\u822c\u30e6\u30fc\u30b6\u3067\u5b9f\u884c \u2013 matoken’s meme\n\ndmesg\u3092\u5b9f\u884c\u3057\u305f\u3044\u30e6\u30fc\u30b6\u3092adm group \u306b\u767b\u9332\u3059\u308b(login\u3057\u76f4\u3057\u3066\u53cd\u6620\u3057\u3066\u304a\u304f)\n$ sudo addgroup matoken adm\r\n$ exit\r\n\nvisudo command \u3067 /etc/sudoers \u3092\u7de8\u96c6\u3057\u3066 adm group \u306f NOPASSWD \u3067 dmesg command \u3092\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b(\u5ff5\u306e\u70ba\u7de8\u96c6\u524d\u306b\u3082\u30461\u679a\u7aef\u672b\u3092\u958b\u3044\u3066 sudo -s \u3057\u3066\u304a\u3044\u305f\u308a\uff0cat\u7b49\u30675\u5206\u5f8c\u306b /etc/sudoers \u3092\u5dfb\u304d\u623b\u3059\u3088\u3046\u306b\u3057\u3066\u304a\u304f\u3068\u30df\u30b9\u3063\u3066\u3082\u5b89\u5fc3)\n$ sudo visudo\r\n$ sudo git diff /etc/sudoers\r\ndiff --git a/sudoers b/sudoers\r\nindex d4cc632..ac3bd77 100644\r\n--- a/sudoers\r\n+++ b/sudoers\r\n@@ -21,6 +21,7 @@ root ALL=(ALL:ALL) ALL\r\n\r\n # Allow members of group sudo to execute any command\r\n %sudo ALL=(ALL:ALL) ALL\r\n+%adm ALL=NOPASSWD: /usr/bin/dmesg\r\n\r\n # See sudoers(5) for more information on "#include" directives:\r\n\r\n\nadm group \u306e\u30e6\u30fc\u30b6\u3067dmesg \u30b3\u30de\u30f3\u30c9\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u308b\u306e\u3092\u78ba\u8a8d\n$ sudo -l | grep dmesg\r\n (root) NOPASSWD: /usr/bin/dmesg\r\n\nadm group \u306e\u30e6\u30fc\u30b6\u304c\u8a8d\u8a3c\u7121\u3057\u3067 sudo dmesg \u304c\u5b9f\u884c\u3067\u304d\u308b\u306e\u3092\u78ba\u8a8d\n$ id | grep -o adm\r\nadm\r\n$ sudo dmesg -H | tail -1\r\n[ +0.015080] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1\r\n\n\u3053\u306e\u3068\u304d kernel.dmesg_restrict = 1 \u3067 sudo \u3092\u901a\u3055\u306a\u3044\u3068 dmesg \u306f\u5b9f\u884c\u3067\u304d\u306a\u3044\n$ cat /proc/sys/kernel/dmesg_restrict\r\n1\r\n$ dmesg \r\ndmesg: read kernel buffer failed: Operation not permitted\r\n$ LC_MESSAGES=ja_JP.UTF-8 dmesg \r\ndmesg: read kernel buffer failed: \u8a31\u53ef\u3055\u308c\u3066\u3044\u306a\u3044\u64cd\u4f5c\u3067\u3059\r\n\n~/.profile \u306balias \u3092\u8a2d\u5b9a\n$ echo 'alias dmesg="sudo dmesg"' | tee -a ~/.profile \r\nalias dmesg="sudo dmesg"\r\n$ source ~/.profile\r\n$ dmesg -H | tail -1\r\n[ +0.015080] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1\r\n\n\u74b0\u5883\n$ dpkg-query -W sudo util-linux linux-image-*\r\nlinux-image-4.19.0-2-arm64 4.19.16-1\r\nlinux-image-4.19.0-2-arm64-unsigned\r\nlinux-image-arm64 4.19+102\r\nsudo 1.8.27-1\r\nutil-linux 2.33.1-0.1\r\n$ lsb_release -dr\r\nDescription: Debian GNU/Linux buster/sid\r\nRelease: testing\r\n$ uname -a\r\nLinux rpi3 4.19.0-2-arm64 #1 SMP Debian 4.19.16-1 (2019-01-17) aarch64 GNU/Linux\r\n$ cat /proc/device-tree/model ;echo\r\nRaspberry Pi 3 Model B Rev 1.2", "date_published": "2019-03-03T22:43:09+09:00", "date_modified": "2019-03-03T22:53:19+09:00", "authors": [ { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" } ], "author": { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" }, "tags": [ "Debian", "Debian buster", "Raspberry Pi 3 B", "RaspberryPi", "buster", "Linux" ] }, { "id": "http://matoken.org/blog/?p=2302", "url": "https://matoken.org/blog/2019/03/03/run-dmesg-as-a-general-user-with-debian-buster-sid/", "title": "Debian buster/sid \u3067dmesg\u3092\u4e00\u822c\u30e6\u30fc\u30b6\u3067\u5b9f\u884c", "content_html": "

\u203b\u3053\u306e\u65b9\u6cd5\u3060\u3068\u5168\u30e6\u30fc\u30b6\u3067 dmesg \u304c\u5b9f\u884c\u3067\u304d\u3066\u3057\u307e\u3046\u306e\u3067 sudo \u3092\u4f7f\u3063\u3066\u30b0\u30eb\u30fc\u30d7\u3092\u5236\u9650\u3059\u308b\u6b21\u306e\u65b9\u6cd5\u306e\u307b\u3046\u304c\u3044\u3044\u304b\u3082\u3057\u308c\u306a\u3044\uff0e

\n\n
\n

Debian buster arm64 \u74b0\u5883\u3092\u4f5c\u308a\u307e\u3057\u305f( Raspberry Pi 3 Model B \u306e USB\u8d77\u52d5\u3067 Debian buster arm64 \u3092\u52d5\u304b\u3059 \u2013 matoken’s meme )\u304c\uff0cdmesg \u3067\u30a8\u30e9\u30fc\u3068\u306a\u308a\u307e\u3059\uff0esudo dmesg \u306f\u52d5\u304f\uff0e

\n
$ dmesg \r\ndmesg: read kernel buffer failed: Operation not permitted\r\n$ LC_MESSAGES=ja_JP.UTF-8 dmesg \r\ndmesg: read kernel buffer failed: \u8a31\u53ef\u3055\u308c\u3066\u3044\u306a\u3044\u64cd\u4f5c\u3067\u3059\r\n
\n

\u305d\u3046\u3044\u3048\u3070\u4ee5\u524d Debian sid amd64 \u3067\u3082\u8d77\u3053\u3063\u305f\u73fe\u8c61\u3067\u3059\uff0e
\nDebian \u3067\u306f Linux 4.8.0 \u304b\u3089\u4ed5\u69d8\u304c\u5909\u308f\u3063\u3066root \u4ee5\u5916\u3067\u306fdmesg \u304c\u8aad\u3081\u306a\u3044\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\uff0elog file \u306e\u8aad\u3081\u308b adm group \u306e\u30e6\u30fc\u30b6\u3082\u99c4\u76ee\uff0e
\n\u3053\u308c\u306f kernel\u30d1\u30e9\u30e1\u30fc\u30bf\u306e kernel.dmesg_restrict \u3067\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\uff0e

\n
$ sudo sysctl -a|grep dmesg\r\nkernel.dmesg_restrict = 1\r\n$ cat /proc/sys/kernel/dmesg_restrict\r\n1\r\n
\n

\u3053\u308c\u3092 1 \u304b\u3089 0 \u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u3067\u4ee5\u524d\u3068\u540c\u3058\u52d5\u4f5c\u3068\u306a\u308a\u307e\u3059\uff0esysctl \u30b3\u30de\u30f3\u30c9\u3084\uff0c

\n
$ sudo sysctl -w kernel.dmesg_restrict=0\r\n
\n

/proc/sys/kernel/dmesg_restrict \u3092\u76f4\u63a5\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u3067\u4e00\u6642\u7684\u306b\u5909\u66f4\u3067\u304d\u307e\u3059\uff0e

\n
echo 0 | sudo tee /proc/sys/kernel/dmesg_restrict\r\n
\n

\u52d5\u304d\u307e\u3057\u305f\uff0e

\n
$ id | grep -o adm\r\n$ echo hello | sudo tee /dev/kmsg \r\nhello\r\n[  562.152729] hello\r\n$ dmesg -H | tail\r\n[  +0.019933] brcmfmac mmc1:0001:1: firmware: failed to load brcm/brcmfmac43430-sdio.clm_blob (-2)\r\n[  +0.020182] firmware_class: See https://wiki.debian.org/Firmware for information about missing firmware\r\n[  +0.020886] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.clm_blob failed with error -2\r\n[  +0.021916] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available\r\n[  +0.026818] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f\r\n[  +0.077925] systemd-udevd[376]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.\r\n[  +0.537137] EXT4-fs (sda2): re-mounted. Opts: (null)\r\n[  +2.001639] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup\r\n[  +1.563625] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1\r\n[Mar 2 05:58] hello\r\n
\n

\u518d\u8d77\u52d5\u3059\u308b\u3068\u5143\u306b\u623b\u3063\u3066\u3057\u307e\u3046\u306e\u3067\uff0c/etc/sysctl.d/local.conf \u306a\u3069\u306b\u8a2d\u5b9a\u3092\u66f8\u3044\u3066\u304f\u3068\u6b21\u56de\u8d77\u52d5\u6642\u4ee5\u964d\u3082\u53cd\u6620\u3055\u308c\u307e\u3059\uff0e

\n
$ sudo install -m 644 -o root -g root /dev/null /etc/sysctl.d/local.conf\r\n$ echo 'kernel.dmesg_restrict = 0' | sudo tee -a /etc/sysctl.d/local.conf\r\nkernel.dmesg_restrict = 0\r\n
\n

\u8a66\u3057\u305f\u74b0\u5883

\n
$ dmesg --version\r\ndmesg from util-linux 2.33.1\r\n$ dpkg-query -W util-linux linux-image-*\r\nlinux-image-4.19.0-2-arm64      4.19.16-1\r\nlinux-image-4.19.0-2-arm64-unsigned\r\nlinux-image-arm64       4.19+102\r\nutil-linux      2.33.1-0.1\r\n$ lsb_release -dr\r\nDescription:    Debian GNU/Linux buster/sid\r\nRelease:        testing\r\n$ uname -a\r\nLinux rpi3 4.19.0-2-arm64 #1 SMP Debian 4.19.16-1 (2019-01-17) aarch64 GNU/Linux\r\n$ cat /proc/device-tree/model ;echo\r\nRaspberry Pi 3 Model B Rev 1.2\r\n
\n\n

\n", "content_text": "\u203b\u3053\u306e\u65b9\u6cd5\u3060\u3068\u5168\u30e6\u30fc\u30b6\u3067 dmesg \u304c\u5b9f\u884c\u3067\u304d\u3066\u3057\u307e\u3046\u306e\u3067 sudo \u3092\u4f7f\u3063\u3066\u30b0\u30eb\u30fc\u30d7\u3092\u5236\u9650\u3059\u308b\u6b21\u306e\u65b9\u6cd5\u306e\u307b\u3046\u304c\u3044\u3044\u304b\u3082\u3057\u308c\u306a\u3044\uff0e\n\n\u7279\u5b9a\u30b0\u30eb\u30fc\u30d7\u3067\u306e\u307f dmesg command \u3092\u6709\u52b9\u306b\u3059\u308b \u2013 matoken’s meme\n\n\nDebian buster arm64 \u74b0\u5883\u3092\u4f5c\u308a\u307e\u3057\u305f( Raspberry Pi 3 Model B \u306e USB\u8d77\u52d5\u3067 Debian buster arm64 \u3092\u52d5\u304b\u3059 \u2013 matoken’s meme )\u304c\uff0cdmesg \u3067\u30a8\u30e9\u30fc\u3068\u306a\u308a\u307e\u3059\uff0esudo dmesg \u306f\u52d5\u304f\uff0e\n$ dmesg \r\ndmesg: read kernel buffer failed: Operation not permitted\r\n$ LC_MESSAGES=ja_JP.UTF-8 dmesg \r\ndmesg: read kernel buffer failed: \u8a31\u53ef\u3055\u308c\u3066\u3044\u306a\u3044\u64cd\u4f5c\u3067\u3059\r\n\n\u305d\u3046\u3044\u3048\u3070\u4ee5\u524d Debian sid amd64 \u3067\u3082\u8d77\u3053\u3063\u305f\u73fe\u8c61\u3067\u3059\uff0e\nDebian \u3067\u306f Linux 4.8.0 \u304b\u3089\u4ed5\u69d8\u304c\u5909\u308f\u3063\u3066root \u4ee5\u5916\u3067\u306fdmesg \u304c\u8aad\u3081\u306a\u3044\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\uff0elog file \u306e\u8aad\u3081\u308b adm group \u306e\u30e6\u30fc\u30b6\u3082\u99c4\u76ee\uff0e\n\u3053\u308c\u306f kernel\u30d1\u30e9\u30e1\u30fc\u30bf\u306e kernel.dmesg_restrict \u3067\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\uff0e\n$ sudo sysctl -a|grep dmesg\r\nkernel.dmesg_restrict = 1\r\n$ cat /proc/sys/kernel/dmesg_restrict\r\n1\r\n\n\u3053\u308c\u3092 1 \u304b\u3089 0 \u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u3067\u4ee5\u524d\u3068\u540c\u3058\u52d5\u4f5c\u3068\u306a\u308a\u307e\u3059\uff0esysctl \u30b3\u30de\u30f3\u30c9\u3084\uff0c\n$ sudo sysctl -w kernel.dmesg_restrict=0\r\n\n/proc/sys/kernel/dmesg_restrict \u3092\u76f4\u63a5\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u3067\u4e00\u6642\u7684\u306b\u5909\u66f4\u3067\u304d\u307e\u3059\uff0e\necho 0 | sudo tee /proc/sys/kernel/dmesg_restrict\r\n\n\u52d5\u304d\u307e\u3057\u305f\uff0e\n$ id | grep -o adm\r\n$ echo hello | sudo tee /dev/kmsg \r\nhello\r\n[ 562.152729] hello\r\n$ dmesg -H | tail\r\n[ +0.019933] brcmfmac mmc1:0001:1: firmware: failed to load brcm/brcmfmac43430-sdio.clm_blob (-2)\r\n[ +0.020182] firmware_class: See https://wiki.debian.org/Firmware for information about missing firmware\r\n[ +0.020886] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.clm_blob failed with error -2\r\n[ +0.021916] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available\r\n[ +0.026818] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f\r\n[ +0.077925] systemd-udevd[376]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.\r\n[ +0.537137] EXT4-fs (sda2): re-mounted. Opts: (null)\r\n[ +2.001639] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup\r\n[ +1.563625] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1\r\n[Mar 2 05:58] hello\r\n\n\u518d\u8d77\u52d5\u3059\u308b\u3068\u5143\u306b\u623b\u3063\u3066\u3057\u307e\u3046\u306e\u3067\uff0c/etc/sysctl.d/local.conf \u306a\u3069\u306b\u8a2d\u5b9a\u3092\u66f8\u3044\u3066\u304f\u3068\u6b21\u56de\u8d77\u52d5\u6642\u4ee5\u964d\u3082\u53cd\u6620\u3055\u308c\u307e\u3059\uff0e\n$ sudo install -m 644 -o root -g root /dev/null /etc/sysctl.d/local.conf\r\n$ echo 'kernel.dmesg_restrict = 0' | sudo tee -a /etc/sysctl.d/local.conf\r\nkernel.dmesg_restrict = 0\r\n\n\u8a66\u3057\u305f\u74b0\u5883\n$ dmesg --version\r\ndmesg from util-linux 2.33.1\r\n$ dpkg-query -W util-linux linux-image-*\r\nlinux-image-4.19.0-2-arm64 4.19.16-1\r\nlinux-image-4.19.0-2-arm64-unsigned\r\nlinux-image-arm64 4.19+102\r\nutil-linux 2.33.1-0.1\r\n$ lsb_release -dr\r\nDescription: Debian GNU/Linux buster/sid\r\nRelease: testing\r\n$ uname -a\r\nLinux rpi3 4.19.0-2-arm64 #1 SMP Debian 4.19.16-1 (2019-01-17) aarch64 GNU/Linux\r\n$ cat /proc/device-tree/model ;echo\r\nRaspberry Pi 3 Model B Rev 1.2\r\n\n\ndmesg – Debian Wiki", "date_published": "2019-03-03T22:07:56+09:00", "date_modified": "2019-03-03T22:57:19+09:00", "authors": [ { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" } ], "author": { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" }, "tags": [ "Debian", "Debian buster", "Raspberry Pi 3 B", "RaspberryPi", "buster", "Linux" ] }, { "id": "http://matoken.org/blog/?p=2295", "url": "https://matoken.org/blog/2019/03/01/launch-debian-buster-arm-64-with-raspberry-pi-3-model-b-usb-boot/", "title": "Raspberry Pi 3 Model B \u306e USB\u8d77\u52d5\u3067 Debian buster arm64 \u3092\u52d5\u304b\u3059", "content_html": "

\u6700\u8fd1\u5165\u624b\u3057\u305f(\u9045) RaspberryPi 3 model B \u3067 USB \u30e1\u30e2\u30ea\u8d77\u52d5\u306e Debian buster aarch64 \u3092\u8a2d\u5b9a\u3057\u3066\u307f\u305f\u3068\u304d\u306e\u30e1\u30e2\u3067\u3059\uff0e

\n

\u30b8\u30e2\u30c6\u30a3\u30fc\u7d4c\u7531\u3067 Raspberry Pi 3 model B \u3092\u5165\u624b\u3057\u307e\u3057\u305f\uff0eRaspberry Pi 3 model B + USB Wi-Fi + USB Bluetooth + \u30b1\u30fc\u30b9\u306e\u30bb\u30c3\u30c8\u304c2,500\u5186 + \u9001\u6599\u624b\u6570\u6599 500\u5186\u3068\u5b89\u3044\u3067\u3059\uff0e\u666e\u901a\u306b\u65b0\u54c1\u3067\u8cb7\u3046\u3068 8,000\u5186\u8fd1\u304f\u3059\u308b\u3068\u601d\u3044\u307e\u3059\uff0e\u4eca\u3053\u306e\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3044\u308b\u6642\u70b9\u3067\u672a\u3060\u5728\u5eab\u306f\u3042\u308b\u3088\u3046\u306a\u306e\u3067\u8208\u5473\u306e\u3042\u308b\u4eba\u306f\u8cb7\u3046\u3068\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\uff0e(6\u500b\u540c\u68b1\u53ef\u80fd\u306a\u306e\u3067\u305d\u308c\u3060\u30681\u500b\u3042\u305f\u308a\u304c\u5c11\u3057\u5b89\u304f\u306a\u308b\u306e\u3067\u8fd1\u6240\u306e\u53cb\u9054\u3068\u8cb7\u3046\u3068\u3044\u3044\u304b\u3082)

\n\n

\"IMG-20190208-184136\"/\"IMG-20190208-185154\"/\"IMG-20190208-185222\"/\"IMG-20190213-212056\"/

\n

64bit\u306b\u306a\u3063\u305f Raspberry Pi \u306f\u6b32\u3057\u3044\u3068\u601d\u3063\u3066\u3044\u305f\u306e\u3067\u5b89\u304f\u624b\u306b\u5165\u3063\u3066\u52a9\u304b\u308a\u307e\u3057\u305f :)
\n(\u5f8c\u7d99\u306e Raspberry Pi 3 Model B+/A+ \u3084\uff0cSoC\u304c 3B \u3068\u540c\u3058\u3067\u7121\u7dda\u6a5f\u80fd\u306e\u306a\u3044 2B v1.2 \u3068\u304b\u3082\u6b32\u3057\u3044\u3067\u3059\u306d\uff0e)

\n

Raspberry Pi 3 model B \u306f 32bit\u3060\u3051\u3067\u306a\u304f64bit \u3082\u5229\u7528\u3067\u304d\u308b\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u3067\u3059\uff0e\u305b\u3063\u304b\u304f\u306a\u306e\u3067 64bit\u3067\u52d5\u304b\u3057\u305f\u3044\u3051\u3069\u4eca\u306e\u6642\u70b9\u3067\u306f Raspbian \u306f 32bit\u306e\u307f\u3067\u3059\uff0e\u305d\u3053\u3067 Debian \u306e arm64 \u3092\u8a66\u3059\u3053\u3068\u306b\u3057\u307e\u3057\u305f\uff0e

\n

Raspberry Pi 3 \u7528 Debian buster arm64 \u30a4\u30e1\u30fc\u30b8\u306e\u5165\u624b\u3068USB\u30e1\u30e2\u30ea\u3078\u306e\u66f8\u304d\u8fbc\u307f

\n

\u30a4\u30e1\u30fc\u30b8\u306f\u5ca9\u677e\u3055\u3093\u306e\u6771\u4eac\u30a8\u30ea\u30a2Debian\u52c9\u5f37\u4f1a\u306e\u8cc7\u6599\u3092\u771f\u4f3c\u3057\u3066\u4f5c\u308d\u3046\u3068\u601d\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\uff0c

\n\n

DebianWiki \u306e RaspberryPi3 \u306e\u9805\u76ee\u3092\u898b\u305f\u3089\u975e\u516c\u5f0f\u3060\u3051\u3069\u30a4\u30e1\u30fc\u30b8\u304c\u3042\u3063\u305f\u306e\u3067\u4eca\u56de\u306f\u305d\u308c\u3092\u5229\u7528\u3057\u307e\u3057\u305f\uff0e\u73fe\u5728 testing \u306e Buster \u306e\u30a4\u30e1\u30fc\u30b8\u304c\u5165\u624b\u3067\u304d\u307e\u3059\uff0e

\n\n

\u30b9\u30c8\u30ec\u30fc\u30b8\u306f\u901a\u5e38 microSD \u3092\u5229\u7528\u3057\u307e\u3059\u304c\uff0c\u624b\u6301\u3061\u304c\u306a\u3044\u306e\u3068 Raspberry Pi 3 B \u306fUSB\u8d77\u52d5\u304c\u53ef\u80fd\u306a\u306f\u305a\u306a\u306e\u3067USB\u30e1\u30e2\u30ea\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\uff0eUSB 2.0\u63a5\u7d9a\u306e\u5bb9\u91cf2GB\u306e\u3082\u306e\u3092\u7528\u610f\u3057\u307e\u3057\u305f\uff0e

\n

\u3053\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u30a4\u30e1\u30fc\u30b8\u3092\u5165\u624b\u3057\u3066\u30cf\u30c3\u30b7\u30e5\u306e\u30c1\u30a7\u30c3\u30af\u3092\u3057\u305f\u5f8cUSB\u30e1\u30e2\u30ea\u3078\u66f8\u304d\u8fbc\u307f\u307e\u3057\u305f\uff0e\u3053\u3053\u3067\u306f Linux\u306edd\u30b3\u30de\u30f3\u30c9\u3067\u66f8\u304d\u8fbc\u3093\u3067\u3044\u307e\u3059\u304c\uff0cEtcher\u306a\u3069\u3092\u5229\u7528\u3059\u308b\u3068\u8272\u3005\u306a\u74b0\u5883\u3067GUI\u3067\u306e\u66f8\u304d\u8fbc\u307f\u304c\u53ef\u80fd\u3067\u3059\uff0e
\n\u203b\u30a4\u30e1\u30fc\u30b8\u306f\u6700\u65b0\u306e\u3082\u306e\u3092\u5229\u7528\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\uff0e

\n
$ wget -c https://people.debian.org/~gwolf/raspberrypi3/20190206/20190206-raspberry-pi-3-buster-PREVIEW.img.xz https://people.debian.org/~gwolf/raspberrypi3/20190206/20190206-raspberry-pi-3-buster-PREVIEW.img.xz.sha256\r\n$ sha256sum -c ./20190206-raspberry-pi-3-buster-PREVIEW.img.xz.sha256\r\n20190206-raspberry-pi-3-buster-PREVIEW.img.xz: \u5b8c\u4e86\r\n$ xzcat 20190206-raspberry-pi-3-buster-PREVIEW.img.xz | pv | sudo dd of=/dev/sdb bs=1M oflag=dsync\r\n
\n\n

USB\u304b\u3089\u8d77\u52d5\u3067\u304d\u308b\u3088\u3046OTP\u3092\u8a2d\u5b9a\u3059\u308b

\n

\u6ce8\u610f:OTP\u306e\u8a2d\u5b9a\u306f1\u5ea6\u3057\u304b\u51fa\u6765\u306a\u3044\u3057\uff0c\u5143\u306b\u623b\u3059\u3053\u3068\u3082\u51fa\u6765\u306a\u3044\u3068\u601d\u308f\u308c\u307e\u3059\uff0e\u8d77\u52d5\u6642\u9593\u304c\u9577\u304f\u306a\u308b\u306a\u3069\u30c7\u30e1\u30ea\u30c3\u30c8\u3082\u3042\u308b\u306e\u3067\u6c17\u3092\u3064\u3051\u3066\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\uff0e

\n

\u3053\u306eUSB\u30e1\u30e2\u30ea\u3092 Raspberry Pi \u306b\u63a5\u7d9a\u3057\u3066\u96fb\u6e90\u3092\u5165\u308c\u3066\u307f\u307e\u3057\u305f\u304c\u8d77\u52d5\u3057\u307e\u305b\u3093\uff0e\u6050\u3089\u304f OTP(One Time Programmable)\u30e1\u30e2\u30ea\u306e\u8a2d\u5b9a\u304c USB\u8d77\u52d5\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306b\u8a2d\u5b9a\u3057\u307e\u3059\uff0e(Raspberry Pi 3+ \u30b7\u30ea\u30fc\u30ba\u306f\u6a19\u6e96\u3067USB\u8d77\u52d5\u53ef\u80fd\u306a\u306e\u3067\u3053\u306e\u8a2d\u5b9a\u306f\u4e0d\u8981\u306a\u306f\u305a\u3067\u3059\uff0e)

\n\n

\u5148\u305a Raspbian 2017-04-10 \u4ee5\u964d\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u66f8\u304d\u8fbc\u3093\u3060 microSD \u3092\u7528\u610f\u3057\u3066\u8d77\u52d5\u3057\u307e\u3059\uff0e
\n( uart\u7d4c\u7531\u3067\u7e4b\u304e\u305f\u3044\u5834\u5408\u8d77\u52d5\u524d\u306b /boot/config.txt \u306b enable_uart=1 \u3092\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\uff0e $ echo enable_uart=1 | tee -a /media/matoken/boot/config.txt )

\n

OTP \u3092\u78ba\u8a8d\u3059\u308b\u3068\u3084\u306f\u308a\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\uff0e

\n
pi@raspberrypi:~$ vcgencmd otp_dump | grep ^17:\r\n17:1020000a\r\n
\n

\u4ee5\u4e0b\u306e\u3088\u3046\u306b /boot/config.txt \u306b program_usb_boot_mode=1 \u3092\u8ffd\u8a18\u3057\u3066\u518d\u8d77\u52d5\u3059\u308b\u3068\u53cd\u6620\u3055\u308c\u307e\u3059\uff0e

\n
$ echo program_usb_boot_mode=1 | sudo tee -a /boot/config.txt\r\nprogram_usb_boot_mode=1\r\npi@raspberrypi:~$ sudo reboot\r\n
\n

17 \u304c 3020000a \u306b\u5909\u308f\u308c\u3070OK

\n
pi@raspberrypi:~$ vcgencmd otp_dump | grep ^17:\r\n17:3020000a\r\n
\n

\u8a73\u7d30\u306f\u4ee5\u4e0b\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044

\n\n
17 \u2013 bootmode register\r\n\r\nBit 1: sets the oscillator frequency to 19.2MHz\r\nBit 3: enables pull ups on the SDIO pins\r\nBit 19: enables GPIO bootmode\r\nBit 20: sets the bank to check for GPIO bootmode\r\nBit 21: enables booting from SD card\r\nBit 22: sets the bank to boot from\r\nBit 28: enables USB device booting\r\nBit 29: enables USB host booting (ethernet and mass storage)\r\n
\n

\u8a2d\u5b9a\u524d\u304c\uff0c1020000a -> 0b010000001000000000000000001010 \u3067\u8a2d\u5b9a\u5f8c\u304c\uff0c0x3020000a -> 0b110000001000000000000000001010 \u3066\u3053\u3068\u3067\uff0cBit 29 \u304c 0 \u304b\u3089 1 \u306b\u306a\u3063\u3066\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u8d77\u52d5\u3068USB\u8d77\u52d5\u3092\u8a66\u3059\u3088\u3046\u306b\u308a\u307e\u3059\uff0e\u3053\u306e\u72b6\u614b\u3067 microSD \u8d77\u52d5\u3092\u8a66\u3059\u3068\u3053\u308c\u3082\u5927\u4e08\u592b\u3067\u3057\u305f\uff0e(\u512a\u5148\u5ea6\u306f microSD > USB\uff0cNetwork\u306f\u672a\u78ba\u8a8d)

\n

USB\u30e1\u30e2\u30ea\u304b\u3089\u306e\u8d77\u52d5

\n

\u3053\u306e\u72b6\u614b\u3067 shutdown \u3057\uff0cmicroSD \u3092\u53d6\u308a\u51fa\u3057\u3066 Debian \u306e\u5c0e\u5165\u3057\u305f USB \u30e1\u30e2\u30ea\u3092\u63a5\u7d9a\u3057\u3066\u8d77\u52d5\u3067\u8d77\u52d5\u3057\u307e\u3057\u305f\uff0e(USB\u8d77\u52d5\u306e\u5834\u5408\u306a\u304b\u306a\u304b\u8d77\u52d5\u304c\u59cb\u307e\u3089\u305a\u7126\u3063\u305f\u3051\u306930\u79d2\u307b\u3069\u5f85\u3064\u3068UART\u306b\u30ed\u30b0\u304c\u51fa\u306f\u3058\u3081\u308b\uff0eHDMI\u306e\u51fa\u529b\u306f\u672a\u78ba\u8a8d)

\n

login \u306f root:raspberry
\n\u3061\u3083\u3093\u3068 64bit \u3067\u3059 :)

\n
root@rpi3:~# uname -a\r\nLinux rpi3 4.19.0-2-arm64 #1 SMP Debian 4.19.16-1 (2019-01-17) aarch64 GNU/Linux\r\n
\n

\u7d30\u3005\u3068\u3057\u305f\u8a2d\u5b9a(\u307b\u307c\u4f59\u9332)

\n

\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u66f4\u65b0

\n
root@rpi3:~# apt update && apt upgrade\r\n
\n

\u4e00\u822c\u30e6\u30fc\u30b6\u306e\u8ffd\u52a0

\n
root@rpi3:~# useradd -m matoken\r\nroot@rpi3:~# passwd matoken\r\nEnter new UNIX password: \r\nRetype new UNIX password: \r\npasswd: password updated successfully\r\nroot@rpi3:~# chsh matoken -s /bin/bash\r\n
\n

OpenSSH \u306e\u8a2d\u5b9a\u5909\u66f4

\n
root@rpi3:~# diff -u /etc/ssh/sshd_config.old /etc/ssh/sshd_config\r\n--- /etc/ssh/sshd_config.old    2019-02-06 15:15:46.940904823 +0000\r\n+++ /etc/ssh/sshd_config        2019-02-16 13:17:17.076873278 +0000\r\n@@ -29,7 +29,7 @@\r\n # Authentication:\r\n\r\n #LoginGraceTime 2m\r\n-PermitRootLogin yes\r\n+PermitRootLogin prohibit-password\r\n #StrictModes yes\r\n #MaxAuthTries 6\r\n #MaxSessions 10\r\n@@ -53,7 +53,7 @@\r\n #IgnoreRhosts yes\r\n\r\n # To disable tunneled clear text passwords, change to no here!\r\n-#PasswordAuthentication yes\r\n+PasswordAuthentication no\r\n #PermitEmptyPasswords no\r\n\r\n # Change to yes to enable challenge-response passwords (beware issues with\r\n@@ -119,3 +119,5 @@\r\n #      AllowTcpForwarding no\r\n #      PermitTTY no\r\n #      ForceCommand cvs server\r\n+\r\n+AllowGroups sshusers\r\n
\n

sshusers \u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u3057\u3066 ssh login \u51fa\u6765\u308b\u30e6\u30fc\u30b6\u3092\u767b\u9332

\n
root@rpi3:~# sudo groupadd sshusers\r\nroot@rpi3:~# sudo usermod -a -G sshusers matoken\r\n
\n

\u77ed\u3044modulus \u3092\u524a\u9664\u3059\u308b

\n
root@rpi3:~# awk '$5>=3071' /etc/ssh/moduli | tee /etc/ssh/moduli.tmp\r\nroot@rpi3:~# wc -l /etc/ssh/moduli /etc/ssh/moduli.tmp\r\n    427 /etc/ssh/moduli\r\n    368 /etc/ssh/moduli.tmp\r\n    795 total\r\nroot@rpi3:~# sudo mv /etc/ssh/moduli.tmp /etc/ssh/moduli\r\n
\n

hostpc\u304b\u3089ssh\u516c\u958b\u9375\u3092cp\u3057\u3066\u304a\u304f

\n
$ ssh-copy-id -i ~/.ssh/id_ed25519_pi.pub matoken@rpi3\r\n
\n

ssh\u9375\u30da\u30a2\u3092\u4f5c\u3063\u3066\u304a\u304f

\n
root@rpi3:~# sudo -u matoken ssh-keygen -t ed25519\r\n
\n

sshd \u306e\u518d\u8d77\u52d5

\n
root@rpi3:~# systemctl restart ssh\r\n
\n

ssh login\u6642\u306b\u901a\u77e5\u3092\u98db\u3070\u3059\u3088\u3046\u306b\u3057\u3066\u304a\u304f

\n
root@rpi3:~# vi /etc/ssh/sshrc\r\nroot@rpi3:~# chmod +x /etc/ssh/sshrc\r\nroot@rpi3:~# cat /etc/ssh/sshrc\r\n#!/bin/sh\r\n\r\n/home/matoken/bin/telegram.sh sshrc:${USER}@`hostname`:${SSH_CONNECTION}\r\n/home/matoken/bin/sms.sh sshrc:${USER}@`hostname`:${SSH_CONNECTION}\r\n
\n

ssh \u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u305a\uff0c\u9375\u8a8d\u8a3c\u3067\u30ed\u30b0\u30a4\u30f3\u304c\u51fa\u6765\u308b&\u901a\u77e5\u304c\u98db\u3076\u306e\u3092\u78ba\u8a8d

\n
root@rpi3:~# ssh root@localhost -o PasswordAuthentication=yes\r\nroot@rpi3:~# ssh matoken@localhost -o PasswordAuthentication=yes\r\nroot@rpi3:~# ssh matoken@localhost -i ~/.ssh/id_ed25519\r\n
\n

\u81ea\u5206\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u5408\u308f\u305b\u3066 /etc/iptables/rules.v4, /etc/iptables/rules.v6 \u3092\u5909\u66f4\uff0e

\n
root@rpi3:~# grep -v ^# /etc/iptables/rules.v4\r\n*filter\r\n:INPUT ACCEPT [0:0]\r\n:FORWARD ACCEPT [0:0]\r\n:OUTPUT ACCEPT [0:0]\r\n-A INPUT -s 127.0.0.0/8 -m comment --comment "RFC3330 loopback" -j ACCEPT\r\n-A INPUT -s 192.168.1.0/24 -m comment --comment "RFC1918 reserved" -j ACCEPT\r\n-A INPUT -p tcp -m tcp --dport 22 -m comment --comment SSH -j REJECT --reject-with icmp-port-unreachable\r\nCOMMIT\r\nroot@rpi3:~# grep -v ^# /etc/iptables/rules.v6\r\n*filter\r\n:INPUT ACCEPT [0:0]\r\n:FORWARD ACCEPT [0:0]\r\n:OUTPUT ACCEPT [0:0]\r\n-A INPUT -s ::1/128 -m comment --comment "RFC3513 loopback" -j ACCEPT\r\n-A INPUT -p tcp -m tcp --dport 22 -m comment --comment SSH -j REJECT --reject-with icmp6-port-unreachable\r\nCOMMIT\r\n
\n

sudo \u3092\u5c0e\u5165\u3057\u3066\u8a2d\u5b9a

\n
root@rpi3:~# apt install sudo\r\n
\n

sudo group\u306b\u30e6\u30fc\u30b6\u3092\u767b\u9332

\n
root@rpi3:~# usermod -a -G sudo matoken\r\n
\n

sudo \u304c\u5229\u7528\u3067\u304d\u308b\u306e\u3092\u78ba\u8a8d

\n
matoken@rpi3:~$ sudo grep ^root: /etc/shadow\r\nsudo: unable to resolve host rpi3: Name or service not known\r\nroot:!..VyaTFxP8kT6:17933:0:99999:7:::\r\n
\n

root\u30e6\u30fc\u30b6\u3092\u30ed\u30c3\u30af

\n
$ sudo passwd -l root \r\nsudo: unable to resolve host rpi3: Name or service not known\r\npasswd: password expiry information changed.\r\nmatoken@rpi3:~$ sudo passwd -S root\r\nsudo: unable to resolve host rpi3: Name or service not known\r\nroot L 02/06/2019 0 99999 7 -1\r\n
\n

sudo\u6642\u306a\u3069\u306b\u300csudo: unable to resolve host rpi3: Name or service not known\u300d\u3068\u8a00\u308f\u308c\u308b\u306e\u3067 hosts \u306e localhost \u306b rpi3 \u3092\u8ffd\u52a0

\n
matoken@rpi3:~$ sudo vi /etc/hosts\r\n127.0.0.1 localhost rpi3\r\n
\n

\u3053\u3053\u3067\u518d\u8d77\u52d5\u3059\u308b\u3068 rootfs \u304c\u898b\u3064\u304b\u3089\u306a\u3044\u3068\u8a00\u308f\u308c\u8d77\u52d5\u3057\u306a\u3044\uff0e

\n
(initramfs) Gave up waiting for root file system device. Common problems:\r\n- Boot args (cat /proc/cmdline)\r\n- Check rootdelay= (did the system wait long enough?)\r\n- Missing modules (cat /proc/modules; ls /dev)\r\nALERT! /dev/mmcblk0p2 does not exist. Dropping to a shell!\r\n\r\n\r\nBusyBox v1.27.2 (Debian 1:1.27.2-3) built-in shell (ash)\r\nEnter 'help' for a list of built-in commands.\r\n
\n

cmdline \u3067\u306f /dev/mmcblkp2 \u304b\u3089\u8d77\u52d5\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u304c\uff0c /dev/sda2 \u304b\u3089\u8d77\u52d5\u3057\u305f\u3044

\n
(initramfs) ls /dev\r\nblock tty12 tty47\r\nbsg tty13 tty48\r\nbus tty14 tty49\r\nchar tty15 tty5\r\nconsole tty16 tty50\r\ncore tty17 tty51\r\ncpu_dma_latency tty18 tty52\r\ndisk tty19 tty53\r\nfb0 tty2 tty54\r\nfd tty20 tty55\r\nfull tty21 tty56\r\ngpiochip0 tty22 tty57\r\ngpiochip1 tty23 tty58\r\ninput tty24 tty59\r\nkmsg tty25 tty6\r\nkvm tty26 tty60\r\nmem tty27 tty61\r\nmemory_bandwidth tty28 tty62\r\nnetwork_latency tty29 tty63\r\nnetwork_throughput tty3 tty7\r\nnull tty30 tty8\r\nport tty31 tty9\r\npsaux tty32 ttyAMA0\r\nptmx tty33 ttyS0\r\npts tty34 ttyS1\r\nrandom tty35 ttyS2\r\nsda tty36 ttyS3\r\nsda1 tty37 urandom\r\nsda2 tty38 vcs\r\nsnapshot tty39 vcs1\r\nstderr tty4 vcsa\r\nstdin tty40 vcsa1\r\nstdout tty41 vcsu\r\ntty tty42 vcsu1\r\ntty0 tty43 vga_arbiter\r\ntty1 tty44 zero\r\ntty10 tty45\r\ntty11 tty46\r\n(initramfs) cat /proc/cmdline\r\nbcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbswap=1 dma.dmachans=0x7f35 bcm2709.boardrev=0xa02082 bcm2709.serial=0xfaf144 bcm2709.uart_clock=48000000 smsc95xx.macaddr=B8:27:EB:FA:F1:44 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=tty0 console=ttyS1,115200 root=/dev/mmcblk0p2 rw elevator=deadline fsck.repair=yes net.ifnames=0 cma=64M rootwait\r\n
\n

/boot \u3092 mount \u3057\u3066\u66f8\u304d\u63db\u3048\u3088\u3046\u3068\u601d\u3063\u305f\u3051\u3069\u3046\u307e\u304f mount \u51fa\u6765\u306a\u3044?

\n
(initramfs) mkdir /tmp/boot\r\n(initramfs) mount /dev/sda1 /tmp/boot\r\nmount: mounting /dev/sda1 on /tmp/boot failed: Invalid argument\r\n(initramfs) ls -la /dev/sda1 /tmp/boot\r\nbrw-------    1 0        0           8,   1 Jan  1 00:00 /dev/sda1\r\n\r\n/tmp/boot:\r\ntotal 0\r\ndrwxr-xr-x    2 0        0                0 Jan  1 00:10 .\r\ndrwxr-xr-x    3 0        0                0 Jan  1 00:10 ..\r\n(initramfs) mount -t vfat /dev/sda1 /tmp/boot\r\nmount: mounting /dev/sda1 on /tmp/boot failed: No such device\r\n(initramfs) mkdir /tmp/root\r\n(initramfs) modprobe ext4\r\n(initramfs) mount /dev/sda2 /tmp/root\r\n[ 2144.515323] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)\r\n(initramfs) find /tmp/root -name "vfat.ko"\r\n/tmp/root/usr/lib/modules/4.19.0-2-arm64/kernel/fs/fat/vfat.ko\r\n(initramfs) modprobe -v /tmp/root/usr/lib/modules/4.19.0-2-arm64/kernel/fs/fat/vfat.ko\r\n(initramfs) lsmod|grep fat\r\n(initramfs) mount -t vfat /dev/sda1 /tmp/boot\r\nmount: mounting /dev/sda1 on /tmp/boot failed: No such device\r\n(initramfs) lsmod|grep fat\r\n
\n

\u4e00\u65e6\u96fb\u6e90\u3092\u5207\u3063\u3066 /boot/cmdline.txt \u306e root=/dev/mmcblk0p2 \u3092 root=/dev/sda2 \u306b\u66f8\u304d\u63db\u3048\u3066\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305f\uff0e(LABEL\u6307\u5b9a\u306b\u5909\u3048\u305f\u307b\u3046\u304c\u3044\u3044\u304b\u306a)

\n
$ cat /boot/firmware/cmdline.txt \r\nconsole=tty0 console=ttyS1,115200 root=/dev/sda2 rw elevator=deadline fsck.repair=yes net.ifnames=0 cma=64M rootwait\r\n
\n

\u203braspi3-firmware \u3042\u305f\u308a\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304c\u639b\u304b\u308b\u3068\u4e0a\u66f8\u304d\u3055\u308c\u308b\u3088\u3046\uff0e

\n\n

systemd \u304b\u3089 sysvinit \u306b\u5909\u66f4(RAM\u304c\u958b\u304f\u304b\u3068\u601d\u3063\u305f\u3051\u3069\u6570MB\u7a0b\u5ea6\u3060\u3063\u305f)

\n
$ sudo apt install sysvinit-core sysvinit-utils\r\n
\n

LANG\u3092\u8a2d\u5b9a
\nen_US.UTF-8 UTF-8, ja_JP.UTF-8 UTF-8 \u3092\u6709\u52b9\u306b\u3057\u3066\uff0c\u30c7\u30d5\u30a9\u30eb\u30c8\u30ed\u30b1\u30fc\u30eb\u3092 ja_JP.UTF-8 \u306b\u3057\u305f\u308a\u3057\u305f\uff0e

\n
$ sudo dpkg-reconfigure locales\r\n$ echo 'export LANG="ja_JP.UTF-8"\r\nexport LC_TIME="en_US.UTF-8"' | tee -a ~/.profile\r\n$ source ~/.profile\r\n$ locale\r\nLANG=ja_JP.UTF-8\r\nLANGUAGE=\r\nLC_CTYPE="ja_JP.UTF-8"\r\nLC_NUMERIC="ja_JP.UTF-8"\r\nLC_TIME=en_US.UTF-8\r\nLC_COLLATE="ja_JP.UTF-8"\r\nLC_MONETARY="ja_JP.UTF-8"\r\nLC_MESSAGES="ja_JP.UTF-8"\r\nLC_PAPER="ja_JP.UTF-8"\r\nLC_NAME="ja_JP.UTF-8"\r\nLC_ADDRESS="ja_JP.UTF-8"\r\nLC_TELEPHONE="ja_JP.UTF-8"\r\nLC_MEASUREMENT="ja_JP.UTF-8"\r\nLC_IDENTIFICATION="ja_JP.UTF-8"\r\nLC_ALL=\r\n
\n

Raspberry Pi \u306b\u306f rtc \u304c\u306a\u304f\u3066\u518d\u8d77\u52d5\u306a\u3069\u3067\u6642\u8a08\u304c\u521d\u671f\u5316\u3055\u308c\u3066\u3057\u307e\u3046\u306e\u3067 fake-hwclock \u3092\u5c0e\u5165(\u96fb\u6e90\u65ad\u6642\u306a\u3069\u306e\u6642\u9593\u306f\u30ab\u30a6\u30f3\u30c8\u3055\u308c\u306a\u3044\u306e\u3067\u6642\u9593\u304c\u305a\u308c\u308b\u304c\u6642\u8a08\u304c\u5dfb\u304d\u623b\u3089\u306a\u3044)

\n
$ sudo apt install fake-hwclock\r\n
\n

ntpdate \u3092\u5c0e\u5165\u3057\u3066\u8d77\u52d5\u6642\u306e\u6642\u8a08\u5408\u308f\u305b\u3092\u3059\u308b\u3088\u3046\u306b\u3059\u308b(systemd\u306e\u307e\u307e\u3060\u3068ntp\u306e\u9762\u5012\u3092\u898b\u3066\u304f\u308c\u308b\u306e\u3067\u5fc5\u8981\u306a\u3044)

\n
$ sudo apt install ntpdate\r\n$ sudo vi /etc/boot.d/ntpdate\r\n$ cat /etc/boot.d/ntpdate\r\n#!/bin/sh\r\n\r\nntpdate 1.jp.pool.ntp.org\r\n$ sudo chmod +x /etc/boot.d/ntpdate\r\n
\n

ntpdate iptables \u306b\u5408\u308f\u305b\u3066\u3053\u3063\u3061\u306e\u307b\u3046\u304c\u3044\u3044\u304b\u3082?(\u6709\u7dda\u63a5\u7d9a\u5f8c\u306b\u6642\u8a08\u5408\u308f\u305b\u3059\u308b)

\n
$ cat /etc/network/interfaces.d/eth0 \r\nauto eth0\r\n\r\n# TODO: switch back to iptables-persistent once it re-enters testing\r\niface eth0 inet dhcp\r\n        pre-up iptables-restore < /etc/iptables/rules.v4\r\n        pre-up ip6tables-restore < /etc/iptables/rules.v6\r\n        up ntpdate 1.jp.pool.ntp.org\r\n
\n

uart\u3067setial\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306b /etc/inittab \u306b\u4ee5\u4e0b\u3092\u8a2d\u5b9a(systemd\u3060\u3068\u8a2d\u5b9a\u6e08\u307f\u306a\u306e\u3067\u4e0d\u8981)

\n
T1:23:respawn:/sbin/getty -L ttyS1 115200 vt100\r\n
\n

msmtp\u3092\u5c0e\u5165\u3057\u3066\u30e1\u30fc\u30eb\u3092\u98db\u3070\u305b\u308b\u3088\u3046\u306b

\n
$ sudo apt install msmtp\r\n$ sudo vi /etc/msmtprc\r\n$ grep -v ^# /etc/msmtprc|uniq\r\ndefaults\r\nsyslog on\r\naliases /etc/aliases\r\n\r\ntls on\r\ntls_trust_file /etc/ssl/certs/ca-certificates.crt\r\nauth on\r\nsyslog LOG_MAIL\r\n\r\naccount gmail\r\nhost smtp.gmail.com\r\nport 587\r\nfrom matohara@gmail.com\r\nuser matohara\r\npassword throjfeekdewxeib\r\n\r\naccount default : gmail\r\n$ sudo vi /etc/aliases\r\n$ grep -v ^# /etc/aliases\r\nmailer-daemon:hoge@example.com\r\npostmaster:hoge@example.com\r\nnobody:hoge@example.com\r\nhostmaster:hoge@example.com\r\nusenet:hoge@example.com\r\nnews:hoge@example.com\r\nwebmaster:hoge@example.com\r\nwww:hoge@example.com\r\nftp:hoge@example.com\r\nabuse:hoge@example.com\r\nnoc:hoge@example.com\r\nsecurity:hoge@example.com\r\nroot: hoge@example.com\r\ndefault: hoge@example.com\r\n$ echo 'hello' | msmtp matoken@ya.ru\r\n$ sudo apt install msmtp-mta\r\n$ echo 'hello' | /usr/sbin/sendmail matoken@ya.ru\r\n
\n

\u7121\u7dda\u3092\u7121\u52b9\u306b\u3059\u308b\u305f\u3081\u306b /boot/firmware/config.txt \u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18\u2026\u2026\u518d\u8d77\u52d5\u3057\u3066\u3082\u53cd\u6620\u3055\u308c\u306a\u3044?\u8981\u78ba\u8a8d

\n
dtoverlay=pi3-disable-wifi\r\ndtoverlay=pi3-disable-bt\r\n
\n

apticron \u3092\u5c0e\u5165\u3057\u3066\u66f4\u65b0\u3092\u30e1\u30fc\u30eb\u3067\u901a\u77e5\u3059\u308b

\n
$ sudo apt install apticron\r\n$ sudo cp -p /usr/lib/apticron/apticron.conf /etc/apticron/\r\n$ grep ^EMAIL= /etc/apticron/apticron.conf #\u5fc5\u8981\u306a\u3089\u5b9b\u5148\u3092\u66f8\u304d\u63db\u3048\u305f\u308a\r\nEMAIL="root"\r\n
\n

deborphan \u3067\u307f\u306a\u3057\u3054\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u901a\u77e5\u3059\u308b\u3088\u3046\u306b\u3059\u308b

\n
$ sudo apt install deborphan\r\n$ sudo crontab -e\r\n$ sudo crontab -l | grep deborphan | grep -v ^#\r\n7 4 * * *       deborphan && printf "\\nsudo apt --autoremove purge \\$( deborpha)'\r\n
\n

\u3066\u3053\u3068\u3067\u3068\u308a\u3042\u3048\u305a\u52d5\u304f\u3088\u3046\u306b\u306a\u3063\u305f\u3051\u3069\u6614\u3082\u3089\u3063\u305f\u30ce\u30d9\u30eb\u30c6\u30a3\u306eUSB\u30e1\u30e2\u30ea\u306a\u306e\u3067\u3053\u306e\u307e\u307e\u904b\u7528\u3059\u308b\u3068\u591a\u5206\u3059\u3050\u58ca\u308c\u3066\u3057\u307e\u3046\u3068\u601d\u3044\u307e\u3059\uff0e
\n\u6700\u8fd1\u79cb\u8449\u539f\u3067\u30bb\u30fc\u30eb\u306b\u306a\u3063\u3066\u3044\u308b\u69d8\u306a\u5b89\u3044 SSD \u3068\u304b\u6b32\u3057\u3044\u3067\u3059\u306d\uff0e

\n

\u3053\u3061\u3089\u306f\u8d77\u52d5\u7d42\u4e86\u306eUART\u306e\u30e1\u30c3\u30bb\u30fc\u30b8

\n

\"asciicast\"

\n

\n

\n", "content_text": "\u6700\u8fd1\u5165\u624b\u3057\u305f(\u9045) RaspberryPi 3 model B \u3067 USB \u30e1\u30e2\u30ea\u8d77\u52d5\u306e Debian buster aarch64 \u3092\u8a2d\u5b9a\u3057\u3066\u307f\u305f\u3068\u304d\u306e\u30e1\u30e2\u3067\u3059\uff0e\n\u30b8\u30e2\u30c6\u30a3\u30fc\u7d4c\u7531\u3067 Raspberry Pi 3 model B \u3092\u5165\u624b\u3057\u307e\u3057\u305f\uff0eRaspberry Pi 3 model B + USB Wi-Fi + USB Bluetooth + \u30b1\u30fc\u30b9\u306e\u30bb\u30c3\u30c8\u304c2,500\u5186 + \u9001\u6599\u624b\u6570\u6599 500\u5186\u3068\u5b89\u3044\u3067\u3059\uff0e\u666e\u901a\u306b\u65b0\u54c1\u3067\u8cb7\u3046\u3068 8,000\u5186\u8fd1\u304f\u3059\u308b\u3068\u601d\u3044\u307e\u3059\uff0e\u4eca\u3053\u306e\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3044\u308b\u6642\u70b9\u3067\u672a\u3060\u5728\u5eab\u306f\u3042\u308b\u3088\u3046\u306a\u306e\u3067\u8208\u5473\u306e\u3042\u308b\u4eba\u306f\u8cb7\u3046\u3068\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\uff0e(6\u500b\u540c\u68b1\u53ef\u80fd\u306a\u306e\u3067\u305d\u308c\u3060\u30681\u500b\u3042\u305f\u308a\u304c\u5c11\u3057\u5b89\u304f\u306a\u308b\u306e\u3067\u8fd1\u6240\u306e\u53cb\u9054\u3068\u8cb7\u3046\u3068\u3044\u3044\u304b\u3082)\n\nRaspberry Pi 3 model B \uff0b \u30b1\u30fc\u30b9\uff08\u9ed2\uff09 \uff0b Wi-Fi/Bluetooth \u30a2\u30c0\u30d7\u30bf\u30fc (\u3068\u304f) \u304a\u53f0\u5834\u6d77\u6d5c\u516c\u5712\u306e\u305d\u306e\u4ed6\u306e\u4e2d\u53e4\u3042\u3052\u307e\u3059\u30fb\u8b72\u308a\u307e\u3059\uff5c\u30b8\u30e2\u30c6\u30a3\u30fc\u3067\u4e0d\u7528\u54c1\u306e\u51e6\u5206\n\n\n64bit\u306b\u306a\u3063\u305f Raspberry Pi \u306f\u6b32\u3057\u3044\u3068\u601d\u3063\u3066\u3044\u305f\u306e\u3067\u5b89\u304f\u624b\u306b\u5165\u3063\u3066\u52a9\u304b\u308a\u307e\u3057\u305f :)\n(\u5f8c\u7d99\u306e Raspberry Pi 3 Model B+/A+ \u3084\uff0cSoC\u304c 3B \u3068\u540c\u3058\u3067\u7121\u7dda\u6a5f\u80fd\u306e\u306a\u3044 2B v1.2 \u3068\u304b\u3082\u6b32\u3057\u3044\u3067\u3059\u306d\uff0e)\nRaspberry Pi 3 model B \u306f 32bit\u3060\u3051\u3067\u306a\u304f64bit \u3082\u5229\u7528\u3067\u304d\u308b\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u3067\u3059\uff0e\u305b\u3063\u304b\u304f\u306a\u306e\u3067 64bit\u3067\u52d5\u304b\u3057\u305f\u3044\u3051\u3069\u4eca\u306e\u6642\u70b9\u3067\u306f Raspbian \u306f 32bit\u306e\u307f\u3067\u3059\uff0e\u305d\u3053\u3067 Debian \u306e arm64 \u3092\u8a66\u3059\u3053\u3068\u306b\u3057\u307e\u3057\u305f\uff0e\nRaspberry Pi 3 \u7528 Debian buster arm64 \u30a4\u30e1\u30fc\u30b8\u306e\u5165\u624b\u3068USB\u30e1\u30e2\u30ea\u3078\u306e\u66f8\u304d\u8fbc\u307f\n\u30a4\u30e1\u30fc\u30b8\u306f\u5ca9\u677e\u3055\u3093\u306e\u6771\u4eac\u30a8\u30ea\u30a2Debian\u52c9\u5f37\u4f1a\u306e\u8cc7\u6599\u3092\u771f\u4f3c\u3057\u3066\u4f5c\u308d\u3046\u3068\u601d\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\uff0c\n\n\u6771\u4eac\u30a8\u30ea\u30a2Debian\u52c9\u5f37\u4f1a\n\nRaspberry Pi 2 Model B \u306b Debian Jessie / armhf \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b – \u7b2c125\u56de 2015\u5e743\u6708\u5ea6\nRaspberry Pi3 / arm64 – Debian/Ubuntu \u30df\u30fc\u30c8\u30a2\u30c3\u30d7 in \u672d\u5e4c\n\n\n\nDebianWiki \u306e RaspberryPi3 \u306e\u9805\u76ee\u3092\u898b\u305f\u3089\u975e\u516c\u5f0f\u3060\u3051\u3069\u30a4\u30e1\u30fc\u30b8\u304c\u3042\u3063\u305f\u306e\u3067\u4eca\u56de\u306f\u305d\u308c\u3092\u5229\u7528\u3057\u307e\u3057\u305f\uff0e\u73fe\u5728 testing \u306e Buster \u306e\u30a4\u30e1\u30fc\u30b8\u304c\u5165\u624b\u3067\u304d\u307e\u3059\uff0e\n\nRaspberryPi3 – Debian Wiki\n\nDebian/raspi3-image-spec: contains the files to build the https://wiki.debian.org/RaspberryPi3 image\n\n\n\n\u30b9\u30c8\u30ec\u30fc\u30b8\u306f\u901a\u5e38 microSD \u3092\u5229\u7528\u3057\u307e\u3059\u304c\uff0c\u624b\u6301\u3061\u304c\u306a\u3044\u306e\u3068 Raspberry Pi 3 B \u306fUSB\u8d77\u52d5\u304c\u53ef\u80fd\u306a\u306f\u305a\u306a\u306e\u3067USB\u30e1\u30e2\u30ea\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\uff0eUSB 2.0\u63a5\u7d9a\u306e\u5bb9\u91cf2GB\u306e\u3082\u306e\u3092\u7528\u610f\u3057\u307e\u3057\u305f\uff0e\n\u3053\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u30a4\u30e1\u30fc\u30b8\u3092\u5165\u624b\u3057\u3066\u30cf\u30c3\u30b7\u30e5\u306e\u30c1\u30a7\u30c3\u30af\u3092\u3057\u305f\u5f8cUSB\u30e1\u30e2\u30ea\u3078\u66f8\u304d\u8fbc\u307f\u307e\u3057\u305f\uff0e\u3053\u3053\u3067\u306f Linux\u306edd\u30b3\u30de\u30f3\u30c9\u3067\u66f8\u304d\u8fbc\u3093\u3067\u3044\u307e\u3059\u304c\uff0cEtcher\u306a\u3069\u3092\u5229\u7528\u3059\u308b\u3068\u8272\u3005\u306a\u74b0\u5883\u3067GUI\u3067\u306e\u66f8\u304d\u8fbc\u307f\u304c\u53ef\u80fd\u3067\u3059\uff0e\n\u203b\u30a4\u30e1\u30fc\u30b8\u306f\u6700\u65b0\u306e\u3082\u306e\u3092\u5229\u7528\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\uff0e\n$ wget -c https://people.debian.org/~gwolf/raspberrypi3/20190206/20190206-raspberry-pi-3-buster-PREVIEW.img.xz https://people.debian.org/~gwolf/raspberrypi3/20190206/20190206-raspberry-pi-3-buster-PREVIEW.img.xz.sha256\r\n$ sha256sum -c ./20190206-raspberry-pi-3-buster-PREVIEW.img.xz.sha256\r\n20190206-raspberry-pi-3-buster-PREVIEW.img.xz: \u5b8c\u4e86\r\n$ xzcat 20190206-raspberry-pi-3-buster-PREVIEW.img.xz | pv | sudo dd of=/dev/sdb bs=1M oflag=dsync\r\n\n\nbalenaEtcher – Home\n\u30d6\u30fc\u30bf\u30d6\u30ebUSB\u30e1\u30e2\u30ea\u3092\u4f5c\u308bEtcher\u3092\u8a66\u3059 \u2013 matoken’s meme\n\u30de\u30eb\u30c1USB\u66f8\u304d\u8fbc\u307f\u30c4\u30fc\u30eb\u306ePopsicle \u2013 matoken’s meme\n\u30d6\u30fc\u30c8USB\u30e1\u30e2\u30ea\u306a\u3069\u3092\u4f5c\u308bmkusb\u3092\u8a66\u3057\u3066\u307f\u308b \u2013 matoken’s meme\nLinux \u74b0\u5883\u3067\u306e Raspberry Pi \u5411\u3051 OS \u66f8\u304d\u8fbc\u307fTips \u2013 matoken’s meme\n\nUSB\u304b\u3089\u8d77\u52d5\u3067\u304d\u308b\u3088\u3046OTP\u3092\u8a2d\u5b9a\u3059\u308b\n\u6ce8\u610f:OTP\u306e\u8a2d\u5b9a\u306f1\u5ea6\u3057\u304b\u51fa\u6765\u306a\u3044\u3057\uff0c\u5143\u306b\u623b\u3059\u3053\u3068\u3082\u51fa\u6765\u306a\u3044\u3068\u601d\u308f\u308c\u307e\u3059\uff0e\u8d77\u52d5\u6642\u9593\u304c\u9577\u304f\u306a\u308b\u306a\u3069\u30c7\u30e1\u30ea\u30c3\u30c8\u3082\u3042\u308b\u306e\u3067\u6c17\u3092\u3064\u3051\u3066\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\uff0e\n\u3053\u306eUSB\u30e1\u30e2\u30ea\u3092 Raspberry Pi \u306b\u63a5\u7d9a\u3057\u3066\u96fb\u6e90\u3092\u5165\u308c\u3066\u307f\u307e\u3057\u305f\u304c\u8d77\u52d5\u3057\u307e\u305b\u3093\uff0e\u6050\u3089\u304f OTP(One Time Programmable)\u30e1\u30e2\u30ea\u306e\u8a2d\u5b9a\u304c USB\u8d77\u52d5\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306b\u8a2d\u5b9a\u3057\u307e\u3059\uff0e(Raspberry Pi 3+ \u30b7\u30ea\u30fc\u30ba\u306f\u6a19\u6e96\u3067USB\u8d77\u52d5\u53ef\u80fd\u306a\u306e\u3067\u3053\u306e\u8a2d\u5b9a\u306f\u4e0d\u8981\u306a\u306f\u305a\u3067\u3059\uff0e)\n\nHow to boot from a USB mass storage device on a Raspberry Pi – Raspberry Pi Documentation\n\n\u5148\u305a Raspbian 2017-04-10 \u4ee5\u964d\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u66f8\u304d\u8fbc\u3093\u3060 microSD \u3092\u7528\u610f\u3057\u3066\u8d77\u52d5\u3057\u307e\u3059\uff0e\n( uart\u7d4c\u7531\u3067\u7e4b\u304e\u305f\u3044\u5834\u5408\u8d77\u52d5\u524d\u306b /boot/config.txt \u306b enable_uart=1 \u3092\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\uff0e $ echo enable_uart=1 | tee -a /media/matoken/boot/config.txt )\nOTP \u3092\u78ba\u8a8d\u3059\u308b\u3068\u3084\u306f\u308a\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\uff0e\npi@raspberrypi:~$ vcgencmd otp_dump | grep ^17:\r\n17:1020000a\r\n\n\u4ee5\u4e0b\u306e\u3088\u3046\u306b /boot/config.txt \u306b program_usb_boot_mode=1 \u3092\u8ffd\u8a18\u3057\u3066\u518d\u8d77\u52d5\u3059\u308b\u3068\u53cd\u6620\u3055\u308c\u307e\u3059\uff0e\n$ echo program_usb_boot_mode=1 | sudo tee -a /boot/config.txt\r\nprogram_usb_boot_mode=1\r\npi@raspberrypi:~$ sudo reboot\r\n\n17 \u304c 3020000a \u306b\u5909\u308f\u308c\u3070OK\npi@raspberrypi:~$ vcgencmd otp_dump | grep ^17:\r\n17:3020000a\r\n\n\u8a73\u7d30\u306f\u4ee5\u4e0b\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\n\nRaspberry Pi Documentation\n\n17 \u2013 bootmode register\r\n\r\nBit 1: sets the oscillator frequency to 19.2MHz\r\nBit 3: enables pull ups on the SDIO pins\r\nBit 19: enables GPIO bootmode\r\nBit 20: sets the bank to check for GPIO bootmode\r\nBit 21: enables booting from SD card\r\nBit 22: sets the bank to boot from\r\nBit 28: enables USB device booting\r\nBit 29: enables USB host booting (ethernet and mass storage)\r\n\n\u8a2d\u5b9a\u524d\u304c\uff0c1020000a -> 0b010000001000000000000000001010 \u3067\u8a2d\u5b9a\u5f8c\u304c\uff0c0x3020000a -> 0b110000001000000000000000001010 \u3066\u3053\u3068\u3067\uff0cBit 29 \u304c 0 \u304b\u3089 1 \u306b\u306a\u3063\u3066\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u8d77\u52d5\u3068USB\u8d77\u52d5\u3092\u8a66\u3059\u3088\u3046\u306b\u308a\u307e\u3059\uff0e\u3053\u306e\u72b6\u614b\u3067 microSD \u8d77\u52d5\u3092\u8a66\u3059\u3068\u3053\u308c\u3082\u5927\u4e08\u592b\u3067\u3057\u305f\uff0e(\u512a\u5148\u5ea6\u306f microSD > USB\uff0cNetwork\u306f\u672a\u78ba\u8a8d)\nUSB\u30e1\u30e2\u30ea\u304b\u3089\u306e\u8d77\u52d5\n\u3053\u306e\u72b6\u614b\u3067 shutdown \u3057\uff0cmicroSD \u3092\u53d6\u308a\u51fa\u3057\u3066 Debian \u306e\u5c0e\u5165\u3057\u305f USB \u30e1\u30e2\u30ea\u3092\u63a5\u7d9a\u3057\u3066\u8d77\u52d5\u3067\u8d77\u52d5\u3057\u307e\u3057\u305f\uff0e(USB\u8d77\u52d5\u306e\u5834\u5408\u306a\u304b\u306a\u304b\u8d77\u52d5\u304c\u59cb\u307e\u3089\u305a\u7126\u3063\u305f\u3051\u306930\u79d2\u307b\u3069\u5f85\u3064\u3068UART\u306b\u30ed\u30b0\u304c\u51fa\u306f\u3058\u3081\u308b\uff0eHDMI\u306e\u51fa\u529b\u306f\u672a\u78ba\u8a8d)\nlogin \u306f root:raspberry\n\u3061\u3083\u3093\u3068 64bit \u3067\u3059 :)\nroot@rpi3:~# uname -a\r\nLinux rpi3 4.19.0-2-arm64 #1 SMP Debian 4.19.16-1 (2019-01-17) aarch64 GNU/Linux\r\n\n\u7d30\u3005\u3068\u3057\u305f\u8a2d\u5b9a(\u307b\u307c\u4f59\u9332)\n\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u66f4\u65b0\nroot@rpi3:~# apt update && apt upgrade\r\n\n\u4e00\u822c\u30e6\u30fc\u30b6\u306e\u8ffd\u52a0\nroot@rpi3:~# useradd -m matoken\r\nroot@rpi3:~# passwd matoken\r\nEnter new UNIX password: \r\nRetype new UNIX password: \r\npasswd: password updated successfully\r\nroot@rpi3:~# chsh matoken -s /bin/bash\r\n\nOpenSSH \u306e\u8a2d\u5b9a\u5909\u66f4\nroot@rpi3:~# diff -u /etc/ssh/sshd_config.old /etc/ssh/sshd_config\r\n--- /etc/ssh/sshd_config.old 2019-02-06 15:15:46.940904823 +0000\r\n+++ /etc/ssh/sshd_config 2019-02-16 13:17:17.076873278 +0000\r\n@@ -29,7 +29,7 @@\r\n # Authentication:\r\n\r\n #LoginGraceTime 2m\r\n-PermitRootLogin yes\r\n+PermitRootLogin prohibit-password\r\n #StrictModes yes\r\n #MaxAuthTries 6\r\n #MaxSessions 10\r\n@@ -53,7 +53,7 @@\r\n #IgnoreRhosts yes\r\n\r\n # To disable tunneled clear text passwords, change to no here!\r\n-#PasswordAuthentication yes\r\n+PasswordAuthentication no\r\n #PermitEmptyPasswords no\r\n\r\n # Change to yes to enable challenge-response passwords (beware issues with\r\n@@ -119,3 +119,5 @@\r\n # AllowTcpForwarding no\r\n # PermitTTY no\r\n # ForceCommand cvs server\r\n+\r\n+AllowGroups sshusers\r\n\nsshusers \u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u3057\u3066 ssh login \u51fa\u6765\u308b\u30e6\u30fc\u30b6\u3092\u767b\u9332\nroot@rpi3:~# sudo groupadd sshusers\r\nroot@rpi3:~# sudo usermod -a -G sshusers matoken\r\n\n\u77ed\u3044modulus \u3092\u524a\u9664\u3059\u308b\nroot@rpi3:~# awk '$5>=3071' /etc/ssh/moduli | tee /etc/ssh/moduli.tmp\r\nroot@rpi3:~# wc -l /etc/ssh/moduli /etc/ssh/moduli.tmp\r\n 427 /etc/ssh/moduli\r\n 368 /etc/ssh/moduli.tmp\r\n 795 total\r\nroot@rpi3:~# sudo mv /etc/ssh/moduli.tmp /etc/ssh/moduli\r\n\nhostpc\u304b\u3089ssh\u516c\u958b\u9375\u3092cp\u3057\u3066\u304a\u304f\n$ ssh-copy-id -i ~/.ssh/id_ed25519_pi.pub matoken@rpi3\r\n\nssh\u9375\u30da\u30a2\u3092\u4f5c\u3063\u3066\u304a\u304f\nroot@rpi3:~# sudo -u matoken ssh-keygen -t ed25519\r\n\nsshd \u306e\u518d\u8d77\u52d5\nroot@rpi3:~# systemctl restart ssh\r\n\nssh login\u6642\u306b\u901a\u77e5\u3092\u98db\u3070\u3059\u3088\u3046\u306b\u3057\u3066\u304a\u304f\nroot@rpi3:~# vi /etc/ssh/sshrc\r\nroot@rpi3:~# chmod +x /etc/ssh/sshrc\r\nroot@rpi3:~# cat /etc/ssh/sshrc\r\n#!/bin/sh\r\n\r\n/home/matoken/bin/telegram.sh sshrc:${USER}@`hostname`:${SSH_CONNECTION}\r\n/home/matoken/bin/sms.sh sshrc:${USER}@`hostname`:${SSH_CONNECTION}\r\n\nssh \u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u305a\uff0c\u9375\u8a8d\u8a3c\u3067\u30ed\u30b0\u30a4\u30f3\u304c\u51fa\u6765\u308b&\u901a\u77e5\u304c\u98db\u3076\u306e\u3092\u78ba\u8a8d\nroot@rpi3:~# ssh root@localhost -o PasswordAuthentication=yes\r\nroot@rpi3:~# ssh matoken@localhost -o PasswordAuthentication=yes\r\nroot@rpi3:~# ssh matoken@localhost -i ~/.ssh/id_ed25519\r\n\n\u81ea\u5206\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u5408\u308f\u305b\u3066 /etc/iptables/rules.v4, /etc/iptables/rules.v6 \u3092\u5909\u66f4\uff0e\nroot@rpi3:~# grep -v ^# /etc/iptables/rules.v4\r\n*filter\r\n:INPUT ACCEPT [0:0]\r\n:FORWARD ACCEPT [0:0]\r\n:OUTPUT ACCEPT [0:0]\r\n-A INPUT -s 127.0.0.0/8 -m comment --comment "RFC3330 loopback" -j ACCEPT\r\n-A INPUT -s 192.168.1.0/24 -m comment --comment "RFC1918 reserved" -j ACCEPT\r\n-A INPUT -p tcp -m tcp --dport 22 -m comment --comment SSH -j REJECT --reject-with icmp-port-unreachable\r\nCOMMIT\r\nroot@rpi3:~# grep -v ^# /etc/iptables/rules.v6\r\n*filter\r\n:INPUT ACCEPT [0:0]\r\n:FORWARD ACCEPT [0:0]\r\n:OUTPUT ACCEPT [0:0]\r\n-A INPUT -s ::1/128 -m comment --comment "RFC3513 loopback" -j ACCEPT\r\n-A INPUT -p tcp -m tcp --dport 22 -m comment --comment SSH -j REJECT --reject-with icmp6-port-unreachable\r\nCOMMIT\r\n\nsudo \u3092\u5c0e\u5165\u3057\u3066\u8a2d\u5b9a\nroot@rpi3:~# apt install sudo\r\n\nsudo group\u306b\u30e6\u30fc\u30b6\u3092\u767b\u9332\nroot@rpi3:~# usermod -a -G sudo matoken\r\n\nsudo \u304c\u5229\u7528\u3067\u304d\u308b\u306e\u3092\u78ba\u8a8d\nmatoken@rpi3:~$ sudo grep ^root: /etc/shadow\r\nsudo: unable to resolve host rpi3: Name or service not known\r\nroot:!..VyaTFxP8kT6:17933:0:99999:7:::\r\n\nroot\u30e6\u30fc\u30b6\u3092\u30ed\u30c3\u30af\n$ sudo passwd -l root \r\nsudo: unable to resolve host rpi3: Name or service not known\r\npasswd: password expiry information changed.\r\nmatoken@rpi3:~$ sudo passwd -S root\r\nsudo: unable to resolve host rpi3: Name or service not known\r\nroot L 02/06/2019 0 99999 7 -1\r\n\nsudo\u6642\u306a\u3069\u306b\u300csudo: unable to resolve host rpi3: Name or service not known\u300d\u3068\u8a00\u308f\u308c\u308b\u306e\u3067 hosts \u306e localhost \u306b rpi3 \u3092\u8ffd\u52a0\nmatoken@rpi3:~$ sudo vi /etc/hosts\r\n127.0.0.1 localhost rpi3\r\n\n\u3053\u3053\u3067\u518d\u8d77\u52d5\u3059\u308b\u3068 rootfs \u304c\u898b\u3064\u304b\u3089\u306a\u3044\u3068\u8a00\u308f\u308c\u8d77\u52d5\u3057\u306a\u3044\uff0e\n(initramfs) Gave up waiting for root file system device. Common problems:\r\n- Boot args (cat /proc/cmdline)\r\n- Check rootdelay= (did the system wait long enough?)\r\n- Missing modules (cat /proc/modules; ls /dev)\r\nALERT! /dev/mmcblk0p2 does not exist. Dropping to a shell!\r\n\r\n\r\nBusyBox v1.27.2 (Debian 1:1.27.2-3) built-in shell (ash)\r\nEnter 'help' for a list of built-in commands.\r\n\ncmdline \u3067\u306f /dev/mmcblkp2 \u304b\u3089\u8d77\u52d5\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u304c\uff0c /dev/sda2 \u304b\u3089\u8d77\u52d5\u3057\u305f\u3044\n(initramfs) ls /dev\r\nblock tty12 tty47\r\nbsg tty13 tty48\r\nbus tty14 tty49\r\nchar tty15 tty5\r\nconsole tty16 tty50\r\ncore tty17 tty51\r\ncpu_dma_latency tty18 tty52\r\ndisk tty19 tty53\r\nfb0 tty2 tty54\r\nfd tty20 tty55\r\nfull tty21 tty56\r\ngpiochip0 tty22 tty57\r\ngpiochip1 tty23 tty58\r\ninput tty24 tty59\r\nkmsg tty25 tty6\r\nkvm tty26 tty60\r\nmem tty27 tty61\r\nmemory_bandwidth tty28 tty62\r\nnetwork_latency tty29 tty63\r\nnetwork_throughput tty3 tty7\r\nnull tty30 tty8\r\nport tty31 tty9\r\npsaux tty32 ttyAMA0\r\nptmx tty33 ttyS0\r\npts tty34 ttyS1\r\nrandom tty35 ttyS2\r\nsda tty36 ttyS3\r\nsda1 tty37 urandom\r\nsda2 tty38 vcs\r\nsnapshot tty39 vcs1\r\nstderr tty4 vcsa\r\nstdin tty40 vcsa1\r\nstdout tty41 vcsu\r\ntty tty42 vcsu1\r\ntty0 tty43 vga_arbiter\r\ntty1 tty44 zero\r\ntty10 tty45\r\ntty11 tty46\r\n(initramfs) cat /proc/cmdline\r\nbcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbswap=1 dma.dmachans=0x7f35 bcm2709.boardrev=0xa02082 bcm2709.serial=0xfaf144 bcm2709.uart_clock=48000000 smsc95xx.macaddr=B8:27:EB:FA:F1:44 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=tty0 console=ttyS1,115200 root=/dev/mmcblk0p2 rw elevator=deadline fsck.repair=yes net.ifnames=0 cma=64M rootwait\r\n\n/boot \u3092 mount \u3057\u3066\u66f8\u304d\u63db\u3048\u3088\u3046\u3068\u601d\u3063\u305f\u3051\u3069\u3046\u307e\u304f mount \u51fa\u6765\u306a\u3044?\n(initramfs) mkdir /tmp/boot\r\n(initramfs) mount /dev/sda1 /tmp/boot\r\nmount: mounting /dev/sda1 on /tmp/boot failed: Invalid argument\r\n(initramfs) ls -la /dev/sda1 /tmp/boot\r\nbrw------- 1 0 0 8, 1 Jan 1 00:00 /dev/sda1\r\n\r\n/tmp/boot:\r\ntotal 0\r\ndrwxr-xr-x 2 0 0 0 Jan 1 00:10 .\r\ndrwxr-xr-x 3 0 0 0 Jan 1 00:10 ..\r\n(initramfs) mount -t vfat /dev/sda1 /tmp/boot\r\nmount: mounting /dev/sda1 on /tmp/boot failed: No such device\r\n(initramfs) mkdir /tmp/root\r\n(initramfs) modprobe ext4\r\n(initramfs) mount /dev/sda2 /tmp/root\r\n[ 2144.515323] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)\r\n(initramfs) find /tmp/root -name "vfat.ko"\r\n/tmp/root/usr/lib/modules/4.19.0-2-arm64/kernel/fs/fat/vfat.ko\r\n(initramfs) modprobe -v /tmp/root/usr/lib/modules/4.19.0-2-arm64/kernel/fs/fat/vfat.ko\r\n(initramfs) lsmod|grep fat\r\n(initramfs) mount -t vfat /dev/sda1 /tmp/boot\r\nmount: mounting /dev/sda1 on /tmp/boot failed: No such device\r\n(initramfs) lsmod|grep fat\r\n\n\u4e00\u65e6\u96fb\u6e90\u3092\u5207\u3063\u3066 /boot/cmdline.txt \u306e root=/dev/mmcblk0p2 \u3092 root=/dev/sda2 \u306b\u66f8\u304d\u63db\u3048\u3066\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305f\uff0e(LABEL\u6307\u5b9a\u306b\u5909\u3048\u305f\u307b\u3046\u304c\u3044\u3044\u304b\u306a)\n$ cat /boot/firmware/cmdline.txt \r\nconsole=tty0 console=ttyS1,115200 root=/dev/sda2 rw elevator=deadline fsck.repair=yes net.ifnames=0 cma=64M rootwait\r\n\n\u203braspi3-firmware \u3042\u305f\u308a\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304c\u639b\u304b\u308b\u3068\u4e0a\u66f8\u304d\u3055\u308c\u308b\u3088\u3046\uff0e\n\nRevert “Fix the cmdline.txt options to boot by label, not by partition” by chschlue \u00b7 Pull Request #33 \u00b7 Debian/raspi3-image-spec\n#903543 – raspi3-firmware: add configuration options for cmdline.txt – Debian Bug report logs\n\nsystemd \u304b\u3089 sysvinit \u306b\u5909\u66f4(RAM\u304c\u958b\u304f\u304b\u3068\u601d\u3063\u305f\u3051\u3069\u6570MB\u7a0b\u5ea6\u3060\u3063\u305f)\n$ sudo apt install sysvinit-core sysvinit-utils\r\n\nLANG\u3092\u8a2d\u5b9a\nen_US.UTF-8 UTF-8, ja_JP.UTF-8 UTF-8 \u3092\u6709\u52b9\u306b\u3057\u3066\uff0c\u30c7\u30d5\u30a9\u30eb\u30c8\u30ed\u30b1\u30fc\u30eb\u3092 ja_JP.UTF-8 \u306b\u3057\u305f\u308a\u3057\u305f\uff0e\n$ sudo dpkg-reconfigure locales\r\n$ echo 'export LANG="ja_JP.UTF-8"\r\nexport LC_TIME="en_US.UTF-8"' | tee -a ~/.profile\r\n$ source ~/.profile\r\n$ locale\r\nLANG=ja_JP.UTF-8\r\nLANGUAGE=\r\nLC_CTYPE="ja_JP.UTF-8"\r\nLC_NUMERIC="ja_JP.UTF-8"\r\nLC_TIME=en_US.UTF-8\r\nLC_COLLATE="ja_JP.UTF-8"\r\nLC_MONETARY="ja_JP.UTF-8"\r\nLC_MESSAGES="ja_JP.UTF-8"\r\nLC_PAPER="ja_JP.UTF-8"\r\nLC_NAME="ja_JP.UTF-8"\r\nLC_ADDRESS="ja_JP.UTF-8"\r\nLC_TELEPHONE="ja_JP.UTF-8"\r\nLC_MEASUREMENT="ja_JP.UTF-8"\r\nLC_IDENTIFICATION="ja_JP.UTF-8"\r\nLC_ALL=\r\n\nRaspberry Pi \u306b\u306f rtc \u304c\u306a\u304f\u3066\u518d\u8d77\u52d5\u306a\u3069\u3067\u6642\u8a08\u304c\u521d\u671f\u5316\u3055\u308c\u3066\u3057\u307e\u3046\u306e\u3067 fake-hwclock \u3092\u5c0e\u5165(\u96fb\u6e90\u65ad\u6642\u306a\u3069\u306e\u6642\u9593\u306f\u30ab\u30a6\u30f3\u30c8\u3055\u308c\u306a\u3044\u306e\u3067\u6642\u9593\u304c\u305a\u308c\u308b\u304c\u6642\u8a08\u304c\u5dfb\u304d\u623b\u3089\u306a\u3044)\n$ sudo apt install fake-hwclock\r\n\nntpdate \u3092\u5c0e\u5165\u3057\u3066\u8d77\u52d5\u6642\u306e\u6642\u8a08\u5408\u308f\u305b\u3092\u3059\u308b\u3088\u3046\u306b\u3059\u308b(systemd\u306e\u307e\u307e\u3060\u3068ntp\u306e\u9762\u5012\u3092\u898b\u3066\u304f\u308c\u308b\u306e\u3067\u5fc5\u8981\u306a\u3044)\n$ sudo apt install ntpdate\r\n$ sudo vi /etc/boot.d/ntpdate\r\n$ cat /etc/boot.d/ntpdate\r\n#!/bin/sh\r\n\r\nntpdate 1.jp.pool.ntp.org\r\n$ sudo chmod +x /etc/boot.d/ntpdate\r\n\nntpdate iptables \u306b\u5408\u308f\u305b\u3066\u3053\u3063\u3061\u306e\u307b\u3046\u304c\u3044\u3044\u304b\u3082?(\u6709\u7dda\u63a5\u7d9a\u5f8c\u306b\u6642\u8a08\u5408\u308f\u305b\u3059\u308b)\n$ cat /etc/network/interfaces.d/eth0 \r\nauto eth0\r\n\r\n# TODO: switch back to iptables-persistent once it re-enters testing\r\niface eth0 inet dhcp\r\n pre-up iptables-restore < /etc/iptables/rules.v4\r\n pre-up ip6tables-restore < /etc/iptables/rules.v6\r\n up ntpdate 1.jp.pool.ntp.org\r\n\nuart\u3067setial\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306b /etc/inittab \u306b\u4ee5\u4e0b\u3092\u8a2d\u5b9a(systemd\u3060\u3068\u8a2d\u5b9a\u6e08\u307f\u306a\u306e\u3067\u4e0d\u8981)\nT1:23:respawn:/sbin/getty -L ttyS1 115200 vt100\r\n\nmsmtp\u3092\u5c0e\u5165\u3057\u3066\u30e1\u30fc\u30eb\u3092\u98db\u3070\u305b\u308b\u3088\u3046\u306b\n$ sudo apt install msmtp\r\n$ sudo vi /etc/msmtprc\r\n$ grep -v ^# /etc/msmtprc|uniq\r\ndefaults\r\nsyslog on\r\naliases /etc/aliases\r\n\r\ntls on\r\ntls_trust_file /etc/ssl/certs/ca-certificates.crt\r\nauth on\r\nsyslog LOG_MAIL\r\n\r\naccount gmail\r\nhost smtp.gmail.com\r\nport 587\r\nfrom matohara@gmail.com\r\nuser matohara\r\npassword throjfeekdewxeib\r\n\r\naccount default : gmail\r\n$ sudo vi /etc/aliases\r\n$ grep -v ^# /etc/aliases\r\nmailer-daemon:hoge@example.com\r\npostmaster:hoge@example.com\r\nnobody:hoge@example.com\r\nhostmaster:hoge@example.com\r\nusenet:hoge@example.com\r\nnews:hoge@example.com\r\nwebmaster:hoge@example.com\r\nwww:hoge@example.com\r\nftp:hoge@example.com\r\nabuse:hoge@example.com\r\nnoc:hoge@example.com\r\nsecurity:hoge@example.com\r\nroot: hoge@example.com\r\ndefault: hoge@example.com\r\n$ echo 'hello' | msmtp matoken@ya.ru\r\n$ sudo apt install msmtp-mta\r\n$ echo 'hello' | /usr/sbin/sendmail matoken@ya.ru\r\n\n\u7121\u7dda\u3092\u7121\u52b9\u306b\u3059\u308b\u305f\u3081\u306b /boot/firmware/config.txt \u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18\u2026\u2026\u518d\u8d77\u52d5\u3057\u3066\u3082\u53cd\u6620\u3055\u308c\u306a\u3044?\u8981\u78ba\u8a8d\ndtoverlay=pi3-disable-wifi\r\ndtoverlay=pi3-disable-bt\r\n\napticron \u3092\u5c0e\u5165\u3057\u3066\u66f4\u65b0\u3092\u30e1\u30fc\u30eb\u3067\u901a\u77e5\u3059\u308b\n$ sudo apt install apticron\r\n$ sudo cp -p /usr/lib/apticron/apticron.conf /etc/apticron/\r\n$ grep ^EMAIL= /etc/apticron/apticron.conf #\u5fc5\u8981\u306a\u3089\u5b9b\u5148\u3092\u66f8\u304d\u63db\u3048\u305f\u308a\r\nEMAIL="root"\r\n\ndeborphan \u3067\u307f\u306a\u3057\u3054\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u901a\u77e5\u3059\u308b\u3088\u3046\u306b\u3059\u308b\n$ sudo apt install deborphan\r\n$ sudo crontab -e\r\n$ sudo crontab -l | grep deborphan | grep -v ^#\r\n7 4 * * * deborphan && printf "\\nsudo apt --autoremove purge \\$( deborpha)'\r\n\n\u3066\u3053\u3068\u3067\u3068\u308a\u3042\u3048\u305a\u52d5\u304f\u3088\u3046\u306b\u306a\u3063\u305f\u3051\u3069\u6614\u3082\u3089\u3063\u305f\u30ce\u30d9\u30eb\u30c6\u30a3\u306eUSB\u30e1\u30e2\u30ea\u306a\u306e\u3067\u3053\u306e\u307e\u307e\u904b\u7528\u3059\u308b\u3068\u591a\u5206\u3059\u3050\u58ca\u308c\u3066\u3057\u307e\u3046\u3068\u601d\u3044\u307e\u3059\uff0e\n\u6700\u8fd1\u79cb\u8449\u539f\u3067\u30bb\u30fc\u30eb\u306b\u306a\u3063\u3066\u3044\u308b\u69d8\u306a\u5b89\u3044 SSD \u3068\u304b\u6b32\u3057\u3044\u3067\u3059\u306d\uff0e\n\u3053\u3061\u3089\u306f\u8d77\u52d5\u7d42\u4e86\u306eUART\u306e\u30e1\u30c3\u30bb\u30fc\u30b8", "date_published": "2019-03-01T06:41:13+09:00", "date_modified": "2019-03-01T09:20:00+09:00", "authors": [ { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" } ], "author": { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" }, "tags": [ "Debian", "Debian buster", "Raspberry Pi 3 B", "RaspberryPi", "buster", "Linux", "Raspberry Pi" ] }, { "id": "http://matoken.org/blog/?p=2190", "url": "https://matoken.org/blog/2018/10/23/debian-ubuntu-borrows-the-upstream-package/", "title": "Debian, Ubuntu \u3067 \u4e0a\u6d41\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u501f\u308a\u3066\u304f\u308b", "content_html": "
\n
\n
\n

\u4ee5\u524d\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a18\u4e8b\u3092\u66f8\u304d\u307e\u3057\u305f\uff0e

\n
\n\n
\n

\u4eca\u3067\u3082\u3053\u306eblog\u306e\u4e2d\u3067\u306f\u30a2\u30af\u30bb\u30b9\u304c\u591a\u304f\uff0c\u6700\u8fd1\u3082\u30c8\u30e9\u30c3\u30af\u30d0\u30c3\u30af\u3092\u3082\u3089\u3044\u307e\u3057\u305f\uff0e

\n
\n\n
\n

\u3053\u306e\u5f53\u6642\u306f arm64 \u306e mozc\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u306a\u304f\u3066\u81ea\u5206\u3067build \u3057\u305f\u3068\u3044\u3046\u8a71\u306a\u306e\u3067\u3059\u304c\uff0c\u73fe\u5728\u306fDebian \u3067\u306f buster(testing), Ubuntu \u3067\u306fartful(17.10) \u4ee5\u964d\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u5b58\u5728\u3057\u307e\u3059\uff0e
\n\u306a\u306e\u3067\u3053\u306e\u91ce\u826f\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3046\u3088\u308a\u3082\u516c\u5f0f\u306e\u4e0a\u6d41\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u501f\u308a\u308b\u307b\u3046\u304c\u5927\u62b5\u306e\u5834\u5408\u3044\u3044\u3068\u601d\u3044\u307e\u3059\uff0e
\n\u3068\u3044\u3046\u3053\u3068\u3067\u624b\u9806\u3092\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\uff0e

\n
\n
\n

\u30d1\u30c3\u30b1\u30fc\u30b8\u30d5\u30a1\u30a4\u30eb\u3060\u3051\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30da\u30fc\u30b8\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u53ef\u80fd\u3067\u3059\uff0e

\n
\n\n
\n

\u91ce\u826f\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u8fd1\u65e5\u4e2d\u306b\u524a\u9664\u3057\u307e\u3059\uff0e

\n
\n
\n
\n

Debian stretch arm64 \u306b Debian buster arm64 \u306e mozc \u3092\u501f\u308a\u3066\u304f\u308b

\n
\n
\n
Debian stretch arm64 \u3067\u306f mozc-data \u3057\u304b\u306a\u3044
\n
\n
$ apt-cache search mozc\r\nmozc-data - Mozc input method - data files
\n
\n
\n\n
\n

buster(testing) \u306emozc \u3092\u501f\u308a\u3066\u304f\u308b\u3053\u3068\u306b\u3059\u308b\uff0e

\n
\n\n
\n

/etc/apt/preferences \u3067 buster \u306e\u512a\u5148\u5ea6\u3092\u4e0b\u3052\u308b

\n
\n
\n
/etc/apt/preferences
\n
\n
Package: *\r\nPin: release n=buster\r\nPin-Priority: 100
\n
\n
\n
\n
/etc/apt/sources.list \u306b buster(testing) \u3092 \u8ffd\u52a0 \u8a2d\u5b9a
\n
\n
deb http://deb.debian.org/debian buster main
\n
\n
\n
\n

\u203bsources.list \u306e\u7de8\u96c6\u306b\u306f apt edit-sources \u3092\u4f7f\u3046\u3068\u6587\u6cd5\u30c1\u30a7\u30c3\u30af\u3092\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u304a\u3059\u3059\u3081

\n
\n
\n
\u30d1\u30c3\u30b1\u30fc\u30b8\u60c5\u5831\u306e\u66f4\u65b0
\n
\n
$ sudo apt update
\n
\n
\n
\n
mozc\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u78ba\u8a8d
\n
\n
$ apt-cache search mozc\r\nmozc-data - Mozc input method - data files\r\nfcitx-dbus-status - Addon for Fcitx to set/get/monitor IM statuses via D-Bus\r\nemacs-mozc - Mozc for Emacs\r\nemacs-mozc-bin - Helper module for emacs-mozc\r\nfcitx-mozc - Mozc engine for fcitx - Client of the Mozc input method\r\nibus-mozc - Mozc engine for IBus - Client of the Mozc input method\r\nmozc-server - Server of the Mozc input method\r\nmozc-utils-gui - GUI utilities of the Mozc input method\r\nuim-mozc - Mozc engine for uim - Client of the Mozc input method
\n
\n
\n
\n
\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u5c0e\u5165
\n
\n
$ apt install fcitx-mozc -t buster
\n
\n
\n
\n

\u5f8c\u306f\u901a\u5e38\u306e apt update && apt upgrade \u3067 stretch \u3067\u5c0e\u5165\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u306f stretch \u3067\uff0cbuster \u3067\u5c0e\u5165\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u306fbuster \u3067\u66f4\u65b0\u3055\u308c\u308b\u306f\u305a\uff0e

\n
\n
\n
\n
\n

Ubuntu 16.04 LTS xenial arm64 \u306b Ubuntu 18.04 LTS bionic arm64 \u306e mozc \u3092\u501f\u308a\u3066\u304f\u308b

\n
\n
\n

Debian\u306e\u624b\u9806\u3068\u540c\u3058\u3067\u3082ok\u3060\u3068\u601d\u3046\u3051\u3069\u5ff5\u306e\u70ba\u4ee5\u4e0b\u306e\u624b\u9806\u3092\u771f\u4f3c\u3057\u3066\u307f\u308b\uff0e

\n
\n\n
\n

mozc \u306f Ubuntu 17.10 artful \u304b\u3089\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u304c\uff0c\u3082\u3046\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u306a\u3044\u306e\u3067Ubuntu 18.04 bionic \u3092\u4f7f\u3046\uff0e

\n
\n\n
\n

\u6a19\u6e96\u306e\u30ea\u30ea\u30fc\u30b9\u3092 xenial \u306b\u8a2d\u5b9a

\n
\n
\n
/etc/apt/apt.conf.d/01ubuntu
\n
\n
APT::Default-Release \"xenial\";
\n
\n
\n
\n

mozc \u3092pinning\u3059\u308b

\n
\n
\n
/etc/apt/preferences
\n
\n
Package: *mozc*\r\nPin: release n=xenial\r\nPin-Priority: -10\r\n\r\nPackage: *mozc*\r\nPin: release n=bionic\r\nPin-Priority: 900
\n
\n
\n
\n

/etc/apt/sources.list \u306b buster(testing) \u3092 \u8ffd\u52a0 \u8a2d\u5b9a

\n
\n
\n
/etc/apt/sources.list
\n
\n
deb http://ports.ubuntu.com/ bionic main universe
\n
\n
\n
\n

\u203bsources.list \u306e\u7de8\u96c6\u306b\u306f apt edit-sources \u3092\u4f7f\u3046\u3068\u6587\u6cd5\u30c1\u30a7\u30c3\u30af\u3092\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u304a\u3059\u3059\u3081
\n\u203bmirror\u306b\u3088\u308a arm64 \u304c\u7f6e\u304b\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u6ce8\u610f

\n
\n
\n
\u30d1\u30c3\u30b1\u30fc\u30b8\u60c5\u5831\u306e\u66f4\u65b0
\n
\n
$ sudo apt update
\n
\n
\n
\n
\u691c\u7d22\u7d50\u679c\u306bmozc\u304c\u51fa\u3066\u304f\u308b
\n
\n
$ apt-cache search mozc\r\nmozc-data - Mozc input method - data files\r\nibus-mozc - Mozc engine for IBus - Client of the Mozc input method\r\nmozc-server - Server of the Mozc input method\r\nmozc-utils-gui - GUI utilities of the Mozc input method\r\nemacs-mozc - Mozc for Emacs\r\nemacs-mozc-bin - Helper module for emacs-mozc\r\nfcitx-mozc - Mozc engine for fcitx - Client of the Mozc input method\r\nuim-mozc - Mozc engine for uim - Client of the Mozc input method
\n
\n
\n
\n
\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u5c0e\u5165
\n
\n
$ sudo apt install fcitx-mozc -t bionic
\n
\n
\n
\n
\n
\n", "content_text": "\u4ee5\u524d\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a18\u4e8b\u3092\u66f8\u304d\u307e\u3057\u305f\uff0e\n\n\n\n\nUbuntu 16.04 aarch64\u74b0\u5883\u3067mozc pkg\u304c\u7121\u3044\u306e\u3067source pkg\u304b\u3089build \u2013 matoken\u2019s meme\n\n\nDebian\u3067\u3082arm64\u3067mozc build \u2013 matoken\u2019s meme\n\n\n\n\n\u4eca\u3067\u3082\u3053\u306eblog\u306e\u4e2d\u3067\u306f\u30a2\u30af\u30bb\u30b9\u304c\u591a\u304f\uff0c\u6700\u8fd1\u3082\u30c8\u30e9\u30c3\u30af\u30d0\u30c3\u30af\u3092\u3082\u3089\u3044\u307e\u3057\u305f\uff0e\n\n\n\n\nChromebook C101PA\u306ecrostini\u3067Linux\u30a2\u30d7\u30ea\u3092\u4f7f\u3063\u3066\u307f\u305f | \u307d\u3093\u307d\u3093\u30c6\u30c3\u30af\n\n\n\n\n\u3053\u306e\u5f53\u6642\u306f arm64 \u306e mozc\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u306a\u304f\u3066\u81ea\u5206\u3067build \u3057\u305f\u3068\u3044\u3046\u8a71\u306a\u306e\u3067\u3059\u304c\uff0c\u73fe\u5728\u306fDebian \u3067\u306f buster(testing), Ubuntu \u3067\u306fartful(17.10) \u4ee5\u964d\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u5b58\u5728\u3057\u307e\u3059\uff0e\n\u306a\u306e\u3067\u3053\u306e\u91ce\u826f\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3046\u3088\u308a\u3082\u516c\u5f0f\u306e\u4e0a\u6d41\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u501f\u308a\u308b\u307b\u3046\u304c\u5927\u62b5\u306e\u5834\u5408\u3044\u3044\u3068\u601d\u3044\u307e\u3059\uff0e\n\u3068\u3044\u3046\u3053\u3068\u3067\u624b\u9806\u3092\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\uff0e\n\n\n\u30d1\u30c3\u30b1\u30fc\u30b8\u30d5\u30a1\u30a4\u30eb\u3060\u3051\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30da\u30fc\u30b8\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u53ef\u80fd\u3067\u3059\uff0e\n\n\n\n\nDebian\u2009\u2014\u2009\u30d1\u30c3\u30b1\u30fc\u30b8\u691c\u7d22\u7d50\u679c\u2009\u2014\u2009mozc\n\n\nUbuntu \u2013 \u30d1\u30c3\u30b1\u30fc\u30b8\u691c\u7d22\u7d50\u679c\u2009\u2014\u2009mozc\n\n\n\n\n\u91ce\u826f\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u8fd1\u65e5\u4e2d\u306b\u524a\u9664\u3057\u307e\u3059\uff0e\n\n\n\nDebian stretch arm64 \u306b Debian buster arm64 \u306e mozc \u3092\u501f\u308a\u3066\u304f\u308b\n\n\nDebian stretch arm64 \u3067\u306f mozc-data \u3057\u304b\u306a\u3044\n\n$ apt-cache search mozc\r\nmozc-data - Mozc input method - data files\n\n\n\n\n\nDebian\u2009\u2014\u2009\u30d1\u30c3\u30b1\u30fc\u30b8\u691c\u7d22\u7d50\u679c\u2009\u2014\u2009mozc\n\n\n\n\nbuster(testing) \u306emozc \u3092\u501f\u308a\u3066\u304f\u308b\u3053\u3068\u306b\u3059\u308b\uff0e\n\n\n\n\n\u300c\u7b2c2\u7ae0 Debian \u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u300d\u306e\u300c2.7.6. unstable \u304b\u3089\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u5171\u306b\u3001testing \u3092\u8ffd\u3044\u304b\u3051\u308b\u300d\u3092\u53c2\u8003\u306b\u8a2d\u5b9a\u3059\u308b\n\n\n\n\n/etc/apt/preferences \u3067 buster \u306e\u512a\u5148\u5ea6\u3092\u4e0b\u3052\u308b\n\n\n/etc/apt/preferences\n\nPackage: *\r\nPin: release n=buster\r\nPin-Priority: 100\n\n\n\n/etc/apt/sources.list \u306b buster(testing) \u3092 \u8ffd\u52a0 \u8a2d\u5b9a\n\ndeb http://deb.debian.org/debian buster main\n\n\n\n\u203bsources.list \u306e\u7de8\u96c6\u306b\u306f apt edit-sources \u3092\u4f7f\u3046\u3068\u6587\u6cd5\u30c1\u30a7\u30c3\u30af\u3092\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u304a\u3059\u3059\u3081\n\n\n\u30d1\u30c3\u30b1\u30fc\u30b8\u60c5\u5831\u306e\u66f4\u65b0\n\n$ sudo apt update\n\n\n\nmozc\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u78ba\u8a8d\n\n$ apt-cache search mozc\r\nmozc-data - Mozc input method - data files\r\nfcitx-dbus-status - Addon for Fcitx to set/get/monitor IM statuses via D-Bus\r\nemacs-mozc - Mozc for Emacs\r\nemacs-mozc-bin - Helper module for emacs-mozc\r\nfcitx-mozc - Mozc engine for fcitx - Client of the Mozc input method\r\nibus-mozc - Mozc engine for IBus - Client of the Mozc input method\r\nmozc-server - Server of the Mozc input method\r\nmozc-utils-gui - GUI utilities of the Mozc input method\r\nuim-mozc - Mozc engine for uim - Client of the Mozc input method\n\n\n\n\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u5c0e\u5165\n\n$ apt install fcitx-mozc -t buster\n\n\n\n\u5f8c\u306f\u901a\u5e38\u306e apt update && apt upgrade \u3067 stretch \u3067\u5c0e\u5165\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u306f stretch \u3067\uff0cbuster \u3067\u5c0e\u5165\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u306fbuster \u3067\u66f4\u65b0\u3055\u308c\u308b\u306f\u305a\uff0e\n\n\n\n\nUbuntu 16.04 LTS xenial arm64 \u306b Ubuntu 18.04 LTS bionic arm64 \u306e mozc \u3092\u501f\u308a\u3066\u304f\u308b\n\n\nDebian\u306e\u624b\u9806\u3068\u540c\u3058\u3067\u3082ok\u3060\u3068\u601d\u3046\u3051\u3069\u5ff5\u306e\u70ba\u4ee5\u4e0b\u306e\u624b\u9806\u3092\u771f\u4f3c\u3057\u3066\u307f\u308b\uff0e\n\n\n\n\nPinningHowto – Community Help Wiki\n\n\n\n\nmozc \u306f Ubuntu 17.10 artful \u304b\u3089\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u304c\uff0c\u3082\u3046\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u306a\u3044\u306e\u3067Ubuntu 18.04 bionic \u3092\u4f7f\u3046\uff0e\n\n\n\n\nUbuntu \u2013 \u30d1\u30c3\u30b1\u30fc\u30b8\u691c\u7d22\u7d50\u679c\u2009\u2014\u2009mozc\n\n\n\n\n\u6a19\u6e96\u306e\u30ea\u30ea\u30fc\u30b9\u3092 xenial \u306b\u8a2d\u5b9a\n\n\n/etc/apt/apt.conf.d/01ubuntu\n\nAPT::Default-Release \"xenial\";\n\n\n\nmozc \u3092pinning\u3059\u308b\n\n\n/etc/apt/preferences\n\nPackage: *mozc*\r\nPin: release n=xenial\r\nPin-Priority: -10\r\n\r\nPackage: *mozc*\r\nPin: release n=bionic\r\nPin-Priority: 900\n\n\n\n/etc/apt/sources.list \u306b buster(testing) \u3092 \u8ffd\u52a0 \u8a2d\u5b9a\n\n\n/etc/apt/sources.list\n\ndeb http://ports.ubuntu.com/ bionic main universe\n\n\n\n\u203bsources.list \u306e\u7de8\u96c6\u306b\u306f apt edit-sources \u3092\u4f7f\u3046\u3068\u6587\u6cd5\u30c1\u30a7\u30c3\u30af\u3092\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u304a\u3059\u3059\u3081\n\u203bmirror\u306b\u3088\u308a arm64 \u304c\u7f6e\u304b\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u6ce8\u610f\n\n\n\u30d1\u30c3\u30b1\u30fc\u30b8\u60c5\u5831\u306e\u66f4\u65b0\n\n$ sudo apt update\n\n\n\n\u691c\u7d22\u7d50\u679c\u306bmozc\u304c\u51fa\u3066\u304f\u308b\n\n$ apt-cache search mozc\r\nmozc-data - Mozc input method - data files\r\nibus-mozc - Mozc engine for IBus - Client of the Mozc input method\r\nmozc-server - Server of the Mozc input method\r\nmozc-utils-gui - GUI utilities of the Mozc input method\r\nemacs-mozc - Mozc for Emacs\r\nemacs-mozc-bin - Helper module for emacs-mozc\r\nfcitx-mozc - Mozc engine for fcitx - Client of the Mozc input method\r\nuim-mozc - Mozc engine for uim - Client of the Mozc input method\n\n\n\n\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u5c0e\u5165\n\n$ sudo apt install fcitx-mozc -t bionic", "date_published": "2018-10-23T23:10:12+09:00", "date_modified": "2018-10-23T23:10:12+09:00", "authors": [ { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" } ], "author": { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" }, "tags": [ "Apt-Pinning", "Debian", "package", "Ubuntu", "Bionic Beaver(18.04LTS)", "buster", "Linux", "stretch", "testing", "xenial(16.04)" ] }, { "id": "http://matoken.org/blog/?p=1618", "url": "https://matoken.org/blog/2017/06/05/on-debian-mozc-build-with-arm64/", "title": "Debian\u3067\u3082arm64\u3067mozc build", "content_html": "

EDIT: \u73fe\u5728\u306f\u6b21\u306e\u8a18\u4e8b\u306e\u624b\u9806\u306e\u307b\u3046\u304c\u826f\u3044\u3068\u601d\u3044\u307e\u3059 ->\u00a0Debian, Ubuntu \u3067 \u4e0a\u6d41\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u501f\u308a\u3066\u304f\u308b \u2013 matoken’s meme

\n


\n\"20170605_00:06:13-17276\"

\n

\u5148\u65e5Ubuntu 16.04 arm64\u74b0\u5883\u3067mozc pkg\u3092\u4f5c\u308a\u307e\u3057\u305f\uff0e

\n\n

\u4eca\u56de\u306fDebian stretch arm64\u3067\u3082\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\uff0e

\n

\u74b0\u5883\u306fQualcom\u306e96Board\u306eDragonBoard 410c\u306bDebian stretch aarch64\u306e\u30a4\u30e1\u30fc\u30b8(dragonboard410c_sdcard_install_debian-233.zip)\u3092\u4f7f\u3044\u307e\u3057\u305f\uff0e

\n

OS\u30a4\u30e1\u30fc\u30b8\u306e\u5165\u624b\u3084\u5c0e\u5165\u65b9\u6cd5\u306a\u3069\u306f\u4ee5\u4e0b\u306e\u3042\u305f\u308a\u306b\u3042\u308a\u307e\u3059\uff0e

\n\n

\u624b\u5143\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3067sd card\u306b\u66f8\u304d\u8fbc\u3093\u3060\u5f8cdip\u30b9\u30a4\u30c3\u30c1\u3067sd\u8d77\u52d5\u306b\u3057\u3066\u8d77\u52d5\u3057\u3066eMMC\u306b\u5c0e\u5165\u3057\u307e\u3057\u305f\uff0e

\n
\n
$ md5sum dragonboard410c_sdcard_install_debian-233.zip\r\nef17a1602cf0ef300e123a3224e0699d  dragonboard410c_sdcard_install_debian-233.zip\r\n$ unzip -l dragonboard410c_sdcard_install_debian-233.zip\r\nArchive:  dragonboard410c_sdcard_install_debian-233.zip\r\n  Length      Date    Time    Name\r\n---------  ---------- -----   ----\r\n4055891968  2017-05-11 05:25   db410c_sd_install_debian.img\r\n    13953  2017-05-04 21:45   LICENSE\r\n---------                     -------\r\n4055905921                     2 files\r\n$ unzip -p dragonboard410c_sdcard_install_debian-233.zip LICENSE | lv\r\n$ unzip -p dragonboard410c_sdcard_install_debian-233.zip db410c_sd_install_debian.img | pv | sudo dd of=/dev/mmcblk0 bs=4M\r\n$ sync\r\n$ sync\r\n$ sync\r\n
\n
\n

\u5f8c\u306e\u624b\u9806\u306f\u307b\u307c\u524d\u56de\u306eUbuntu\u3068\u540c\u3058\u3067\u3059\u304c\uff0c

\n
\n
dpkg-buildpackage: error: fakeroot not found, either install the fakeroot\r\npackage, specify a command with the -r option, or run this as root  \r\n
\n
\n

\u3068fakeroot\u304c\u7121\u3044\u3068\u8d77\u3053\u3089\u308c\u305f\u306e\u3067\u5c0e\u5165\u30d1\u30c3\u30b1\u30fc\u30b8\u306bfakeroot\u3092\u8ffd\u52a0\u3057\u305f\u306e\u3068\uff0c

\n
\n
virtual memory exhausted: Cannot allocate memory\r\n
\n
\n

\u3068\u3044\u3046\u611f\u3058\u3067\u30b3\u30b1\u305f\u306e\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u30b9\u30ef\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u3057\u3066\u56de\u907f\u3057\u307e\u3057\u305f\uff0e\u524d\u56de\u306eUbuntu\u3092\u5165\u308c\u3066\u308b\u65b9\u306e\u6a5f\u68b0\u306fRAM2GB\u306a\u306e\u3067RAM1GB+SWAP1GB\u3067\u3082\u884c\u3051\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u5ff5\u306e\u70ba2GB\u8ffd\u52a0\u3057\u307e\u3057\u305f\uff0e

\n
\n
$ dd if=/dev/zero of=/var/tmp/swap bs=1M count=2048\r\n$ sudo chmod 600 /var/tmp/swap\r\n$ sudo chown 0.0 /var/tmp/swap\r\n$ sudo mkswap /var/tmp/swap\r\n$ sudo swapon /var/tmp/swap\r\n$ free\r\n              total        used        free      shared  buff/cache   available\r\nMem:         945868      225736      444948       40784      275184      608980\r\nSwap:       2097148           0     2097148\r\n
\n
\n

\u3067\uff0c\u30d1\u30c3\u30b1\u30fc\u30b8\u30f3\u30b0\u3068\u5c0e\u5165\u306e\u624b\u9806\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3057\u305f\uff0e

\n
\n
$ sudo apt update\r\n$ sudo apt upgrade\r\n$ sudo apt install build-essential devscripts fakeroot\r\n$ sudo apt build-dep mozc\r\n$ apt source mozc\r\n$ wget https://gist.githubusercontent.com/matoken/afce66ce67392c11d3ed20d7bbab5833/raw/2bb0163f30291caa6ba7b41b3d4352c7e6c0b6a7/patch\r\n$ patch -p0 < patch\r\n$ cd mozc-2.19.2623.102+dfsg\r\n$ time dpkg-buildpackage -us -uc -j4\r\n   :\r\nreal    111m31.882s\r\nuser    88m2.352s\r\nsys     10m59.828s\r\n$ dch -i\r\n$ head debian/changelog \r\nmozc (2.19.2623.102+dfsg-1.1) unstable; urgency=medium\r\n\r\n  * Non-maintainer upload.\r\n  * Update debian/control.\r\n    - Add arm64 to Architecture list.\r\n\r\n -- K.I.Matohara <matoken@gmail.com>  Sat, 03 Jun 2017 22:15:19 +0000\r\n\r\nmozc (2.19.2623.102+dfsg-1) unstable; urgency=medium\r\n\r\n$ dpkg-buildpackage -j4\r\n$ ls -la ../*dfsg-1.1_*\r\n-rw-r--r-- 1 linaro linaro  2130510 Jun  4 01:10 ../emacs-mozc-bin-dbgsym_2.19.2623.102+dfsg-1.1_arm64.deb\r\n-rw-r--r-- 1 linaro linaro   157710 Jun  4 01:10 ../emacs-mozc-bin_2.19.2623.102+dfsg-1.1_arm64.deb\r\n-rw-r--r-- 1 linaro linaro    28118 Jun  4 01:10 ../emacs-mozc_2.19.2623.102+dfsg-1.1_arm64.deb\r\n-rw-r--r-- 1 linaro linaro  2765446 Jun  4 01:10 ../fcitx-mozc-dbgsym_2.19.2623.102+dfsg-1.1_arm64.deb\r\n-rw-r--r-- 1 linaro linaro   224574 Jun  4 01:10 ../fcitx-mozc_2.19.2623.102+dfsg-1.1_arm64.deb\r\n-rw-r--r-- 1 linaro linaro  3088148 Jun  4 01:10 ../ibus-mozc-dbgsym_2.19.2623.102+dfsg-1.1_arm64.deb\r\n-rw-r--r-- 1 linaro linaro   189886 Jun  4 01:10 ../ibus-mozc_2.19.2623.102+dfsg-1.1_arm64.deb\r\n-rw-r--r-- 1 linaro linaro    14134 Jun  4 01:10 ../mozc-data_2.19.2623.102+dfsg-1.1_all.deb\r\n-rw-r--r-- 1 linaro linaro 24825020 Jun  4 01:11 ../mozc-server-dbgsym_2.19.2623.102+dfsg-1.1_arm64.deb\r\n-rw-r--r-- 1 linaro linaro 12310852 Jun  4 01:11 ../mozc-server_2.19.2623.102+dfsg-1.1_arm64.deb\r\n-rw-r--r-- 1 linaro linaro  9823936 Jun  4 01:11 ../mozc-utils-gui-dbgsym_2.19.2623.102+dfsg-1.1_arm64.deb\r\n-rw-r--r-- 1 linaro linaro   755758 Jun  4 01:11 ../mozc-utils-gui_2.19.2623.102+dfsg-1.1_arm64.deb\r\n-rw-r--r-- 1 linaro linaro    18228 Jun  4 04:00 ../mozc_2.19.2623.102+dfsg-1.1_arm64.buildinfo\r\n-rw-r--r-- 1 linaro linaro     6898 Jun  4 04:00 ../mozc_2.19.2623.102+dfsg-1.1_arm64.changes\r\n-rw-r--r-- 1 linaro linaro  1921396 Jun  4 01:10 ../uim-mozc-dbgsym_2.19.2623.102+dfsg-1.1_arm64.deb\r\n-rw-r--r-- 1 linaro linaro   192712 Jun  4 01:10 ../uim-mozc_2.19.2623.102+dfsg-1.1_arm64.deb\r\n$ sudo apt install ../mozc-server_2.19.2623.102+dfsg-1.1_arm64.deb ../fcitx-mozc_2.19.2623.102+dfsg-1.1_arm64.deb ../mozc-data_2.19.2623.102+dfsg-1.1_all.deb ../mozc-utils-gui_2.19.2623.102+dfsg-1.1_arm64.deb \r\n$ sudo apt install fcitx-ui-classic\r\n
\n
\n

\u3053\u308c\u3082\u4e00\u5fdc\u3053\u306e\u8fba\u306b\u7f6e\u3044\u3066\u304a\u304d\u307e\u3057\u305f\uff0e\u591a\u5206\u305d\u306e\u3046\u3061\u6d88\u3057\u307e\u3059\uff0e(Version\u304c\u4e0a\u304c\u3063\u305f\u9803?)

\n\n

\u3053\u308c\u3067\u3068\u308a\u3042\u3048\u305a\u624b\u5143\u306eUbuntu/Debian\u3067\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u304c\uff0cmozc\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u6bce\u306bbuild\u304c\u5fc5\u8981\u3067\u3059\uff0e\u306a\u306e\u3067BTS\u4e88\u5b9a\uff0e\u3042\u3068\u30af\u30ed\u30b9\u3067\u8a66\u3059\u306e\u3068Multiarch\u3082\u8a66\u3057\u3066\u307f\u305f\u3044\u3067\u3059\uff0e

\n

\u53c2\u8003URL

\n\n", "content_text": "EDIT: \u73fe\u5728\u306f\u6b21\u306e\u8a18\u4e8b\u306e\u624b\u9806\u306e\u307b\u3046\u304c\u826f\u3044\u3068\u601d\u3044\u307e\u3059 ->\u00a0Debian, Ubuntu \u3067 \u4e0a\u6d41\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u501f\u308a\u3066\u304f\u308b \u2013 matoken’s meme\n\n\n\u5148\u65e5Ubuntu 16.04 arm64\u74b0\u5883\u3067mozc pkg\u3092\u4f5c\u308a\u307e\u3057\u305f\uff0e\n\nUbuntu 16.04 aarch64\u74b0\u5883\u3067mozc pkg\u304c\u7121\u3044\u306e\u3067source pkg\u304b\u3089build | matoken\u2019s meme\n\n\u4eca\u56de\u306fDebian stretch arm64\u3067\u3082\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\uff0e\n\u74b0\u5883\u306fQualcom\u306e96Board\u306eDragonBoard 410c\u306bDebian stretch aarch64\u306e\u30a4\u30e1\u30fc\u30b8(dragonboard410c_sdcard_install_debian-233.zip)\u3092\u4f7f\u3044\u307e\u3057\u305f\uff0e\nOS\u30a4\u30e1\u30fc\u30b8\u306e\u5165\u624b\u3084\u5c0e\u5165\u65b9\u6cd5\u306a\u3069\u306f\u4ee5\u4e0b\u306e\u3042\u305f\u308a\u306b\u3042\u308a\u307e\u3059\uff0e\n\nDragonBoard 410 Getting Started Guide (README.md)\nDragonBoard 410 Getting Started Guide (Debian.md)\nDragonBoard 410 Getting Started Guide (LinuxSD.md)\n\n\u624b\u5143\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3067sd card\u306b\u66f8\u304d\u8fbc\u3093\u3060\u5f8cdip\u30b9\u30a4\u30c3\u30c1\u3067sd\u8d77\u52d5\u306b\u3057\u3066\u8d77\u52d5\u3057\u3066eMMC\u306b\u5c0e\u5165\u3057\u307e\u3057\u305f\uff0e\n\n$ md5sum dragonboard410c_sdcard_install_debian-233.zip\r\nef17a1602cf0ef300e123a3224e0699d dragonboard410c_sdcard_install_debian-233.zip\r\n$ unzip -l dragonboard410c_sdcard_install_debian-233.zip\r\nArchive: dragonboard410c_sdcard_install_debian-233.zip\r\n Length Date Time Name\r\n--------- ---------- ----- ----\r\n4055891968 2017-05-11 05:25 db410c_sd_install_debian.img\r\n 13953 2017-05-04 21:45 LICENSE\r\n--------- -------\r\n4055905921 2 files\r\n$ unzip -p dragonboard410c_sdcard_install_debian-233.zip LICENSE | lv\r\n$ unzip -p dragonboard410c_sdcard_install_debian-233.zip db410c_sd_install_debian.img | pv | sudo dd of=/dev/mmcblk0 bs=4M\r\n$ sync\r\n$ sync\r\n$ sync\r\n\n\n\u5f8c\u306e\u624b\u9806\u306f\u307b\u307c\u524d\u56de\u306eUbuntu\u3068\u540c\u3058\u3067\u3059\u304c\uff0c\n\ndpkg-buildpackage: error: fakeroot not found, either install the fakeroot\r\npackage, specify a command with the -r option, or run this as root \r\n\n\n\u3068fakeroot\u304c\u7121\u3044\u3068\u8d77\u3053\u3089\u308c\u305f\u306e\u3067\u5c0e\u5165\u30d1\u30c3\u30b1\u30fc\u30b8\u306bfakeroot\u3092\u8ffd\u52a0\u3057\u305f\u306e\u3068\uff0c\n\nvirtual memory exhausted: Cannot allocate memory\r\n\n\n\u3068\u3044\u3046\u611f\u3058\u3067\u30b3\u30b1\u305f\u306e\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u30b9\u30ef\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u3057\u3066\u56de\u907f\u3057\u307e\u3057\u305f\uff0e\u524d\u56de\u306eUbuntu\u3092\u5165\u308c\u3066\u308b\u65b9\u306e\u6a5f\u68b0\u306fRAM2GB\u306a\u306e\u3067RAM1GB+SWAP1GB\u3067\u3082\u884c\u3051\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u5ff5\u306e\u70ba2GB\u8ffd\u52a0\u3057\u307e\u3057\u305f\uff0e\n\n$ dd if=/dev/zero of=/var/tmp/swap bs=1M count=2048\r\n$ sudo chmod 600 /var/tmp/swap\r\n$ sudo chown 0.0 /var/tmp/swap\r\n$ sudo mkswap /var/tmp/swap\r\n$ sudo swapon /var/tmp/swap\r\n$ free\r\n total used free shared buff/cache available\r\nMem: 945868 225736 444948 40784 275184 608980\r\nSwap: 2097148 0 2097148\r\n\n\n\u3067\uff0c\u30d1\u30c3\u30b1\u30fc\u30b8\u30f3\u30b0\u3068\u5c0e\u5165\u306e\u624b\u9806\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3057\u305f\uff0e\n\n$ sudo apt update\r\n$ sudo apt upgrade\r\n$ sudo apt install build-essential devscripts fakeroot\r\n$ sudo apt build-dep mozc\r\n$ apt source mozc\r\n$ wget https://gist.githubusercontent.com/matoken/afce66ce67392c11d3ed20d7bbab5833/raw/2bb0163f30291caa6ba7b41b3d4352c7e6c0b6a7/patch\r\n$ patch -p0 < patch\r\n$ cd mozc-2.19.2623.102+dfsg\r\n$ time dpkg-buildpackage -us -uc -j4\r\n :\r\nreal 111m31.882s\r\nuser 88m2.352s\r\nsys 10m59.828s\r\n$ dch -i\r\n$ head debian/changelog \r\nmozc (2.19.2623.102+dfsg-1.1) unstable; urgency=medium\r\n\r\n * Non-maintainer upload.\r\n * Update debian/control.\r\n - Add arm64 to Architecture list.\r\n\r\n -- K.I.Matohara <matoken@gmail.com> Sat, 03 Jun 2017 22:15:19 +0000\r\n\r\nmozc (2.19.2623.102+dfsg-1) unstable; urgency=medium\r\n\r\n$ dpkg-buildpackage -j4\r\n$ ls -la ../*dfsg-1.1_*\r\n-rw-r--r-- 1 linaro linaro 2130510 Jun 4 01:10 ../emacs-mozc-bin-dbgsym_2.19.2623.102+dfsg-1.1_arm64.deb\r\n-rw-r--r-- 1 linaro linaro 157710 Jun 4 01:10 ../emacs-mozc-bin_2.19.2623.102+dfsg-1.1_arm64.deb\r\n-rw-r--r-- 1 linaro linaro 28118 Jun 4 01:10 ../emacs-mozc_2.19.2623.102+dfsg-1.1_arm64.deb\r\n-rw-r--r-- 1 linaro linaro 2765446 Jun 4 01:10 ../fcitx-mozc-dbgsym_2.19.2623.102+dfsg-1.1_arm64.deb\r\n-rw-r--r-- 1 linaro linaro 224574 Jun 4 01:10 ../fcitx-mozc_2.19.2623.102+dfsg-1.1_arm64.deb\r\n-rw-r--r-- 1 linaro linaro 3088148 Jun 4 01:10 ../ibus-mozc-dbgsym_2.19.2623.102+dfsg-1.1_arm64.deb\r\n-rw-r--r-- 1 linaro linaro 189886 Jun 4 01:10 ../ibus-mozc_2.19.2623.102+dfsg-1.1_arm64.deb\r\n-rw-r--r-- 1 linaro linaro 14134 Jun 4 01:10 ../mozc-data_2.19.2623.102+dfsg-1.1_all.deb\r\n-rw-r--r-- 1 linaro linaro 24825020 Jun 4 01:11 ../mozc-server-dbgsym_2.19.2623.102+dfsg-1.1_arm64.deb\r\n-rw-r--r-- 1 linaro linaro 12310852 Jun 4 01:11 ../mozc-server_2.19.2623.102+dfsg-1.1_arm64.deb\r\n-rw-r--r-- 1 linaro linaro 9823936 Jun 4 01:11 ../mozc-utils-gui-dbgsym_2.19.2623.102+dfsg-1.1_arm64.deb\r\n-rw-r--r-- 1 linaro linaro 755758 Jun 4 01:11 ../mozc-utils-gui_2.19.2623.102+dfsg-1.1_arm64.deb\r\n-rw-r--r-- 1 linaro linaro 18228 Jun 4 04:00 ../mozc_2.19.2623.102+dfsg-1.1_arm64.buildinfo\r\n-rw-r--r-- 1 linaro linaro 6898 Jun 4 04:00 ../mozc_2.19.2623.102+dfsg-1.1_arm64.changes\r\n-rw-r--r-- 1 linaro linaro 1921396 Jun 4 01:10 ../uim-mozc-dbgsym_2.19.2623.102+dfsg-1.1_arm64.deb\r\n-rw-r--r-- 1 linaro linaro 192712 Jun 4 01:10 ../uim-mozc_2.19.2623.102+dfsg-1.1_arm64.deb\r\n$ sudo apt install ../mozc-server_2.19.2623.102+dfsg-1.1_arm64.deb ../fcitx-mozc_2.19.2623.102+dfsg-1.1_arm64.deb ../mozc-data_2.19.2623.102+dfsg-1.1_all.deb ../mozc-utils-gui_2.19.2623.102+dfsg-1.1_arm64.deb \r\n$ sudo apt install fcitx-ui-classic\r\n\n\n\u3053\u308c\u3082\u4e00\u5fdc\u3053\u306e\u8fba\u306b\u7f6e\u3044\u3066\u304a\u304d\u307e\u3057\u305f\uff0e\u591a\u5206\u305d\u306e\u3046\u3061\u6d88\u3057\u307e\u3059\uff0e(Version\u304c\u4e0a\u304c\u3063\u305f\u9803?)\n\nYandex.Disk\n\n\u3053\u308c\u3067\u3068\u308a\u3042\u3048\u305a\u624b\u5143\u306eUbuntu/Debian\u3067\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u304c\uff0cmozc\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u6bce\u306bbuild\u304c\u5fc5\u8981\u3067\u3059\uff0e\u306a\u306e\u3067BTS\u4e88\u5b9a\uff0e\u3042\u3068\u30af\u30ed\u30b9\u3067\u8a66\u3059\u306e\u3068Multiarch\u3082\u8a66\u3057\u3066\u307f\u305f\u3044\u3067\u3059\uff0e\n\u53c2\u8003URL\n\n\u7b2c6\u7ae0 \u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30d3\u30eb\u30c9\nDebian \u30d1\u30c3\u30b1\u30fc\u30b8\u30f3\u30b0\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb (\u203bpdf)", "date_published": "2017-06-05T08:40:41+09:00", "date_modified": "2018-10-23T23:14:49+09:00", "authors": [ { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" } ], "author": { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" }, "tags": [ "aarch64", "arm64", "Debian", "Debian stretch", "mozc", "Linux", "stretch", "testing" ] }, { "id": "http://matoken.org/blog/?p=1601", "url": "https://matoken.org/blog/2017/04/19/restore-broken-var-lib-dpkg-status-in-freedombox-of-raspberry-pi/", "title": "Raspberry Pi\u306eFreedomBox\u3067/var/lib/dpkg/status\u304c\u58ca\u308c\u305f\u306e\u3092\u5fa9\u65e7", "content_html": "

Raspberry Pi\u3067FreedomBox\u3092\u8a66\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\uff0c\u30b9\u30c8\u30ec\u30fc\u30b8\u304cmicroSD\u306e\u305b\u3044\u304b\u4fee\u6b63\u3057\u3066\u3044\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4f9d\u5b58\u95a2\u4fc2\u304b\u4f55\u304b\u304c\u304a\u304b\u3057\u304f\u306a\u3063\u305f\u305b\u3044\u304b/var/lib/dpkg/status\u304c\u58ca\u308c\u3066\u3057\u307e\u3044\u307e\u3057\u305f\uff0e

\n
\n
$ sudo apt update\nHit:1 http://cdn-fastly.deb.debian.org/debian testing InRelease\nReading package lists... Error!\nE: Unable to parse package file /var/lib/dpkg/status (1)\nW: You may want to run apt-get update to correct these problems\nE: The package cache file is corrupted\n
\n
\n
\n
E: \u30d1\u30c3\u30b1\u30fc\u30b8\u30d5\u30a1\u30a4\u30eb /var/lib/dpkg/status \u3092\u89e3\u91c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093 (1)\nW: \u3053\u308c\u3089\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u306b\u306f apt-get update \u3092\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\nE: \u30d1\u30c3\u30b1\u30fc\u30b8\u30ad\u30e3\u30c3\u30b7\u30e5\u30d5\u30a1\u30a4\u30eb\u304c\u58ca\u308c\u3066\u3044\u307e\u3059\n
\n
\n

apt-get update\u3067\u6cbb\u308b\u306e\u304b\u306a\u3068\u601d\u3063\u3066\u53e9\u3044\u3066\u307f\u307e\u3057\u305f\u304c\u99c4\u76ee\u3067\u3057\u305f\uff0e

\n

Debian \u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306e\u7b2c2\u7ae0 Debian \u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u306b\u3088\u308b\u3068\uff0c

\n
\n

2.6.5. \u30d1\u30c3\u30b1\u30fc\u30b8\u30bb\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u5fa9\u5143

\n

\u3082\u3057\u4f55\u3089\u304b\u306e\u7406\u7531\u3067 “/var/lib/dpkg/status” \u306e\u5185\u5bb9\u304c\u8150\u3063\u305f\u5834\u5408\u306b\u306f\u3001Debian \u30b7\u30b9\u30c6\u30e0\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u9078\u629e\u30c7\u30fc\u30bf\u30fc\u304c\u5931\u308f\u308c\u5927\u304d\u306a\u6253\u6483\u3092\u88ab\u308a\u307e\u3059\u3002\u53e4\u3044 “/var/lib/dpkg/status” \u30d5\u30a1\u30a4\u30eb\u306f\u3001”/var/lib/dpkg/status-old” \u3084 “/var/backups/dpkg.status.*” \u3068\u3057\u3066\u3042\u308b\u306e\u3067\u63a2\u3057\u307e\u3059\u3002

\n

“/var/backups/” \u306f\u591a\u304f\u306e\u91cd\u8981\u306a\u60c5\u5831\u3092\u4fdd\u6301\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u308c\u3092\u5225\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u4e0a\u306b\u7f6e\u304f\u306e\u3082\u826f\u3044\u8003\u3048\u3067\u3059\u3002

\n
\n

\u3068\u306e\u3053\u3068\u306a\u306e\u3067\uff0c/var/lib/dpkg/status-old\u304b\u3089\u5fa9\u65e7\u3092\u3068\u601d\u3044\u307e\u3057\u305f\u304c\u3053\u308c\u3082\u65e2\u306b\u58ca\u308c\u3066\u3044\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\uff0e/var/backups/dpkg.status.0\u306f\u307e\u3060\u58ca\u308c\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u3053\u308c\u3067\u4e0a\u66f8\u304d\u3057\u3066\u5fa9\u65e7\u3057\u305f\u3088\u3046\u3067\u3059\uff0e

\n
\n
$ sudo cp /var/backups/dpkg.status.0 /var/lib/dpkg/status\n
\n
\n", "content_text": "Raspberry Pi\u3067FreedomBox\u3092\u8a66\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\uff0c\u30b9\u30c8\u30ec\u30fc\u30b8\u304cmicroSD\u306e\u305b\u3044\u304b\u4fee\u6b63\u3057\u3066\u3044\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4f9d\u5b58\u95a2\u4fc2\u304b\u4f55\u304b\u304c\u304a\u304b\u3057\u304f\u306a\u3063\u305f\u305b\u3044\u304b/var/lib/dpkg/status\u304c\u58ca\u308c\u3066\u3057\u307e\u3044\u307e\u3057\u305f\uff0e\n\n$ sudo apt update\nHit:1 http://cdn-fastly.deb.debian.org/debian testing InRelease\nReading package lists... Error!\nE: Unable to parse package file /var/lib/dpkg/status (1)\nW: You may want to run apt-get update to correct these problems\nE: The package cache file is corrupted\n\n\n\nE: \u30d1\u30c3\u30b1\u30fc\u30b8\u30d5\u30a1\u30a4\u30eb /var/lib/dpkg/status \u3092\u89e3\u91c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093 (1)\nW: \u3053\u308c\u3089\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u306b\u306f apt-get update \u3092\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\nE: \u30d1\u30c3\u30b1\u30fc\u30b8\u30ad\u30e3\u30c3\u30b7\u30e5\u30d5\u30a1\u30a4\u30eb\u304c\u58ca\u308c\u3066\u3044\u307e\u3059\n\n\napt-get update\u3067\u6cbb\u308b\u306e\u304b\u306a\u3068\u601d\u3063\u3066\u53e9\u3044\u3066\u307f\u307e\u3057\u305f\u304c\u99c4\u76ee\u3067\u3057\u305f\uff0e\nDebian \u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306e\u7b2c2\u7ae0 Debian \u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u306b\u3088\u308b\u3068\uff0c\n\n2.6.5. \u30d1\u30c3\u30b1\u30fc\u30b8\u30bb\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u5fa9\u5143\n\u3082\u3057\u4f55\u3089\u304b\u306e\u7406\u7531\u3067 “/var/lib/dpkg/status” \u306e\u5185\u5bb9\u304c\u8150\u3063\u305f\u5834\u5408\u306b\u306f\u3001Debian \u30b7\u30b9\u30c6\u30e0\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u9078\u629e\u30c7\u30fc\u30bf\u30fc\u304c\u5931\u308f\u308c\u5927\u304d\u306a\u6253\u6483\u3092\u88ab\u308a\u307e\u3059\u3002\u53e4\u3044 “/var/lib/dpkg/status” \u30d5\u30a1\u30a4\u30eb\u306f\u3001”/var/lib/dpkg/status-old” \u3084 “/var/backups/dpkg.status.*” \u3068\u3057\u3066\u3042\u308b\u306e\u3067\u63a2\u3057\u307e\u3059\u3002\n“/var/backups/” \u306f\u591a\u304f\u306e\u91cd\u8981\u306a\u60c5\u5831\u3092\u4fdd\u6301\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u308c\u3092\u5225\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u4e0a\u306b\u7f6e\u304f\u306e\u3082\u826f\u3044\u8003\u3048\u3067\u3059\u3002\n\n\u3068\u306e\u3053\u3068\u306a\u306e\u3067\uff0c/var/lib/dpkg/status-old\u304b\u3089\u5fa9\u65e7\u3092\u3068\u601d\u3044\u307e\u3057\u305f\u304c\u3053\u308c\u3082\u65e2\u306b\u58ca\u308c\u3066\u3044\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\uff0e/var/backups/dpkg.status.0\u306f\u307e\u3060\u58ca\u308c\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u3053\u308c\u3067\u4e0a\u66f8\u304d\u3057\u3066\u5fa9\u65e7\u3057\u305f\u3088\u3046\u3067\u3059\uff0e\n\n$ sudo cp /var/backups/dpkg.status.0 /var/lib/dpkg/status", "date_published": "2017-04-19T00:49:36+09:00", "date_modified": "2017-04-19T00:49:36+09:00", "authors": [ { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" } ], "author": { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" }, "tags": [ "apt", "Debian", "Debian stretch", "FreedomBox", "RaspberryPi", "Linux", "Raspberry Pi", "stretch", "testing" ] }, { "id": "http://matoken.org/blog/?p=1599", "url": "https://matoken.org/blog/2017/04/12/try-kpartx-which-makes-it-easy-to-create-device-map-of-disk-image/", "title": "\u30c7\u30a3\u30b9\u30af\u30a4\u30e1\u30fc\u30b8\u306e\u30c7\u30d0\u30a4\u30b9\u30de\u30c3\u30d7\u304c\u7c21\u5358\u306b\u4f5c\u308c\u308bkpartx\u3092\u8a66\u3059", "content_html": "

\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3067kpartx\u3068\u3044\u3046\u30c7\u30a3\u30b9\u30af\u306e\u30c7\u30d0\u30a4\u30b9\u30de\u30c3\u30d7\u3092\u4f5c\u308b\u30b3\u30de\u30f3\u30c9\u304c\u3042\u308b\u306e\u3092\u77e5\u308a\u307e\u3057\u305f

\n\n
\n

\u305d\u3053\u3067\u307e\u305a\u3001kpartx\u3092\u4f7f\u3063\u3066\u5404\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306e\u30c7\u30d0\u30a4\u30b9\u30de\u30c3\u30d7\u3092\u4f5c\u308a\u307e\u3059\u3002
\n$ sudo /sbin/kpartx -av /opt/atde3-20100309.img
\nadd map loop2p1 : 0 497952 linear /dev/loop2 63
\nadd map loop2p2 : 0 33045705 linear /dev/loop2 498015
\n$ ls /dev/mapper/
\ncontrol loop2p1 loop2p2
\n\u3053\u308c\u3067\u30c7\u30a3\u30b9\u30af\u30a4\u30e1\u30fc\u30b8\u306e\u5404\u7269\u7406\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306b\u5bfe\u5fdc\u3057\u305f\u30c7\u30d0\u30a4\u30b9\u30de\u30c3\u30d7\u304c\u3067\u304d\u307e\u3057\u305f\u3002fdisk\u3067\u898b\u3048\u3066\u3044\u305f\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306f\u305d\u308c\u305e\u308c\u3001/dev/mapper/loop2p1 /dev/mapper/loop2p2 \u3068\u3057\u3066\u53c2\u7167\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002

\n
\n

\u3053\u308c\u307e\u3067\u306f\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u306e\u3088\u3046\u306bfdisk\u30b3\u30de\u30f3\u30c9\u3067\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u60c5\u5831\u3092\u78ba\u8a8d\u3057\u3066mount\u6642\u306boffset\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3057\u305f\uff0e

\n\n

kpartx\u3092\u4f7f\u3046\u3068\u3053\u306e\u4f5c\u696d\u304c\u7c21\u5358\u306b\u306a\u308a\u305d\u3046\u306a\u306e\u3067\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e

\n

Debian sid amd64\u3067\u306f\u305d\u306e\u307e\u307ekpartx\u30d1\u30c3\u30b1\u30fc\u30b8\u3060\u3063\u305f\u306e\u3067\u3053\u308c\u3092\u5c0e\u5165\u3057\u307e\u3059\uff0e(Ubuntu 17.04 amd64\u3067\u3082\u540c\u69d8\u3067\u3057\u305f\uff0e)

\n
\n
$ sudo apt install kpartx\r\n
\n
\n

\u4e01\u5ea6Raspbian jessie 2017-04-10\u304c\u51fa\u305f\u306e\u3067\u3053\u308c\u3067\u8a66\u3057\u3066\u307f\u307e\u3059\uff0e

\n
\n
$ unzip -l 2017-04-10-raspbian-jessie-lite.zip \r\nArchive:  2017-04-10-raspbian-jessie-lite.zip\r\n  Length      Date    Time    Name\r\n---------  ---------- -----   ----\r\n1297862656  2017-04-10 18:58   2017-04-10-raspbian-jessie-lite.img\r\n---------                     -------\r\n1297862656                     1 file\r\n$ time unzip 2017-04-10-raspbian-jessie-lite.zip\r\nArchive:  2017-04-10-raspbian-jessie-lite.zip\r\n  inflating: 2017-04-10-raspbian-jessie-lite.img  \r\n\r\nreal    2m58.438s\r\nuser    0m27.512s\r\nsys     0m2.132s\r\n sudo /sbin/kpartx -av 2017-04-10-raspbian-jessie-lite.img\r\nadd map loop0p1 (254:3): 0 83968 linear 7:0 8192\r\nadd map loop0p2 (254:4): 0 2442728 linear 7:0 92160\r\n$ ls -lA /dev/mapper/\r\n\u5408\u8a08 0\r\ncrw------- 1 root root 10, 236  4\u6708 11 23:37 control\r\nlrwxrwxrwx 1 root root       7  4\u6708 12 06:07 loop0p1 -> ../dm-3\r\nlrwxrwxrwx 1 root root       7  4\u6708 12 06:07 loop0p2 -> ../dm-4\r\nlrwxrwxrwx 1 root root       7  4\u6708 11 23:37 sda3_crypt -> ../dm-0\r\nlrwxrwxrwx 1 root root       7  4\u6708 11 23:37 x220--vg-root -> ../dm-1\r\nlrwxrwxrwx 1 root root       7  4\u6708 11 23:37 x220--vg-swap_1 -> ../dm-2\r\n
\n
\n

\u30c7\u30d0\u30a4\u30b9\u30de\u30c3\u30d4\u30f3\u30b0\u3055\u308c\u3066\u3044\u307e\u3059\uff0e\u3053\u308c\u3067\u7c21\u5358\u306bmount\u51fa\u6765\u307e\u3057\u305f\uff0e

\n
\n
$ sudo mount -o ro /dev/mapper/loop0p1 /media/mk/pi-boot\r\n$ sudo mount -o ro /dev/mapper/loop0p2 /media/mk/pi-root/\r\n$ mount | grep /dev/mapper/loop0p\r\n/dev/mapper/loop0p1 on /media/mk/pi-boot type vfat (ro,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)\r\n/dev/mapper/loop0p2 on /media/mk/pi-root type ext4 (ro,relatime,data=ordered)\r\n$ ls /media/mk/pi-boot\r\nCOPYING.linux     bcm2708-rpi-0-w.dtb     bcm2708-rpi-cm.dtb   bcm2710-rpi-cm3.dtb  config.txt    fixup_db.dat  kernel.img   start.elf     start_x.elf\r\nLICENCE.broadcom  bcm2708-rpi-b-plus.dtb  bcm2709-rpi-2-b.dtb  bootcode.bin         fixup.dat     fixup_x.dat   kernel7.img  start_cd.elf\r\nLICENSE.oracle    bcm2708-rpi-b.dtb       bcm2710-rpi-3-b.dtb  cmdline.txt          fixup_cd.dat  issue.txt     overlays     start_db.elf\r\n$ ls /media/mk/pi-root\r\nbin  boot  dev  etc  home  lib  lost+found  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var\r\n
\n
\n

\u305d\u3057\u3066chroot\u3057\u3066\u307f\u305f\u308a

\n
\n
$ sudo mount -o remount,rw /media/mk/pi-root\r\n$ sudo cp -p /usr/bin/qemu-arm-static /media/mk/pi-root/usr/bin\r\n$ sudo chroot /media/mk/pi-root/ /bin/bash\r\n# dpkg --get-selections "*" | wc -l\r\n427\r\n
\n
\n

\u30a2\u30f3\u30de\u30a6\u30f3\u30c8\u3057\u3066\u5143\u306b\u623b\u3057\u307e\u3059\uff0e

\n
\n
# exit\r\n$ sudo umount /media/mk/pi-*\r\n$ sudo kpartx -d /dev/mapper/loop0p1\r\n$ sudo kpartx -d /dev/mapper/loop0p2\r\n$ rm ./2017-04-10-raspbian-jessie-lite.img\r\n
\n
\n

\u4fbf\u5229\u3067\u3059\u306d :)
\n\u5f8c\u306f\u5727\u7e2e\u30d5\u30a1\u30a4\u30eb\u3092\u305d\u306e\u307e\u307e\u4f7f\u3048\u308b\u3068\u4fbf\u5229\u306a\u3093\u3067\u3059\u304c\u30e0\u30ea\u30ab\u30ca?

\n
\n

\n\n

\n
\n", "content_text": "\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3067kpartx\u3068\u3044\u3046\u30c7\u30a3\u30b9\u30af\u306e\u30c7\u30d0\u30a4\u30b9\u30de\u30c3\u30d7\u3092\u4f5c\u308b\u30b3\u30de\u30f3\u30c9\u304c\u3042\u308b\u306e\u3092\u77e5\u308a\u307e\u3057\u305f\n\nVine Linux Magazine – \u30eb\u30fc\u30d7\u30d0\u30c3\u30af\u30de\u30a6\u30f3\u30c8\u3068chroot\u3067\u4f5c\u308b\u306a\u3093\u3061\u3083\u3063\u3066\u4eee\u60f3\u30de\u30b7\u30f3\n\n\n\u305d\u3053\u3067\u307e\u305a\u3001kpartx\u3092\u4f7f\u3063\u3066\u5404\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306e\u30c7\u30d0\u30a4\u30b9\u30de\u30c3\u30d7\u3092\u4f5c\u308a\u307e\u3059\u3002\n$ sudo /sbin/kpartx -av /opt/atde3-20100309.img \nadd map loop2p1 : 0 497952 linear /dev/loop2 63\nadd map loop2p2 : 0 33045705 linear /dev/loop2 498015\n$ ls /dev/mapper/\ncontrol loop2p1 loop2p2\n\u3053\u308c\u3067\u30c7\u30a3\u30b9\u30af\u30a4\u30e1\u30fc\u30b8\u306e\u5404\u7269\u7406\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306b\u5bfe\u5fdc\u3057\u305f\u30c7\u30d0\u30a4\u30b9\u30de\u30c3\u30d7\u304c\u3067\u304d\u307e\u3057\u305f\u3002fdisk\u3067\u898b\u3048\u3066\u3044\u305f\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306f\u305d\u308c\u305e\u308c\u3001/dev/mapper/loop2p1 /dev/mapper/loop2p2 \u3068\u3057\u3066\u53c2\u7167\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\n\n\u3053\u308c\u307e\u3067\u306f\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u306e\u3088\u3046\u306bfdisk\u30b3\u30de\u30f3\u30c9\u3067\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u60c5\u5831\u3092\u78ba\u8a8d\u3057\u3066mount\u6642\u306boffset\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3057\u305f\uff0e\n\n\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u30a8\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3qemu \u3092\u4f7f\u3063\u3066 Kono on Debian \u306e\u30a4\u30e1\u30fc\u30b8\u3092 Host PC \u3067 apt-get \u3068\u304b\u3059\u308b | matoken’s meme\n\nkpartx\u3092\u4f7f\u3046\u3068\u3053\u306e\u4f5c\u696d\u304c\u7c21\u5358\u306b\u306a\u308a\u305d\u3046\u306a\u306e\u3067\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e\nDebian sid amd64\u3067\u306f\u305d\u306e\u307e\u307ekpartx\u30d1\u30c3\u30b1\u30fc\u30b8\u3060\u3063\u305f\u306e\u3067\u3053\u308c\u3092\u5c0e\u5165\u3057\u307e\u3059\uff0e(Ubuntu 17.04 amd64\u3067\u3082\u540c\u69d8\u3067\u3057\u305f\uff0e)\n\n$ sudo apt install kpartx\r\n\n\n\u4e01\u5ea6Raspbian jessie 2017-04-10\u304c\u51fa\u305f\u306e\u3067\u3053\u308c\u3067\u8a66\u3057\u3066\u307f\u307e\u3059\uff0e\n\n$ unzip -l 2017-04-10-raspbian-jessie-lite.zip \r\nArchive: 2017-04-10-raspbian-jessie-lite.zip\r\n Length Date Time Name\r\n--------- ---------- ----- ----\r\n1297862656 2017-04-10 18:58 2017-04-10-raspbian-jessie-lite.img\r\n--------- -------\r\n1297862656 1 file\r\n$ time unzip 2017-04-10-raspbian-jessie-lite.zip\r\nArchive: 2017-04-10-raspbian-jessie-lite.zip\r\n inflating: 2017-04-10-raspbian-jessie-lite.img \r\n\r\nreal 2m58.438s\r\nuser 0m27.512s\r\nsys 0m2.132s\r\n sudo /sbin/kpartx -av 2017-04-10-raspbian-jessie-lite.img\r\nadd map loop0p1 (254:3): 0 83968 linear 7:0 8192\r\nadd map loop0p2 (254:4): 0 2442728 linear 7:0 92160\r\n$ ls -lA /dev/mapper/\r\n\u5408\u8a08 0\r\ncrw------- 1 root root 10, 236 4\u6708 11 23:37 control\r\nlrwxrwxrwx 1 root root 7 4\u6708 12 06:07 loop0p1 -> ../dm-3\r\nlrwxrwxrwx 1 root root 7 4\u6708 12 06:07 loop0p2 -> ../dm-4\r\nlrwxrwxrwx 1 root root 7 4\u6708 11 23:37 sda3_crypt -> ../dm-0\r\nlrwxrwxrwx 1 root root 7 4\u6708 11 23:37 x220--vg-root -> ../dm-1\r\nlrwxrwxrwx 1 root root 7 4\u6708 11 23:37 x220--vg-swap_1 -> ../dm-2\r\n\n\n\u30c7\u30d0\u30a4\u30b9\u30de\u30c3\u30d4\u30f3\u30b0\u3055\u308c\u3066\u3044\u307e\u3059\uff0e\u3053\u308c\u3067\u7c21\u5358\u306bmount\u51fa\u6765\u307e\u3057\u305f\uff0e\n\n$ sudo mount -o ro /dev/mapper/loop0p1 /media/mk/pi-boot\r\n$ sudo mount -o ro /dev/mapper/loop0p2 /media/mk/pi-root/\r\n$ mount | grep /dev/mapper/loop0p\r\n/dev/mapper/loop0p1 on /media/mk/pi-boot type vfat (ro,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)\r\n/dev/mapper/loop0p2 on /media/mk/pi-root type ext4 (ro,relatime,data=ordered)\r\n$ ls /media/mk/pi-boot\r\nCOPYING.linux bcm2708-rpi-0-w.dtb bcm2708-rpi-cm.dtb bcm2710-rpi-cm3.dtb config.txt fixup_db.dat kernel.img start.elf start_x.elf\r\nLICENCE.broadcom bcm2708-rpi-b-plus.dtb bcm2709-rpi-2-b.dtb bootcode.bin fixup.dat fixup_x.dat kernel7.img start_cd.elf\r\nLICENSE.oracle bcm2708-rpi-b.dtb bcm2710-rpi-3-b.dtb cmdline.txt fixup_cd.dat issue.txt overlays start_db.elf\r\n$ ls /media/mk/pi-root\r\nbin boot dev etc home lib lost+found media mnt opt proc root run sbin srv sys tmp usr var\r\n\n\n\u305d\u3057\u3066chroot\u3057\u3066\u307f\u305f\u308a\n\n$ sudo mount -o remount,rw /media/mk/pi-root\r\n$ sudo cp -p /usr/bin/qemu-arm-static /media/mk/pi-root/usr/bin\r\n$ sudo chroot /media/mk/pi-root/ /bin/bash\r\n# dpkg --get-selections "*" | wc -l\r\n427\r\n\n\n\u30a2\u30f3\u30de\u30a6\u30f3\u30c8\u3057\u3066\u5143\u306b\u623b\u3057\u307e\u3059\uff0e\n\n# exit\r\n$ sudo umount /media/mk/pi-*\r\n$ sudo kpartx -d /dev/mapper/loop0p1\r\n$ sudo kpartx -d /dev/mapper/loop0p2\r\n$ rm ./2017-04-10-raspbian-jessie-lite.img\r\n\n\n\u4fbf\u5229\u3067\u3059\u306d :)\n\u5f8c\u306f\u5727\u7e2e\u30d5\u30a1\u30a4\u30eb\u3092\u305d\u306e\u307e\u307e\u4f7f\u3048\u308b\u3068\u4fbf\u5229\u306a\u3093\u3067\u3059\u304c\u30e0\u30ea\u30ab\u30ca?", "date_published": "2017-04-12T06:46:23+09:00", "date_modified": "2017-04-12T06:46:23+09:00", "authors": [ { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" } ], "author": { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" }, "tags": [ "chroot", "Debian", "Debian sid", "kpartx", "Ubuntu", "Ubuntu 17.04", "Linux", "sid", "Zesty(17.04)" ] }, { "id": "http://matoken.org/blog/?p=1588", "url": "https://matoken.org/blog/2017/04/05/no-serch-file-readme-of-etckeeper-man/", "title": "etckeeper\u306eman\u306b\u8f09\u3063\u3066\u3044\u308bREADME\u3092\u8aad\u3082\u3046\u3068\u601d\u3063\u305f\u3089\u7121\u3044", "content_html": "

Debian sid amd64\u306eetckeeper\u306eman\u306b\u8f09\u3063\u3066\u3044\u308bREADME\u3092\u8aad\u3082\u3046\u3068\u601d\u3063\u305f\u3089\u305d\u3093\u306a\u30d5\u30a1\u30a4\u30eb\u306f\u7121\u3044\uff0e

\n
\n
$ man etckeeper | grep -B1 README\r\nSEE ALSO\r\n       /usr/share/doc/etckeeper/README.md.gz\r\n$ lv /usr/share/doc/etckeeper/README.md.gz\r\n/usr/share/doc/etckeeper/README.md.gz: No such file or directory\r\n$ ls -lA /usr/share/doc/etckeeper/\r\n\u5408\u8a08 40\r\n-rw-r--r-- 1 root root  4679  7\u6708 18  2016 README.mdwn.gz\r\n-rw-r--r-- 1 root root 11645  8\u6708  2  2016 changelog.Debian.gz\r\n-rw-r--r-- 1 root root  1785  7\u6708 18  2016 copyright\r\n-rw-r--r-- 1 root root   948  7\u6708 18  2016 index.mdwn\r\n-rw-r--r-- 1 root root   483  7\u6708 18  2016 install.mdwn\r\n-rw-r--r-- 1 root root    55  7\u6708 18  2016 news.mdwn\r\n-rw-r--r-- 1 root root   309  7\u6708 18  2016 todo.mdwn\r\n$ dpkg -L etckeeper | grep README\r\n/etc/etckeeper/commit.d/README\r\n/etc/etckeeper/init.d/README\r\n/etc/etckeeper/post-install.d/README\r\n/etc/etckeeper/pre-commit.d/README\r\n/etc/etckeeper/pre-install.d/README\r\n/etc/etckeeper/unclean.d/README\r\n/etc/etckeeper/uninit.d/README\r\n/etc/etckeeper/update-ignore.d/README\r\n/usr/share/doc/etckeeper/README.mdwn.gz\r\n$ dpkg-query -W etckeeper\r\netckeeper       1.18.5-1\r\n
\n
\n

/usr/share/doc/etckeeper/README.mdwn.gz\u304c\u5185\u5bb9\u304b\u3089\u3057\u3066\u305d\u308c\u307d\u3044\uff0e
\n\u30d0\u30b0\u307d\u3044\u306e\u3067\u5831\u544a\u3057\u3088\u3046\u304b\u3068\u601d\u3063\u3066\u65e2\u5b58\u306e\u30d0\u30b0\u3092\u773a\u3081\u308b\u3068\u65e2\u306b\u5831\u544a\u3055\u308c\u3066\u4e0a\u6d41\u3067\u4fee\u6b63\u6e08\u307f\u306e\u3088\u3046\u3067\u3057\u305f\uff0e

\n\n

\n", "content_text": "Debian sid amd64\u306eetckeeper\u306eman\u306b\u8f09\u3063\u3066\u3044\u308bREADME\u3092\u8aad\u3082\u3046\u3068\u601d\u3063\u305f\u3089\u305d\u3093\u306a\u30d5\u30a1\u30a4\u30eb\u306f\u7121\u3044\uff0e\n\n$ man etckeeper | grep -B1 README\r\nSEE ALSO\r\n /usr/share/doc/etckeeper/README.md.gz\r\n$ lv /usr/share/doc/etckeeper/README.md.gz\r\n/usr/share/doc/etckeeper/README.md.gz: No such file or directory\r\n$ ls -lA /usr/share/doc/etckeeper/\r\n\u5408\u8a08 40\r\n-rw-r--r-- 1 root root 4679 7\u6708 18 2016 README.mdwn.gz\r\n-rw-r--r-- 1 root root 11645 8\u6708 2 2016 changelog.Debian.gz\r\n-rw-r--r-- 1 root root 1785 7\u6708 18 2016 copyright\r\n-rw-r--r-- 1 root root 948 7\u6708 18 2016 index.mdwn\r\n-rw-r--r-- 1 root root 483 7\u6708 18 2016 install.mdwn\r\n-rw-r--r-- 1 root root 55 7\u6708 18 2016 news.mdwn\r\n-rw-r--r-- 1 root root 309 7\u6708 18 2016 todo.mdwn\r\n$ dpkg -L etckeeper | grep README\r\n/etc/etckeeper/commit.d/README\r\n/etc/etckeeper/init.d/README\r\n/etc/etckeeper/post-install.d/README\r\n/etc/etckeeper/pre-commit.d/README\r\n/etc/etckeeper/pre-install.d/README\r\n/etc/etckeeper/unclean.d/README\r\n/etc/etckeeper/uninit.d/README\r\n/etc/etckeeper/update-ignore.d/README\r\n/usr/share/doc/etckeeper/README.mdwn.gz\r\n$ dpkg-query -W etckeeper\r\netckeeper 1.18.5-1\r\n\n\n/usr/share/doc/etckeeper/README.mdwn.gz\u304c\u5185\u5bb9\u304b\u3089\u3057\u3066\u305d\u308c\u307d\u3044\uff0e\n\u30d0\u30b0\u307d\u3044\u306e\u3067\u5831\u544a\u3057\u3088\u3046\u304b\u3068\u601d\u3063\u3066\u65e2\u5b58\u306e\u30d0\u30b0\u3092\u773a\u3081\u308b\u3068\u65e2\u306b\u5831\u544a\u3055\u308c\u3066\u4e0a\u6d41\u3067\u4fee\u6b63\u6e08\u307f\u306e\u3088\u3046\u3067\u3057\u305f\uff0e\n\n#791566 – etckeeper: Broken symlink /usr/share/doc/etckeeper/README.md – Debian Bug report logs", "date_published": "2017-04-05T09:08:46+09:00", "date_modified": "2017-04-05T09:08:46+09:00", "authors": [ { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" } ], "author": { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" }, "tags": [ "Debian", "Debian sid", "etckeeper", "Linux", "sid" ] }, { "id": "http://matoken.org/blog/?p=1586", "url": "https://matoken.org/blog/2017/04/05/backlight-controle-command-ybacklight/", "title": "\u30d0\u30c3\u30af\u30e9\u30a4\u30c8\u5236\u5fa1\u30b3\u30de\u30f3\u30c9\u306eybacklight", "content_html": "

awesome wm\u3067\u30d0\u30c3\u30af\u30e9\u30a4\u30c8\u306e\u5236\u5fa1\u306bxbacklight\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\uff0c\u624b\u5143\u306eDebian sid amd64\u74b0\u5883\u3067\u306fNo outputs have backlight property\u3068\u3044\u3046\u30a8\u30e9\u30fc\u3067\u73fe\u5728\u5229\u7528\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3059\uff0e

\n
\n
$ xbacklight -get\r\nNo outputs have backlight property\r\n$ xbacklight = 100\r\nNo outputs have backlight property\r\n$ xbacklight + 10\r\nNo outputs have backlight property\r\n$ xbacklight - 10\r\nNo outputs have backlight property\r\n
\n
\n

workaround\u3068\u3057\u3066\u3053\u3093\u306a\u611f\u3058\u3067\u624b\u3067\u53e9\u3044\u3066\u3044\u3066\u3061\u3087\u3063\u3068\u3042\u308c\u3067\u3059\uff0e\u6301\u3061\u51fa\u3055\u306a\u3044PC\u306a\u306e\u3067\u3042\u307e\u308a\u64cd\u4f5c\u3057\u306a\u3044\u306e\u3067\u3069\u3046\u306b\u304b\u306a\u3063\u3066\u308b\u3051\u3069\u4e0d\u4fbf\u3067\u3059\uff0e

\n
\n
$ sudo sh -c "echo 1000 > /sys/class/backlight/intel_backlight/brightness"\r\n
\n
\n

\u3057\u304b\u3057\uff0cgdm3\u306e\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u3067\u306fFn+Home/Fm+End\u3067\u30d0\u30c3\u30af\u30e9\u30a4\u30c8\u306e\u5909\u66f4\u304c\u51fa\u6765\u308b\u3053\u3068\u306b\u6c17\u3065\u304d\u307e\u3057\u305f\uff0e
\n\u306a\u3093\u304b\u9032\u5c55\u3042\u3063\u305f\u306e\u304b\u306a?\u3068\u30d0\u30b0\u30ec\u30dd\u3092\u773a\u3081\u3066\u3044\u308b\u3068\u305d\u308c\u3089\u3057\u3044\u3082\u306e\u306f\u898b\u3064\u304b\u3089\u306a\u3044\u3051\u308c\u3069\uff0c

\n\n

ybacklight\u3068\u3044\u3046\u3082\u306e\u304c\u7d39\u4ecb\u3055\u308c\u3066\u3044\u308b\u306e\u306b\u6c17\u3065\u304d\u307e\u3057\u305f\uff0e

\n\n

\u5229\u7528\u65b9\u6cd5\u306fxbacklight\u3068\u540c\u3058\u3067\u3059\uff0e

\n
\n
$ ybacklight -h\r\nUsage: /home/mk/bin/ybacklight [options]\r\n  Options:\r\n  -d <driver> or -driver <driver>: Use driver <driver> (NB: -display is\r\n                                   also supported for compatibility)\r\n  -help: Print this help\r\n  -set <percentage> or = <percentage>: Set backlight to <percentage>\r\n  -inc <percentage> or + <percentage>: Increase backlight by <percentage>\r\n  -dec <percentage> or - <percentage>: Decrease backlight by <percentage>\r\n  -get: Get backlight percentage\r\n  -time <ignored> or -steps <ignored>: Unsupported, ignored\r\n  -v: Verbose output\r\n
\n
\n

\u8aad\u3080\u306e\u306f\u3044\u3051\u307e\u3059\u304c\uff0c\u5909\u66f4\u306f\u51fa\u6765\u307e\u305b\u3093\uff0e

\n
\n
$ ybacklight -get\r\n30\r\n$ ybacklight +10\r\nPermissions conflict.  Can't write to: ( /sys/class/backlight/intel_backlight/brightness )\r\n
\n
\n

/sys/class/backlight/intel_backlight/brightness\u306b\u66f8\u304d\u8fbc\u307f\u6a29\u3092\u3064\u3051\u308b\u3068\u884c\u3051\u307e\u3059\uff0e

\n
\n
$ ls -l /sys/class/backlight/intel_backlight/brightness\r\n-rw-r--r-- 1 root root 4096  4\u6708  5 06:48 /sys/class/backlight/intel_backlight/brightness\r\n$ sudo chmod o+w /sys/class/backlight/intel_backlight/brightness\r\n$ ls -l /sys/class/backlight/intel_backlight/brightness\r\n-rw-r--rw- 1 root root 4096  4\u6708  5 06:48 /sys/class/backlight/intel_backlight/brightness\r\n$ ybacklight +10\r\n40\r\n$ ybacklight -10\r\n30\r\n
\n
\n

\u3061\u3087\u3063\u3068\u5fae\u5999\uff0e

\n
\n\n
\n", "content_text": "awesome wm\u3067\u30d0\u30c3\u30af\u30e9\u30a4\u30c8\u306e\u5236\u5fa1\u306bxbacklight\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\uff0c\u624b\u5143\u306eDebian sid amd64\u74b0\u5883\u3067\u306fNo outputs have backlight property\u3068\u3044\u3046\u30a8\u30e9\u30fc\u3067\u73fe\u5728\u5229\u7528\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3059\uff0e\n\n$ xbacklight -get\r\nNo outputs have backlight property\r\n$ xbacklight = 100\r\nNo outputs have backlight property\r\n$ xbacklight + 10\r\nNo outputs have backlight property\r\n$ xbacklight - 10\r\nNo outputs have backlight property\r\n\n\nworkaround\u3068\u3057\u3066\u3053\u3093\u306a\u611f\u3058\u3067\u624b\u3067\u53e9\u3044\u3066\u3044\u3066\u3061\u3087\u3063\u3068\u3042\u308c\u3067\u3059\uff0e\u6301\u3061\u51fa\u3055\u306a\u3044PC\u306a\u306e\u3067\u3042\u307e\u308a\u64cd\u4f5c\u3057\u306a\u3044\u306e\u3067\u3069\u3046\u306b\u304b\u306a\u3063\u3066\u308b\u3051\u3069\u4e0d\u4fbf\u3067\u3059\uff0e\n\n$ sudo sh -c "echo 1000 > /sys/class/backlight/intel_backlight/brightness"\r\n\n\n\u3057\u304b\u3057\uff0cgdm3\u306e\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u3067\u306fFn+Home/Fm+End\u3067\u30d0\u30c3\u30af\u30e9\u30a4\u30c8\u306e\u5909\u66f4\u304c\u51fa\u6765\u308b\u3053\u3068\u306b\u6c17\u3065\u304d\u307e\u3057\u305f\uff0e\n\u306a\u3093\u304b\u9032\u5c55\u3042\u3063\u305f\u306e\u304b\u306a?\u3068\u30d0\u30b0\u30ec\u30dd\u3092\u773a\u3081\u3066\u3044\u308b\u3068\u305d\u308c\u3089\u3057\u3044\u3082\u306e\u306f\u898b\u3064\u304b\u3089\u306a\u3044\u3051\u308c\u3069\uff0c\n\n#833508 – xbacklight reports “No outputs have backlight property” – Debian Bug report logs\n96572 \u2013 xbacklight doesn’t work with modesetting on intel\n\nybacklight\u3068\u3044\u3046\u3082\u306e\u304c\u7d39\u4ecb\u3055\u308c\u3066\u3044\u308b\u306e\u306b\u6c17\u3065\u304d\u307e\u3057\u305f\uff0e\n\nybacklight/ybacklight at master \u00b7 yath/ybacklight\n\n\u5229\u7528\u65b9\u6cd5\u306fxbacklight\u3068\u540c\u3058\u3067\u3059\uff0e\n\n$ ybacklight -h\r\nUsage: /home/mk/bin/ybacklight [options]\r\n Options:\r\n -d <driver> or -driver <driver>: Use driver <driver> (NB: -display is\r\n also supported for compatibility)\r\n -help: Print this help\r\n -set <percentage> or = <percentage>: Set backlight to <percentage>\r\n -inc <percentage> or + <percentage>: Increase backlight by <percentage>\r\n -dec <percentage> or - <percentage>: Decrease backlight by <percentage>\r\n -get: Get backlight percentage\r\n -time <ignored> or -steps <ignored>: Unsupported, ignored\r\n -v: Verbose output\r\n\n\n\u8aad\u3080\u306e\u306f\u3044\u3051\u307e\u3059\u304c\uff0c\u5909\u66f4\u306f\u51fa\u6765\u307e\u305b\u3093\uff0e\n\n$ ybacklight -get\r\n30\r\n$ ybacklight +10\r\nPermissions conflict. Can't write to: ( /sys/class/backlight/intel_backlight/brightness )\r\n\n\n/sys/class/backlight/intel_backlight/brightness\u306b\u66f8\u304d\u8fbc\u307f\u6a29\u3092\u3064\u3051\u308b\u3068\u884c\u3051\u307e\u3059\uff0e\n\n$ ls -l /sys/class/backlight/intel_backlight/brightness\r\n-rw-r--r-- 1 root root 4096 4\u6708 5 06:48 /sys/class/backlight/intel_backlight/brightness\r\n$ sudo chmod o+w /sys/class/backlight/intel_backlight/brightness\r\n$ ls -l /sys/class/backlight/intel_backlight/brightness\r\n-rw-r--rw- 1 root root 4096 4\u6708 5 06:48 /sys/class/backlight/intel_backlight/brightness\r\n$ ybacklight +10\r\n40\r\n$ ybacklight -10\r\n30\r\n\n\n\u3061\u3087\u3063\u3068\u5fae\u5999\uff0e", "date_published": "2017-04-05T08:33:17+09:00", "date_modified": "2017-04-05T08:33:17+09:00", "authors": [ { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" } ], "author": { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" }, "tags": [ "Debian", "Debian sid", "xbacklight", "ybacklight", "Linux", "sid" ] }, { "id": "http://matoken.org/blog/?p=1584", "url": "https://matoken.org/blog/2017/04/05/check-that-hidden-user-list-was-disabled-on-gdm3/", "title": "gdm3\u3067\u30e6\u30fc\u30b6\u30fc\u30ea\u30b9\u30c8\u306e\u975e\u8868\u793a\u304c\u7121\u52b9\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3092\u8abf\u3079\u308b", "content_html": "

Debian sid amd64\u306egdm3\u306e\u753b\u9762\u3067\u30e6\u30fc\u30b6\u30fc\u30ea\u30b9\u30c8\u3092\u8868\u793a\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\uff0c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\uff0e

\n

\u3053\u308c\u307e\u3067\u306f\uff0c
\n/etc/gdm3/greeter.dconf\u30d5\u30a1\u30a4\u30eb\u306e\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u6709\u52b9\u306b\u3057\u3066\u3044\u307e\u3057\u305f\uff0e

\n
\n
disable-user-list=true\r\n
\n
\n

$ apt-get changelog gdm3( /usr/share/doc/gdm3/changelog.Debian.gz)\u3092\u898b\u308b\u3068\u3053\u3093\u306a\u8a18\u8ff0\u304c\uff0c

\n
\n
  * greeter.dconf-defaults: this is a new file to remove the old \r\n    greeter.gsettings\r\n  * Convert greeter.gsettings to greeter.dconf-defaults at postinst time \r\n    and use ucf to update the file.\r\n  * Make a direct symlink to the new greeter.dconf-defaults file in the \r\n    dconf defaults directory.\r\n
\n
\n

gdm3 (3.12.1-1)\u304b\u3089greeter.dconf-defaults\u306b\u5909\u308f\u3063\u305f\u3088\u3046\u3067\u3059\uff0e

\n
\n
$ ls /etc/gdm3/\r\nInit  PostLogin  PostSession  PreSession  Xsession  daemon.conf  daemon.conf.dpkg-dist  greeter.dconf  greeter.dconf-defaults  greeter.dconf-defaults.ucf-old\r\n
\n
\n

\u5185\u5bb9\u306f\u307b\u3068\u3093\u3069\u540c\u3058\u306a\u3088\u3046\u3067\u3059\uff0e

\n
\n
$ diff  /etc/gdm3/greeter.dconf /etc/gdm3/greeter.dconf-defaults\r\n26,27d25\r\n< #logo='/usr/share/icons/gnome/48x48/places/debian-swirl.png'\r\n< #fallback-logo='/usr/share/icons/gnome/48x48/places/debian-swirl.png'\r\n31d28\r\n< \r\n33c30\r\n< disable-user-list=true\r\n---\r\n> # disable-user-list=true\r\n37,38c34,35\r\n< #banner-message-enable=true\r\n< #banner-message-text='Welcome!!!!!!!!!!!!!!!!!!!!!!'\r\n---\r\n> # banner-message-enable=true\r\n> # banner-message-text='Welcome'\r\n
\n
\n

\u3068\u3044\u3046\u3053\u3068\u3067/etc/gdm3/greeter.dconf-defaults\u306edisable-user-list=true\u3092\u6709\u52b9\u306b\u3057\u305f\u3089OK\u3067\u3057\u305f\uff0e

\n
\n
diff --git a/gdm3/greeter.dconf-defaults b/gdm3/greeter.dconf-defaults\r\nindex c5b0786..b0ee10c 100644\r\n--- a/gdm3/greeter.dconf-defaults\r\n+++ b/gdm3/greeter.dconf-defaults\r\n@@ -27,7 +27,7 @@ logo='/usr/share/icons/hicolor/48x48/emblems/emblem-debian-white.png'\r\n fallback-logo='/usr/share/icons/hicolor/48x48/emblems/emblem-debian-white.png'\r\n\r\n # - Disable user list\r\n-# disable-user-list=true\r\n+disable-user-list=true\r\n # - Disable restart buttons\r\n # disable-restart-buttons=true\r\n # - Show a login welcome message\r\n
\n
\n

\uff03\u3061\u306a\u307f\u306b\u3053\u306e\u3068\u304d$ sudo service gdm3 restart\u3068\u3057\u305f\u3089\u306a\u3093\u304b\u304a\u304b\u3057\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u2026\u2026\uff0eOS\u3054\u3068\u518d\u8d77\u52d5\u3057\u305f\u3089\u6cbb\u308a\u307e\u3057\u305f\uff0e

\n
\n

gdm3\u3067disable-user-list=true\u304c\u52b9\u304b\u306a\u3044
greeter.dconf\u304b\u3089greeter.dconf-defaults\u306b\u5909\u308f\u3063\u3066\u308b?defaults\u5074\u3067disable-user-list=true\u306b\u3057\u3066gdm3\u4e0a\u3052\u76f4\u3057\u305f\u3089\u9177\u3044\u3053\u3068\u306b
\u9060\u9694\u304b\u3089\u4fee\u6b63\u3057\u305forz pic.twitter.com/TIPmlC6cWY

\n

— \u9e7f\u5150\u5cf6Linux\u52c9\u5f37\u4f1a04/08 (@matoken) 2017\u5e744\u67084\u65e5

\n

\n

\u6b21\u304b\u3089\u6c17\u3065\u304d\u3084\u3059\u3044\u3088\u3046\u306b

\n
\n
$ sudo dpkg-reconfigure apt-listchanges\r\n
\n
\n

\u3067\u300cAPT\u3067\u8868\u793a\u3059\u3079\u304d\u5909\u66f4\u5185\u5bb9\u306e\u7a2e\u985e\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u300d\u3092\u300c\u4e21\u65b9 – \u30cb\u30e5\u30fc\u30b9\u3068 changelog \u306e\u4e21\u65b9\u300d\u306b\u3057\u3066\u304a\u304d\u307e\u3057\u305f\uff0etesting/unstable\u8fba\u308a\u306f\u3061\u3083\u3093\u3068\u8aad\u307e\u306a\u3044\u3068\u3067\u3059\u306d\u2026\u2026\uff0e

\n

\u203bapt-listchanges\u304c\u5165\u3063\u3066\u3044\u306a\u3044\u5834\u5408\u306f$ sudo apt install apt-listchanges

\n
\n

\n\n

\n
\n", "content_text": "Debian sid amd64\u306egdm3\u306e\u753b\u9762\u3067\u30e6\u30fc\u30b6\u30fc\u30ea\u30b9\u30c8\u3092\u8868\u793a\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\uff0c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\uff0e\n\u3053\u308c\u307e\u3067\u306f\uff0c\n/etc/gdm3/greeter.dconf\u30d5\u30a1\u30a4\u30eb\u306e\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u6709\u52b9\u306b\u3057\u3066\u3044\u307e\u3057\u305f\uff0e\n\ndisable-user-list=true\r\n\n\n$ apt-get changelog gdm3( /usr/share/doc/gdm3/changelog.Debian.gz)\u3092\u898b\u308b\u3068\u3053\u3093\u306a\u8a18\u8ff0\u304c\uff0c\n\n * greeter.dconf-defaults: this is a new file to remove the old \r\n greeter.gsettings\r\n * Convert greeter.gsettings to greeter.dconf-defaults at postinst time \r\n and use ucf to update the file.\r\n * Make a direct symlink to the new greeter.dconf-defaults file in the \r\n dconf defaults directory.\r\n\n\ngdm3 (3.12.1-1)\u304b\u3089greeter.dconf-defaults\u306b\u5909\u308f\u3063\u305f\u3088\u3046\u3067\u3059\uff0e\n\n$ ls /etc/gdm3/\r\nInit PostLogin PostSession PreSession Xsession daemon.conf daemon.conf.dpkg-dist greeter.dconf greeter.dconf-defaults greeter.dconf-defaults.ucf-old\r\n\n\n\u5185\u5bb9\u306f\u307b\u3068\u3093\u3069\u540c\u3058\u306a\u3088\u3046\u3067\u3059\uff0e\n\n$ diff /etc/gdm3/greeter.dconf /etc/gdm3/greeter.dconf-defaults\r\n26,27d25\r\n< #logo='/usr/share/icons/gnome/48x48/places/debian-swirl.png'\r\n< #fallback-logo='/usr/share/icons/gnome/48x48/places/debian-swirl.png'\r\n31d28\r\n< \r\n33c30\r\n< disable-user-list=true\r\n---\r\n> # disable-user-list=true\r\n37,38c34,35\r\n< #banner-message-enable=true\r\n< #banner-message-text='Welcome!!!!!!!!!!!!!!!!!!!!!!'\r\n---\r\n> # banner-message-enable=true\r\n> # banner-message-text='Welcome'\r\n\n\n\u3068\u3044\u3046\u3053\u3068\u3067/etc/gdm3/greeter.dconf-defaults\u306edisable-user-list=true\u3092\u6709\u52b9\u306b\u3057\u305f\u3089OK\u3067\u3057\u305f\uff0e\n\ndiff --git a/gdm3/greeter.dconf-defaults b/gdm3/greeter.dconf-defaults\r\nindex c5b0786..b0ee10c 100644\r\n--- a/gdm3/greeter.dconf-defaults\r\n+++ b/gdm3/greeter.dconf-defaults\r\n@@ -27,7 +27,7 @@ logo='/usr/share/icons/hicolor/48x48/emblems/emblem-debian-white.png'\r\n fallback-logo='/usr/share/icons/hicolor/48x48/emblems/emblem-debian-white.png'\r\n\r\n # - Disable user list\r\n-# disable-user-list=true\r\n+disable-user-list=true\r\n # - Disable restart buttons\r\n # disable-restart-buttons=true\r\n # - Show a login welcome message\r\n\n\n\uff03\u3061\u306a\u307f\u306b\u3053\u306e\u3068\u304d$ sudo service gdm3 restart\u3068\u3057\u305f\u3089\u306a\u3093\u304b\u304a\u304b\u3057\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u2026\u2026\uff0eOS\u3054\u3068\u518d\u8d77\u52d5\u3057\u305f\u3089\u6cbb\u308a\u307e\u3057\u305f\uff0e\n\ngdm3\u3067disable-user-list=true\u304c\u52b9\u304b\u306a\u3044greeter.dconf\u304b\u3089greeter.dconf-defaults\u306b\u5909\u308f\u3063\u3066\u308b?defaults\u5074\u3067disable-user-list=true\u306b\u3057\u3066gdm3\u4e0a\u3052\u76f4\u3057\u305f\u3089\u9177\u3044\u3053\u3068\u306b\u9060\u9694\u304b\u3089\u4fee\u6b63\u3057\u305forz pic.twitter.com/TIPmlC6cWY\n— \u9e7f\u5150\u5cf6Linux\u52c9\u5f37\u4f1a04/08 (@matoken) 2017\u5e744\u67084\u65e5\n\n\u6b21\u304b\u3089\u6c17\u3065\u304d\u3084\u3059\u3044\u3088\u3046\u306b\n\n$ sudo dpkg-reconfigure apt-listchanges\r\n\n\n\u3067\u300cAPT\u3067\u8868\u793a\u3059\u3079\u304d\u5909\u66f4\u5185\u5bb9\u306e\u7a2e\u985e\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u300d\u3092\u300c\u4e21\u65b9 – \u30cb\u30e5\u30fc\u30b9\u3068 changelog \u306e\u4e21\u65b9\u300d\u306b\u3057\u3066\u304a\u304d\u307e\u3057\u305f\uff0etesting/unstable\u8fba\u308a\u306f\u3061\u3083\u3093\u3068\u8aad\u307e\u306a\u3044\u3068\u3067\u3059\u306d\u2026\u2026\uff0e\n\u203bapt-listchanges\u304c\u5165\u3063\u3066\u3044\u306a\u3044\u5834\u5408\u306f$ sudo apt install apt-listchanges", "date_published": "2017-04-05T07:53:11+09:00", "date_modified": "2017-04-05T07:53:11+09:00", "authors": [ { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" } ], "author": { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" }, "tags": [ "Debian", "Debian sid", "gdm3", "Linux", "sid" ] }, { "id": "http://matoken.org/blog/?p=1579", "url": "https://matoken.org/blog/2017/04/02/try-ext4-encryption-file-system/", "title": "ext4\u306e\u6697\u53f7\u5316fs\u3092\u8a66\u3057\u3066\u307f\u308b", "content_html": "

Linux 4.1\u3067ext4\u306e\u6697\u53f7\u5316\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u304c\u53d6\u308a\u8fbc\u307e\u308c\u3066\u3044\u308b\u306e\u306b\u6c17\u3065\u3044\u305f\u306e\u3067\u5c11\u3057\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e
\ncCryptFS\u3084EncFS\u306a\u3069\u3068\u540c\u3058\u3088\u3046\u306b\u30d5\u30a1\u30a4\u30eb\u5358\u4f4d\u3067\u306e\u6697\u53f7\u5316\u3067\u3059\uff0e\u524d\u3082\u3063\u3066\u6697\u53f7\u5316\u30d5\u30e9\u30b0\u3092\u8a2d\u5b9a\u3057\u3066\u3042\u308c\u3070\u4e00\u822c\u30e6\u30fc\u30b6\u304c\u52dd\u624b\u306b\u6697\u53f7\u9818\u57df\u3092\u4f5c\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3057\u305f\uff0eeCryptFS\u3084EncFS\u306e\u3088\u3046\u306a\u4f7f\u3044\u65b9\u3082\u53ef\u80fd\u305d\u3046\u3067\u3059\uff0e\u6050\u3089\u304f\u901f\u5ea6\u306f\u3053\u3061\u3089\u306e\u307b\u3046\u304c\u901f\u3044\u3067\u3057\u3087\u3046(\u672a\u78ba\u8a8d)\uff0e\u305f\u3060\uff0c\u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u304c\u308f\u304b\u3063\u3066\u3057\u307e\u3046\u3068\u5225\u306e\u30e6\u30fc\u30b6\u304b\u3089\u3082\u30de\u30a6\u30f3\u30c8\u53ef\u80fd\u3060\u3057\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u304c\u3042\u308c\u3070\u8aad\u307f\u66f8\u304d\u3082\u51fa\u6765\u308b\u306e\u3067\u901a\u5e38\u306e\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3068\u540c\u69d8\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u306f\u5fc5\u9808\u3067\u3059\u306d\uff0e
\n\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u5185\u5168\u3066\u3092\u6697\u53f7\u5316\u3059\u308b\u3053\u3068\u306f\u51fa\u6765\u306a\u3044\u3088\u3046\u306a\u306e\u3067LUKS(dm-crypt)\u3068\u306f\u5358\u7d14\u306b\u7a7a\u304d\u304b\u3048\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3055\u305d\u3046\u3067\u3059\uff0e

\n

\u305d\u3093\u306a\u3053\u3093\u306a\u3067\u3082\u3068\u3082\u3068Android\u5411\u3051\u3068\u3044\u3046\u3053\u3068\u3082\u3042\u3063\u3066PC/Server\u3067\u306f\u3042\u307e\u308a\u4f7f\u3044\u307f\u3061\u304c\u601d\u3044\u3064\u304b\u306a\u3044\u611f\u3058\u3067\u3059\uff0e(\u4f55\u304b\u3044\u3044\u4f7f\u3044\u65b9\u3042\u308a\u305d\u3046\u3060\u3051\u3069\u2026\u2026\uff0e)

\n

\u5fc5\u8981\u6761\u4ef6\u78ba\u8a8d

\n\n
\n
$ uname -r\r\n4.9.0-2-amd64\r\n
\n
\n\n
\n
$ grep CONFIG_EXT4_ENCRYPTION /boot/config-`uname -r`\r\nCONFIG_EXT4_ENCRYPTION=y\r\n
\n
\n\n
\n
$ dpkg-query -W e2fsprogs\r\ne2fsprogs       1.43.4-2\r\n
\n
\n\n
\n
$ sudo dumpe2fs /dev/loop0 | grep -i 'block size'\r\ndumpe2fs 1.43.4 (31-Jan-2017)\r\nBlock size:               4096\r\n
\n
\n

\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u5c0e\u5165

\n
\n
$ sudo apt install e2fsprogs keyutils util-linux coreutils mount\r\n
\n
\n

\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u7528\u610f

\n

\u4eca\u56de\u306f\u65e2\u5b58\u306e\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u5185\u306b\u30c7\u30a3\u30b9\u30af\u30a4\u30e1\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u3066\u305d\u308c\u3092\u5229\u7528

\n\n
\n
$ dd if=/dev/zero of=ext4-crypt.img seek=1073741824 bs=1 count=1\r\n1+0 \u30ec\u30b3\u30fc\u30c9\u5165\u529b\r\n1+0 \u30ec\u30b3\u30fc\u30c9\u51fa\u529b\r\n1 byte copied, 0.000118528 s, 8.4 kB/s\r\n
\n
\n\n
\n
$ /sbin/fdisk ext4-crypt.img\r\n\r\nWelcome to fdisk (util-linux 2.29.2).\r\nChanges will remain in memory only, until you decide to write them.\r\nBe careful before using the write command.\r\n\r\nDevice does not contain a recognized partition table.\r\nCreated a new DOS disklabel with disk identifier 0xa25a3988.\r\n\r\nCommand (m for help): n\r\nPartition type\r\n   p   primary (0 primary, 0 extended, 4 free)\r\n   e   extended (container for logical partitions)\r\nSelect (default p): p\r\nPartition number (1-4, default 1): \r\nFirst sector (2048-2097151, default 2048): \r\nLast sector, +sectors or +size{K,M,G,T,P} (2048-2097151, default 2097151): \r\n\r\nCreated a new partition 1 of type 'Linux' and of size 1023 MiB.\r\n\r\nCommand (m for help): w\r\nThe partition table has been altered.\r\nSyncing disks.\r\n
\n
\n\n
\n
$ /sbin/mkfs.ext4 ./ext4-crypt.img \r\nmke2fs 1.43.4 (31-Jan-2017)\r\nFound a dos partition table in ./ext4-crypt.img\r\nProceed anyway? (y,N) y\r\nDiscarding device blocks: done                            \r\nCreating filesystem with 262144 4k blocks and 65536 inodes\r\nFilesystem UUID: dc44fd43-7d7a-4dfc-87f1-dc52410e2dd1\r\nSuperblock backups stored on blocks: \r\n        32768, 98304, 163840, 229376\r\n\r\nAllocating group tables: done                            \r\nWriting inode tables: done                            \r\nCreating journal (8192 blocks): done\r\nWriting superblocks and filesystem accounting information: done\r\n
\n
\n\n
\n
$ sudo mount -o loop ./ext4-crypt.img /mnt\r\n$ grep /mnt /etc/mtab \r\n/dev/loop0 /mnt ext4 rw,relatime,data=ordered 0 0\r\n
\n
\n\n
\n
$ sudo chown `id -u`.`id -g` /mnt\r\n$ ls -la /mnt\r\n\u5408\u8a08 36\r\ndrwxr-xr-x 3 mk   mk    4096  4\u6708  2 04:58 .\r\ndrwxr-xr-x 1 root root   248  3\u6708 28 02:19 ..\r\ndrwx------ 2 root root 16384  4\u6708  2 04:58 lost+found\r\n
\n
\n

ext4\u6697\u53f7\u5316\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u5229\u7528

\n\n
\n
$ sudo tune2fs -O encrypt /dev/loop0\r\n$ sudo dumpe2fs /dev/loop0 | grep -io encrypt\r\ndumpe2fs 1.43.4 (31-Jan-2017)\r\nencrypt\r\n
\n
\n\n
\n
$ /usr/sbin/e4crypt add_key\r\nEnter passphrase (echo disabled): \r\nAdded key with descriptor [07a3ce5a6ebf0396]\r\n$ keyctl show\r\nSession Keyring\r\n1048296028 --alswrv   1000  1000  keyring: _ses\r\n 615559430 --alsw-v   1000  1000   \\_ logon: ext4:07a3ce5a6ebf0396\r\n
\n
\n

\u203b\u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u306e\u5165\u529b\u306f1\u56de\u3060\u3051\u3067\u78ba\u8a8d\u3055\u308c\u306a\u3044\u306e\u3067\u521d\u56de\u306f\u7279\u306b\u6ce8\u610f\uff0e\u5229\u7528\u3057\u306f\u3058\u3081\u308b\u524d\u306b\u30ad\u30fc\u30ea\u30f3\u30b0\u3092\u30af\u30ea\u30a2\u3057\u3066\u767b\u9332\u3057\u76f4\u3057\u3066\u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u304c\u6b63\u3057\u3044\u304b\u78ba\u8a8d\u3057\u3066\u304a\u304f\uff0e

\n\n

\u3053\u306e\u3068\u304d\u5bfe\u8c61\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u7a7a\u3067\u306f\u306a\u3044\u5834\u5408\u30a8\u30e9\u30fc\u3068\u306a\u308b( Error [Directory not empty] setting policy. )\u306e\u3067\u6ce8\u610f\uff0e

\n

\u30de\u30a6\u30f3\u30c8\u30dd\u30a4\u30f3\u30c8\u306b\u306flost+found\u304c\u5b58\u5728\u3059\u308b\u306e\u3067\u5fc5\u305a\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308b\uff0e

\n
\n
$ mkdir /mnt/encryption\r\n$ /usr/sbin/e4crypt set_policy 07a3ce5a6ebf0396 /mnt/encryption\r\nKey with descriptor [07a3ce5a6ebf0396] applied to /mnt/encryption.\r\n
\n
\n

\u203b\u9375\u306e\u751f\u6210\u3068\u30ad\u30fc\u30ea\u30f3\u30b0\u3078\u306e\u8ffd\u52a0\u3068\u6697\u53f7\u5316\u30dd\u30ea\u30b7\u30fc\u306e\u8a2d\u5b9a\u306f\u6b21\u306e\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u4e00\u5ea6\u306b\u8a2d\u5b9a\u53ef\u80fd

\n
\n
$ /usr/sbin/e4crypt add_key /mnt/encryption\r\n
\n
\n\n
\n
$ echo 'hello' > /mnt/encryption/test.txt\r\n$ ls -la /mnt/encryption\r\n\u5408\u8a08 12\r\ndrwxr-xr-x 2 mk mk 4096  4\u6708  2 05:07 .\r\ndrwxr-xr-x 4 mk mk 4096  4\u6708  2 05:06 ..\r\n-rw-r--r-- 1 mk mk    6  4\u6708  2 05:07 test.txt\r\n
\n
\n\n
\n
$ sudo keyctl clear @s\r\n$ sudo keyctl show\r\nSession Keyring\r\n1048296028 --alswrv   1000  1000  keyring: _ses\r\n
\n
\n

\u30ad\u30fc\u30ea\u30f3\u30b0\u3092\u30af\u30ea\u30a2\u3057\u305f\u3060\u3051\u3067\u306f\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b

\n
\n
$ ls -lA /mnt/encryption\r\n\u5408\u8a08 12\r\n-rw-r--r-- 1 mk mk    6  4\u6708  2 05:07 test.txt\r\n
\n
\n\n

\u30ad\u30fc\u30ea\u30f3\u30b0\u3092\u30af\u30ea\u30a2\u3057\u305f\u72b6\u614b\u3067\u30a2\u30f3\u30de\u30a6\u30f3\u30c8\u3059\u308b\u3068\u6697\u53f7\u5316\u3055\u308c\u305f\u72b6\u614b\u306b\u623b\u308b

\n
\n
$ sudo umount /mnt\r\n$ sudo mount -o loop ./ext4-crypt.img /mnt\r\n$ ls -la /mnt/encryption\r\n\u5408\u8a08 12\r\ndrwxr-xr-x 2 mk mk 4096  4\u6708  2 05:42 .\r\ndrwxr-xr-x 4 mk mk 4096  4\u6708  2 05:06 ..\r\n-rw-r--r-- 1 mk mk    6  4\u6708  2 05:42 uzUlJZQfaxMx,7cC63,53A\r\n$ cat /mnt/encryption/uzUlJZQfaxMx,7cC63,53A \r\ncat: /mnt/encryption/uzUlJZQfaxMx,7cC63,53A: \u8981\u6c42\u3055\u308c\u305f\u30ad\u30fc\u304c\u5229\u7528\u3067\u304d\u307e\u305b\u3093\r\n
\n
\n

\u30e6\u30fc\u30b6\uff0c\u30b0\u30eb\u30fc\u30d7\uff0c\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306a\u3069\u306f\u898b\u3048\u308b\uff0e\u5185\u5bb9\u306b\u306f\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\uff0e

\n\n

\u9375\u306e\u751f\u6210\u3068\u30ad\u30fc\u30ea\u30f3\u30b0\u3078\u306e\u8ffd\u52a0\u3068\u6697\u53f7\u5316\u30dd\u30ea\u30b7\u30fc\u306e\u8a2d\u5b9a\u3092\u3057\u76f4\u3059\u3068\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b

\n
\n
$ /usr/sbin/e4crypt add_key /mnt/encryption\r\nEnter passphrase (echo disabled): \r\nAdded key with descriptor [07a3ce5a6ebf0396]\r\n$ ls -la /mnt/encryption\r\n\u5408\u8a08 12\r\ndrwxr-xr-x 2 mk mk 4096  4\u6708  2 05:42 .\r\ndrwxr-xr-x 4 mk mk 4096  4\u6708  2 05:06 ..\r\n-rw-r--r-- 1 mk mk    6  4\u6708  2 05:42 test.txt\r\n
\n
\n

\u30d5\u30a1\u30a4\u30eb\u540d\u9577\u306e\u78ba\u8a8d

\n

EncFS\u306a\u3069\u306f\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u30e1\u30bf\u30c7\u30fc\u30bf\u304c\u30d5\u30a1\u30a4\u30eb\u540d\u5185\u306b\u3042\u308b\u306e\u3067\u5229\u7528\u3067\u304d\u308b\u30d5\u30a1\u30a4\u30eb\u540d\u9577\u304c\u77ed\u304f\u306a\u3063\u3066\u3057\u307e\u3046\uff0eext4\u3067\u306f\u3069\u3046\u304b\u8a66\u3059\uff0e

\n\n
\n
$ touch /mnt/1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456\r\ntouch: '/mnt/1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456' \u306b touch \u3067\u304d\u307e\u305b\u3093: \u30d5\u30a1\u30a4\u30eb\u540d\u304c\u9577\u3059\u304e\u307e\u3059\r\n$ touch /mnt/123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345\r\n
\n
\n\n
\n
$ touch /mnt/encryption/123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345\r\n$ ls -lA /mnt/encryption/\r\n\u5408\u8a08 4\r\n-rw-r--r-- 1 mk mk 0  4\u6708  2 07:14 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345\r\n-rw-r--r-- 1 mk mk 6  4\u6708  2 05:42 test.txt\r\n
\n
\n\n
\n
-rw-r--r-- 1 mk mk    0  4\u6708  2 07:14 _OsoePJvc3qPQCPHbUMtjSynszcHig3BL\r\n-rw-r--r-- 1 mk mk    6  4\u6708  2 05:42 uzUlJZQfaxMx,7cC63,53A\r\n
\n
\n

\u5fa9\u53f7\u72b6\u614b\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u306f\u5225\u306e\u5834\u6240\u306b\u8a18\u9332\u3055\u308c\u3066\u3044\u308b\u3088\u3046\uff0e

\n

\u8907\u6570\u306e\u6697\u53f7\u5316\u9818\u57df\u3092\u4f5c\u3063\u3066\u307f\u308b

\n\n
\n
$ mkdir /mnt/encryption2\r\n$ ls -la /mnt/encryption2\r\n\u5408\u8a08 8\r\ndrwxr-xr-x 2 mk mk 4096  4\u6708  2 06:49 .\r\ndrwxr-xr-x 5 mk mk 4096  4\u6708  2 06:49 ..\r\n
\n
\n\n
\n
$ sudo e4crypt add_key /mnt/encryption2\r\nEnter passphrase (echo disabled):\r\nKey with descriptor [9640dd016062b432] already exists\r\nKey with descriptor [9640dd016062b432] applied to /mnt/encryption2.\r\n$ keyctl show\r\nSession Keyring   \r\n1048296028 --alswrv   1000  1000  keyring: _ses\r\n  94779002 --alsw-v      0     0   \\_ logon: ext4:69ca01e214957173\r\n 219437542 --alsw-v      0     0   \\_ logon: ext4:07a3ce5a6ebf0396\r\n1025344233 --alsw-v      0     0   \\_ logon: ext4:9640dd016062b432\r\n$ touch /mnt/encryption2/hoge\r\n
\n
\n\n
\n
$ keyctl clear @s\r\n$ keyctl show\r\nSession Keyring   \r\n1048296028 --alswrv   1000  1000  keyring: _ses\r\n$ sudo umount /mnt\r\n$ sudo mount -o loop ./ext4-crypt.img /mnt\r\n
\n
\n\n
\n
$ sudo e4crypt add_key /mnt/encryption2\r\nEnter passphrase (echo disabled):\r\nAdded key with descriptor [9640dd016062b432]\r\nKey with descriptor [9640dd016062b432] applied to /mnt/encryption2.\r\n$ ls -la /mnt/encryption*\r\n/mnt/encryption:  \r\n\u5408\u8a08 12\r\ndrwxr-xr-x 2 mk mk 4096  4\u6708  2 06:11 .\r\ndrwxr-xr-x 5 mk mk 4096  4\u6708  2 06:49 ..\r\n-rw-r--r-- 1 mk mk    0  4\u6708  2 06:11 _OsoePJvc3qPQCPHbUMtjSynszcHig3BL\r\n-rw-r--r-- 1 mk mk    6  4\u6708  2 05:42 uzUlJZQfaxMx,7cC63,53A\r\n\r\n/mnt/encryption2: \r\n\u5408\u8a08 8\r\ndrwxr-xr-x 2 mk mk 4096  4\u6708  2 06:51 .\r\ndrwxr-xr-x 5 mk mk 4096  4\u6708  2 06:49 ..\r\n-rw-r--r-- 1 mk mk    0  4\u6708  2 06:51 hoge\r\n
\n
\n

\u6697\u53f7\u5316\u9818\u57df\u306b\u9375\u304c\u767b\u9332\u3055\u308c\u3066\u306a\u3044\u72b6\u614b\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u3063\u3066\u307f\u308b

\n

\u6697\u53f7\u5316\u9818\u57df\u306b\u9375\u304c\u767b\u9332\u3055\u308c\u3066\u306a\u3044\u72b6\u614b\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308b\u3068\u3069\u3046\u306a\u308b\u304b\u3092\u78ba\u8a8d\uff0e

\n
\n
$ ls -lA /mnt/encryption\r\n\u5408\u8a08 4\r\n-rw-r--r-- 1 mk mk 0  4\u6708  2 07:14 _OsoePJvc3qPQCPHbUMtjSynszcHig3BL\r\n-rw-r--r-- 1 mk mk 6  4\u6708  2 05:42 uzUlJZQfaxMx,7cC63,53A\r\nmk@x220:~ (1180)$ touch /mnt/encryption/test\r\ntouch: '/mnt/encryption/test' \u306e\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3092\u8a2d\u5b9a\u4e2d\u3067\u3059: \u305d\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3042\u308a\u307e\u305b\u3093\r\nmk@x220:~ (1181)$ ls -lA /mnt/encryption\r\n\u5408\u8a08 4\r\n-rw-r--r-- 1 mk mk 0  4\u6708  2 07:14 _OsoePJvc3qPQCPHbUMtjSynszcHig3BL\r\n-rw-r--r-- 1 mk mk 6  4\u6708  2 05:42 uzUlJZQfaxMx,7cC63,53A\r\n
\n
\n

\u30a8\u30e9\u30fc\u3068\u306a\u3063\u3066\u4f5c\u308c\u306a\u3044\uff0e

\n

\u5225\u306e\u30e6\u30fc\u30b6\u3067\u5229\u7528

\n\n
\n
$ id\r\nuid=1001(gm) gid=1001(gm) groups=1001(gm),20(dialout),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),107(netdev)\r\n$ ls -la /mnt/encryption\r\n\u5408\u8a08 12\r\ndrwxr-xr-x 2 mk mk 4096  4\u6708  2 06:11 .\r\ndrwxr-xr-x 7 mk mk 4096  4\u6708  2 07:48 ..\r\n-rw-r--r-- 1 mk mk    0  4\u6708  2 07:14 _OsoePJvc3qPQCPHbUMtjSynszcHig3BL\r\n-rw-r--r-- 1 mk mk    6  4\u6708  2 05:42 uzUlJZQfaxMx,7cC63,53A\r\n$ ls -la /mnt/encryption\r\n\u5408\u8a08 12\r\ndrwxrwxrwx 2 mk mk 4096  4\u6708  2 06:11 .\r\ndrwxr-xr-x 7 mk mk 4096  4\u6708  2 07:48 ..\r\n-rw-r--r-- 1 mk mk    0  4\u6708  2 07:14 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345\r\n-rw-r--r-- 1 mk mk    6  4\u6708  2 05:42 test.txt\r\n
\n
\n\n
\n
$ touch /mnt/encryption/other_user\r\n$ ls -lA /mnt/encryption\r\n\u5408\u8a08 4\r\n-rw-r--r-- 1 mk mk 0  4\u6708  2 07:14 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345\r\n-rw-r--r-- 1 gm gm 0  4\u6708  2 07:55 other_user\r\n-rw-r--r-- 1 mk mk 6  4\u6708  2 05:42 test.txt\r\n
\n
\n\n
\n
$ /usr/sbin/e4crypt add_key /mnt/encryption\r\n/mnt/encryption: Permission denied\r\n
\n
\n\n
\n
$ ls -la /mnt/encryption\r\n\u5408\u8a08 12\r\ndrwxrwxrwx 2 mk mk 4096  4\u6708  2 07:55 .\r\ndrwxr-xr-x 7 mk mk 4096  4\u6708  2 07:48 ..\r\n-rw-r--r-- 1 gm gm    0  4\u6708  2 07:55 97NmIBETx,1q9US96etRsA\r\n-rw-r--r-- 1 mk mk    0  4\u6708  2 07:14 _OsoePJvc3qPQCPHbUMtjSynszcHig3BL\r\n-rw-r--r-- 1 mk mk    6  4\u6708  2 05:42 uzUlJZQfaxMx,7cC63,53A\r\n$ /usr/sbin/e4crypt add_key /mnt/encryption\r\nEnter passphrase (echo disabled): \r\nAdded key with descriptor [07a3ce5a6ebf0396]\r\nError [Permission denied] setting policy.\r\nThe key descriptor [07a3ce5a6ebf0396] may not match the existing encryption context for directory [/mnt/encryption].\r\n$ ls -lA /mnt/encryption\r\n\u5408\u8a08 4\r\n-rw-r--r-- 1 mk mk 0  4\u6708  2 07:14 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345\r\n-rw-r--r-- 1 gm gm 0  4\u6708  2 07:55 other_user\r\n-rw-r--r-- 1 mk mk 6  4\u6708  2 05:42 test.txt\r\n
\n
\n
\n

\n\n

\n
\n", "content_text": "Linux 4.1\u3067ext4\u306e\u6697\u53f7\u5316\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u304c\u53d6\u308a\u8fbc\u307e\u308c\u3066\u3044\u308b\u306e\u306b\u6c17\u3065\u3044\u305f\u306e\u3067\u5c11\u3057\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e\ncCryptFS\u3084EncFS\u306a\u3069\u3068\u540c\u3058\u3088\u3046\u306b\u30d5\u30a1\u30a4\u30eb\u5358\u4f4d\u3067\u306e\u6697\u53f7\u5316\u3067\u3059\uff0e\u524d\u3082\u3063\u3066\u6697\u53f7\u5316\u30d5\u30e9\u30b0\u3092\u8a2d\u5b9a\u3057\u3066\u3042\u308c\u3070\u4e00\u822c\u30e6\u30fc\u30b6\u304c\u52dd\u624b\u306b\u6697\u53f7\u9818\u57df\u3092\u4f5c\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3057\u305f\uff0eeCryptFS\u3084EncFS\u306e\u3088\u3046\u306a\u4f7f\u3044\u65b9\u3082\u53ef\u80fd\u305d\u3046\u3067\u3059\uff0e\u6050\u3089\u304f\u901f\u5ea6\u306f\u3053\u3061\u3089\u306e\u307b\u3046\u304c\u901f\u3044\u3067\u3057\u3087\u3046(\u672a\u78ba\u8a8d)\uff0e\u305f\u3060\uff0c\u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u304c\u308f\u304b\u3063\u3066\u3057\u307e\u3046\u3068\u5225\u306e\u30e6\u30fc\u30b6\u304b\u3089\u3082\u30de\u30a6\u30f3\u30c8\u53ef\u80fd\u3060\u3057\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u304c\u3042\u308c\u3070\u8aad\u307f\u66f8\u304d\u3082\u51fa\u6765\u308b\u306e\u3067\u901a\u5e38\u306e\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3068\u540c\u69d8\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u306f\u5fc5\u9808\u3067\u3059\u306d\uff0e\n\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u5185\u5168\u3066\u3092\u6697\u53f7\u5316\u3059\u308b\u3053\u3068\u306f\u51fa\u6765\u306a\u3044\u3088\u3046\u306a\u306e\u3067LUKS(dm-crypt)\u3068\u306f\u5358\u7d14\u306b\u7a7a\u304d\u304b\u3048\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3055\u305d\u3046\u3067\u3059\uff0e\n\u305d\u3093\u306a\u3053\u3093\u306a\u3067\u3082\u3068\u3082\u3068Android\u5411\u3051\u3068\u3044\u3046\u3053\u3068\u3082\u3042\u3063\u3066PC/Server\u3067\u306f\u3042\u307e\u308a\u4f7f\u3044\u307f\u3061\u304c\u601d\u3044\u3064\u304b\u306a\u3044\u611f\u3058\u3067\u3059\uff0e(\u4f55\u304b\u3044\u3044\u4f7f\u3044\u65b9\u3042\u308a\u305d\u3046\u3060\u3051\u3069\u2026\u2026\uff0e)\n\u5fc5\u8981\u6761\u4ef6\u78ba\u8a8d\n\nLinux 4.1\u4ee5\u4e0a\n\n\n$ uname -r\r\n4.9.0-2-amd64\r\n\n\n\nCONFIG_EXT4_ENCRYPTION\u304c\u6709\u52b9\n\n\n$ grep CONFIG_EXT4_ENCRYPTION /boot/config-`uname -r`\r\nCONFIG_EXT4_ENCRYPTION=y\r\n\n\n\ne2fsprogs 1.43\u4ee5\u4e0a\n\n\n$ dpkg-query -W e2fsprogs\r\ne2fsprogs 1.43.4-2\r\n\n\n\n\u30d6\u30ed\u30c3\u30af\u30b5\u30a4\u30ba\u304c4k\n\n\n$ sudo dumpe2fs /dev/loop0 | grep -i 'block size'\r\ndumpe2fs 1.43.4 (31-Jan-2017)\r\nBlock size: 4096\r\n\n\n\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u5c0e\u5165\n\n$ sudo apt install e2fsprogs keyutils util-linux coreutils mount\r\n\n\n\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u7528\u610f\n\u4eca\u56de\u306f\u65e2\u5b58\u306e\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u5185\u306b\u30c7\u30a3\u30b9\u30af\u30a4\u30e1\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u3066\u305d\u308c\u3092\u5229\u7528\n\n1GB\u306e\u30c7\u30a3\u30b9\u30af\u30a4\u30e1\u30fc\u30b8\u306e\u4f5c\u6210\n\n\n$ dd if=/dev/zero of=ext4-crypt.img seek=1073741824 bs=1 count=1\r\n1+0 \u30ec\u30b3\u30fc\u30c9\u5165\u529b\r\n1+0 \u30ec\u30b3\u30fc\u30c9\u51fa\u529b\r\n1 byte copied, 0.000118528 s, 8.4 kB/s\r\n\n\n\n\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306e\u4f5c\u6210\nprimary\u30921\u3064\u4f5c\u6210\n\n\n$ /sbin/fdisk ext4-crypt.img\r\n\r\nWelcome to fdisk (util-linux 2.29.2).\r\nChanges will remain in memory only, until you decide to write them.\r\nBe careful before using the write command.\r\n\r\nDevice does not contain a recognized partition table.\r\nCreated a new DOS disklabel with disk identifier 0xa25a3988.\r\n\r\nCommand (m for help): n\r\nPartition type\r\n p primary (0 primary, 0 extended, 4 free)\r\n e extended (container for logical partitions)\r\nSelect (default p): p\r\nPartition number (1-4, default 1): \r\nFirst sector (2048-2097151, default 2048): \r\nLast sector, +sectors or +size{K,M,G,T,P} (2048-2097151, default 2097151): \r\n\r\nCreated a new partition 1 of type 'Linux' and of size 1023 MiB.\r\n\r\nCommand (m for help): w\r\nThe partition table has been altered.\r\nSyncing disks.\r\n\n\n\next4\u3067\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\n\n\n$ /sbin/mkfs.ext4 ./ext4-crypt.img \r\nmke2fs 1.43.4 (31-Jan-2017)\r\nFound a dos partition table in ./ext4-crypt.img\r\nProceed anyway? (y,N) y\r\nDiscarding device blocks: done \r\nCreating filesystem with 262144 4k blocks and 65536 inodes\r\nFilesystem UUID: dc44fd43-7d7a-4dfc-87f1-dc52410e2dd1\r\nSuperblock backups stored on blocks: \r\n 32768, 98304, 163840, 229376\r\n\r\nAllocating group tables: done \r\nWriting inode tables: done \r\nCreating journal (8192 blocks): done\r\nWriting superblocks and filesystem accounting information: done\r\n\n\n\n\u30de\u30a6\u30f3\u30c8\n\n\n$ sudo mount -o loop ./ext4-crypt.img /mnt\r\n$ grep /mnt /etc/mtab \r\n/dev/loop0 /mnt ext4 rw,relatime,data=ordered 0 0\r\n\n\n\n\u30aa\u30fc\u30ca\u30fc\uff0c\u30b0\u30eb\u30fc\u30d7\u306e\u5909\u66f4\n\n\n$ sudo chown `id -u`.`id -g` /mnt\r\n$ ls -la /mnt\r\n\u5408\u8a08 36\r\ndrwxr-xr-x 3 mk mk 4096 4\u6708 2 04:58 .\r\ndrwxr-xr-x 1 root root 248 3\u6708 28 02:19 ..\r\ndrwx------ 2 root root 16384 4\u6708 2 04:58 lost+found\r\n\n\next4\u6697\u53f7\u5316\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u5229\u7528\n\next4\u306e\u6697\u53f7\u5316\u30d5\u30e9\u30b0\u3092\u8a2d\u5b9a\n\n\n$ sudo tune2fs -O encrypt /dev/loop0\r\n$ sudo dumpe2fs /dev/loop0 | grep -io encrypt\r\ndumpe2fs 1.43.4 (31-Jan-2017)\r\nencrypt\r\n\n\n\n\u9375\u306e\u751f\u6210\u3068\u30ad\u30fc\u30ea\u30f3\u30b0\u3078\u306e\u8ffd\u52a0\n\n\n$ /usr/sbin/e4crypt add_key\r\nEnter passphrase (echo disabled): \r\nAdded key with descriptor [07a3ce5a6ebf0396]\r\n$ keyctl show\r\nSession Keyring\r\n1048296028 --alswrv 1000 1000 keyring: _ses\r\n 615559430 --alsw-v 1000 1000 \\_ logon: ext4:07a3ce5a6ebf0396\r\n\n\n\u203b\u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u306e\u5165\u529b\u306f1\u56de\u3060\u3051\u3067\u78ba\u8a8d\u3055\u308c\u306a\u3044\u306e\u3067\u521d\u56de\u306f\u7279\u306b\u6ce8\u610f\uff0e\u5229\u7528\u3057\u306f\u3058\u3081\u308b\u524d\u306b\u30ad\u30fc\u30ea\u30f3\u30b0\u3092\u30af\u30ea\u30a2\u3057\u3066\u767b\u9332\u3057\u76f4\u3057\u3066\u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u304c\u6b63\u3057\u3044\u304b\u78ba\u8a8d\u3057\u3066\u304a\u304f\uff0e\n\n\u6697\u53f7\u5316\u30dd\u30ea\u30b7\u30fc\u306e\u8a2d\u5b9a\n\n\u3053\u306e\u3068\u304d\u5bfe\u8c61\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u7a7a\u3067\u306f\u306a\u3044\u5834\u5408\u30a8\u30e9\u30fc\u3068\u306a\u308b( Error [Directory not empty] setting policy. )\u306e\u3067\u6ce8\u610f\uff0e\n\u30de\u30a6\u30f3\u30c8\u30dd\u30a4\u30f3\u30c8\u306b\u306flost+found\u304c\u5b58\u5728\u3059\u308b\u306e\u3067\u5fc5\u305a\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308b\uff0e\n\n$ mkdir /mnt/encryption\r\n$ /usr/sbin/e4crypt set_policy 07a3ce5a6ebf0396 /mnt/encryption\r\nKey with descriptor [07a3ce5a6ebf0396] applied to /mnt/encryption.\r\n\n\n\u203b\u9375\u306e\u751f\u6210\u3068\u30ad\u30fc\u30ea\u30f3\u30b0\u3078\u306e\u8ffd\u52a0\u3068\u6697\u53f7\u5316\u30dd\u30ea\u30b7\u30fc\u306e\u8a2d\u5b9a\u306f\u6b21\u306e\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u4e00\u5ea6\u306b\u8a2d\u5b9a\u53ef\u80fd\n\n$ /usr/sbin/e4crypt add_key /mnt/encryption\r\n\n\n\n\u6697\u53f7\u5316\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u9818\u57df\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\n\n\n$ echo 'hello' > /mnt/encryption/test.txt\r\n$ ls -la /mnt/encryption\r\n\u5408\u8a08 12\r\ndrwxr-xr-x 2 mk mk 4096 4\u6708 2 05:07 .\r\ndrwxr-xr-x 4 mk mk 4096 4\u6708 2 05:06 ..\r\n-rw-r--r-- 1 mk mk 6 4\u6708 2 05:07 test.txt\r\n\n\n\n\u30ad\u30fc\u30ea\u30f3\u30b0\u306e\u30af\u30ea\u30a2\n\n\n$ sudo keyctl clear @s\r\n$ sudo keyctl show\r\nSession Keyring\r\n1048296028 --alswrv 1000 1000 keyring: _ses\r\n\n\n\u30ad\u30fc\u30ea\u30f3\u30b0\u3092\u30af\u30ea\u30a2\u3057\u305f\u3060\u3051\u3067\u306f\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\n\n$ ls -lA /mnt/encryption\r\n\u5408\u8a08 12\r\n-rw-r--r-- 1 mk mk 6 4\u6708 2 05:07 test.txt\r\n\n\n\n\u30a2\u30f3\u30de\u30a6\u30f3\u30c8\u3068\u30de\u30a6\u30f3\u30c8\u3057\u76f4\u3057\n\n\u30ad\u30fc\u30ea\u30f3\u30b0\u3092\u30af\u30ea\u30a2\u3057\u305f\u72b6\u614b\u3067\u30a2\u30f3\u30de\u30a6\u30f3\u30c8\u3059\u308b\u3068\u6697\u53f7\u5316\u3055\u308c\u305f\u72b6\u614b\u306b\u623b\u308b\n\n$ sudo umount /mnt\r\n$ sudo mount -o loop ./ext4-crypt.img /mnt\r\n$ ls -la /mnt/encryption\r\n\u5408\u8a08 12\r\ndrwxr-xr-x 2 mk mk 4096 4\u6708 2 05:42 .\r\ndrwxr-xr-x 4 mk mk 4096 4\u6708 2 05:06 ..\r\n-rw-r--r-- 1 mk mk 6 4\u6708 2 05:42 uzUlJZQfaxMx,7cC63,53A\r\n$ cat /mnt/encryption/uzUlJZQfaxMx,7cC63,53A \r\ncat: /mnt/encryption/uzUlJZQfaxMx,7cC63,53A: \u8981\u6c42\u3055\u308c\u305f\u30ad\u30fc\u304c\u5229\u7528\u3067\u304d\u307e\u305b\u3093\r\n\n\n\u30e6\u30fc\u30b6\uff0c\u30b0\u30eb\u30fc\u30d7\uff0c\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306a\u3069\u306f\u898b\u3048\u308b\uff0e\u5185\u5bb9\u306b\u306f\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\uff0e\n\n\u518d\u5ea6\u6697\u53f7\u5316\u9818\u57df\u3092\u5229\u7528\u51fa\u6765\u308b\u3088\u3046\u306b\u3059\u308b\n\n\u9375\u306e\u751f\u6210\u3068\u30ad\u30fc\u30ea\u30f3\u30b0\u3078\u306e\u8ffd\u52a0\u3068\u6697\u53f7\u5316\u30dd\u30ea\u30b7\u30fc\u306e\u8a2d\u5b9a\u3092\u3057\u76f4\u3059\u3068\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\n\n$ /usr/sbin/e4crypt add_key /mnt/encryption\r\nEnter passphrase (echo disabled): \r\nAdded key with descriptor [07a3ce5a6ebf0396]\r\n$ ls -la /mnt/encryption\r\n\u5408\u8a08 12\r\ndrwxr-xr-x 2 mk mk 4096 4\u6708 2 05:42 .\r\ndrwxr-xr-x 4 mk mk 4096 4\u6708 2 05:06 ..\r\n-rw-r--r-- 1 mk mk 6 4\u6708 2 05:42 test.txt\r\n\n\n\u30d5\u30a1\u30a4\u30eb\u540d\u9577\u306e\u78ba\u8a8d\nEncFS\u306a\u3069\u306f\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u30e1\u30bf\u30c7\u30fc\u30bf\u304c\u30d5\u30a1\u30a4\u30eb\u540d\u5185\u306b\u3042\u308b\u306e\u3067\u5229\u7528\u3067\u304d\u308b\u30d5\u30a1\u30a4\u30eb\u540d\u9577\u304c\u77ed\u304f\u306a\u3063\u3066\u3057\u307e\u3046\uff0eext4\u3067\u306f\u3069\u3046\u304b\u8a66\u3059\uff0e\n\n\u901a\u5e38\u306eext4\u9818\u57df\u3067\u306f256\u6587\u5b57\n\n\n$ touch /mnt/1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456\r\ntouch: '/mnt/1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456' \u306b touch \u3067\u304d\u307e\u305b\u3093: \u30d5\u30a1\u30a4\u30eb\u540d\u304c\u9577\u3059\u304e\u307e\u3059\r\n$ touch /mnt/123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345\r\n\n\n\n\u6697\u53f7\u5316\u9818\u57df\u3082\u540c\u69d8\u3060\u3063\u305f\n\n\n$ touch /mnt/encryption/123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345\r\n$ ls -lA /mnt/encryption/\r\n\u5408\u8a08 4\r\n-rw-r--r-- 1 mk mk 0 4\u6708 2 07:14 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345\r\n-rw-r--r-- 1 mk mk 6 4\u6708 2 05:42 test.txt\r\n\n\n\n\u975e\u6697\u53f7\u5316\u72b6\u614b\u3067\u306f\u3053\u3093\u306a\u72b6\u614b\n\n\n-rw-r--r-- 1 mk mk 0 4\u6708 2 07:14 _OsoePJvc3qPQCPHbUMtjSynszcHig3BL\r\n-rw-r--r-- 1 mk mk 6 4\u6708 2 05:42 uzUlJZQfaxMx,7cC63,53A\r\n\n\n\u5fa9\u53f7\u72b6\u614b\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u306f\u5225\u306e\u5834\u6240\u306b\u8a18\u9332\u3055\u308c\u3066\u3044\u308b\u3088\u3046\uff0e\n\u8907\u6570\u306e\u6697\u53f7\u5316\u9818\u57df\u3092\u4f5c\u3063\u3066\u307f\u308b\n\n\u65b0\u3057\u3044\u6697\u53f7\u5316\u9818\u57df\u306e\u305f\u3081\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\n\n\n$ mkdir /mnt/encryption2\r\n$ ls -la /mnt/encryption2\r\n\u5408\u8a08 8\r\ndrwxr-xr-x 2 mk mk 4096 4\u6708 2 06:49 .\r\ndrwxr-xr-x 5 mk mk 4096 4\u6708 2 06:49 ..\r\n\n\n\n\u6697\u53f7\u5316\u8a2d\u5b9a\n\n\n$ sudo e4crypt add_key /mnt/encryption2\r\nEnter passphrase (echo disabled):\r\nKey with descriptor [9640dd016062b432] already exists\r\nKey with descriptor [9640dd016062b432] applied to /mnt/encryption2.\r\n$ keyctl show\r\nSession Keyring \r\n1048296028 --alswrv 1000 1000 keyring: _ses\r\n 94779002 --alsw-v 0 0 \\_ logon: ext4:69ca01e214957173\r\n 219437542 --alsw-v 0 0 \\_ logon: ext4:07a3ce5a6ebf0396\r\n1025344233 --alsw-v 0 0 \\_ logon: ext4:9640dd016062b432\r\n$ touch /mnt/encryption2/hoge\r\n\n\n\n\u4e00\u56de\u6697\u53f7\u5316\u3092\u89e3\u9664\u3057\u3066\u30de\u30a6\u30f3\u30c8\u3057\u76f4\u3059\n\n\n$ keyctl clear @s\r\n$ keyctl show\r\nSession Keyring \r\n1048296028 --alswrv 1000 1000 keyring: _ses\r\n$ sudo umount /mnt\r\n$ sudo mount -o loop ./ext4-crypt.img /mnt\r\n\n\n\n\u7247\u65b9\u3060\u3051\u9375\u3092\u767b\u9332\u3057\u3066\u6697\u53f7\u5316\u9818\u57df\u3092\u5229\u7528\n\n\n$ sudo e4crypt add_key /mnt/encryption2\r\nEnter passphrase (echo disabled):\r\nAdded key with descriptor [9640dd016062b432]\r\nKey with descriptor [9640dd016062b432] applied to /mnt/encryption2.\r\n$ ls -la /mnt/encryption*\r\n/mnt/encryption: \r\n\u5408\u8a08 12\r\ndrwxr-xr-x 2 mk mk 4096 4\u6708 2 06:11 .\r\ndrwxr-xr-x 5 mk mk 4096 4\u6708 2 06:49 ..\r\n-rw-r--r-- 1 mk mk 0 4\u6708 2 06:11 _OsoePJvc3qPQCPHbUMtjSynszcHig3BL\r\n-rw-r--r-- 1 mk mk 6 4\u6708 2 05:42 uzUlJZQfaxMx,7cC63,53A\r\n\r\n/mnt/encryption2: \r\n\u5408\u8a08 8\r\ndrwxr-xr-x 2 mk mk 4096 4\u6708 2 06:51 .\r\ndrwxr-xr-x 5 mk mk 4096 4\u6708 2 06:49 ..\r\n-rw-r--r-- 1 mk mk 0 4\u6708 2 06:51 hoge\r\n\n\n\u6697\u53f7\u5316\u9818\u57df\u306b\u9375\u304c\u767b\u9332\u3055\u308c\u3066\u306a\u3044\u72b6\u614b\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u3063\u3066\u307f\u308b\n\u6697\u53f7\u5316\u9818\u57df\u306b\u9375\u304c\u767b\u9332\u3055\u308c\u3066\u306a\u3044\u72b6\u614b\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308b\u3068\u3069\u3046\u306a\u308b\u304b\u3092\u78ba\u8a8d\uff0e\n\n$ ls -lA /mnt/encryption\r\n\u5408\u8a08 4\r\n-rw-r--r-- 1 mk mk 0 4\u6708 2 07:14 _OsoePJvc3qPQCPHbUMtjSynszcHig3BL\r\n-rw-r--r-- 1 mk mk 6 4\u6708 2 05:42 uzUlJZQfaxMx,7cC63,53A\r\nmk@x220:~ (1180)$ touch /mnt/encryption/test\r\ntouch: '/mnt/encryption/test' \u306e\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3092\u8a2d\u5b9a\u4e2d\u3067\u3059: \u305d\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3042\u308a\u307e\u305b\u3093\r\nmk@x220:~ (1181)$ ls -lA /mnt/encryption\r\n\u5408\u8a08 4\r\n-rw-r--r-- 1 mk mk 0 4\u6708 2 07:14 _OsoePJvc3qPQCPHbUMtjSynszcHig3BL\r\n-rw-r--r-- 1 mk mk 6 4\u6708 2 05:42 uzUlJZQfaxMx,7cC63,53A\r\n\n\n\u30a8\u30e9\u30fc\u3068\u306a\u3063\u3066\u4f5c\u308c\u306a\u3044\uff0e\n\u5225\u306e\u30e6\u30fc\u30b6\u3067\u5229\u7528\n\n\u5225\u306e\u30e6\u30fc\u30b6\u3067\u4e2d\u304c\u898b\u3048\u308b\u304b\u78ba\u8a8d\n\n\n$ id\r\nuid=1001(gm) gid=1001(gm) groups=1001(gm),20(dialout),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),107(netdev)\r\n$ ls -la /mnt/encryption\r\n\u5408\u8a08 12\r\ndrwxr-xr-x 2 mk mk 4096 4\u6708 2 06:11 .\r\ndrwxr-xr-x 7 mk mk 4096 4\u6708 2 07:48 ..\r\n-rw-r--r-- 1 mk mk 0 4\u6708 2 07:14 _OsoePJvc3qPQCPHbUMtjSynszcHig3BL\r\n-rw-r--r-- 1 mk mk 6 4\u6708 2 05:42 uzUlJZQfaxMx,7cC63,53A\r\n$ ls -la /mnt/encryption\r\n\u5408\u8a08 12\r\ndrwxrwxrwx 2 mk mk 4096 4\u6708 2 06:11 .\r\ndrwxr-xr-x 7 mk mk 4096 4\u6708 2 07:48 ..\r\n-rw-r--r-- 1 mk mk 0 4\u6708 2 07:14 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345\r\n-rw-r--r-- 1 mk mk 6 4\u6708 2 05:42 test.txt\r\n\n\n\n\u6a29\u9650\u304c\u3042\u308c\u3070\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u3082\u3067\u304d\u308b\n\n\n$ touch /mnt/encryption/other_user\r\n$ ls -lA /mnt/encryption\r\n\u5408\u8a08 4\r\n-rw-r--r-- 1 mk mk 0 4\u6708 2 07:14 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345\r\n-rw-r--r-- 1 gm gm 0 4\u6708 2 07:55 other_user\r\n-rw-r--r-- 1 mk mk 6 4\u6708 2 05:42 test.txt\r\n\n\n\n\u6697\u53f7\u5316\u89e3\u9664\u306f\u51fa\u6765\u306a\u3044\u3068\u601d\u3063\u305f\u304c\uff0c\n\n\n$ /usr/sbin/e4crypt add_key /mnt/encryption\r\n/mnt/encryption: Permission denied\r\n\n\n\n\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u3086\u308b\u304f\u3057\u3066\u3084\u308b\u3068\u51fa\u6765\u3066\u3057\u307e\u3046\uff0e\n\n\n$ ls -la /mnt/encryption\r\n\u5408\u8a08 12\r\ndrwxrwxrwx 2 mk mk 4096 4\u6708 2 07:55 .\r\ndrwxr-xr-x 7 mk mk 4096 4\u6708 2 07:48 ..\r\n-rw-r--r-- 1 gm gm 0 4\u6708 2 07:55 97NmIBETx,1q9US96etRsA\r\n-rw-r--r-- 1 mk mk 0 4\u6708 2 07:14 _OsoePJvc3qPQCPHbUMtjSynszcHig3BL\r\n-rw-r--r-- 1 mk mk 6 4\u6708 2 05:42 uzUlJZQfaxMx,7cC63,53A\r\n$ /usr/sbin/e4crypt add_key /mnt/encryption\r\nEnter passphrase (echo disabled): \r\nAdded key with descriptor [07a3ce5a6ebf0396]\r\nError [Permission denied] setting policy.\r\nThe key descriptor [07a3ce5a6ebf0396] may not match the existing encryption context for directory [/mnt/encryption].\r\n$ ls -lA /mnt/encryption\r\n\u5408\u8a08 4\r\n-rw-r--r-- 1 mk mk 0 4\u6708 2 07:14 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345\r\n-rw-r--r-- 1 gm gm 0 4\u6708 2 07:55 other_user\r\n-rw-r--r-- 1 mk mk 6 4\u6708 2 05:42 test.txt", "date_published": "2017-04-02T08:20:44+09:00", "date_modified": "2017-04-02T08:47:16+09:00", "authors": [ { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" } ], "author": { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" }, "tags": [ "Debian", "Debian sid", "encryption", "encryption file system", "ext4", "Linux", "sid" ] }, { "id": "http://matoken.org/blog/?p=1576", "url": "https://matoken.org/blog/2017/03/29/write-debian-iso-image-to-usb-memory/", "title": "Debian\u306eiso\u30a4\u30e1\u30fc\u30b8\u3092USB\u30e1\u30e2\u30ea\u306b\u66f8\u304d\u8fbc\u307f", "content_html": "

gist\u306b\u8cbc\u3063\u3066\u305f\u3082\u306e\u3060\u3051\u3069\u305b\u3063\u304b\u304f\u306a\u306e\u3067\u3053\u3061\u3089\u306b\u3082\uff0e

\n

\u30d5\u30a1\u30a4\u30eb\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9

\n

\u4eca\u56de\u306fDebian stretch Debian Installer rc2\u306ei386\u7248\u306enetinst\uff0e

\n\n
\n
$ wget http://cdimage.debian.org/cdimage/stretch_di_rc2/i386/iso-cd/debian-stretch-DI-rc2-i386-netinst.iso http://cdimage.debian.org/cdimage/stretch_di_rc2/i386/iso-cd/SHA512SUMS.sign http://cdimage.debian.org/cdimage/stretch_di_rc2/i386/iso-cd/SHA512SUMS\r\n
\n
\n
\n

\u203bi386/amd64\u3092\u3088\u304f\u4f7f\u3046\u5834\u5408\u306fmulti-arch\u3092\u4f7f\u3046\u30681\u3064\u306eUSB\u30e1\u30e2\u30ea\u3067i386/amd64\u304c\u5229\u7528\u3067\u304d\u3066\u4fbf\u5229

\n
\n

\u30c1\u30a7\u30c3\u30af\u30b5\u30e0\u30d5\u30a1\u30a4\u30eb\u306e\u7f72\u540d\u78ba\u8a8d

\n

\u30c1\u30a7\u30c3\u30af\u30b5\u30e0\u30d5\u30a1\u30a4\u30eb\u306eSHA512SUMS\u304c\u6b63\u5e38\u306a\u3082\u306e\u304b\u78ba\u8a8d

\n
\n
$ gpg --verify SHA512SUMS.sign\r\ngpg: \u7f72\u540d\u3055\u308c\u305f\u30c7\u30fc\u30bf\u304c'SHA512SUMS'\u306b\u3042\u308b\u3068\u60f3\u5b9a\u3057\u307e\u3059\r\ngpg: 2017\u5e7402\u670802\u65e5 07\u664245\u520630\u79d2 JST\u306b\u65bd\u3055\u308c\u305f\u7f72\u540d\r\ngpg:                RSA\u9375DA87E80D6294BE9B\u3092\u4f7f\u7528\r\ngpg: "Debian CD signing key <debian-cd@lists.debian.org>"\u304b\u3089\u306e\u6b63\u3057\u3044\u7f72\u540d [\u4e0d\u660e\u306e]\r\ngpg: *\u8b66\u544a*: \u3053\u306e\u9375\u306f\u4fe1\u7528\u3067\u304d\u308b\u7f72\u540d\u3067\u8a3c\u660e\u3055\u308c\u3066\u3044\u307e\u305b\u3093!\r\ngpg:       \u3053\u306e\u7f72\u540d\u304c\u6240\u6709\u8005\u306e\u3082\u306e\u304b\u3069\u3046\u304b\u306e\u691c\u8a3c\u624b\u6bb5\u304c\u3042\u308a\u307e\u305b\u3093\u3002\r\n \u4e3b\u9375\u30d5\u30a3\u30f3\u30ac\u30fc\u30d7\u30ea\u30f3\u30c8: DF9B 9C49 EAA9 2984 3258  9D76 DA87 E80D 6294 BE9B\r\n
\n
\n

\u203b\u516c\u958b\u9375\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093(public key not found)\u3068\u3044\u3046\u30a8\u30e9\u30fc\u306e\u5834\u5408\u306fgpg --keyserver keyring.debian.org --recv-keys DA87E80D6294BE9B\u3067\u9375\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3066\u518d\u5ea6\u78ba\u8a8d\uff0e\u9375\u306eID\u3084\u30d5\u30a3\u30f3\u30ac\u30fc\u30d7\u30ea\u30f3\u30c8\u306f\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3067\u3082\u78ba\u8a8d\u3067\u304d\u308b

\n\n

\u30cf\u30c3\u30b7\u30e5\u78ba\u8a8d

\n

iso\u30d5\u30a1\u30a4\u30eb\u304c\u6b63\u3057\u304f\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d
\n\u4ee5\u4e0b\u306e\u4f8b\u306fdebian-stretch-DI-rc2-i386-netinst.iso\u3057\u304b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u305d\u308c\u4ee5\u5916\u306e\u30a8\u30e9\u30fc\u3084\u8b66\u544a\u306f\u7121\u8996\u3059\u308b

\n
\n
$ sha512sum -c SHA512SUMS\r\nsha512sum: debian-mac-stretch-DI-rc2-i386-netinst.iso: \u305d\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3042\u308a\u307e\u305b\u3093\r\ndebian-mac-stretch-DI-rc2-i386-netinst.iso: FAILED open or read\r\ndebian-stretch-DI-rc2-i386-netinst.iso: \u5b8c\u4e86\r\nsha512sum: debian-stretch-DI-rc2-i386-xfce-CD-1.iso: \u305d\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3042\u308a\u307e\u305b\u3093\r\ndebian-stretch-DI-rc2-i386-xfce-CD-1.iso: FAILED open or read\r\nsha512sum: \u8b66\u544a: \u4e00\u89a7\u306b\u3042\u308b 2 \u500b\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u8aad\u307f\u8fbc\u3081\u307e\u305b\u3093\u3067\u3057\u305f\r\n
\n
\n

usb\u30e1\u30e2\u30ea\u3078\u306e\u66f8\u304d\u8fbc\u307f

\n

USB\u30e1\u30e2\u30ea\u306e\u78ba\u8a8d

\n

\u66f8\u304d\u8fbc\u307f\u5148\u306e\u30c7\u30d0\u30a4\u30b9\u304c\u6b63\u3057\u3044\u304b\u78ba\u8a8d\u3059\u308b
\nUSB\u30e1\u30e2\u30ea\u63a5\u7d9a\u76f4\u5f8c\u306bdmesg\u3092\u78ba\u8a8d\u3057\u305f\u308afdisk\u30b3\u30de\u30f3\u30c9\u3084\u30de\u30a6\u30f3\u30c8\u3057\u3066\u4e2d\u3092\u78ba\u8a8d\u3057\u305f\u308a\u2026\u2026

\n
\n
$ dmesg\r\n  :\r\n[414356.444121] usb 1-1.2: New USB device found, idVendor=13fe, idProduct=1a00\r\n[414356.444128] usb 1-1.2: New USB device strings: Mfr=0, Product=11, SerialNumber=0\r\n[414356.444131] usb 1-1.2: Product: USB 2.0 HUB\r\n[414362.925178] usb-storage 1-1.2.1:1.0: USB Mass Storage device detected\r\n[414362.925967] scsi host6: usb-storage 1-1.2.1:1.0\r\n[414364.184209] sd 6:0:0:1: [sdb] 980480 512-byte logical blocks: (502 MB/479 MiB)\r\n[414364.187102] sd 6:0:0:1: [sdb] Write Protect is off\r\n[414364.187106] sd 6:0:0:1: [sdb] Mode Sense: 23 00 00 00\r\n[414364.190339] sd 6:0:0:1: [sdb] No Caching mode page found\r\n[414364.190345] sd 6:0:0:1: [sdb] Assuming drive cache: write through\r\n[414364.201730]  sdb: sdb1\r\n[414364.201734] sdb: p1 size 982496 extends beyond EOD, enabling native capacity\r\n[414364.214471]  sdb: sdb1\r\n[414364.214475] sdb: p1 size 982496 extends beyond EOD, truncated\r\n[414364.228961] sd 6:0:0:1: [sdb] Attached SCSI removable disk\r\n$ sudo fdisk -l /dev/sdb\r\nDisk /dev/sdb: 478.8 MiB, 502005760 bytes, 980480 sectors\r\nUnits: sectors of 1 * 512 = 512 bytes\r\nSector size (logical/physical): 512 bytes / 512 bytes\r\nI/O size (minimum/optimal): 512 bytes / 512 bytes\r\nDisklabel type: dos\r\nDisk identifier: 0x00000000\r\n\r\nDevice     Boot Start    End Sectors   Size Id Type\r\n/dev/sdb1  *       32 982527  982496 479.8M  6 FAT16\r\n
\n
\n

USB\u30e1\u30e2\u30ea\u306e\u30a2\u30f3\u30de\u30a6\u30f3\u30c8

\n

USB\u30e1\u30e2\u30ea\u3092\u30de\u30a6\u30f3\u30c8\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u30a2\u30f3\u30de\u30a6\u30f3\u30c8\u3057\u3066\u304a\u304f

\n
\n
$ sudo umount /dev/sdb1\r\n$ mount | grep /dev/sdb\r\n
\n
\n

\u30d1\u30fc\u30c6\u30a4\u30b7\u30e7\u30f3\u60c5\u5831\u306e\u524a\u9664

\n

\u5ff5\u306e\u70ba\u30d1\u30fc\u30c6\u30a4\u30b7\u30e7\u30f3\u60c5\u5831\u3092\u524a\u9664\u3057\u3066\u304a\u304f

\n
\n
$ sudo wipefs /dev/sdb\r\noffset               type\r\n----------------------------------------------------------------\r\n0x1fe                dos   [partition table]\r\n\r\n$ sudo wipefs -a /dev/sdb ; sync\r\n/dev/sdb: 2 bytes were erased at offset 0x000001fe (dos): 55 aa\r\n/dev/sdb: calling ioctl to re-read partition table: \u6210\u529f\u3067\u3059\r\n
\n
\n

\u66f8\u304d\u8fbc\u307f

\n

\u9032\u6357\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u306fpv\u30b3\u30de\u30f3\u30c9\u3092\u9593\u306b\u631f\u3093\u3060\u308a\uff0cddrescue / ddrescue\u306a\u3069\u304c\u5229\u7528\u3067\u304d\u308b

\n\n
\n
$ sudo dd if=./debian-stretch-DI-rc2-i386-netinst.iso of=/dev/sdb bs=4M ; sync\r\n95+1 \u30ec\u30b3\u30fc\u30c9\u5165\u529b\r\n95+1 \u30ec\u30b3\u30fc\u30c9\u51fa\u529b\r\n401604608 bytes (402 MB, 383 MiB) copied, 176.874 s, 2.3 MB/s\r\n
\n
\n

\u66f8\u304d\u8fbc\u307f\u304c\u7d42\u308f\u3063\u305f\u3089USB\u30e1\u30e2\u30ea\u3092\u53d6\u308a\u5916\u3057\u3066\u30bf\u30fc\u30b2\u30c3\u30c8\u30de\u30b7\u30f3\u3067\u5229\u7528\u3059\u308b

\n

VirtualBox\u3067\u8d77\u52d5\u78ba\u8a8d(\u4f59\u9332)

\n

\u624b\u8efd\u306b\u8a66\u305b\u308b\u30de\u30b7\u30f3\u304c\u306a\u304b\u3063\u305f\u306e\u3067VirtualBox\u304b\u3089USB\u30e1\u30e2\u30ea\u3092\u8d77\u52d5\u3057\u3066\u78ba\u8a8d\u3057\u305f

\n

USB\u30e1\u30e2\u30ea\u306e\u30c7\u30a3\u30b9\u30af\u30a4\u30e1\u30fc\u30b8\u4f5c\u6210

\n

\u76f4\u306bUSB\u30e1\u30e2\u30ea\u3092\u6307\u5b9a\u3067\u304d\u306a\u3044\u306e\u3067USB\u30e1\u30e2\u30ea\u3078\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306evmdk\u30a4\u30e1\u30fc\u30b8\u3092\u4f5c\u6210

\n
\n
$ sudo VBoxManage internalcommands createrawvmdk -rawdisk /dev/sdb -filename sdb.vmdk \r\nRAW host disk access VMDK file sdb.vmdk created successfully.\r\n$ sudo cat sdb.vmdk\r\n# Disk DescriptorFile\r\nversion=1\r\nCID=1722e641\r\nparentCID=ffffffff\r\ncreateType="fullDevice"\r\n\r\n# Extent description\r\nRW 980480 FLAT "/dev/sdb" 0\r\n\r\n# The disk Data Base \r\n#DDB\r\n\r\nddb.virtualHWVersion = "4"\r\nddb.adapterType="ide"\r\nddb.geometry.cylinders="972"\r\nddb.geometry.heads="16"\r\nddb.geometry.sectors="63"\r\nddb.uuid.image="c2c9d560-049f-4c44-bf8a-0b85e820ba12"\r\nddb.uuid.parent="00000000-0000-0000-0000-000000000000"\r\nddb.uuid.modification="00000000-0000-0000-0000-000000000000"\r\nddb.uuid.parentmodification="00000000-0000-0000-0000-000000000000"\r\n
\n
\n

USB\u30e1\u30e2\u30ea\u306b\u30a2\u30af\u30bb\u30b9\u6a29\u306e\u3042\u308b\u30e6\u30fc\u30b6\u3067VirtualBox\u3092\u8d77\u52d5\u3057\u3066USB\u30e1\u30e2\u30ea\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u6307\u5b9a\u3057\u3066\u8d77\u52d5

\n

\uff08\u3053\u3053\u3044\u307e\u3044\u3061\u2026\u2026\uff09

\n
\n
$ gksudo virtualbox\r\n
\n
\n

\"\"

\n
\n\n
\n", "content_text": "gist\u306b\u8cbc\u3063\u3066\u305f\u3082\u306e\u3060\u3051\u3069\u305b\u3063\u304b\u304f\u306a\u306e\u3067\u3053\u3061\u3089\u306b\u3082\uff0e\n\u30d5\u30a1\u30a4\u30eb\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\n\u4eca\u56de\u306fDebian stretch Debian Installer rc2\u306ei386\u7248\u306enetinst\uff0e\n\ndebian-stretch-DI-rc2-i386-netinst.iso : \u30a4\u30e1\u30fc\u30b8\u672c\u4f53\nSHA512SUMS : iso\u30d5\u30a1\u30a4\u30eb\u306e\u30c1\u30a7\u30c3\u30af\u30b5\u30e0\u30d5\u30a1\u30a4\u30eb\nSHA512SUMS.sign : SHA512SUMS\u306e\u7f72\u540d\u30d5\u30a1\u30a4\u30eb\n\n\n$ wget http://cdimage.debian.org/cdimage/stretch_di_rc2/i386/iso-cd/debian-stretch-DI-rc2-i386-netinst.iso http://cdimage.debian.org/cdimage/stretch_di_rc2/i386/iso-cd/SHA512SUMS.sign http://cdimage.debian.org/cdimage/stretch_di_rc2/i386/iso-cd/SHA512SUMS\r\n\n\n\n\u203bi386/amd64\u3092\u3088\u304f\u4f7f\u3046\u5834\u5408\u306fmulti-arch\u3092\u4f7f\u3046\u30681\u3064\u306eUSB\u30e1\u30e2\u30ea\u3067i386/amd64\u304c\u5229\u7528\u3067\u304d\u3066\u4fbf\u5229\n\n\u30c1\u30a7\u30c3\u30af\u30b5\u30e0\u30d5\u30a1\u30a4\u30eb\u306e\u7f72\u540d\u78ba\u8a8d\n\u30c1\u30a7\u30c3\u30af\u30b5\u30e0\u30d5\u30a1\u30a4\u30eb\u306eSHA512SUMS\u304c\u6b63\u5e38\u306a\u3082\u306e\u304b\u78ba\u8a8d\n\n$ gpg --verify SHA512SUMS.sign\r\ngpg: \u7f72\u540d\u3055\u308c\u305f\u30c7\u30fc\u30bf\u304c'SHA512SUMS'\u306b\u3042\u308b\u3068\u60f3\u5b9a\u3057\u307e\u3059\r\ngpg: 2017\u5e7402\u670802\u65e5 07\u664245\u520630\u79d2 JST\u306b\u65bd\u3055\u308c\u305f\u7f72\u540d\r\ngpg: RSA\u9375DA87E80D6294BE9B\u3092\u4f7f\u7528\r\ngpg: "Debian CD signing key <debian-cd@lists.debian.org>"\u304b\u3089\u306e\u6b63\u3057\u3044\u7f72\u540d [\u4e0d\u660e\u306e]\r\ngpg: *\u8b66\u544a*: \u3053\u306e\u9375\u306f\u4fe1\u7528\u3067\u304d\u308b\u7f72\u540d\u3067\u8a3c\u660e\u3055\u308c\u3066\u3044\u307e\u305b\u3093!\r\ngpg: \u3053\u306e\u7f72\u540d\u304c\u6240\u6709\u8005\u306e\u3082\u306e\u304b\u3069\u3046\u304b\u306e\u691c\u8a3c\u624b\u6bb5\u304c\u3042\u308a\u307e\u305b\u3093\u3002\r\n \u4e3b\u9375\u30d5\u30a3\u30f3\u30ac\u30fc\u30d7\u30ea\u30f3\u30c8: DF9B 9C49 EAA9 2984 3258 9D76 DA87 E80D 6294 BE9B\r\n\n\n\u203b\u516c\u958b\u9375\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093(public key not found)\u3068\u3044\u3046\u30a8\u30e9\u30fc\u306e\u5834\u5408\u306fgpg --keyserver keyring.debian.org --recv-keys DA87E80D6294BE9B\u3067\u9375\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3066\u518d\u5ea6\u78ba\u8a8d\uff0e\u9375\u306eID\u3084\u30d5\u30a3\u30f3\u30ac\u30fc\u30d7\u30ea\u30f3\u30c8\u306f\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3067\u3082\u78ba\u8a8d\u3067\u304d\u308b\n\nDebian CD \u306e\u4fe1\u983c\u6027\u306e\u691c\u8a3c\n\n\u30cf\u30c3\u30b7\u30e5\u78ba\u8a8d\niso\u30d5\u30a1\u30a4\u30eb\u304c\u6b63\u3057\u304f\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\n\u4ee5\u4e0b\u306e\u4f8b\u306fdebian-stretch-DI-rc2-i386-netinst.iso\u3057\u304b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u305d\u308c\u4ee5\u5916\u306e\u30a8\u30e9\u30fc\u3084\u8b66\u544a\u306f\u7121\u8996\u3059\u308b\n\n$ sha512sum -c SHA512SUMS\r\nsha512sum: debian-mac-stretch-DI-rc2-i386-netinst.iso: \u305d\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3042\u308a\u307e\u305b\u3093\r\ndebian-mac-stretch-DI-rc2-i386-netinst.iso: FAILED open or read\r\ndebian-stretch-DI-rc2-i386-netinst.iso: \u5b8c\u4e86\r\nsha512sum: debian-stretch-DI-rc2-i386-xfce-CD-1.iso: \u305d\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3042\u308a\u307e\u305b\u3093\r\ndebian-stretch-DI-rc2-i386-xfce-CD-1.iso: FAILED open or read\r\nsha512sum: \u8b66\u544a: \u4e00\u89a7\u306b\u3042\u308b 2 \u500b\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u8aad\u307f\u8fbc\u3081\u307e\u305b\u3093\u3067\u3057\u305f\r\n\n\nusb\u30e1\u30e2\u30ea\u3078\u306e\u66f8\u304d\u8fbc\u307f\nUSB\u30e1\u30e2\u30ea\u306e\u78ba\u8a8d\n\u66f8\u304d\u8fbc\u307f\u5148\u306e\u30c7\u30d0\u30a4\u30b9\u304c\u6b63\u3057\u3044\u304b\u78ba\u8a8d\u3059\u308b\nUSB\u30e1\u30e2\u30ea\u63a5\u7d9a\u76f4\u5f8c\u306bdmesg\u3092\u78ba\u8a8d\u3057\u305f\u308afdisk\u30b3\u30de\u30f3\u30c9\u3084\u30de\u30a6\u30f3\u30c8\u3057\u3066\u4e2d\u3092\u78ba\u8a8d\u3057\u305f\u308a\u2026\u2026\n\n$ dmesg\r\n :\r\n[414356.444121] usb 1-1.2: New USB device found, idVendor=13fe, idProduct=1a00\r\n[414356.444128] usb 1-1.2: New USB device strings: Mfr=0, Product=11, SerialNumber=0\r\n[414356.444131] usb 1-1.2: Product: USB 2.0 HUB\r\n[414362.925178] usb-storage 1-1.2.1:1.0: USB Mass Storage device detected\r\n[414362.925967] scsi host6: usb-storage 1-1.2.1:1.0\r\n[414364.184209] sd 6:0:0:1: [sdb] 980480 512-byte logical blocks: (502 MB/479 MiB)\r\n[414364.187102] sd 6:0:0:1: [sdb] Write Protect is off\r\n[414364.187106] sd 6:0:0:1: [sdb] Mode Sense: 23 00 00 00\r\n[414364.190339] sd 6:0:0:1: [sdb] No Caching mode page found\r\n[414364.190345] sd 6:0:0:1: [sdb] Assuming drive cache: write through\r\n[414364.201730] sdb: sdb1\r\n[414364.201734] sdb: p1 size 982496 extends beyond EOD, enabling native capacity\r\n[414364.214471] sdb: sdb1\r\n[414364.214475] sdb: p1 size 982496 extends beyond EOD, truncated\r\n[414364.228961] sd 6:0:0:1: [sdb] Attached SCSI removable disk\r\n$ sudo fdisk -l /dev/sdb\r\nDisk /dev/sdb: 478.8 MiB, 502005760 bytes, 980480 sectors\r\nUnits: sectors of 1 * 512 = 512 bytes\r\nSector size (logical/physical): 512 bytes / 512 bytes\r\nI/O size (minimum/optimal): 512 bytes / 512 bytes\r\nDisklabel type: dos\r\nDisk identifier: 0x00000000\r\n\r\nDevice Boot Start End Sectors Size Id Type\r\n/dev/sdb1 * 32 982527 982496 479.8M 6 FAT16\r\n\n\nUSB\u30e1\u30e2\u30ea\u306e\u30a2\u30f3\u30de\u30a6\u30f3\u30c8\nUSB\u30e1\u30e2\u30ea\u3092\u30de\u30a6\u30f3\u30c8\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u30a2\u30f3\u30de\u30a6\u30f3\u30c8\u3057\u3066\u304a\u304f\n\n$ sudo umount /dev/sdb1\r\n$ mount | grep /dev/sdb\r\n\n\n\u30d1\u30fc\u30c6\u30a4\u30b7\u30e7\u30f3\u60c5\u5831\u306e\u524a\u9664\n\u5ff5\u306e\u70ba\u30d1\u30fc\u30c6\u30a4\u30b7\u30e7\u30f3\u60c5\u5831\u3092\u524a\u9664\u3057\u3066\u304a\u304f\n\n$ sudo wipefs /dev/sdb\r\noffset type\r\n----------------------------------------------------------------\r\n0x1fe dos [partition table]\r\n\r\n$ sudo wipefs -a /dev/sdb ; sync\r\n/dev/sdb: 2 bytes were erased at offset 0x000001fe (dos): 55 aa\r\n/dev/sdb: calling ioctl to re-read partition table: \u6210\u529f\u3067\u3059\r\n\n\n\u66f8\u304d\u8fbc\u307f\n\u9032\u6357\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u306fpv\u30b3\u30de\u30f3\u30c9\u3092\u9593\u306b\u631f\u3093\u3060\u308a\uff0cddrescue / ddrescue\u306a\u3069\u304c\u5229\u7528\u3067\u304d\u308b\n\nLinux \u74b0\u5883\u3067\u306e Raspberry Pi \u5411\u3051 OS \u66f8\u304d\u8fbc\u307fTips | matoken’s meme\n\n\n$ sudo dd if=./debian-stretch-DI-rc2-i386-netinst.iso of=/dev/sdb bs=4M ; sync\r\n95+1 \u30ec\u30b3\u30fc\u30c9\u5165\u529b\r\n95+1 \u30ec\u30b3\u30fc\u30c9\u51fa\u529b\r\n401604608 bytes (402 MB, 383 MiB) copied, 176.874 s, 2.3 MB/s\r\n\n\n\u66f8\u304d\u8fbc\u307f\u304c\u7d42\u308f\u3063\u305f\u3089USB\u30e1\u30e2\u30ea\u3092\u53d6\u308a\u5916\u3057\u3066\u30bf\u30fc\u30b2\u30c3\u30c8\u30de\u30b7\u30f3\u3067\u5229\u7528\u3059\u308b\nVirtualBox\u3067\u8d77\u52d5\u78ba\u8a8d(\u4f59\u9332)\n\u624b\u8efd\u306b\u8a66\u305b\u308b\u30de\u30b7\u30f3\u304c\u306a\u304b\u3063\u305f\u306e\u3067VirtualBox\u304b\u3089USB\u30e1\u30e2\u30ea\u3092\u8d77\u52d5\u3057\u3066\u78ba\u8a8d\u3057\u305f\nUSB\u30e1\u30e2\u30ea\u306e\u30c7\u30a3\u30b9\u30af\u30a4\u30e1\u30fc\u30b8\u4f5c\u6210\n\u76f4\u306bUSB\u30e1\u30e2\u30ea\u3092\u6307\u5b9a\u3067\u304d\u306a\u3044\u306e\u3067USB\u30e1\u30e2\u30ea\u3078\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306evmdk\u30a4\u30e1\u30fc\u30b8\u3092\u4f5c\u6210\n\n$ sudo VBoxManage internalcommands createrawvmdk -rawdisk /dev/sdb -filename sdb.vmdk \r\nRAW host disk access VMDK file sdb.vmdk created successfully.\r\n$ sudo cat sdb.vmdk\r\n# Disk DescriptorFile\r\nversion=1\r\nCID=1722e641\r\nparentCID=ffffffff\r\ncreateType="fullDevice"\r\n\r\n# Extent description\r\nRW 980480 FLAT "/dev/sdb" 0\r\n\r\n# The disk Data Base \r\n#DDB\r\n\r\nddb.virtualHWVersion = "4"\r\nddb.adapterType="ide"\r\nddb.geometry.cylinders="972"\r\nddb.geometry.heads="16"\r\nddb.geometry.sectors="63"\r\nddb.uuid.image="c2c9d560-049f-4c44-bf8a-0b85e820ba12"\r\nddb.uuid.parent="00000000-0000-0000-0000-000000000000"\r\nddb.uuid.modification="00000000-0000-0000-0000-000000000000"\r\nddb.uuid.parentmodification="00000000-0000-0000-0000-000000000000"\r\n\n\nUSB\u30e1\u30e2\u30ea\u306b\u30a2\u30af\u30bb\u30b9\u6a29\u306e\u3042\u308b\u30e6\u30fc\u30b6\u3067VirtualBox\u3092\u8d77\u52d5\u3057\u3066USB\u30e1\u30e2\u30ea\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u6307\u5b9a\u3057\u3066\u8d77\u52d5\n\uff08\u3053\u3053\u3044\u307e\u3044\u3061\u2026\u2026\uff09\n\n$ gksudo virtualbox", "date_published": "2017-03-29T18:08:17+09:00", "date_modified": "2017-03-29T18:08:17+09:00", "authors": [ { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" } ], "author": { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" }, "tags": [ "Debian", "stretch", "usb memory", "VirtualBox", "Linux", "testing" ] }, { "id": "http://matoken.org/blog/?p=1544", "url": "https://matoken.org/blog/2017/03/01/try-mikutter-google-photos-uploader/", "title": "mikutter\u304b\u3089GooglePhotos\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3084\u3064\u3092\u8a66\u3059", "content_html": "
\n

\u3068\u3044\u3046\u308f\u3051\u3067\u3001mikutter\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u304d\u305f\u3002 https://t.co/6hP23pBziO

\n

— \u30b9\u30e9\u30de\u30a4\u30de\u30e9\u30b9 (@slimymars) 2017\u5e742\u670825\u65e5

\n

\n\n

Google Photos\u3063\u3066\u3053\u3068\u306f\u5bb9\u91cf\u6c17\u306b\u305b\u305a\u753b\u50cf\u6295\u3052\u3089\u308c\u308b & Google+\u3068\u306e\u9023\u643a\u3082\u3067\u304d\u305d\u3046?\u3063\u3066\u3053\u3068\u3067\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e

\n

\uff03mikutter\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u3092\uff0e

\n\n

\u95a2\u9023\u30d1\u30c3\u30b1\u30fc\u30b8\u5c0e\u5165

\n
\n
$ sudo apt install ruby-oauth2\r\n
\n
\n

mikutter-google-photos-uploader plugin\u5c0e\u5165

\n
\n
$ cd ~/.mikutter/plugin\r\n$ git clone https://github.com/slimymars/mikutter-google-photos-uploader\r\n$ cd mikutter-google-photos-uploader\r\n$ bundle install\r\n
\n
\n

mikutter\u8d77\u52d5

\n

\u2026\u2026\u8a8d\u8b58\u3055\u308c\u306a\u3044\uff0emikutter\u304c\u53e4\u3044\u6240\u70ba\u306e\u3088\u3046\u3067\u3059\uff0e

\n
\n
$ grep mikutter: ~/.mikutter/plugin/mikutter-google-photos-uploader/.mikutter.yml \r\n  mikutter: 3.5.2\r\n$ dpkg-query -W mikutter\r\nmikutter        3.5.0+dfsg-1\r\n
\n
\n

Debian\u3067\u306fjessie-backports\u304b\u3089sid\u307e\u30673.5.0+dfsg-1\u3067experimental\u3060\u30513.5.2+dfsg-1\u3067\u3057\u305f\uff0e

\n\n

\u3066\u3053\u3068\u3067\uff0cexperimental\u304b\u3089\u501f\u308a\u3066\u304d\u307e\u3059\uff0e

\n

sources.list\u306bexperimental\u304c\u3042\u308b\u72b6\u614b\u3067

\n
\n
$ grep experimental /etc/apt/sources.list\r\ndeb http://dennou-q.gfd-dennou.org/debian/ experimental main non-free contrib\r\ndeb-src http://dennou-q.gfd-dennou.org/debian/ experimental main non-free contrib\r\n
\n
\n

/etc/apt/preferences.d/mikutter\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u7528\u610f\u3057\u3066\uff0c

\n
\n
$ cat /etc/apt/preferences.d/mikutter\r\nPackage: mikutter\r\nPin: release a=experimental\r\nPin-Priority: 800\r\n
\n
\n

\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u66f4\u65b0\u3057\u3066\u5c0e\u5165\uff0e

\n
\n
$ sudo apt upgrade\r\n
\n
\n

mikutter\u3067\u306e\u8a2d\u5b9a

\n

mikutter\u304c3.5.2\u306b\u306a\u3063\u305f\u306e\u3067\u8a8d\u8b58\u3057\u307e\u3057\u305f\uff0e\u8a2d\u5b9a\u753b\u9762\u3092\u898b\u308b\u3068\uff0cGooglePhotos\u3068\u3044\u3046\u30bf\u30d6\u304c\u5897\u3048\u3066\u3044\u308b\u306e\u3067\u305d\u306e\u30bf\u30d6\u306eAuthrise code \u53d6\u5f97URL\u3092\u30d6\u30e9\u30a6\u30b6\u3067\u958b\u3044\u3066\u8a8d\u8a3c\u3057\uff0c\u51fa\u3066\u304d\u305f\u30b3\u30fc\u30c9\u3092Authrization_code\u306b\u8cbc\u308a\u4ed8\u3051\u307e\u3059\uff0e
\n\u66f4\u306bmikutter\u304b\u3089\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u4fdd\u5b58\u5148\u306e\u30a2\u30eb\u30d0\u30e0\u3092\u8ffd\u52a0\u3057\u3066\u304a\u304d\u307e\u3059\uff0eGooglePhotos\u306b\u5b58\u5728\u3057\u306a\u3044\u30a2\u30eb\u30d0\u30e0\u306f\u524d\u3082\u3063\u3066

\n\n

\u304b\u3089\u767b\u9332\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\uff0e\u30a2\u30eb\u30d0\u30e0\u306f\u8907\u6570\u767b\u9332\u3067\u304d\u308b\u306e\u3067\u4f8b\u3048\u3070

\n\n

\u306e\u3088\u3046\u306b\u30a2\u30eb\u30d0\u30e0\u3092\u767b\u9332\u3057\u3066\u304a\u304f\u3068\u753b\u50cf\u6574\u7406\u304c\u306f\u304b\u3069\u308a\u307e\u3059?

\n

\"20170228_19:02:23-16584\"/

\n

\u5b9f\u969b\u306e\u753b\u50cf\u4fdd\u5b58\u65b9\u6cd5\u306f\uff0cmikutter\u306e\u4fdd\u5b58\u3057\u305f\u3044\u753b\u50cf\u306e\u4e0a\u3067\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3066Google Photos\u306b\u753b\u50cf\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3092\u9078\u3073\uff0c

\n

\"shutter_17-03-01_08:33:12_001\"/

\n

\u305d\u306e\u5f8c\u8868\u793a\u3055\u308c\u308b\u30a2\u30eb\u30d0\u30e0\u3092\u9078\u629e\u3059\u308b\u3060\u3051\u3067\u3059\uff0e

\n

\"menu_018\"/

\n

Google Photos\u306b\u898b\u306b\u884c\u304f\u3068\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\uff0e

\n\n

Google+\u3078\u306e\u30af\u30ed\u30b9\u30dd\u30b9\u30c8\u306b\u3082\u4f7f\u3048\u308b\u304b\u306a\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u304c\uff0cGoogle+\u306e\u6295\u7a3f\u753b\u9762\u306f\u30bf\u30a4\u30e0\u30e9\u30b0\u304c\u3042\u308b\u3088\u3046\u3067\u5c11\u3057\u5f85\u305f\u306a\u3044\u3068\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f\uff0e\u3053\u308c\u306fGoogle\u5074\u306e\u554f\u984c\u3067\u3059\u306d\uff0eGoogle Photos\u304b\u3089\u6295\u7a3f\u3059\u308b\u3088\u3046\u306b\u3059\u308c\u3070\u826f\u3055\u305d\u3046\u3067\u3059\uff0e

\n

\u95a2\u9023?Tweet

\n
\n

\u3066\u3053\u3068\u3067\uff0cmikutter-google-photos-uploader\u52d5\u304d\u307e\u3057\u305f\uff0eDebian\u3067\u306fruby-oauth2\u3068experimental\u306emikutter\u304c\u5fc5\u8981\u306a\u611f\u3058\u3067\u3059\uff0e pic.twitter.com/qt5vhPnhjN

\n

— \u9e7f\u5150\u5cf6Linux\u52c9\u5f37\u4f1a03/11 (@matoken) 2017\u5e742\u670828\u65e5

\n

\n
\n

\u3053\u308c\u30de\u30b8\uff01\uff1f

\n

— \u30ad\u30b7\u30ef\u30c0\u30a4\u30c8 (11\u30ab\u30e9\u30c3\u30c8) (@toshi_a) 2017\u5e742\u670828\u65e5

\n

\n
\n

\u304a\u3082\u308d\u3044\u30d7\u30e9\u30b0\u30a4\u30f3\u51fa\u3066\u304d\u305f\u3093\u3068\u3061\u3083\u3046\u304b

\n

— \u30ad\u30b7\u30ef\u30c0\u30a4\u30c8 (11\u30ab\u30e9\u30c3\u30c8) (@toshi_a) 2017\u5e742\u670828\u65e5

\n

\n
\n

\u307f\u304f\u3063\u305f\u30fc\u30fb\u30b0\u30fc\u30b0\u30eb\u30fb\u30d5\u30a9\u30c8\u30ba\u30fb\u3046p\u308d\u30fc\u3060\u3001575\u3067\u306f

\n

— \u306f\u3044\u3053\u3093 (@OBSOLETE_STD) 2017\u5e742\u670828\u65e5

\n

\n
\n

\u3066\u304a\u304f\u308c\u3060\u2026\u2026\uff01

\n

— \u30b9\u30e9\u30de\u30a4\u30de\u30e9\u30b9 (@slimymars) 2017\u5e742\u670828\u65e5

\n

\n
\n

\u308f\u304b\u308a\u3084\u3059\u3044 pic.twitter.com/Q6iEzgvx3e

\n

— \u9e7f\u5150\u5cf6Linux\u52c9\u5f37\u4f1a03/11 (@matoken) 2017\u5e742\u670828\u65e5

\n

\n

\u74b0\u5883

\n
\n
$ screenfetch\r\n         _,met$$$$$gg.           mk@x220\r\n      ,g$$$$$$$$$$$$$$$P.        OS: Debian 9.0 stretch\r\n    ,g$$P""       """Y$$.".      Kernel: x86_64 Linux 4.9.0-2-amd64\r\n   ,$$P'              `$$$.      Uptime: 4d 18h 51m\r\n  ',$$P       ,ggs.     `$$b:    Packages: 5147\r\n  `d$$'     ,$P"'   .    $$$     Shell: bash 4.4.11\r\n   $$P      d$'     ,    $$P     Resolution: 1366x768\r\n   $$:      $$.   -    ,d$$'     WM: Awesome\r\n   $$\\;      Y$b._   _,d$P'      WM Theme: default\r\n   Y$$.    `.`"Y$$$$P"'          CPU: Intel Core i5-2540M CPU @ 3.3GHz\r\n   `$$b      "-.__               GPU: Mesa DRI Intel(R) Sandybridge Mobile \r\n    `Y$$                         RAM: 13040MiB / 15934MiB\r\n     `Y$$.                      \r\n       `$$b.                    \r\n         `Y$$b.                 \r\n            `"Y$b._             \r\n                `""""           \r\n
\n
\n", "content_text": "\u3068\u3044\u3046\u308f\u3051\u3067\u3001mikutter\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u304d\u305f\u3002 https://t.co/6hP23pBziO\n— \u30b9\u30e9\u30de\u30a4\u30de\u30e9\u30b9 (@slimymars) 2017\u5e742\u670825\u65e5\n\n\nslimymars/mikutter-google-photos-uploader\n\nGoogle Photos\u3063\u3066\u3053\u3068\u306f\u5bb9\u91cf\u6c17\u306b\u305b\u305a\u753b\u50cf\u6295\u3052\u3089\u308c\u308b & Google+\u3068\u306e\u9023\u643a\u3082\u3067\u304d\u305d\u3046?\u3063\u3066\u3053\u3068\u3067\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e\n\uff03mikutter\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u3092\uff0e\n\nmikutter\n\n\u95a2\u9023\u30d1\u30c3\u30b1\u30fc\u30b8\u5c0e\u5165\n\n$ sudo apt install ruby-oauth2\r\n\n\nmikutter-google-photos-uploader plugin\u5c0e\u5165\n\n$ cd ~/.mikutter/plugin\r\n$ git clone https://github.com/slimymars/mikutter-google-photos-uploader\r\n$ cd mikutter-google-photos-uploader\r\n$ bundle install\r\n\n\nmikutter\u8d77\u52d5\n\u2026\u2026\u8a8d\u8b58\u3055\u308c\u306a\u3044\uff0emikutter\u304c\u53e4\u3044\u6240\u70ba\u306e\u3088\u3046\u3067\u3059\uff0e\n\n$ grep mikutter: ~/.mikutter/plugin/mikutter-google-photos-uploader/.mikutter.yml \r\n mikutter: 3.5.2\r\n$ dpkg-query -W mikutter\r\nmikutter 3.5.0+dfsg-1\r\n\n\nDebian\u3067\u306fjessie-backports\u304b\u3089sid\u307e\u30673.5.0+dfsg-1\u3067experimental\u3060\u30513.5.2+dfsg-1\u3067\u3057\u305f\uff0e\n\nDebian – \u30d1\u30c3\u30b1\u30fc\u30b8\u691c\u7d22\u7d50\u679c – mikutter\n\n\u3066\u3053\u3068\u3067\uff0cexperimental\u304b\u3089\u501f\u308a\u3066\u304d\u307e\u3059\uff0e\nsources.list\u306bexperimental\u304c\u3042\u308b\u72b6\u614b\u3067\n\n$ grep experimental /etc/apt/sources.list\r\ndeb http://dennou-q.gfd-dennou.org/debian/ experimental main non-free contrib\r\ndeb-src http://dennou-q.gfd-dennou.org/debian/ experimental main non-free contrib\r\n\n\n/etc/apt/preferences.d/mikutter\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u7528\u610f\u3057\u3066\uff0c\n\n$ cat /etc/apt/preferences.d/mikutter\r\nPackage: mikutter\r\nPin: release a=experimental\r\nPin-Priority: 800\r\n\n\n\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u66f4\u65b0\u3057\u3066\u5c0e\u5165\uff0e\n\n$ sudo apt upgrade\r\n\n\nmikutter\u3067\u306e\u8a2d\u5b9a\nmikutter\u304c3.5.2\u306b\u306a\u3063\u305f\u306e\u3067\u8a8d\u8b58\u3057\u307e\u3057\u305f\uff0e\u8a2d\u5b9a\u753b\u9762\u3092\u898b\u308b\u3068\uff0cGooglePhotos\u3068\u3044\u3046\u30bf\u30d6\u304c\u5897\u3048\u3066\u3044\u308b\u306e\u3067\u305d\u306e\u30bf\u30d6\u306eAuthrise code \u53d6\u5f97URL\u3092\u30d6\u30e9\u30a6\u30b6\u3067\u958b\u3044\u3066\u8a8d\u8a3c\u3057\uff0c\u51fa\u3066\u304d\u305f\u30b3\u30fc\u30c9\u3092Authrization_code\u306b\u8cbc\u308a\u4ed8\u3051\u307e\u3059\uff0e\n\u66f4\u306bmikutter\u304b\u3089\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u4fdd\u5b58\u5148\u306e\u30a2\u30eb\u30d0\u30e0\u3092\u8ffd\u52a0\u3057\u3066\u304a\u304d\u307e\u3059\uff0eGooglePhotos\u306b\u5b58\u5728\u3057\u306a\u3044\u30a2\u30eb\u30d0\u30e0\u306f\u524d\u3082\u3063\u3066\n\n\u30d5\u30a9\u30c8 – Google \u30d5\u30a9\u30c8\n\n\u304b\u3089\u767b\u9332\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\uff0e\u30a2\u30eb\u30d0\u30e0\u306f\u8907\u6570\u767b\u9332\u3067\u304d\u308b\u306e\u3067\u4f8b\u3048\u3070\n\n\u30df\u30af\n\u30d5\u30ec\u30f3\u30ba\n\n\u306e\u3088\u3046\u306b\u30a2\u30eb\u30d0\u30e0\u3092\u767b\u9332\u3057\u3066\u304a\u304f\u3068\u753b\u50cf\u6574\u7406\u304c\u306f\u304b\u3069\u308a\u307e\u3059?\n\n\u5b9f\u969b\u306e\u753b\u50cf\u4fdd\u5b58\u65b9\u6cd5\u306f\uff0cmikutter\u306e\u4fdd\u5b58\u3057\u305f\u3044\u753b\u50cf\u306e\u4e0a\u3067\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3066Google Photos\u306b\u753b\u50cf\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3092\u9078\u3073\uff0c\n\n\u305d\u306e\u5f8c\u8868\u793a\u3055\u308c\u308b\u30a2\u30eb\u30d0\u30e0\u3092\u9078\u629e\u3059\u308b\u3060\u3051\u3067\u3059\uff0e\n\nGoogle Photos\u306b\u898b\u306b\u884c\u304f\u3068\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\uff0e\n\n\u30d5\u30a9\u30c8 – Google \u30d5\u30a9\u30c8\n\nGoogle+\u3078\u306e\u30af\u30ed\u30b9\u30dd\u30b9\u30c8\u306b\u3082\u4f7f\u3048\u308b\u304b\u306a\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u304c\uff0cGoogle+\u306e\u6295\u7a3f\u753b\u9762\u306f\u30bf\u30a4\u30e0\u30e9\u30b0\u304c\u3042\u308b\u3088\u3046\u3067\u5c11\u3057\u5f85\u305f\u306a\u3044\u3068\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f\uff0e\u3053\u308c\u306fGoogle\u5074\u306e\u554f\u984c\u3067\u3059\u306d\uff0eGoogle Photos\u304b\u3089\u6295\u7a3f\u3059\u308b\u3088\u3046\u306b\u3059\u308c\u3070\u826f\u3055\u305d\u3046\u3067\u3059\uff0e\n\u95a2\u9023?Tweet\n\n\u3066\u3053\u3068\u3067\uff0cmikutter-google-photos-uploader\u52d5\u304d\u307e\u3057\u305f\uff0eDebian\u3067\u306fruby-oauth2\u3068experimental\u306emikutter\u304c\u5fc5\u8981\u306a\u611f\u3058\u3067\u3059\uff0e pic.twitter.com/qt5vhPnhjN\n— \u9e7f\u5150\u5cf6Linux\u52c9\u5f37\u4f1a03/11 (@matoken) 2017\u5e742\u670828\u65e5\n\n\n\u3053\u308c\u30de\u30b8\uff01\uff1f\n— \u30ad\u30b7\u30ef\u30c0\u30a4\u30c8 (11\u30ab\u30e9\u30c3\u30c8) (@toshi_a) 2017\u5e742\u670828\u65e5\n\n\n\u304a\u3082\u308d\u3044\u30d7\u30e9\u30b0\u30a4\u30f3\u51fa\u3066\u304d\u305f\u3093\u3068\u3061\u3083\u3046\u304b\n— \u30ad\u30b7\u30ef\u30c0\u30a4\u30c8 (11\u30ab\u30e9\u30c3\u30c8) (@toshi_a) 2017\u5e742\u670828\u65e5\n\n\n\u307f\u304f\u3063\u305f\u30fc\u30fb\u30b0\u30fc\u30b0\u30eb\u30fb\u30d5\u30a9\u30c8\u30ba\u30fb\u3046p\u308d\u30fc\u3060\u3001575\u3067\u306f\n— \u306f\u3044\u3053\u3093 (@OBSOLETE_STD) 2017\u5e742\u670828\u65e5\n\n\n\u3066\u304a\u304f\u308c\u3060\u2026\u2026\uff01\n— \u30b9\u30e9\u30de\u30a4\u30de\u30e9\u30b9 (@slimymars) 2017\u5e742\u670828\u65e5\n\n\n\u308f\u304b\u308a\u3084\u3059\u3044 pic.twitter.com/Q6iEzgvx3e\n— \u9e7f\u5150\u5cf6Linux\u52c9\u5f37\u4f1a03/11 (@matoken) 2017\u5e742\u670828\u65e5\n\n\u74b0\u5883\n\n$ screenfetch\r\n _,met$$$$$gg. mk@x220\r\n ,g$$$$$$$$$$$$$$$P. OS: Debian 9.0 stretch\r\n ,g$$P"" """Y$$.". Kernel: x86_64 Linux 4.9.0-2-amd64\r\n ,$$P' `$$$. Uptime: 4d 18h 51m\r\n ',$$P ,ggs. `$$b: Packages: 5147\r\n `d$$' ,$P"' . $$$ Shell: bash 4.4.11\r\n $$P d$' , $$P Resolution: 1366x768\r\n $$: $$. - ,d$$' WM: Awesome\r\n $$\\; Y$b._ _,d$P' WM Theme: default\r\n Y$$. `.`"Y$$$$P"' CPU: Intel Core i5-2540M CPU @ 3.3GHz\r\n `$$b "-.__ GPU: Mesa DRI Intel(R) Sandybridge Mobile \r\n `Y$$ RAM: 13040MiB / 15934MiB\r\n `Y$$. \r\n `$$b. \r\n `Y$$b. \r\n `"Y$b._ \r\n `""""", "date_published": "2017-03-01T08:51:39+09:00", "date_modified": "2017-03-01T08:54:01+09:00", "authors": [ { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" } ], "author": { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" }, "tags": [ "Debian", "GooglePhotos", "mikutter", "Linux", "stretch", "testing" ] }, { "id": "http://matoken.org/blog/?p=1507", "url": "https://matoken.org/blog/2017/01/26/mumble-server-setting-note/", "title": "Mumble server\u8a2d\u5b9a\u30e1\u30e2", "content_html": "

\u9e7f\u5150\u5cf6Linux\u52c9\u5f37\u4f1a 2017.01\u306e\u9060\u9694\u3067\u5229\u7528\u3057\u305f\u8a2d\u5b9a\u30e1\u30e2\u3067\u3059\uff0e

\n\n

pkg\u306e\u5c0e\u5165

\n
$ sudo apt install mumble-server\r\n
\n

\u81ea\u52d5\u8d77\u52d5\u3092\u7121\u52b9\u306b\u3059\u308b

\n
$ sudo dpkg-reconfigure mumble-server\r\n
\n

\u3067\u8a2d\u5b9a\u753b\u9762\u306b\u5165\u308a\uff0c

\n
Mumble-server (murmurd) can start automatically when the server is booted.\r\n\r\nAutostart mumble-server on server boot?\r\n
\n

\u3067\u3092\u9078\u629e\u3059\u308b\uff0e
\n(/etc/default/mumble-server\u306eMURMUR_DAEMON_START=0\u3067\u3082)

\n

\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6

\n
diff --git a/mumble-server.ini b/mumble-server.ini\r\nindex b445d4e..46f1dfd 100644\r\n--- a/mumble-server.ini\r\n+++ b/mumble-server.ini\r\n@@ -12,7 +12,7 @@\r\n #        NOT regex = \\w* BUT regex = \\\\w*\r\n\r\n # Path to database. If blank, will search for\r\n-# murmur.sqlite in default locations or create it if not found.\r\n+A\r\n database=/var/lib/mumble-server/mumble-server.sqlite\r\n\r\n # If you wish to use something other than SQLite, you'll need to set the name\r\n@@ -86,7 +86,7 @@ pidfile=/var/run/mumble-server/mumble-server.pid\r\n # configure it here ehan ehrough D-Bus or Ice.\r\n #\r\n # Welcome message sent to clients when they connect.\r\n-welcometext="<br />Welcome to this server running <b>Murmur</b>.<br />Enjoy your stay!<br />"\r\n+welcometext="<br />Welcome to KagoLUG server running <b>Murmur</b>.<br />Enjoy your stay!<br />"\r\n\r\n # Port to bind TCP and UDP sockets to.\r\n port=64738\r\n@@ -144,26 +144,28 @@ users=100\r\n # addresses.\r\n # Only uncomment the 'registerName' parameter if you wish to give your "Root" channel a custom name.\r\n #\r\n-#registerName=Mumble Server\r\n+registerName=KagoLUG Mumble Server\r\n #registerPassword=secret\r\n #registerUrl=http://mumble.sourceforge.net/\r\n-#registerHostname=\r\n+registerHostname=kagolug.org\r\n\r\n # If this option is enabled, the server will announce its presence via the \r\n # bonjour service discovery protocol. To change the name announced by bonjour\r\n # adjust the registerName variable.\r\n # See http://developer.apple.com/networking/bonjour/index.html for more information\r\n # about bonjour.\r\n-#bonjour=True\r\n+bonjour=False\r\n\r\n # If you have a proper SSL certificate, you can provide the filenames here.\r\n # Otherwise, Murmur will create it's own certificate automatically.\r\n-#sslCert=\r\n-#sslKey=\r\n+#sslCert=/etc/letsencrypt/live/kagolug.org/cert.pem\r\n+sslCert=/etc/letsencrypt/live/kagolug.org/fullchain.pem\r\n+sslKey=/etc/letsencrypt/live/kagolug.org/privkey.pem\r\n+#sslCA=/etc/letsencrypt/live/kagolug.org/fullchain.pem\r\n\r\n # If Murmur is started as root, which user should it switch to?\r\n # This option is ignored if Murmur isn't started with root privileges.\r\n-uname=mumble-server\r\n+uname=root\r\n\r\n # If this options is enabled, only clients which have a certificate are allowed\r\n # to connect.\r\n
\n

ssl\u8a3c\u660e\u66f8\u3092\u30af\u30ea\u30a2

\n
$ sudo murmurd -wipessl\r\n$ sudo killall murmurd\r\n
\n

\u5229\u7528\u6642

\n

\u30c7\u30fc\u30e2\u30f3\u306e\u8d77\u52d5\u3068\u30dd\u30fc\u30c8\u958b\u653e\u3092\u884c\u3046

\n
$ sudo service mumble-server start\r\n$ sudo iptables -A INPUT -p udp -m udp --dport 64738 -j ACCEPT\r\n$ sudo iptables -A INPUT -p tcp -m tcp --dport 64738 -j ACCEPT\r\n
\n

\u5229\u7528\u8005\u306b\u306f\u30b5\u30fc\u30d0\u3068\u30dd\u30fc\u30c8\u3092\u4f1d\u3048\u308b
\n– server : kagolug.org
\n– port : 64738

\n

mumble://kagolug.org?title=KagoLUG%20Mumble%20Server&version=1.2.0

\n

\u5229\u7528\u74b0\u5883

\n\n

\u306f\u3058\u3081LBT-SPTR01ECBK\u3067\u30de\u30a4\u30af\u3068\u30b9\u30d4\u30fc\u30ab\u30fc\u4e21\u65b9\u306e\u5f79\u5272\u3092\u3068\u601d\u3063\u3066\u3044\u305f\u304c\uff0c\u3046\u307e\u304f\u97f3\u3092\u62fe\u3048\u306a\u3044&HSP/HFP\u3067\u306f\u97f3\u304c\u60aa\u304f\u805e\u304d\u53d6\u308a\u3065\u3089\u304b\u3063\u305f\u306e\u3067\u5f79\u5272\u3092\u5206\u3051\u305f\uff0e
\n\u30de\u30a4\u30af\u306fPC\u76f4\u4ed8\u3060\u3063\u305f\u306e\u3067\u97f3\u3092\u62fe\u3044\u3065\u3089\u3044&\u30ad\u30fc\u5165\u529b\u306e\u97f3\u306a\u3069\u3092\u62fe\u3063\u3066\u3044\u305f\u306f\u305a\uff0e

\n

\u5229\u7528\u5b8c\u4e86\u6642

\n

\u30c7\u30fc\u30e2\u30f3\u306e\u7d42\u4e86

\n
$ sudo service mumble-server start\r\n
\n

iptables\u306emumble\u30eb\u30fc\u30eb\u3092\u9589\u3058\u308b

\n
$ sudo iptables -L --line-numbers | grep 64738\r\n23   ACCEPT     udp  --  anywhere             anywhere             udp dpt:64738\r\n24   ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:64738\r\n$ sudo iptables -D INPUT 23\r\n$ sudo iptables -D INPUT 24\r\n$ sudo iptables -L --line-numbers | grep 64738\r\n
\n

\u8ab2\u984c

\n

ssl\u8a3c\u660e\u66f8\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u305f\u3081\u306bdaemon\u3092root\u3067\u52d5\u304b\u3057\u3066\u3044\u308b\u306e\u3092mumble-server\u30e6\u30fc\u30b6\u306b\u623b\u3057\u305f\u3044\uff0e

\n
-uname=mumble-server\r\n+uname=root\r\n
\n
$ sudo ls -l /etc/letsencrypt/live/kagolug.org/fullchain.pem /etc/letsencrypt/live/kagolug.org/privkey.pem\r\nlrwxrwxrwx 1 root ssl-cert 40 Dec 26 10:30 /etc/letsencrypt/live/kagolug.org/fullchain.pem -> ../../archive/kagolug.org/fullchain9.pem\r\nlrwxrwxrwx 1 root ssl-cert 38 Dec 26 10:30 /etc/letsencrypt/live/kagolug.org/privkey.pem -> ../../archive/kagolug.org/privkey9.pem\r\n
\n

ssl-cert\u30b0\u30eb\u30fc\u30d7\u306bmumble-server\u3092\u767b\u9332\u3067\u884c\u3051\u305d\u3046?

\n

\u30de\u30a4\u30af

\n

\u4f1a\u8b70\u5411\u3051\u306e\u5168\u65b9\u4f4d\u306e\u30de\u30a4\u30af\u304c\u6b32\u3057\u3044

\n
\n\n
\n", "content_text": "\u9e7f\u5150\u5cf6Linux\u52c9\u5f37\u4f1a 2017.01\u306e\u9060\u9694\u3067\u5229\u7528\u3057\u305f\u8a2d\u5b9a\u30e1\u30e2\u3067\u3059\uff0e\n\n\u30b5\u30fc\u30d0\u306eOS\u306fDebian jessie amd64\n\u81ea\u52d5\u8d77\u52d5\u305b\u305a\u5229\u7528\u6642\u306b\u624b\u52d5\u3067\u8d77\u52d5\u3059\u308b\nfw\u3082\u90fd\u5ea6\u624b\u52d5\n\u30b5\u30d6\u30c1\u30e3\u30f3\u30cd\u30eb\u306f\u306a\u3057\nssl\u8a3c\u660e\u66f8\u306f\u65e2\u5b58\u306estartssl\u3092\u5229\u7528\n\npkg\u306e\u5c0e\u5165\n$ sudo apt install mumble-server\r\n\n\u81ea\u52d5\u8d77\u52d5\u3092\u7121\u52b9\u306b\u3059\u308b\n$ sudo dpkg-reconfigure mumble-server\r\n\n\u3067\u8a2d\u5b9a\u753b\u9762\u306b\u5165\u308a\uff0c\nMumble-server (murmurd) can start automatically when the server is booted.\r\n\r\nAutostart mumble-server on server boot?\r\n\n\u3067\u3092\u9078\u629e\u3059\u308b\uff0e\n(/etc/default/mumble-server\u306eMURMUR_DAEMON_START=0\u3067\u3082)\n\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\ndiff --git a/mumble-server.ini b/mumble-server.ini\r\nindex b445d4e..46f1dfd 100644\r\n--- a/mumble-server.ini\r\n+++ b/mumble-server.ini\r\n@@ -12,7 +12,7 @@\r\n # NOT regex = \\w* BUT regex = \\\\w*\r\n\r\n # Path to database. If blank, will search for\r\n-# murmur.sqlite in default locations or create it if not found.\r\n+A\r\n database=/var/lib/mumble-server/mumble-server.sqlite\r\n\r\n # If you wish to use something other than SQLite, you'll need to set the name\r\n@@ -86,7 +86,7 @@ pidfile=/var/run/mumble-server/mumble-server.pid\r\n # configure it here ehan ehrough D-Bus or Ice.\r\n #\r\n # Welcome message sent to clients when they connect.\r\n-welcometext="<br />Welcome to this server running <b>Murmur</b>.<br />Enjoy your stay!<br />"\r\n+welcometext="<br />Welcome to KagoLUG server running <b>Murmur</b>.<br />Enjoy your stay!<br />"\r\n\r\n # Port to bind TCP and UDP sockets to.\r\n port=64738\r\n@@ -144,26 +144,28 @@ users=100\r\n # addresses.\r\n # Only uncomment the 'registerName' parameter if you wish to give your "Root" channel a custom name.\r\n #\r\n-#registerName=Mumble Server\r\n+registerName=KagoLUG Mumble Server\r\n #registerPassword=secret\r\n #registerUrl=http://mumble.sourceforge.net/\r\n-#registerHostname=\r\n+registerHostname=kagolug.org\r\n\r\n # If this option is enabled, the server will announce its presence via the \r\n # bonjour service discovery protocol. To change the name announced by bonjour\r\n # adjust the registerName variable.\r\n # See http://developer.apple.com/networking/bonjour/index.html for more information\r\n # about bonjour.\r\n-#bonjour=True\r\n+bonjour=False\r\n\r\n # If you have a proper SSL certificate, you can provide the filenames here.\r\n # Otherwise, Murmur will create it's own certificate automatically.\r\n-#sslCert=\r\n-#sslKey=\r\n+#sslCert=/etc/letsencrypt/live/kagolug.org/cert.pem\r\n+sslCert=/etc/letsencrypt/live/kagolug.org/fullchain.pem\r\n+sslKey=/etc/letsencrypt/live/kagolug.org/privkey.pem\r\n+#sslCA=/etc/letsencrypt/live/kagolug.org/fullchain.pem\r\n\r\n # If Murmur is started as root, which user should it switch to?\r\n # This option is ignored if Murmur isn't started with root privileges.\r\n-uname=mumble-server\r\n+uname=root\r\n\r\n # If this options is enabled, only clients which have a certificate are allowed\r\n # to connect.\r\n\nssl\u8a3c\u660e\u66f8\u3092\u30af\u30ea\u30a2\n$ sudo murmurd -wipessl\r\n$ sudo killall murmurd\r\n\n\u5229\u7528\u6642\n\u30c7\u30fc\u30e2\u30f3\u306e\u8d77\u52d5\u3068\u30dd\u30fc\u30c8\u958b\u653e\u3092\u884c\u3046\n$ sudo service mumble-server start\r\n$ sudo iptables -A INPUT -p udp -m udp --dport 64738 -j ACCEPT\r\n$ sudo iptables -A INPUT -p tcp -m tcp --dport 64738 -j ACCEPT\r\n\n\u5229\u7528\u8005\u306b\u306f\u30b5\u30fc\u30d0\u3068\u30dd\u30fc\u30c8\u3092\u4f1d\u3048\u308b\n– server : kagolug.org\n– port : 64738\nmumble://kagolug.org?title=KagoLUG%20Mumble%20Server&version=1.2.0\n\u5229\u7528\u74b0\u5883\n\nPC : ThinkPad X200(Ubuntu 16.10 amd64)\n\u30de\u30a4\u30af : elecom\u88fd\u306e\u6570\u767e\u5186\u306e\u3082\u306e\n\u30b9\u30d4\u30fc\u30ab\u30fc : Elecom LBT-SPTR01ECBK\n\n\u306f\u3058\u3081LBT-SPTR01ECBK\u3067\u30de\u30a4\u30af\u3068\u30b9\u30d4\u30fc\u30ab\u30fc\u4e21\u65b9\u306e\u5f79\u5272\u3092\u3068\u601d\u3063\u3066\u3044\u305f\u304c\uff0c\u3046\u307e\u304f\u97f3\u3092\u62fe\u3048\u306a\u3044&HSP/HFP\u3067\u306f\u97f3\u304c\u60aa\u304f\u805e\u304d\u53d6\u308a\u3065\u3089\u304b\u3063\u305f\u306e\u3067\u5f79\u5272\u3092\u5206\u3051\u305f\uff0e\n\u30de\u30a4\u30af\u306fPC\u76f4\u4ed8\u3060\u3063\u305f\u306e\u3067\u97f3\u3092\u62fe\u3044\u3065\u3089\u3044&\u30ad\u30fc\u5165\u529b\u306e\u97f3\u306a\u3069\u3092\u62fe\u3063\u3066\u3044\u305f\u306f\u305a\uff0e\n\u5229\u7528\u5b8c\u4e86\u6642\n\u30c7\u30fc\u30e2\u30f3\u306e\u7d42\u4e86\n$ sudo service mumble-server start\r\n\niptables\u306emumble\u30eb\u30fc\u30eb\u3092\u9589\u3058\u308b\n$ sudo iptables -L --line-numbers | grep 64738\r\n23 ACCEPT udp -- anywhere anywhere udp dpt:64738\r\n24 ACCEPT tcp -- anywhere anywhere tcp dpt:64738\r\n$ sudo iptables -D INPUT 23\r\n$ sudo iptables -D INPUT 24\r\n$ sudo iptables -L --line-numbers | grep 64738\r\n\n\u8ab2\u984c\nssl\u8a3c\u660e\u66f8\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u305f\u3081\u306bdaemon\u3092root\u3067\u52d5\u304b\u3057\u3066\u3044\u308b\u306e\u3092mumble-server\u30e6\u30fc\u30b6\u306b\u623b\u3057\u305f\u3044\uff0e\n-uname=mumble-server\r\n+uname=root\r\n\n$ sudo ls -l /etc/letsencrypt/live/kagolug.org/fullchain.pem /etc/letsencrypt/live/kagolug.org/privkey.pem\r\nlrwxrwxrwx 1 root ssl-cert 40 Dec 26 10:30 /etc/letsencrypt/live/kagolug.org/fullchain.pem -> ../../archive/kagolug.org/fullchain9.pem\r\nlrwxrwxrwx 1 root ssl-cert 38 Dec 26 10:30 /etc/letsencrypt/live/kagolug.org/privkey.pem -> ../../archive/kagolug.org/privkey9.pem\r\n\nssl-cert\u30b0\u30eb\u30fc\u30d7\u306bmumble-server\u3092\u767b\u9332\u3067\u884c\u3051\u305d\u3046?\n\u30de\u30a4\u30af\n\u4f1a\u8b70\u5411\u3051\u306e\u5168\u65b9\u4f4d\u306e\u30de\u30a4\u30af\u304c\u6b32\u3057\u3044", "date_published": "2017-01-26T02:42:07+09:00", "date_modified": "2017-01-31T15:19:21+09:00", "authors": [ { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" } ], "author": { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" }, "tags": [ "Debian", "Jessie", "Linux", "Mumble", "jessie", "\u52c9\u5f37\u4f1a" ] }, { "id": "http://matoken.org/blog/?p=1476", "url": "https://matoken.org/blog/2016/12/07/screenfetch-like-information-display-command-neofetch/", "title": "Screenfetch\u7684\u306a\u60c5\u5831\u8868\u793a\u30b3\u30de\u30f3\u30c9\u306eNeofetch", "content_html": "

Screenfetch\u7684\u306a\u60c5\u5831\u8868\u793a\u30b3\u30de\u30f3\u30c9\u306eNeofetch

\n

\u3088\u304f\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306e\u30ad\u30e3\u30d7\u30c1\u30e3\u3092\u53d6\u5f97\u3059\u308b\u3068\u304d\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308bScreenfetch\u30b3\u30de\u30f3\u30c9\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308a\u307e\u3059\uff0e\u30b7\u30b9\u30c6\u30e0\u306e\u60c5\u5831\u3068\u30a2\u30b9\u30ad\u30fc\u30a2\u30fc\u30c8\u3092\u7d20\u6575\u306b\u8868\u793a\u3057\u3066\u304f\u308c\u307e\u3059\uff0e \u3053\u308c\u306b\u306b\u305f\u3082\u306e\u3067Netfetch\u3068\u3044\u3046\u3082\u306e\u3092\u898b\u304b\u3051\u305f\u306e\u3067\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e\u3053\u3061\u3089\u306f\u753b\u50cf\u3082\u6271\u3048\u308b\u3088\u3046\u3067\u3059\uff0e

\n\n

\u5c0e\u5165

\n

\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u306b\u5404\u7a2e\u74b0\u5883\u3078\u306e\u5c0e\u5165\u65b9\u6cd5\u304c\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\uff0e

\n\n

Debian sid/stretch\u306b\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308b\u3088\u3046\u306a\u3053\u3068\u304c\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u304c\uff0c

\n
Neofetch is in Debian Unstable/Stretch's official repositories.
\n

\u4eca\u306fsid\u306e\u307f\u306e\u3088\u3046\u3067\u3059\uff0e

\n\n

\u3068\u3044\u3046\u3053\u3068\u3067\u3072\u3068\u307e\u305astretch\u3067\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u5c0e\u5165\u3057\u307e\u3057\u305f\uff0e

\n
$ #-- /etc/apt/sources.list.d/neofetch \u3092\u4f5c\u308b\r\n$ sudo apt edit-sources neofetch\r\n$ cat /etc/apt/sources.list.d/neofetch.list\r\ndeb http://dl.bintray.com/dawidd6/neofetch jessie main\r\n$ #-- \u9375\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\r\n$ wget "https://bintray.com/user/downloadSubjectPublicKey?username=bintray" -O Release-neofetch.key\r\n$ gpg Release-neofetch.key\r\npub   rsa4096 2015-02-17 [SC]\r\n      8756C4F765C9AC3CB6B85D62379CE192D401AB61\r\nuid           Bintray (by JFrog) <bintray@bintray.com>\r\nsub   rsa4096 2015-02-17 [E]\r\n$ sudo apt-key add Release-neofetch.key\r\n$ rm Release-neofetch.key\r\n$ #-- pkg\u60c5\u5831\u66f4\u65b0&pkg\u5c0e\u5165\r\n$ sudo apt update\r\n$ sudo apt install neofetch
\n

\u65e9\u901f\u5b9f\u884c

\n
$ neofetch --help\r\n\r\n    NEOFETCH\r\n\r\n    USAGE: neofetch --option "value" --option "value"\r\n\r\n    NOTE: There's also a config option for each flag below.\r\n\r\n    Info:\r\n    --disable infoname          Allows you to disable an info line from appearing\r\n                                in the output.\r\n                                NOTE: You can supply multiple args. eg.\r\n                                'neofetch --disable cpu gpu disk shell'\r\n                                NOTE: The arguments must all be lowercase.\r\n    --os_arch on/off            Hide/Show OS architecture.\r\n    --speed_type type           Change the type of cpu speed to display.\r\n                                Possible values: current, min, max, bios,\r\n                                scaling_current, scaling_min, scaling_max\r\n                                NOTE: This only support Linux with cpufreq.\r\n    --cpu_shorthand type        Shorten the output of CPU\r\n                                Possible values: name, speed, tiny, on, off\r\n    --cpu_cores type            Whether or not to display the number of CPU cores\r\n                                Takes: logical, physical, off\r\n                                NOTE: 'physical' doesn't work on BSD.\r\n    --cpu_speed on/off          Hide/Show cpu speed.\r\n    --cpu_temp on/off           Hide/Show cpu temperature.\r\n                                NOTE: This only works on Linux and BSD.\r\n                                NOTE: For FreeBSD-based systems, you need to enable coretemp\r\n                                      kernel module.\r\n    --distro_shorthand on/off   Shorten the output of distro (tiny, on, off)\r\n                                NOTE: This option won't work in Windows (Cygwin)\r\n    --kernel_shorthand on/off   Shorten the output of kernel\r\n                                NOTE: This option won't work in BSDs (except PacBSD and PC-BSD)\r\n    --uptime_shorthand on/off   Shorten the output of uptime (tiny, on, off)\r\n    --refresh_rate on/off       Whether to display the refresh rate of each monitor\r\n                                Unsupported on Windows\r\n    --gpu_brand on/off          Enable/Disable GPU brand in output. (AMD/NVIDIA/Intel)\r\n    --gtk_shorthand on/off      Shorten output of gtk theme/icons\r\n    --gtk2 on/off               Enable/Disable gtk2 theme/icons output\r\n    --gtk3 on/off               Enable/Disable gtk3 theme/icons output\r\n    --shell_path on/off         Enable/Disable showing $SHELL path\r\n    --shell_version on/off      Enable/Disable showing $SHELL version\r\n    --ip_host url               Url to query for public IP\r\n    --song_shorthand on/off     Print the Artist/Title on seperate lines\r\n    --birthday_shorthand on/off Shorten the output of birthday\r\n    --birthday_time on/off      Enable/Disable showing the time in birthday output\r\n    --birthday_format format    Format the birthday output. (Uses 'date' cmd format)\r\n\r\n    Text Formatting:\r\n    --colors x x x x x x        Changes the text colors in this order:\r\n                                title, @, underline, subtitle, colon, info\r\n    --underline on/off          Enable/Disable the underline.\r\n    --underline_char char       Character to use when underlining title\r\n    --bold on/off               Enable/Disable bold text\r\n\r\n    Color Blocks:\r\n    --color_blocks on/off       Enable/Disable the color blocks\r\n    --block_width num           Width of color blocks in spaces\r\n    --block_height num          Height of color blocks in lines\r\n    --block_range start end     Range of colors to print as blocks\r\n\r\n    Bars:\r\n    --bar_char 'elapsed char' 'total char'\r\n                                Characters to use when drawing bars.\r\n    --bar_border on/off         Whether or not to surround the bar with '[]'\r\n    --bar_length num            Length in spaces to make the bars.\r\n    --bar_colors num num        Colors to make the bar.\r\n                                Set in this order: elapsed, total\r\n    --cpu_display mode          Bar mode.\r\n                                Takes: bar, infobar, barinfo, off\r\n    --memory_display mode       Bar mode.\r\n                                Takes: bar, infobar, barinfo, off\r\n    --battery_display mode      Bar mode.\r\n                                Takes: bar, infobar, barinfo, off\r\n    --disk_display mode         Bar mode.\r\n                                Takes: bar, infobar, barinfo, off\r\n\r\n    Image:\r\n    --image type                Image source. Where and what image we display.\r\n                                Possible values: wall, ascii,\r\n                                /path/to/img, /path/to/dir/, off\r\n    --size 00px | --size 00%    How to size the image.\r\n                                Possible values: auto, 00px, 00%, none\r\n    --crop_mode mode            Which crop mode to use\r\n                                Takes the values: normal, fit, fill\r\n    --crop_offset value         Change the crop offset for normal mode.\r\n                                Possible values: northwest, north, northeast,\r\n                                west, center, east, southwest, south, southeast\r\n\r\n    --xoffset px                How close the image will be to the left edge of the\r\n                                window. This only works with w3m.\r\n    --yoffset px                How close the image will be to the top edge of the\r\n                                window. This only works with w3m.\r\n    --bg_color color            Background color to display behind transparent image.\r\n                                This only works with w3m.\r\n    --gap num                   Gap between image and text.\r\n                                NOTE: --gap can take a negative value which will\r\n                                move the text closer to the left side.\r\n    --clean                     Delete cached files and thumbnails.\r\n\r\n    Ascii:\r\n    --ascii value               Where to get the ascii from, Possible values:\r\n                                distro, /path/to/ascii\r\n    --ascii_colors x x x x x x  Colors to print the ascii art\r\n    --ascii_distro distro       Which Distro's ascii art to print\r\n                                NOTE: Arch and Ubuntu have 'old' logo varients.\r\n                                NOTE: Use 'arch_old' or 'ubuntu_old' to use the old logos.\r\n                                NOTE: Ubuntu has flavor varients.\r\n                                NOTE: Change this to 'Lubuntu', 'Xubuntu', 'Ubuntu-GNOME'\r\n                                or 'Ubuntu-Budgie' to use the flavors.\r\n    --ascii_logo_size           Size of ascii logo.\r\n                                Supported distros: Arch, Gentoo, Crux, OpenBSD.\r\n    --ascii_bold on/off         Whether or not to bold the ascii logo.\r\n    --logo | -L                 Hide the info text and only show the ascii logo.\r\n\r\n    Screenshot:\r\n    --scrot | -s /path/to/img   Take a screenshot, if path is left empty the screen-\r\n                                shot function will use $scrot_dir and $scrot_name.\r\n    --upload | -su /pth/t/img   Same as --scrot but uploads the scrot to a website.\r\n    --image_host                Website to upload scrots to. Takes: imgur, teknik\r\n    --scrot_cmd cmd             Screenshot program to launch\r\n\r\n    Other:\r\n    --config /path/to/config    Specify a path to a custom config file\r\n    --config none               Launch the script without a config file\r\n    --help                      Print this text and exit\r\n    --version                   Show neofetch version\r\n    -v                          Display error messages.\r\n    -vv                         Display a verbose log for error reporting.
\n

\u30aa\u30d7\u30b7\u30e7\u30f3\u7d50\u69cb\u591a\u3044\u3067\u3059\uff0e \u3068\u308a\u3042\u3048\u305a\u7d20\u3067\u5b9f\u884c\uff0e

\n

\"20161207_05:12:12-5188\"
\n

\n

\u60c5\u5831\u3082Screenfetch\u3088\u308a\u5897\u3048\u3066\u3044\u307e\u3059\uff0e

\n

\"20161207_05:12:20-9093\"
\n

\n

\u6b21\u306f\u753b\u50cf\u3092\u6307\u5b9a\u3057\u3066\u307f\u307e\u3059\uff0e\u753b\u50cf\u30b5\u30a4\u30ba\u304c\u5927\u304d\u304b\u3063\u305f\u306e\u306725%\u306b\u7e2e\u5c0f\u3082\u3057\u3066\u3044\u307e\u3059\uff0e \u697d\u3057\u3044 :)

\n

\"20161207_05:12:35-3963\"
\n
\n\"20161207_06:12:30-16979\"
\n

\n

\u753b\u50cf\u306e\u8868\u793a\u306b\u3064\u3044\u3066\u306f\u74b0\u5883\u306b\u3088\u3063\u3066\u3046\u307e\u304f\u884c\u304f\u884c\u304b\u306a\u3044\u304c\u3042\u308b\u3088\u3046\u3067\u3059\uff0e\u3046\u307e\u304f\u8868\u793a\u3055\u308c\u306a\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u306eWiki\u3092\u53c2\u7167\u3059\u308b\u3068\u826f\u3055\u305d\u3046\u3067\u3059\uff0e

\n\n

\n", "content_text": "Screenfetch\u7684\u306a\u60c5\u5831\u8868\u793a\u30b3\u30de\u30f3\u30c9\u306eNeofetch\n\u3088\u304f\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306e\u30ad\u30e3\u30d7\u30c1\u30e3\u3092\u53d6\u5f97\u3059\u308b\u3068\u304d\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308bScreenfetch\u30b3\u30de\u30f3\u30c9\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308a\u307e\u3059\uff0e\u30b7\u30b9\u30c6\u30e0\u306e\u60c5\u5831\u3068\u30a2\u30b9\u30ad\u30fc\u30a2\u30fc\u30c8\u3092\u7d20\u6575\u306b\u8868\u793a\u3057\u3066\u304f\u308c\u307e\u3059\uff0e \u3053\u308c\u306b\u306b\u305f\u3082\u306e\u3067Netfetch\u3068\u3044\u3046\u3082\u306e\u3092\u898b\u304b\u3051\u305f\u306e\u3067\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e\u3053\u3061\u3089\u306f\u753b\u50cf\u3082\u6271\u3048\u308b\u3088\u3046\u3067\u3059\uff0e\n\ndylanaraps/neofetch: A fast, highly customizable system info script that supports Linux, MacOS, iOS, BSD, Solaris, Android, Haiku, GNU Hurd and Windows (Cygwin/Windows 10 Linux subsystem)\n\n\u5c0e\u5165\n\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u306b\u5404\u7a2e\u74b0\u5883\u3078\u306e\u5c0e\u5165\u65b9\u6cd5\u304c\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\uff0e\n\nInstallation \u00b7 dylanaraps/neofetch Wiki\n\nDebian sid/stretch\u306b\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308b\u3088\u3046\u306a\u3053\u3068\u304c\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u304c\uff0c\nNeofetch is in Debian Unstable/Stretch's official repositories.\n\u4eca\u306fsid\u306e\u307f\u306e\u3088\u3046\u3067\u3059\uff0e\n\nDebian — \u30d1\u30c3\u30b1\u30fc\u30b8\u691c\u7d22\u7d50\u679c — neofetch\n\n\u3068\u3044\u3046\u3053\u3068\u3067\u3072\u3068\u307e\u305astretch\u3067\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u5c0e\u5165\u3057\u307e\u3057\u305f\uff0e\n$ #-- /etc/apt/sources.list.d/neofetch \u3092\u4f5c\u308b\r\n$ sudo apt edit-sources neofetch\r\n$ cat /etc/apt/sources.list.d/neofetch.list\r\ndeb http://dl.bintray.com/dawidd6/neofetch jessie main\r\n$ #-- \u9375\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\r\n$ wget "https://bintray.com/user/downloadSubjectPublicKey?username=bintray" -O Release-neofetch.key\r\n$ gpg Release-neofetch.key\r\npub rsa4096 2015-02-17 [SC]\r\n 8756C4F765C9AC3CB6B85D62379CE192D401AB61\r\nuid Bintray (by JFrog) <bintray@bintray.com>\r\nsub rsa4096 2015-02-17 [E]\r\n$ sudo apt-key add Release-neofetch.key\r\n$ rm Release-neofetch.key\r\n$ #-- pkg\u60c5\u5831\u66f4\u65b0&pkg\u5c0e\u5165\r\n$ sudo apt update\r\n$ sudo apt install neofetch\n\u65e9\u901f\u5b9f\u884c\n$ neofetch --help\r\n\r\n NEOFETCH\r\n\r\n USAGE: neofetch --option "value" --option "value"\r\n\r\n NOTE: There's also a config option for each flag below.\r\n\r\n Info:\r\n --disable infoname Allows you to disable an info line from appearing\r\n in the output.\r\n NOTE: You can supply multiple args. eg.\r\n 'neofetch --disable cpu gpu disk shell'\r\n NOTE: The arguments must all be lowercase.\r\n --os_arch on/off Hide/Show OS architecture.\r\n --speed_type type Change the type of cpu speed to display.\r\n Possible values: current, min, max, bios,\r\n scaling_current, scaling_min, scaling_max\r\n NOTE: This only support Linux with cpufreq.\r\n --cpu_shorthand type Shorten the output of CPU\r\n Possible values: name, speed, tiny, on, off\r\n --cpu_cores type Whether or not to display the number of CPU cores\r\n Takes: logical, physical, off\r\n NOTE: 'physical' doesn't work on BSD.\r\n --cpu_speed on/off Hide/Show cpu speed.\r\n --cpu_temp on/off Hide/Show cpu temperature.\r\n NOTE: This only works on Linux and BSD.\r\n NOTE: For FreeBSD-based systems, you need to enable coretemp\r\n kernel module.\r\n --distro_shorthand on/off Shorten the output of distro (tiny, on, off)\r\n NOTE: This option won't work in Windows (Cygwin)\r\n --kernel_shorthand on/off Shorten the output of kernel\r\n NOTE: This option won't work in BSDs (except PacBSD and PC-BSD)\r\n --uptime_shorthand on/off Shorten the output of uptime (tiny, on, off)\r\n --refresh_rate on/off Whether to display the refresh rate of each monitor\r\n Unsupported on Windows\r\n --gpu_brand on/off Enable/Disable GPU brand in output. (AMD/NVIDIA/Intel)\r\n --gtk_shorthand on/off Shorten output of gtk theme/icons\r\n --gtk2 on/off Enable/Disable gtk2 theme/icons output\r\n --gtk3 on/off Enable/Disable gtk3 theme/icons output\r\n --shell_path on/off Enable/Disable showing $SHELL path\r\n --shell_version on/off Enable/Disable showing $SHELL version\r\n --ip_host url Url to query for public IP\r\n --song_shorthand on/off Print the Artist/Title on seperate lines\r\n --birthday_shorthand on/off Shorten the output of birthday\r\n --birthday_time on/off Enable/Disable showing the time in birthday output\r\n --birthday_format format Format the birthday output. (Uses 'date' cmd format)\r\n\r\n Text Formatting:\r\n --colors x x x x x x Changes the text colors in this order:\r\n title, @, underline, subtitle, colon, info\r\n --underline on/off Enable/Disable the underline.\r\n --underline_char char Character to use when underlining title\r\n --bold on/off Enable/Disable bold text\r\n\r\n Color Blocks:\r\n --color_blocks on/off Enable/Disable the color blocks\r\n --block_width num Width of color blocks in spaces\r\n --block_height num Height of color blocks in lines\r\n --block_range start end Range of colors to print as blocks\r\n\r\n Bars:\r\n --bar_char 'elapsed char' 'total char'\r\n Characters to use when drawing bars.\r\n --bar_border on/off Whether or not to surround the bar with '[]'\r\n --bar_length num Length in spaces to make the bars.\r\n --bar_colors num num Colors to make the bar.\r\n Set in this order: elapsed, total\r\n --cpu_display mode Bar mode.\r\n Takes: bar, infobar, barinfo, off\r\n --memory_display mode Bar mode.\r\n Takes: bar, infobar, barinfo, off\r\n --battery_display mode Bar mode.\r\n Takes: bar, infobar, barinfo, off\r\n --disk_display mode Bar mode.\r\n Takes: bar, infobar, barinfo, off\r\n\r\n Image:\r\n --image type Image source. Where and what image we display.\r\n Possible values: wall, ascii,\r\n /path/to/img, /path/to/dir/, off\r\n --size 00px | --size 00% How to size the image.\r\n Possible values: auto, 00px, 00%, none\r\n --crop_mode mode Which crop mode to use\r\n Takes the values: normal, fit, fill\r\n --crop_offset value Change the crop offset for normal mode.\r\n Possible values: northwest, north, northeast,\r\n west, center, east, southwest, south, southeast\r\n\r\n --xoffset px How close the image will be to the left edge of the\r\n window. This only works with w3m.\r\n --yoffset px How close the image will be to the top edge of the\r\n window. This only works with w3m.\r\n --bg_color color Background color to display behind transparent image.\r\n This only works with w3m.\r\n --gap num Gap between image and text.\r\n NOTE: --gap can take a negative value which will\r\n move the text closer to the left side.\r\n --clean Delete cached files and thumbnails.\r\n\r\n Ascii:\r\n --ascii value Where to get the ascii from, Possible values:\r\n distro, /path/to/ascii\r\n --ascii_colors x x x x x x Colors to print the ascii art\r\n --ascii_distro distro Which Distro's ascii art to print\r\n NOTE: Arch and Ubuntu have 'old' logo varients.\r\n NOTE: Use 'arch_old' or 'ubuntu_old' to use the old logos.\r\n NOTE: Ubuntu has flavor varients.\r\n NOTE: Change this to 'Lubuntu', 'Xubuntu', 'Ubuntu-GNOME'\r\n or 'Ubuntu-Budgie' to use the flavors.\r\n --ascii_logo_size Size of ascii logo.\r\n Supported distros: Arch, Gentoo, Crux, OpenBSD.\r\n --ascii_bold on/off Whether or not to bold the ascii logo.\r\n --logo | -L Hide the info text and only show the ascii logo.\r\n\r\n Screenshot:\r\n --scrot | -s /path/to/img Take a screenshot, if path is left empty the screen-\r\n shot function will use $scrot_dir and $scrot_name.\r\n --upload | -su /pth/t/img Same as --scrot but uploads the scrot to a website.\r\n --image_host Website to upload scrots to. Takes: imgur, teknik\r\n --scrot_cmd cmd Screenshot program to launch\r\n\r\n Other:\r\n --config /path/to/config Specify a path to a custom config file\r\n --config none Launch the script without a config file\r\n --help Print this text and exit\r\n --version Show neofetch version\r\n -v Display error messages.\r\n -vv Display a verbose log for error reporting.\n\u30aa\u30d7\u30b7\u30e7\u30f3\u7d50\u69cb\u591a\u3044\u3067\u3059\uff0e \u3068\u308a\u3042\u3048\u305a\u7d20\u3067\u5b9f\u884c\uff0e\n\n\n\u60c5\u5831\u3082Screenfetch\u3088\u308a\u5897\u3048\u3066\u3044\u307e\u3059\uff0e\n\n\n\u6b21\u306f\u753b\u50cf\u3092\u6307\u5b9a\u3057\u3066\u307f\u307e\u3059\uff0e\u753b\u50cf\u30b5\u30a4\u30ba\u304c\u5927\u304d\u304b\u3063\u305f\u306e\u306725%\u306b\u7e2e\u5c0f\u3082\u3057\u3066\u3044\u307e\u3059\uff0e \u697d\u3057\u3044 :)\n\n\n\n\n\u753b\u50cf\u306e\u8868\u793a\u306b\u3064\u3044\u3066\u306f\u74b0\u5883\u306b\u3088\u3063\u3066\u3046\u307e\u304f\u884c\u304f\u884c\u304b\u306a\u3044\u304c\u3042\u308b\u3088\u3046\u3067\u3059\uff0e\u3046\u307e\u304f\u8868\u793a\u3055\u308c\u306a\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u306eWiki\u3092\u53c2\u7167\u3059\u308b\u3068\u826f\u3055\u305d\u3046\u3067\u3059\uff0e\n\nImages in the terminal \u00b7 dylanaraps/neofetch Wiki", "date_published": "2016-12-07T06:27:09+09:00", "date_modified": "2016-12-07T06:27:09+09:00", "authors": [ { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" } ], "author": { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" }, "tags": [ "Debian", "Linux", "neofetch", "screenfetch", "stretch", "testing" ] } ] }