{ "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/raspberry-pi-3-b/feed/json/ -- and add it your reader.", "home_page_url": "https://matoken.org/blog/tag/raspberry-pi-3-b/", "feed_url": "https://matoken.org/blog/tag/raspberry-pi-3-b/feed/json/", "language": "ja", "title": "Raspberry Pi 3 B – 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=4434", "url": "https://matoken.org/blog/2025/03/06/raspberry-pi-stopped-booting/", "title": "rpi-update\u5f8c\u306bRaspberry Pi\u304c\u8d77\u52d5\u3057\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u56f0\u308b", "content_html": "
\n\u5bb6\u3067\u5e38\u6642\u8d77\u52d5\u3057\u3066\u3044\u308bsingle-board computer\u306eRaspberry Pi 3 model B\u304ckernel\u66f4\u65b0\u3092\u3057\u305f\u5f8c\u518d\u8d77\u52d5\u306b\u5931\u6557\u3057\u3066\u8d77\u52d5\u3057\u306a\u304f\u306a\u308a\u307e\u3057\u305f\uff0e
\n\u9577\u3089\u304f\u5b89\u5b9a\u3057\u3066\u52d5\u3044\u3066\u3044\u305f\u306e\u3067\u8272\u3005\u5fd8\u308c\u3066\u3044\u3066\u89e3\u6c7a\u307e\u3067\u6642\u9593\u304c\u304b\u304b\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\uff0e
\n\n\n\n\u8ffd\u8a18)
\n\n\n\u305d\u306e\u5f8c\u3057\u3070\u3089\u304f\u3057\u3066\u307e\u305f\u8d77\u52d5\u3057\u306a\u304f\u306a\u308a\u307e\u3057\u305f\uff0e\u4eca\u5ea6\u306fmicroSD card\u306e\u8aad\u307f\u8fbc\u307f\uff0c\u66f8\u304d\u8fbc\u307f\u3068\u3082\u306b\u30a8\u30e9\u30fc\u3068\u306a\u308a\u307e\u3057\u305f\uff0emicroSD\u81ea\u4f53\u304c\u58ca\u308c\u3066\u3057\u307e\u3063\u305f\u3088\u3046\u3067\u3059\uff0e\u3053\u306e\u3068\u304d\u306b\u306f\u3082\u3046\u6545\u969c\u3057\u304b\u3051\u3066\u3044\u305f\u306e\u3067\u3057\u3087\u3046\u306d\u2026\u2026\uff0e
\n
\n
rpi-update\u30b3\u30de\u30f3\u30c9\u3067kernel\u3092\u66f4\u65b0\u3057\u305f\u5f8c\u304b\u3089\u8d77\u52d5\u3057\u306a\u304f\u306a\u308a\u307e\u3057\u305f\uff0e
\nLED\u306e\u72b6\u614b\u306f\u8d64\u70b9\u706f\uff0c\u7dd1\u4e0d\u70b9\u706f\u3067\u3057\u305f\uff0e
\nUART\u306f\u4f55\u3082\u51fa\u305a\uff0e(\u6050\u3089\u304f\u3053\u306e\u3068\u304d\u306b\u306fUART-USB\u30a2\u30c0\u30d7\u30bf\u304c\u6545\u969c\u3057\u3066\u3044\u305f)
\u305f\u307e\u306b/boot\u306e1\u3064\u76ee\u306eFAT\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306b\u30c0\u30fc\u30c6\u30a3\u30d3\u30c3\u30c8\u304c\u7acb\u3063\u3066\u8d77\u52d5\u306b\u5931\u6557\u3059\u308b\u3053\u3068\u304c\u3042\u308b\u306e\u3067microSD card\u3092PC\u306b\u7e4b\u3044\u3067fsck\u3092\u304b\u3051\u307e\u3057\u305f\u304c\u4eca\u56de\u306f\u3053\u308c\u306f\u5916\u308c\u3067\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\uff0e
\n$ sudo fsck -n /dev/mmcblk0p1\nfsck from util-linux 2.40.4\nfsck.fat 4.2 (2021-01-31)\n/dev/mmcblk0p1: 394 files, 49156/261115 clusters\n
kernel\u306e\u30d5\u30a1\u30a4\u30eb\u7fa4\u306e\u5c55\u958b\u3084\u66f8\u304d\u8fbc\u307f\u5931\u6557\u3057\u305f\u306e\u304b\u3082\u3068/boot\u3092\u4e0a\u66f8\u304d\u3059\u308b\u3053\u3068\u306b\uff0e
\nrpi-update\u30b3\u30de\u30f3\u30c9\u3067\u306f\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3082\u3068\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u304c\u3088\u304f\u7406\u89e3\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u30aa\u30ea\u30b8\u30ca\u30eb\u30a4\u30e1\u30fc\u30b8\u304b\u3089\u66f8\u304d\u8fbc\u3080\u3053\u3068\u306b\uff0e
$ lftp -c torrent https://downloads.raspberrypi.com/raspios_lite_armhf/images/raspios_lite_armhf-2024-11-19/2024-11-19-raspios-bookworm-armhf-lite.img.xz.torrent\nName: 2024-11-19-raspios-bookworm-armhf-lite.img.xz\ndn:534M up:0 complete, ratio:0.00/0.00/0.00\n peers:24 connected:0 active:0 complete:0\nSeeding in background...\n[215700] Moving to background to complete transfers...\n$ wget https://downloads.raspberrypi.com/raspios_lite_armhf/images/raspios_lite_armhf-2024-11-19/2024-11-19-raspios-bookworm-armhf-lite.img.xz.sha256 \\\n https://downloads.raspberrypi.com/raspios_lite_armhf/images/raspios_lite_armhf-2024-11-19/2024-11-19-raspios-bookworm-armhf-lite.img.xz.sig\n$ sha256sum -c 2024-11-19-raspios-bookworm-armhf-lite.img.xz.sha256\n$ gpg --verify 2024-11-19-raspios-bookworm-armhf-lite.img.xz.sig\n
| \n Note \n | \n\ngpg\u516c\u958b\u9375\u306f\u3053\u3053\u306e\u3082\u306e\u3092\u4f7f\u3044\u307e\u3057\u305f\uff0e\u308f\u304b\u308a\u3084\u3059\u3044\u30da\u30fc\u30b8\u304c\u6b32\u3057\u3044\u3068\u3053\u308d\u3067\u3059\uff0e https://www.raspberrypi.org/raspberrypi_downloads.gpg.key\n | \n
$ unxz 2024-11-19-raspios-bookworm-armhf-lite.img.xz\n$ sudo kpartx -av ./2024-11-19-raspios-bookworm-armhf-lite.img\nadd map loop0p1 (254:3): 0 1048576 linear 7:0 8192\nadd map loop0p2 (254:4): 0 3923968 linear 7:0 1056768\n
$ sudo dd if=/dev/mapper/loop0p1 of=/dev/mmcblk0p1 bs=4M conv=fsync status=progress ; sync\n$ sync\n
| \n Note \n | \n\n \n \nif=::\u5165\u529b\u5143\u30c7\u30d0\u30a4\u30b9 | \n
\u3053\u306e\u72b6\u614b\u3067Raspberry Pi\u306bmicro SD\u3068\u63a5\u7d9a\u3057\u3066\u8d77\u52d5\u3092\u8a66\u3059\u3068\u3084\u306f\u308a\u5931\u6557\u3057\u307e\u3059\uff0e
\n\u305d\u3046\u3044\u3048\u3070UUID\u304c\u9055\u3046\u306e\u3067\u306f\u3068\u3044\u3046\u3053\u3068\u3067\u78ba\u8a8d\u3057\u307e\u3059\uff0e
$ sudo blkid /dev/mapper/loop0p2\n/dev/mapper/loop0p2: LABEL=\"rootfs\" UUID=\"bb15c8e6-d999-4838-be67-5ff200bffa46\" BLOCK_SIZE=\"4096\" TYPE=\"ext4\" PARTUUID=\"57b902f5-02\"\n$ sudo mount -o ro /dev/mapper/loop0p1 /mnt\n$ cat /mnt/cmdline.txt\nconsole=serial0,115200 console=tty1 root=PARTUUID=57b902f5-02 rootfstype=ext4 fsck.repair=yes rootwait quiet init=/usr/lib/raspberrypi-sys-mods/firstboot\n
$ sudo blkid /dev/mmcblk0p2\n/dev/mmcblk0p2: LABEL=\"rootfs\" UUID=\"3a324232-335f-4617-84c3-d4889840dc93\" BLOCK_SIZE=\"4096\" TYPE=\"ext4\" PARTUUID=\"71493291-02\"\n
\u305a\u308c\u3066\u3044\u308b\u306e\u30671\u3064\u76ee\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306ecmdline.txt\u306eroot=PARTUUID=\u306e\u5024\u3092\u3092\u5229\u7528\u4e2d\u306eroot\u306b\u306a\u308b2\u3064\u76ee\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306ePARTUUID\u306b\u66f8\u304d\u63db\u3048\u307e\u3059\uff0e
\nconsole=serial0,115200 console=tty1 root=PARTUUID=57b902f5-02 rootfstype=ext4 fsck.repair=yes rootwait quiet init=/usr/lib/raspberrypi-sys-mods/firstboot\n
\u2193
\nconsole=serial0,115200 console=tty1 root=PARTUUID=71493291-02 rootfstype=ext4 fsck.repair=yes rootwait quiet init=/usr/lib/raspberrypi-sys-mods/firstboot\n
\u3053\u308c\u3067\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff0e
\ndd\u3059\u308b\u524d\u306bcmdline.txt, config.txt\u3092\u9000\u907f\u3057\u3066\u304a\u3044\u3066dd\u5f8c\u306b\u623b\u3059\u65b9\u304c\u826f\u304b\u3063\u305f\u3067\u3059\u306d\uff0edd\u3092\u4f7f\u308f\u305a\u30d5\u30a1\u30a4\u30eb\u30b3\u30d4\u30fc\u3067\u3082\u5927\u4e08\u592b\u3060\u3063\u305f\u3068\u601d\u3044\u307e\u3059\uff0e
\n\n\n\n\nrsync -avcI –exclude=cmdline.txt –exclude=config.txt $FROM $TO
\n
\u82e5\u3057\u304f\u306fmicroSD\u3057\u304b\u4f7f\u3063\u3066\u3044\u306a\u3044\u306e\u3067root=/dev/mmcblk0p2\u306e\u307b\u3046\u304c\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\uff0e
\n\u3046\u307e\u304f\u884c\u3063\u305f\u304b\u3068\u601d\u3044\u307e\u3057\u305f\u304c\uff0c\u7121\u7ddaLAN\u30c7\u30d0\u30a4\u30b9\u306ewlan0\u304c\u898b\u3048\u307e\u305b\u3093\uff0e
\n\u6709\u7ddaLAN\u306f\u5229\u7528\u3067\u304d\u305f\u306e\u3067\uff0c\u305d\u3061\u3089\u304b\u3089rpi-update\u3067kernel\u3092\u66f4\u65b0\u3057\u3066\u518d\u8d77\u52d5\u3059\u308b\u3053\u3068\u3067\u30c7\u30d0\u30a4\u30b9\u304c\u898b\u3048\uff0c\u63a5\u7d9a\u3082\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff0e
\u3061\u306a\u307f\u306b\u3053\u306e\u72b6\u614b\u3084\uff0c\u5225\u306emicro SD\u3067OS\u3092\u66f8\u304d\u8fbc\u3093\u3060\u3070\u304b\u308a\u306e\u72b6\u614b\u3067\u3082UART\u304b\u3089\u4f55\u3082\u8868\u793a\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\uff0e\u3069\u3046\u3082\u65ad\u7dda\u3057\u3066\u3057\u307e\u3063\u305f\u3088\u3046\u3067\u3059\uff0eUSB\u5074\u306fOS\u304b\u3089serial\u306b\u898b\u3048\u308b\u306e\u3067\u591a\u5206\u30d4\u30f3\u30bd\u30b1\u30c3\u30c8\u3042\u305f\u308a\u3092\u8cb7\u3063\u3066\u4ed8\u3051\u304b\u3048\u308b\u3053\u3068\u3067\u6cbb\u308a\u305d\u3046\u306a\u611f\u3058\u306f\u3057\u307e\u3059\uff0e
\n\u3067\u3082\u624b\u9593\u3084\u9001\u6599\u3092\u8003\u3048\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3082\u306e\u3092\u8cb7\u3063\u3066\u3057\u307e\u3063\u305f\u307b\u3046\u304c\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\uff0e
Amazon.co.jp: Rasbee USB-TTL\u30b7\u30ea\u30a2\u30eb\u30b3\u30f3\u30bd\u30fc\u30eb\u306eUSB\u5909\u63dbCOM\u30b1\u30fc\u30d6\u30eb\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30b1\u30fc\u30d6\u30eb Raspberry Pi\u7528 \u4e26\u884c\u8f38\u5165\u54c1 : \u30d1\u30bd\u30b3\u30f3\u30fb\u5468\u8fba\u6a5f\u5668 \uffe5319\u203b\u6d77\u5916\u767a\u9001
\nAmazon.co.jp: waves 2\u500b USB \u30b7\u30ea\u30a2\u30eb \u5909\u63db\u30b1\u30fc\u30d6\u30eb TTL PL2303HX : \u30d1\u30bd\u30b3\u30f3\u30fb\u5468\u8fba\u6a5f\u5668 2\u3064\u3067\uffe5680
\n$ dpkg-query -W fdisk kpartx util-linux coreutils\ncoreutils 9.5-1+b1\nfdisk 2.40.4-5\nkpartx 0.11.1-1\nutil-linux 2.40.4-5\n$ lsb_release -dr\nDescription: Debian GNU/Linux trixie/sid\nRelease: n/a\n$ arch\nx86_64\n
$ lsb_release -dr\nNo LSB modules are available.\nDescription: Raspbian GNU/Linux 12 (bookworm)\nRelease: 12\n$ uname -a\nLinux raspberrypi 6.12.16-v7+ #1859 SMP Mon Feb 24 13:10:45 GMT 2025 armv7l GNU/Linux\n$ grep \"^Model\" /proc/cpuinfo\nModel : Raspberry Pi 3 Model B Rev 1.2\n
\u5148\u65e5PC\u3067\u6697\u53f7\u5316FS\u3092\u8a2d\u5b9a\u3057\u305fHDD\u3067\u3059\u304c\uff0c
\nSBC\u306eRaspberry Pi\u306b\u63a5\u7d9a\u3057\u3066\u30de\u30a6\u30f3\u30c8\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u3053\u308d\u5931\u6557\u3057\u307e\u3057\u305f\uff0e
\n$ sudo cryptsetup open -S0 /dev/sda crypthdd\nEnter passphrase for /dev/sda:\nWarning: keyslot operation could fail as it requires more than available memory.\nKilled\n
\n
\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u306f\u30e1\u30e2\u30ea\u304c\u8db3\u308a\u306a\u305d\u3046\u3067\u3059\uff0e
\n\n\n\n\nWarning: keyslot operation could fail as it requires more than available memory.
\n
\u8a66\u3057\u305f\u306e\u306fRaspberry Pi 3 model B\u3067RAM 1GB\u306earm\u7aef\u672b\u3067\u3059\uff0e\u3053\u306eHDD\u3092\u8a2d\u5b9a\u3057\u305f\u7aef\u672b\u306eRAM\u306f16GB\u3067\u3057\u305f\uff0e
\n1GB\u3082\u3042\u3063\u3066\u5931\u6557\u3059\u308b\u306e\u3082\u306a\u306e\u304b\u306a\u3068\u601d\u3044\u3064\u3064swap\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308a\uff0c\u4e00\u6642\u7684\u306bswap\u30924GB\u307b\u3069\u8ffd\u52a0\u3057\u3066\u307f\u3066\u30821\u6642\u9593\u4ee5\u4e0a\u7d4c\u3063\u3066\u3082\u623b\u3063\u3066\u304d\u307e\u305b\u3093\u3067\u3057\u305f\uff0e\u8ae6\u3081\u3066\u9014\u4e2d\u3067\u7d42\u4e86\u3057\u307e\u3057\u305f\uff0e
\n$ sudo install -m 0600 -o 0 -g 0 /dev/null /var/tmp/swap.img\n$ sudo dd if=/dev/zero of=/var/tmp/swap.img bs=1M count=4096\n$ sudo mkswap /var/tmp/swap.img\n$ sudo swapon /var/tmp/swap.img\n
Raspberry Pi\u5074\u3067\u518d\u5ea6cryptsetup luksFormat\u304b\u3089\u3084\u308a\u76f4\u3057\u304b\u306a\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u304c\uff0c\u4e00\u65e6\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u305fPC\u306b\u63a5\u7d9a\u3057\u76f4\u3057\u3066\uff0c\u65b0\u3057\u3044\u30ad\u30fc\u30b9\u30ed\u30c3\u30c8\u3092 --pbkdf-memory \u3067\u30e1\u30e2\u30ea\u3092\u5236\u9650\u3057\u305f\u308a, --pbkdf pbkdf2 \u306e\u3088\u3046\u306b\u53e4\u3044\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067RAM 1GB\u306eRaspberry Pi\u3067\u3082open\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3057\u305f\uff0e
$ sudo cryptsetup luksDump /dev/sdb | grep \"0: luks2\" -A 15\n 0: luks2\n Key: 512 bits\n Priority: normal\n Cipher: aes-xts-plain64\n Cipher key: 512 bits\n PBKDF: argon2id\n Time cost: 6\n Memory: 1048576\n Threads: 4\n Salt: 60 50 4a 09 0d ed 44 1d 53 52 04 f5 71 15 58 40\n 42 8b 7d 36 8f 7c f7 b5 2f 7f af 79 1f 68 e8 29\n AF stripes: 4000\n AF hash: sha256\n Area offset:32768 [bytes]\n Area length:258048 [bytes]\n Digest ID: 0\n
pbkdf2 \u3092\u5229\u7528$ sudo cryptsetup luksAddKey --pbkdf pbkdf2 -S 1 /dev/sda\nWARNING: The --key-slot parameter is used for new keyslot number.\nEnter any existing passphrase:\nEnter new passphrase for key slot:\nVerify passphrase:\n$ sudo cryptsetup luksDump /dev/sdb | grep \"1: luks2\" -A 14 (1)\n 1: luks2\n Key: 512 bits\n Priority: normal\n Cipher: aes-xts-plain64\n Cipher key: 512 bits\n PBKDF: pbkdf2\n Hash: sha256\n Iterations: 1669706\n Salt: 4b a5 42 b1 41 ce 0b 5f 14 f6 da 05 a8 ad f7 7f\n 23 60 d1 03 c4 18 ce ca f4 fa 63 56 04 f0 b8 a5\n AF stripes: 4000\n AF hash: sha256\n Area offset:290816 [bytes]\n Area length:258048 [bytes]\n Digest ID: 0\n
$ echo $(sudo cryptsetup luksDump /dev/sda | grep \"0: luks2\" -A 14 | grep Memory: | cut -f6- -d\\ )/2 | bc\n524288\n$ sudo cryptsetup luksAddKey -S 2 --pbkdf-memory=524288 /dev/sda\nWARNING: The --key-slot parameter is used for new keyslot number.\nEnter any existing passphrase:\nEnter new passphrase for key slot:\nVerify passphrase:\n$ sudo cryptsetup luksDump /dev/sda | grep \"2: luks2\" -A15\n 2: luks2\n Key: 512 bits\n Priority: normal\n Cipher: aes-xts-plain64\n Cipher key: 512 bits\n PBKDF: argon2id\n Time cost: 10\n Memory: 524288\n Threads: 4\n Salt: 9c 04 4e e9 db 79 4e db 67 41 99 96 0d b4 a5 66\n 4f 6d 0d 7f fd 8d e5 60 5b c1 b3 12 6d f2 df ba\n AF stripes: 4000\n AF hash: sha256\n Area offset:1064960 [bytes]\n Area length:258048 [bytes]\n Digest ID: 0\n
| \n Tip \n | \n\n\u3053\u3053\u3067\u306eMemory\u306e\u5358\u4f4d\u306fkilobytes\u3067\u3059\uff0e\n | \n
$ sudo cryptsetup open -S1 /dev/sda chdd (1)\nEnter passphrase for /dev/sda:\n$ sudo cryptsetup close chdd\n$ sudo cryptsetup open -S2 /dev/sda chdd (2)\nEnter passphrase for /dev/sda:\nWarning: keyslot operation could fail as it requires more than available memory. (3)\n$ ls -l /dev/mapper/chdd\nlrwxrwxrwx 1 root root 7 Nov 15 05:58 /dev/mapper/chdd -> ../dm-0\n$ sudo cryptsetup close chdd\n
pdkdf2\u306ekeyslot1\u3092open
\nargon2id/Memory 523288\u306ekeyslot2\u3092open
\n\u8b66\u544a\u304c\u51fa\u308b\u304copen\u51fa\u6765\u305f
\n| \n Tip \n | \n\nkeyslot\u306f0\u304b\u3089\u306f\u3058\u307e\u308aLUKS1\u306f8slot\uff0cLUKS2\u3067\u306f32slot\u5229\u7528\u53ef\u80fd\u3067\u3059\uff0e\n | \n
Raspberry Pi\u3067open\u3067\u304d\u306a\u3044keyslot\u306f\u90aa\u9b54\u306a\u306e\u3067\u6d88\u3057\u3066\u3057\u307e\u3044\u307e\u3059\uff0e
\n$ sudo cryptsetup luksKillSlot /dev/sdb 0\nEnter any remaining passphrase:\n
\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u306a\u304b\u3063\u305f\u3089\u305d\u306e\u7aef\u672b\u306b\u3042\u3063\u305f\u8a2d\u5b9a\u306b\u306a\u308b\u3068\u601d\u3046\u306e\u3067\u65e2\u5b9a\u5024\u3067\u8a2d\u5b9a\u3057\u3066\u307f\u307e\u3059\uff0e
\n$ sudo cryptsetup luksAddKey -S4 /dev/sda\nWARNING: The --key-slot parameter is used for new keyslot number.\nEnter any existing passphrase:\nEnter new passphrase for key slot:\nVerify passphrase:\n$ sudo cryptsetup luksDump /dev/sda | grep \"4: luks2\" -A15\n 4: luks2\n Key: 512 bits\n Priority: normal\n Cipher: aes-xts-plain64\n Cipher key: 512 bits\n PBKDF: argon2id\n Time cost: 4\n Memory: 170223 (1)\n Threads: 4\n Salt: 2d 06 67 aa 97 1f fd d5 02 72 54 ab a5 31 9b 9d\n 83 18 12 cd c1 2f 98 56 a5 4a 75 10 ea eb 7b bc\n AF stripes: 4000\n AF hash: sha256\n Area offset:32768 [bytes]\n Area length:258048 [bytes]\n Digest ID: 0\n
PC\u3067\u4f5c\u6210\u3057\u305fkeyslot0\u3068\u6bd4\u3079\u308b\u3068\u4e3b\u306bTime cost\u3068Memory\u304c\u5909\u308f\u308a\u307e\u3057\u305f\uff0e\u30e1\u30e2\u30ea\u91cf\u306f\u5927\u5206\u6e1b\u308a\u307e\u3057\u305f\uff0e
\n| \n | PC | \nPi | \n
|---|---|---|
| \n Time cost \n | \n\n 10 \n | \n\n 4 \n | \n
| \n Memory \n | \n\n 1048576 \n | \n\n 170223 \n | \n
\u4eca\u56deCPU Intel\u7b2c10\u4e16\u4ee3\uff0cRAM 16GB\u306elaptop\u306ecryptsetup\u3067\u6697\u53f7\u5316\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u4f5c\u6210\uff0cSOC Broadcom BCM2837(1.2GHz 64-bit quad-core ARMv8 Cortex-A53)\uff0cRAM 1GB\u306eSBC\u306eRaspberry Pi 3 model B\u3067\u5229\u7528\u3057\u3088\u3046\u3068open\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u3053\u308d\u3067\u30e1\u30e2\u30ea\u4e0d\u8db3\u3067\u5931\u6557\u3057\u307e\u3057\u305f\uff0e
\ncryptsetup\u306fluksAddkey\u3092\u884c\u3046\u3068\u304d\u306b\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u3092\u5b9f\u884c\u3057\uff0c\u74b0\u5883\u306b\u5408\u3063\u305fkeyslot\u3092\u4f5c\u308d\u3046\u3068\u3059\u308b\u3088\u3046\u3067\u3059\uff0e\u305d\u306e\u305f\u3081\u30b9\u30da\u30c3\u30af\u3055\u304c\u3042\u308b\u5834\u5408\u306f\u4e00\u756a\u4f4e\u30b9\u30da\u30c3\u30af\u306a\u7aef\u672b\u3067\u8a2d\u5b9a\u3059\u308b\u304b\uff0ccryptsetup benchmark\u3092\u5b9f\u884c\u3057\u3066\u305d\u306e\u7d50\u679c\u3092\u53c2\u8003\u306b\u8a2d\u5b9a\u3059\u308b\u3088\u3046\u306b\u3057\u305f\u307b\u3046\u304c\u826f\u3055\u305d\u3046\u3067\u3059\uff0e\u305d\u3046\u3067\u306a\u3044\u3068\u4eca\u56de\u306e\u3088\u3046\u306b\u4f4e\u30b9\u30da\u30c3\u30af\u306a\u7aef\u672b\u3067\u958b\u3051\u306a\u3044\u3068\u3044\u3063\u305f\u3053\u3068\u304c\u8d77\u304d\u307e\u3059\uff0e
\u3053\u3053\u306f\u4f59\u9332\u3067\u3059\uff0esystemd\u3067\u624b\u52d5\u30de\u30a6\u30f3\u30c8\u3059\u308b\u3088\u3046\u3057\u3066\u307f\u307e\u3057\u305f\uff0e
\n\u624b\u52d5\u30de\u30f3\u30c8\u306e\u5834\u5408\u306f\u524d\u8a2d\u5b9a\u306e\u624b\u9593\u3092\u8003\u3048\u308b\u3068\u5168\u90e8\u624b\u52d5\u3067\u3082\u826f\u3044\u3088\u3046\u306a\u611f\u3058\u3082\u3057\u307e\u3059\uff0e
$ sudo cryptsetup luksDump /dev/sda | grep \"UUID\" (1)\nUUID: 28dee849-e142-49bc-96c2-be62adfc9309\n$ sudo install -o0 -g0 -m0600 /dev/null /etc/crypttab (2)\n$ echo \"crypthdd UUID=28dee849-e142-49bc-96c2-be62adfc9309 none luks,discard,keyslot=1,noauto\" | sudo tee /etc/crypttab (3)\ncrypthdd UUID=28dee849-e142-49bc-96c2-be62adfc9309 none luks,discard,keyslot=1,noauto\n$ echo \"/dev/mapper/crypthdd /mnt btrfs nodev,noexec,noauto,compress=zstd,nofail,x-systemd.automount,x-systemd.device-timeout=30 0 0\" \\\n | sudo tee -a /etc/fstab (4)\n/dev/mapper/crypthdd /mnt btrfs nodev,noexec,noauto,compress=zstd,nofail,x-systemd.automount,x-systemd.device-timeout=30 0 0\n$ sudo systemctl daemon-reload (5)\n$ sudo systemctl start systemd-cryptsetup@crypthdd.service (6)\nPlease enter passphrase for disk 541050A9E680 (crypthdd) on /mnt: (no echo)\n$ df /mnt (7)\nFilesystem 1K-blocks Used Available Use% Mounted on\n/dev/mapper/crypthdd 488370200 5920 486255616 1% /mnt\n$ mount | grep /mnt\nsystemd-1 on /mnt type autofs (rw,relatime,fd=46,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)\n/dev/mapper/crypthdd on /mnt type btrfs (rw,nodev,noexec,relatime,compress=zstd:3,space_cache=v2,subvolid=5,subvol=/,x-systemd.automount)\n
LUKS\u30c7\u30d0\u30a4\u30b9\u306eUUID\u3092\u78ba\u8a8d
\ncrypttab\u3092\u4f5c\u6210
\ncrypttab\u3092\u8a2d\u5b9a
\nfstab\u306b\u8ffd\u8a18
\nsystemd\u306b\u53cd\u6620
\nLUKS\u624b\u52d5\u30a2\u30f3\u30ed\u30c3\u30af
\n\u30de\u30a6\u30f3\u30c8\u30dd\u30a4\u30f3\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u81ea\u52d5\u30de\u30a6\u30f3\u30c8
\nThinkPad X201s(CPU:Core i7 620L/RAM:8GB)\u3067\u8a2d\u5b9a\u3057\u305f\u3068\u601d\u3046\u53e4\u3044disk\u3082\u3042\u3063\u305f\u306e\u3067luksDump\u3092\u898b\u3066\u307f\u308b\u3068\u3053\u3093\u306a\u611f\u3058\u3067\u3057\u305f\uff0e
\n$ sudo cryptsetup luksDump /dev/sdb\nLUKS header information for /dev/sdb\n\nVersion: 1\nCipher name: aes\nCipher mode: cbc-essiv:sha256\nHash spec: sha1\nPayload offset: 2056\nMK bits: 256\nMK digest: 55 fc 34 22 89 b0 e5 65 f1 cb fd 34 96 2f 2c 16 6a 62 e7 24\nMK salt: e3 fe 28 46 06 36 00 36 c6 e0 0c 9b e9 7a 2f ea\n 6e 3b 96 ee b0 f9 33 fd 2a 60 8d 2d 87 fe de bd\nMK iterations: 12500\nUUID: ac5b8484-4b26-4967-b336-f63c408bb17d\n\nKey Slot 0: ENABLED\n Iterations: 50352\n Salt: 08 7d 85 89 39 0e 94 6e e8 2f ab 3d ab 18 e1 17\n 37 50 a5 ce fe d4 e1 78 e1 4f a2 59 d3 4c bb 54\n Key material offset: 8\n AF stripes: 4000\nKey Slot 1: DISABLED\nKey Slot 2: DISABLED\nKey Slot 3: DISABLED\nKey Slot 4: DISABLED\nKey Slot 5: DISABLED\nKey Slot 6: DISABLED\nKey Slot 7: DISABLED\n
$ dpkg-query -W cryptsetup\ncryptsetup 2:2.7.5-1\n$ lsb_release -dr\nDescription: Debian GNU/Linux trixie/sid\nRelease: n/a\n$ arch\nx86_64\n$ lscpu | grep \"^Model name:\"\nModel name: Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz\n$ head -1 /proc/meminfo\nMemTotal: 15992644 kB\n
$ dpkg-query -W cryptsetup\ncryptsetup 2:2.6.1-4~deb12u2\n$ lsb_release -dr\nNo LSB modules are available.\nDescription: Raspbian GNU/Linux 12 (bookworm)\nRelease: 12\n$ arch\narmv7l\n$ grep \"^Hardware\" /proc/cpuinfo\nHardware : BCM2835\n$ grep \"^Model\" /proc/cpuinfo\nModel : Raspberry Pi 3 Model B Rev 1.2\n
Raspberry Pi OS bullseye \u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u624b\u5143\u306eRaspberry Pi 3 model B \u306eOS \u3092buster \u304b\u3089bullseye \u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u3066\u307f\u307e\u3057\u305f\uff0e
\n\n
\u4eca\u56de\u306e\u74b0\u5883\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u3059\uff0e
\n/etc \u306f etckeeper(git) \u3067\u7ba1\u7406\u3057\u3066\u3044\u308b\u306e\u3067\u30ea\u30e2\u30fc\u30c8\u306bpush \u3057\u3066\u304a\u304d\u307e\u3059\uff0e/home \u306f\u624b\u52d5\u3067\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\uff0e
\n\u305d\u306e\u4ed6\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\uff0e
\u3082\u3057\u304f\u306f\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u307e\u308b\u3054\u3068\u30a4\u30e1\u30fc\u30b8\u3067\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\uff0e(SD Card Copier/dd\u7b49)
\nRaspberry Pi OS buster \u3092\u6700\u65b0\u306e\u72b6\u614b\u3057\u307e\u3059\uff0e
\n$ sudo mount -o remount,rw /boot (1)\n$ sudo apt update (2)\n$ sudo apt upgrade (3)\n$ sudo reboot (4)\n
script \u30b3\u30de\u30f3\u30c9\u3067\u64cd\u4f5c\u30ed\u30b0\u3092\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u51fa\u3059\u3088\u3046\u306b\u3057\u3066\u304a\u304d\u307e\u3059\uff0e\u4f55\u304b\u5408\u3063\u305f\u6642\u306b\u53c2\u7167\u3057\u307e\u3059\uff0e(\u63a5\u7d9a\u5143\u306e\u7aef\u672b\u3067\u3082\u4fdd\u5b58\u3057\u3066\u304a\u304f\u3068\u4f8b\u3048\u3070disk full\u306a\u3069\u306e\u3068\u304d\u306b\u3082\u4fdd\u5b58\u3055\u308c\u308b\u306e\u3067\u5b89\u5fc3)
\n$ script -a ~/buster2bullseye_$(date +%F-%T).log\n
$ dpkg --audit (1)\n$ dpkg --get-selections | grep 'hold\n\n
/etc/apt/sources.list \u3092\u66f8\u304d\u63db\u3048\u307e\u3059\uff0ebuster \u3092 bullseye \u306b\u5909\u66f4\uff0e\u7de8\u96c6\u6642\u306b\u306f apt edit-sources \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u3068\u6587\u6cd5\u30c1\u30a7\u30c3\u30af\u3092\u3057\u3066\u304f\u308c\u308b\uff0e
$ sudo apt edit-sources\n$ cat /etc/apt/sources.list\ndeb http://raspbian.raspberrypi.org/raspbian/ bullseye main contrib non-free rpi\ndeb-src http://raspbian.raspberrypi.org/raspbian/ bullseye main contrib non-free rpi\n
/etc/apt/sources.list.d/ \u4ee5\u4e0b\u3082\u78ba\u8a8d\u3057\u3066\uff0cRaspberry Pi OS \u4ee5\u5916\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306f\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3059\u308b\uff0e(apt edit-sources ${FILENAME} \u3067\u7de8\u96c6\u53ef\u80fd)
$ sudo apt update\n
$ sudo apt -o APT::Get::Trivial-Only=true full-upgrade\n
$ sudo mount -o remount,rw /boot\n
\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u4e2d\u306b\u65b0\u898f\u306e SSH \u63a5\u7d9a\u304c\u51fa\u6765\u306a\u3044 \u3088\u3046\u306a\u306e\u3067\u524d\u3082\u3063\u3066\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u3066\u304a\u304f\uff0e(\u30c8\u30e9\u30d6\u30eb\u304c\u8d77\u304d\u306a\u3051\u308c\u3070\u65e2\u5b58\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u3060\u3051\u3067\u554f\u984c\u306a\u3044\u306f\u305a\u3060\u304c\u5ff5\u306e\u70ba)
\n$ sudo apt install openssh-server\n
\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u5f8cssh \u63a5\u7d9a\u304c\u3067\u304d\u308b\u3053\u3068\u3092\u78ba\u8a8d\uff0e
\n$ sudo apt upgrade --without-new-pkgs\n
$ sudo apt full-upgrade\n
\u624b\u5143\u306e\u74b0\u5883\u3067\u306f full-upgrade \u6642\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u4f9d\u5b58\u95a2\u4fc2\u306e\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3057\u305f\uff0e
$ sudo apt full-upgrade\nReading package lists... Done\nBuilding dependency tree\nReading state information... Done\nCalculating upgrade... Error!\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n libc6-dev : Breaks: libgcc-8-dev (< 8.4.0-2~) but 8.3.0-6+rpi1 is to be installed\nE: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.\n
gcc-8-base \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5c0e\u5165\u3057\u3066\u518d\u5ea6 dist-upgrade \u3092\u8a66\u307f\u308b\u3053\u3068\u3067\u89e3\u6c7a\u3057\u307e\u3057\u305f\uff0e
$ sudo apt install gcc-8-base libc6-dev\n$ sudo apt full-upgrade\n
/boot/config.txt \u3092\u7de8\u96c6\u3057\u307e\u3059\uff0e\u30d5\u30a1\u30a4\u30eb\u5185\u306e dtoverlay=vc4-fkms-v3d \u884c\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\uff0c[all] \u30bb\u30af\u30b7\u30e7\u30f3\u5185\u306b dtoverlay=vc4-kms-v3d \u3092\u8a18\u8ff0\u3057\u307e\u3059\uff0e
[all]\n#dtoverlay=vc4-fkms-v3d (1)\ndtoverlay=vc4-kms-v3d (2)\n
\u5f8c\u306f\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306eAPT source-list \u30d5\u30a1\u30a4\u30eb\u3092\u4fee\u6b63\u3057\u305f\u308a\uff0c\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u3092\u3057\u305f\u308a\uff0cbullseye\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u306a\u304f\u306a\u3063\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u78ba\u8a8d\u3057\u305f\u308a\uff0c\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u6642\u306b\u524a\u9664\u3055\u308c\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u78ba\u8a8d\u3057\u305f\u308a\u2026\u2026\uff0e
\n\u4e00\u901a\u308a\u8a2d\u5b9a\u304c\u7d42\u308f\u3063\u305f\u3089\u3053\u3053\u3067\u3082\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u3057\u3066\u304a\u304f\uff0e
\n\u4e3b\u306b\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306b\u3057\u307e\u3057\u305f\uff0e
\nRaspberry Pi OS armhf\u306b libwidevinecdm0 \u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u5165\u3063\u305f\u3088\u3046\u3067\u3059\uff0eRaspberry Pi 3 Model B\u3067\u3082\u52d5\u4f5c\u3057\u305f\u306e\u3067\u30e1\u30e2\u3057\u3066\u304a\u304d\u307e\u3059\uff0e
libwidevinecdm0 \u30d1\u30c3\u30b1\u30fc\u30b8\u306fWidevine\u3068\u3044\u3046DRM\u4ed8\u304d\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u95b2\u89a7\u3059\u308b\u305f\u3081\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u3059\uff0e
Widevine\u306f\u7d50\u69cb\u3042\u3061\u3053\u3061\u3067\u898b\u304b\u3051\u307e\u3059\uff0esite\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b5\u30fc\u30d3\u30b9\u304c\u8f09\u3063\u3066\u3044\u307e\u3057\u305f\uff0e
\n\u307e\u305aWidevine\u306b\u975e\u5bfe\u5fdc\u306a\u72b6\u614b\u3067Netflix\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u95b2\u89a7\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3053\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\uff0e
\n| \n Note \n | \n\nNetflix\u306e\u4f1a\u54e1\u3058\u3083\u306a\u304f\u3066\u3082\u6b21\u3067\u8a66\u305b\u307e\u3059\uff0e \nTV\u756a\u7d44\u30fb\u30c9\u30e9\u30de\u3092\u7121\u6599\u3067\u8996\u8074 | Netflix \u304a\u8a66\u3057\u7121\u6599\u914d\u4fe1 | \n
\u3053\u3053\u3067 libwidevinecdm0 \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5c0e\u5165\u3057\u3066Chromium\u3092\u8d77\u52d5\u3057\u306a\u304a\u305b\u3070OK\u306a\u306f\u305a\u3067\u3059\u304c\u3046\u307e\u304f\u884c\u304d\u307e\u305b\u3093\uff0e
\nchrome://components/ \u3092\u898b\u3066\u3082 Widevine \u304c\u51fa\u3066\u304d\u307e\u305b\u3093\uff0e
https://bitmovin.com/demos/drm \u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u308b\u3068\uff0c Detected , using No DRM \u3068\u8868\u793a\u3055\u308cDRM\u304c\u4f7f\u3048\u306a\u3044\u3088\u3046\u3067\u3059\uff0e
Raspberry Pi 4 Model B/400\u4ee5\u5916\u306e\u4e8b\u4f8b\u304c\u898b\u5f53\u305f\u3089\u306a\u3044\u306e\u3067\u3082\u3057\u304b\u3057\u3066\u4f55\u3089\u304b\u306e\u8981\u4ef6\u304c\u8db3\u308a\u306a\u304f\u3066Raspberry Pi 4 \u3088\u308a\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u52d5\u304b\u306a\u3044\u306e\u304b\u306a?\u3068\u304b\u601d\u3063\u305f\u306e\u3067\u3059\u304c\uff0c\u3082\u3046\u5c11\u3057\u8abf\u3079\u308b\u3068Raspberry Pi OS\u306eChromium\u306b\u306f\u3000chromium \u3068 chromium-browser \u306e2\u3064\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308b\u3088\u3046\u3067\u3059\uff0e
$ apt show chromium\nPackage: chromium\nVersion: 88.0.4324.146-1~deb10u1\nPriority: optional\nSection: web\nMaintainer: Debian Chromium Team <chromium@packages.debian.org>\nInstalled-Size: 114 MB\nProvides: gnome-www-browser, www-browser\nDepends: libasound2 (>= 1.0.16), libatk-bridge2.0-0 (>= 2.5.3), libatk1.0-0 (>= 2.2.0), libatomic1 (>= 4.8), libatspi2.0-0 (>= 2.9.90), libavcode\nc58 (>= 7:4.0), libavformat58 (>= 7:4.1), libavutil56 (>= 7:4.0), libc6 (>= 2.28), libcairo2 (>= 1.6.0), libcups2 (>= 1.7.0), libdbus-1-3 (>= 1.9\n.14), libdrm2 (>= 2.4.38), libevent-2.1-6 (>= 2.1.8-stable), libexpat1 (>= 2.0.1), libflac8 (>= 1.3.0), libfontconfig1 (>= 2.12.6), libfreetype6\n(>= 2.3.9), libgbm1 (>= 17.1.0~rc2), libgcc1 (>= 1:4.0), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.39.4), libgtk-3-0 (>= 3.19.12), libha\nrfbuzz0b (>= 2.2.0), libicu63 (>= 63.1-1~), libjpeg62-turbo (>= 1.5.0), libjsoncpp1 (>= 1.7.4), liblcms2-2 (>= 2.2+git20110628), libminizip1 (>=\n1.1), libnspr4 (>= 2:4.9-2~), libnss3 (>= 2:3.22), libopenjp2-7 (>= 2.2.0), libopus0 (>= 1.1), libpango-1.0-0 (>= 1.14.0), libpng16-16 (>= 1.6.2-\n1), libpulse0 (>= 0.99.1), libre2-5 (>= 20160901), libsnappy1v5, libstdc++6 (>= 7), libvpx5 (>= 1.6.0), libwebp6 (>= 0.5.1), libwebpdemux2 (>= 0.\n5.1), libwebpmux3 (>= 0.6.1-2), libx11-6 (>= 2:1.4.99.1), libxcb1 (>= 1.9.2), libxcomposite1 (>= 1:0.3-1), libxdamage1 (>= 1:1.1), libxext6, libx\nfixes3, libxml2 (>= 2.7.4), libxrandr2, libxslt1.1 (>= 1.1.25), zlib1g (>= 1:1.2.2), chromium-common (= 88.0.4324.146-1~deb10u1)\nRecommends: chromium-sandbox\nSuggests: chromium-l10n, chromium-shell, chromium-driver\nConflicts: libgl1-mesa-swx11, libnettle4, libsecret-1-0 (<< 0.18)\nBreaks: chromium-lwn4chrome (<= 1.0-2), chromium-tt-rss-notifier (<= 0.5.2-2)\nHomepage: http://www.chromium.org/Home\nDownload-Size: 48.9 MB\nAPT-Sources: http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages\nDescription: web browser\n Web browser that aims to build a safer, faster, and more stable internet\n browsing experience.\n .\n This package contains the web browser component.\n$ apt show chromium-browser\nPackage: chromium-browser\nVersion: 88.0.4324.187-rpt1\nPriority: optional\nSection: web\nMaintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>\nInstalled-Size: 329 MB\nProvides: chromium, chromium-browser-inspector, www-browser\nPre-Depends: dpkg (>= 1.15.6)\nDepends: libasound2 (>= 1.0.16), libatk-bridge2.0-0 (>= 2.5.3), libatk1.0-0 (>= 2.2.0), libatspi2.0-0 (>= 2.9.90), libc6 (>= 2.18), libcairo2 (>=\n 1.6.0), libcups2 (>= 1.7.0), libdbus-1-3 (>= 1.9.14), libdrm2 (>= 2.4.38), libexpat1 (>= 2.0.1), libgbm1 (>= 17.1.0~rc2), libgcc1 (>= 1:4.3), li\nbgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.39.4), libgtk-3-0 (>= 3.21.5), libnspr4 (>= 2:4.9-2~), libnss3 (>= 2:3.22), libpango-1.0-0 (>= 1\n.14.0), libx11-6 (>= 2:1.4.99.1), libxcb1 (>= 1.9.2), libxcomposite1 (>= 1:0.3-1), libxdamage1 (>= 1:1.1), libxext6, libxfixes3, libxkbcommon0 (>\n= 0.5.0), libxrandr2, libxtst6, bash (>= 4), xdg-utils, chromium-codecs-ffmpeg-extra (= 88.0.4324.187-rpt1) | chromium-codecs-ffmpeg (= 88.0.4324\n.187-rpt1), libraspberrypi0, libgl1-mesa-dri\nRecommends: chromium-browser-l10n\nSuggests: webaccounts-chromium-extension, unity-chromium-extension, adobe-flashplugin\nConflicts: chromium, chromium-browser-inspector\nReplaces: chromium, chromium-browser-inspector\nHomepage: https://chromium.googlesource.com/chromium/src/\nDownload-Size: 103 MB\nAPT-Manual-Installed: no\nAPT-Sources: http://archive.raspberrypi.org/debian buster/main armhf Packages\nDescription: Chromium web browser, open-source version of Chrome\n An open-source browser project that aims to build a safer, faster, and more\n stable way for all Internet users to experience the web.\n\u305d\u3057\u3066\u3046\u307e\u304f\u884c\u304b\u306a\u304b\u3063\u305f\u306e\u306f chromium \u3067\u3057\u305f\uff0e
\nchromium-browser \u3092\u5165\u308c\u3066(\u6392\u4ed6\u306a\u306e\u3067 chromim \u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u524a\u9664\u3055\u308c\u308b)\u518d\u5ea6\u8a66\u3059\u3068\uff0cchrome://components/ \u306b Widevine \u304c\u73fe\u308c\u3066\uff0c
https://bitmovin.com/demos/drm \u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u308b\u3068\uff0c Detected , using widevine \u3068\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308aNetflix\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3082\u95b2\u89a7\u3067\u304d\u307e\u3057\u305f\uff0e
| \n Note \n | \n\n\u653b\u6bbb\u6a5f\u52d5\u968a SAC_2045 \u3088\u308a\uff0e\u306a\u3093\u3060\u304bOP\u304cPortal\u611f | \n
\u3068\u3044\u3046\u3053\u3068\u3067\uff0cRaspberry Pi 3 Model B + Raspberry Pi OS armhf \u3067\u3082 libwidevinecdm0 \u30d1\u30c3\u30b1\u30fc\u30b8\u3068 chromium-browser \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5c0e\u5165\u3059\u308b\u3053\u3068\u3067Widevine\u306eDRM\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u89b3\u3089\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f :)
\n(DRM\u306a\u3057\u3067\u95b2\u89a7\u3067\u304d\u305f\u307b\u3046\u304c\u5b09\u3057\u3044\u3067\u3059\u304c)
$ sudo apt update\n$ sudo apt install chromium-browser libwidevinecdm0\n$ chromium-browser &\n$ dpkg-query -W chromium-browser* libwidevinecdm0\nchromium-browser 88.0.4324.187-rpt1\nchromium-browser-inspector\nchromium-browser-l10n 88.0.4324.187-rpt1\nlibwidevinecdm0 4.10.1679.0-1\n$ lsb_release -dr\nDescription: Raspbian GNU/Linux 10 (buster)\nRelease: 10\n$ uname -m\narmv7l\n$ cat /proc/device-tree/model ;echo\nRaspberry Pi 3 Model B Rev 1.2\n\u3053\u306e\u8a18\u4e8b\u306f\u65e5\u672cAndroid\u306e\u4f1a\u79cb\u8449\u539f\u652f\u90e8\u30ed\u30dc\u30c3\u30c8\u90e8 Advent Calendar 2020 \u306e12/07\u5206\u306e\u8a18\u4e8b\u3067\u3059\uff0e
\n\u5185\u5bb9\u306f \u65e5\u672cAndroid\u306e\u4f1a\u79cb\u8449\u539f\u652f\u90e8\u30ed\u30dc\u30c3\u30c8\u90e8 \u7b2c96\u56de\u52c9\u5f37\u4f1a \u3067\u767a\u8868\u3057\u305f\u5185\u5bb9\u3092\u52a0\u7b46\u4fee\u6b63\u3057\u305f\u3082\u306e\u3067\u3059\uff0e
\nRaspberry Pi \u3068\u3044\u3046\u82f1\u56fd\u767a\u306e\u6559\u80b2\u5411\u3051\u3068\u3057\u30662012\u5e74\u306b\u767a\u58f2\u3055\u308c\u305f\u5b89\u4fa1\u306a\u30b7\u30f3\u30b0\u30eb\u30dc\u30fc\u30c9\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u304c\u3042\u308a\u307e\u3059\uff0e\u6559\u80b2\u5411\u3051\u3068\u3057\u3066\u767a\u58f2\u3055\u308c\u307e\u3057\u305f\u304c\u8da3\u5473\u306b\u3082\u3088\u304f\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\uff0eOS\u306f\u6a19\u6e96\u3067\u306fLinux(Debian\u30d9\u30fc\u30b9\u306eRaspberry Pi OS)\u304c\u63a1\u7528\u3055\u308c\u3066\u3044\u307e\u3059\uff0e
\n\u79c1\u306f\u3082\u3063\u3071\u3089\u7701\u96fb\u529b\u306eLinux\u30de\u30b7\u30f3\u3068\u3057\u3066\u4f7f\u3046\u3053\u3068\u304c\u591a\u3044\u3067\u3059\uff0e
\n\u4eca\u590f\u7a7a\u8abf\u306e\u306a\u3044\u90e8\u5c4b\u306e\u81ea\u5b85\u30b5\u30fc\u30d0\u306e\u6a2a\u3067Raspberry Pi 3 model B + Raspberry Pi OS arm64(\u03b2)\u3067\u8a08\u7b97\u3092\u3055\u305b\u3066\u3044\u305f\u306e\u3067\u3059\u304c\uff0c\u3057\u3070\u3089\u304f\u52d5\u304b\u3057\u3066\u3044\u308b\u3068\u56fa\u307e\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff0e
\n\u518d\u8d77\u52d5\u3059\u308c\u3070\u3057\u3070\u3089\u304f\u52d5\u304d\u307e\u3059\u304c\u3057\u3070\u3089\u304f\u3059\u308b\u3068\u3084\u306f\u308a\u56fa\u307e\u308a\u307e\u3059\uff0e\u3053\u308c\u3092\u3069\u3046\u306b\u304b\u51fa\u6765\u306a\u3044\u304b\u3068\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\uff0e
\n\u307e\u305a\u306f\u30ed\u30b0\u3092\u9332\u3063\u3066\u307f\u307e\u3059\uff0e
\n* * * * * printf \"`date +\\%s`,`cat /sys/class/thermal/thermal_zone0/temp`,`echo \"obase=2; ibase=16; \\`vcgencmd get_throttled | cut -f2 -dx\\`\" | bc`,`vcgencmd measure_clock arm|cut -f2 -d=`\\n\" >> ~/.temp.log\n
\u5185\u5bb9\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\uff0e(\u5916\u6c17\u6e29\u5ea6\u3082\u9332\u308c\u3070\u3088\u304b\u3063\u305f)
\ndate +%s/sys/class/thermal/thermal_zone0/tempvcgencmd get_throttledvcgencmd measure_clock arm\u30ed\u30b0\u304c\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304b\u308c\u308b\u9593\u306b\u30d5\u30ea\u30fc\u30ba\u3057\u3066\u30c7\u30fc\u30bf\u304c\u5931\u308f\u308c\u308b\u306e\u3092\u9632\u3050\u305f\u3081\u306b /etc/fstab \u306e\u30de\u30a6\u30f3\u30c8\u30aa\u30d7\u30b7\u30e7\u30f3\u306b sync \u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u4ed8\u3051\u3066\u304a\u304d\u307e\u3059\uff0e(\u518d\u8d77\u52d5\u304bremount\u3067\u53cd\u6620)
\u30ed\u30b0\u3092\u53d6\u5f97\u3057\u3066\u3044\u308b\u72b6\u614b\u3067\u8ca0\u8377\u3092\u639b\u3051\u307e\u3059\uff0e\u4eca\u56de\u306f /dev/urandom \u3092cat\u3059\u308b\u3053\u3068\u3067\u8a08\u7b97\u3055\u305b\u307e\u3057\u305f\uff0e\u4eca\u56de\u306eRaspberry Pi 3 model B\u306f4core\u3042\u308b\u306e\u30674\u3064\u52d5\u304b\u3057\u3066\u3044\u307e\u3059\uff0e
$ cat /dev/urandom > /dev/null &\n$ cat /dev/urandom > /dev/null &\n$ cat /dev/urandom > /dev/null &\n$ cat /dev/urandom > /dev/null &\n
\u3057\u3070\u3089\u304f\u52d5\u304b\u3057\u3066Raspberry Pi\u304c\u56fa\u307e\u3063\u305f\u5f8c\u306b\u30ed\u30b0\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\uff0e
\nSoC\u306e\u6e29\u5ea6\u304c85\u5ea6\u3092\u4f55\u5ea6\u304b\u8a18\u9332\u3057\u305f\u5f8c\u306b\u56fa\u307e\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\uff0e
\n85\u5ea6\u3068\u3044\u3046\u306e\u306fRaspberry Pi OS\u3067\u306e\u6a19\u6e96\u306eSoC\u5236\u9650\u6e29\u5ea6\u306e\u3088\u3046\u3067\u3059\uff0e\u3053\u306e\u6e29\u5ea6\u306e5\u5ea6\u524d(\u6a19\u6e96\u3067\u306f80\u5ea6)\u304b\u3089\u30b5\u30fc\u30de\u30eb\u30b9\u30ed\u30c3\u30c8\u30ea\u30f3\u30b0\u304c\u59cb\u307e\u308b\u3088\u3046\u3067\u3059\uff0e
\u30b5\u30fc\u30de\u30eb\u30b9\u30ed\u30c3\u30c8\u30ea\u30f3\u30b0\u3067\u30af\u30ed\u30c3\u30af\u304c\u4e0b\u304c\u3063\u3066\u6e29\u5ea6\u304c\u4e0b\u304c\u308c\u3070\u554f\u984c\u7121\u3055\u305d\u3046\u3060\u3051\u306980\u5ea6\u304b\u3089\u30af\u30ed\u30c3\u30af\u304c\u4e0b\u304c\u3063\u3066\u308285\u5ea6\u3092\u8d85\u3048\u3066\u56fa\u307e\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\uff0e
\n\u30d9\u30fc\u30bf\u7248\u306eRaspberry Pi OS amd64\u3092\u4f7f\u3063\u3066\u3044\u308b\u305b\u3044\u304b\u3082\u3057\u308c\u306a\u3044\u3068\u601d\u3044\uff0c\u6a19\u6e96\u306eRaspberry Pi OS armhf(32bit)\u7248\u306b\u5909\u66f4\u3057\u3066\u540c\u69d8\u306b\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u304c\u540c\u69d8\u306e\u52d5\u304d\u306e\u3088\u3046\u3067\u3059\uff0e
\u6b63\u653b\u6cd5\u3068\u3057\u3066\u306f\u30d2\u30fc\u30c8\u30b7\u30f3\u30af\uff0c\u30d5\u30a1\u30f3\u306e\u5897\u8a2d\u3084\u7a7a\u8abf\u3092\u5165\u308c\u308b\u3068\u3088\u3055\u305d\u3046\u3067\u3059\u304c\uff0c\u91d1\u6b20\u306a\u306e\u3067\u3068\u308a\u3042\u3048\u305a\u30bd\u30d5\u30c8\u3060\u3051\u3067\u3069\u3046\u306b\u304b\u51fa\u6765\u306a\u3044\u304b\u3068\u8a66\u3057\u307e\u3057\u305f\uff0e
\n\u307e\u305aSoC\u306e\u5236\u9650\u6e29\u5ea6\u3067\u3059\u304c\uff0c\u516c\u5f0f\u30d5\u30a9\u30fc\u30e9\u30e0\u306770\u5ea6\u4ee5\u4e0b\u306b\u3057\u305f\u307b\u3046\u304c\u3044\u3044\u3068\u3044\u3046\u66f8\u304d\u8fbc\u307f\u3092\u898b\u304b\u3051\u307e\u3057\u305f\uff0e\u9006\u306b100\u5ea6\u3067\u3082\u5927\u4e08\u592b\u3068\u3044\u3046\u4eba\u3082\u5c45\u308b\u306e\u3067\u3059\u304c\u5b89\u5168\u5074\u306e70\u5ea6\u306b\u3057\u3066\u307f\u307e\u3059\uff0e
\n\u3053\u306e\u8a2d\u5b9a\u306f /boot/config.txt \u3067\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8a2d\u5b9a\u3067\u304d\u307e\u3059\uff0e\u4ee5\u4e0b\u306f70\u5ea6\u306b\u8a2d\u5b9a\u305f\u3068\u304d\u306e\u4f8b\u3067\u3059\uff0e\u3053\u306e\u72b6\u614b\u3067\u518d\u8d77\u52d5\u3059\u308b\u3068\u53cd\u6620\u3055\u308c\u307e\u3059\uff0e
temp_limit=70\n
\u518d\u8d77\u52d5\u5f8c\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u8a2d\u5b9a\u304c\u53cd\u6620\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u304c\u51fa\u6765\u307e\u3059\uff0e
\n$ vcgencmd get_config int | grep ^temp_limit=\ntemp_limit=70\n
\u3053\u306e\u72b6\u614b\u3067\u8ca0\u8377\u3092\u639b\u3051\u308b\u306870\u5ea6\u3092\u8d8a\u3048\u308b\u304f\u3089\u3044\u3067\u56fa\u307e\u308a\u307e\u3057\u305f\uff0e\u3084\u306f\u308a\u5236\u9650\u6e29\u5ea6\u3092\u8d8a\u3048\u308b\u3068\u56fa\u307e\u3063\u3066\u3044\u821e\u3046\u3088\u3046\u3067\u3059\uff0e
\nRaspberry Pi 3 model B \u306eSoC\u306f\u6700\u5927\u5468\u6ce2\u65701.2GHz\u3067\u3059\uff0e\u3053\u308c\u3092\u4e0b\u3052\u3066\u307f\u307e\u3059\uff0e
\n/boot/config.txt \u306e arm_freq= \u3067\u8a2d\u5b9a\u3067\u304d\u307e\u3059\uff0e\u4ee5\u4e0b\u306f800MHz\u306b\u8a2d\u5b9a\u3057\u305f\u3068\u304d\u306e\u4f8b\u3067\u3059\uff0e\u518d\u8d77\u52d5\u3067\u53cd\u6620\u3055\u308c\u307e\u3059\uff0e
arm_freq=800\n
\u518d\u8d77\u52d5\u5f8c\u306b\u8a2d\u5b9a\u304c\u53cd\u6620\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\uff0e
\n$ vcgencmd get_config int | grep ^arm_freq=\narm_freq=800\n
\u3053\u306e\u72b6\u614b\u3067\u8ca0\u8377\u3092\u639b\u3051\u308b\u3068\u3084\u306f\u308a\u56fa\u307e\u308a\u307e\u3059\uff0e\u307e\u3042\u30b5\u30fc\u30de\u30eb\u30b9\u30ed\u30c3\u30c8\u30ea\u30f3\u30b0\u304c\u52b9\u3044\u3066\u3082\u56fa\u307e\u308b\u306e\u3067\u4ed5\u65b9\u304c\u306a\u3044\u611f\u3058\u3067\u3059\uff0e
\n\u6b21\u306bSoC\u6700\u5c0f\u5468\u6ce2\u6570\u3092\u4e0b\u3052\u3066\u307f\u307e\u3059\uff0e\u65e2\u5b9a\u5024\u306f600MHz\u3067\uff0c\u30b5\u30fc\u30de\u30eb\u30b9\u30ed\u30c3\u30c8\u30ea\u30f3\u30b0\u3067\u3082\u3053\u3053\u307e\u3067\u4e0b\u304c\u3063\u3066\u3044\u308b\u306e\u3067\u3053\u308c\u3092\u66f4\u306b\u4e0b\u3052\u308b\u3068\u6e29\u5ea6\u304c\u4e0b\u304c\u308a\u305d\u3046\u306a\u6c17\u304c\u3057\u307e\u3059\uff0e
\n/boot/config.txt \u306e arm_freq_min= \u3067\u8a2d\u5b9a\u3067\u304d\u307e\u3059\uff0e\u4ee5\u4e0b\u306f400MHz\u306b\u8a2d\u5b9a\u3057\u305f\u3068\u304d\u306e\u4f8b\u3067\u3059\uff0e\u518d\u8d77\u52d5\u3067\u53cd\u6620\u3055\u308c\u307e\u3059\uff0e
arm_freq_min=400\n
\u3057\u304b\u3057\u518d\u8d77\u52d5\u5f8c\u306b\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3068600MHz\u3088\u308a\u4e0b\u306b\u306f\u8a2d\u5b9a\u3067\u304d\u306a\u3044\u307f\u305f\u3044\u3067600MHz\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\uff0e
\n$ vcgencmd get_config int | grep ^arm_freq_min=\narm_freq_min=600\n
\u3053\u306e\u72b6\u614b\u3067\u8ca0\u8377\u3092\u639b\u3051\u308b\u3068\u3084\u306f\u308a600Mhz\u307e\u3067\u3057\u304b\u4e0b\u304c\u3089\u305a\u56fa\u307e\u308a\u307e\u3059\uff0e
\n\u6b8b\u5ff5\u306a\u304c\u3089Raspberry Pi \u306e\u30b9\u30ed\u30c3\u30c8\u30ea\u30f3\u30b0\u3067\u306f\u7121\u7406\u305d\u3046\u3067\u3059\uff0e
\nLinux\u306e\u30d6\u30fc\u30c8\u30d1\u30e9\u30e1\u30fc\u30bf\u3067 maxcpus \u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u30b3\u30a2\u3092\u5236\u9650\u3067\u304d\u307e\u3059\uff0eRaspberry Pi \u306e\u5834\u5408\u306f /boot/cmdline.txt \u3067\u8a2d\u5b9a\u3067\u304d\u307e\u3059\uff0e
\u8a2d\u5b9a\u5f8c\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\uff0e
\n$ grep -o -E 'maxcpus=.{0,9} ' /proc/cmdline\nmaxcpus=1\n$ grep ^processor /proc/cpuinfo | wc -l\n1\n\u3053\u308c\u3067CPU core1\u6d25\u3067\u52d5\u4f5c\u3057\u3066\u3044\u307e\u3059\uff0e\u3057\u304b\u3057\u6700\u5927\u5468\u6ce2\u6570\u3092600MHz\u304b\u30641core\u3067\u3082\u540c\u69d8\u306b\u30d5\u30ea\u30fc\u30ba\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u305f\uff0e
\nIntelCPU\u306eNotePC\u306a\u3069\u3067\u306fcoufreq\u3092\u4f7f\u3063\u3066\u3053\u306e\u3042\u305f\u308a\u306e\u5236\u5fa1\u3092\u3059\u308b\u306e\u3067\u3059\u304c\uff0c\u3053\u308c\u3067\u3082600mHz\u3088\u308a\u4e0b\u306b\u306f\u4e0b\u3052\u3089\u308c\u306a\u3044\u3088\u3046\u3067\u99c4\u76ee\u3067\u3057\u305f\uff0e
\nLimitCPU\u306f\u6307\u5b9a\u30d7\u30ed\u30bb\u30b9\u3092\u76e3\u8996\u3057\uff0cCPU\u5229\u7528\u7387\u3084%\u3067\u5236\u9650\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\uff0eLinux, MacOS, *BSD\u306a\u3069\u306eUNIX-Likesystem\u3067\u5229\u7528\u3067\u304d\u307e\u3059\uff0e
\nRaspberry Pi OS\u3067\u306fcpulimit\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u3057\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u30f3\u30b0\u3055\u308c\u3066\u304a\u308a\uff0c\u30b3\u30de\u30f3\u30c9\u3082coulimit\u3067\u3059\uff0e
$ sudo apt install cpulimit\n
cpulimit\u30b3\u30de\u30f3\u30c9\u306b\u5236\u9650\u3057\u305f\u3044\u30d7\u30ed\u30bb\u30b9ID\u3084\u30d7\u30ed\u30bb\u30b9\u540d\u3068\u5236\u9650\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u52d5\u4f5c\u3057\u307e\u3059\uff0e
\ncat \u304b\u3089\u306f\u3058\u307e\u308b\u30d7\u30ed\u30bb\u30b9\u309250%\u306b\u5236\u9650$ pgrep ^cat | xargs -n1 -I{} sh -c \"cpulimit -p {} -l 50 -v &\"\ncpulimit\u306750%\u306b\u5236\u9650\u3057\u3066\u307f\u305ft\u9803\u6e29\u5ea6\u304c\u4e0b\u304c\u308b\u306e\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\uff0e\u6570\u65e5\u52d5\u304b\u3057\u3066\u3082\u56fa\u307e\u3089\u306a\u304f\u306a\u3063\u305f\u3088\u3046\u3067\u3059\uff0e
\n\u5b9a\u671f\u7684\u306bSoC\u306e\u6e29\u5ea6\u3092\u78ba\u8a8d\u3057\u3066\u5236\u9650\u3092\u5909\u66f4\u3057\u3066\u3044\u304f\u3068\u826f\u3055\u305d\u3046\u3067\u3046s\uff0e
LimitCPU\u306fCPUlimit\u306e\u958b\u767a\u304c\u6b62\u307e\u3063\u305f\u5f8c\u306e\u30d5\u30a9\u30fc\u30af\u3067\u3059\u304c\uff0c\u305d\u306e\u5f8cCPUlimit\u304c\u65b0\u3057\u304f\u958b\u767a\u304c\u59cb\u307e\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\uff0e\u8a73\u7d30\u306f\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\uff0e
\nLimitCPU\u304c\u52b9\u3044\u305f\u306e\u3067\u6050\u3089\u304fcgroup\u3067\u306eCPU\u30ea\u30bd\u30fc\u30b9\u5236\u9650\u3067\u3082\u5927\u4e08\u592b\u305d\u3046\u3067\u3059\uff0e(\u672a\u78ba\u8a8d)
\n\u73fe\u5728\u306f\u6c17\u6e29\u3082\u4e0b\u304c\u308a\u5236\u9650\u306a\u3069\u3057\u306a\u304f\u3066\u3082\u554f\u984c\u3042\u308a\u307e\u305b\u3093\uff0e\u3067\u3082\u304d\u3063\u3068\u6765\u590f\u306b\u307e\u305f\u8d77\u3053\u308b\u3068\u601d\u3046\u306e\u3067\u305d\u3053\u3067\u307e\u305f\u78ba\u8a8d\u3059\u308b\u3064\u3082\u308a\u3067\u3059\uff0e
\n\u3057\u304b\u3057\uff0c\u4eca\u56de\u306e\u89e3\u6c7a\u65b9\u6cd5\u306fCPU\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u5236\u9650\u3057\u3066\u6e29\u5ea6\u3092\u4e0b\u3052\u3066\u5c45\u308b\u306e\u3067\u8a08\u7b97\u91cf\u306f\u6e1b\u3063\u3066\u3044\u307e\u3059\uff0e\u7a7a\u8abf\u3092\u5165\u308c\u305f\u308aCPU\u30d5\u30a1\u30f3\u3092\u5c0e\u5165\u3059\u308b\u306e\u304c\u6b63\u653b\u6cd5\u306b\u306a\u308b\u306e\u304b\u306a\u3068\u601d\u3044\u307e\u3059\uff0e
\nCPU\u30d5\u30a1\u30f3\u306f\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30fc\u304b\u3089\u5404\u7a2e\u767a\u58f2\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u305d\u308c\u3089\u3092\u4f7f\u3046\u304bDIY\u3059\u308b\u611f\u3058\u306b\u306a\u308b\u3068\u601d\u3044\u307e\u3059\uff0e
\u305d\u3046\u3044\u3048\u3070\u6700\u8fd1Raspberry Pi OS\u306e\u8a2d\u5b9a\u30b3\u30de\u30f3\u30c9\u306e raspi-config \u306e\u4e2d\u306b Set behaviour of GPIO fan \u3068\u3044\u3046\u30e1\u30cb\u30e5\u30fc\u304c\u51fa\u6765\u305f\u308a\uff0cRaspberry Pi 4\u306b\u306f\u516c\u5f0f\u306eCPU\u30d5\u30a1\u30f3\u304c\u767a\u58f2\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3053\u308c\u3089\u3092\u4f7f\u3046\u306e\u304c\u826f\u3055\u305d\u3046\u3067\u3059\uff0e
Raspberry Pi 4 Model B\u306e8GB RAM\u7248\u304c\u767a\u8868\uff0e\u540c\u6642\u306b\u767a\u58f2\u3055\u308c\uff0c\u65e5\u672c\u3082\u540c\u6642\u767a\u58f2\u306b\u306a\u3063\u305f\u3088\u3046\u3067\u3059\uff0e
\n\u65e5\u672c\u3060\u3068\u4eca\u306f\u3053\u306e\u3042\u305f\u308a\u3067\u3057\u3087\u3046\u304b\uff0e
\nRAM \u304c8GB \u3042\u308b\u3068\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u7528\u9014\u304cRAM \u3092\u6c17\u306b\u305b\u305a\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u305d\u3046\u3067\u3059\u306d\uff0e\u5f8c\u306f\u4f8b\u3048\u3070\u30d3\u30c7\u30aa\u30df\u30fc\u30c6\u30a3\u30f3\u30b0\u30a2\u30d7\u30ea\u306eJitsi Meet \u3092Raspberry Pi \u3067\u30db\u30b9\u30c8\u3057\u3066\u3044\u308b\u4eba\u304c\u3044\u305f\u308a\u3057\u307e\u3059\u304c\uff0c\u73fe\u5728\u306f\u8a2d\u5b9a\u3092\u5c11\u3057\u5909\u3048\u3066\u7701\u30a8\u30cd\u8a2d\u5b9a\u3067\u52d5\u304b\u3057\u3066\u3044\u307e\u3059\u304c\u898f\u5b9a\u5024\u306e\u8a2d\u5b9a\u3067\u52d5\u304d\u305d\u3046\u3067\u3059\uff0e
\n\u305d\u3057\u30668GB\u3082\u3042\u308b\u3068\u6c17\u306b\u306a\u308b\u306e\u304c\u6a19\u6e96OS\u306eRaspbian\u304carmhf(32bit)\u306b\u3057\u304b\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u3068\u3053\u308d\uff0e
\n\u5225\u306e\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u3048\u3070arm64(b4bit)\u306f\u5229\u7528\u3067\u304d\u307e\u3059\u304c\u6a19\u6e96OS\u304c\u975e\u5bfe\u5fdc\u306a\u306e\u306f\u3061\u3087\u3063\u3068\u60b2\u3057\u3044\u3067\u3059\uff0e
\u79c1\u306fDebian \u3092\u3088\u304f\u4f7f\u3044\u307e\u3059\uff0e
\n\u3053\u308c\u3082\u4eca\u56de\u767a\u8868\u304c\u3042\u308a\u307e\u3057\u305f\uff0e64bit\u7248\u306e\u30d9\u30fc\u30bf\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\uff0e
\n\n\n\n\nNot to be left out, today we\u2019ve released an early beta of our own 64-bit operating system image.
\n
Raspbian\u306e\u540d\u524d\u3082\u5909\u308f\u308a\uff0cRaspberry Pi OS \u3068\u6539\u3081\u3089\u308c\u308b\u3088\u3046\u3067\u3059\uff0e
\n\n\n\nBoth our 32-bit and 64-bit operating system images have a new name: Raspberry Pi OS.
\n
\u65b0\u3057\u304464bit\u306e Raspberry Pi OS \u306f\u4ee5\u4e0b\u304b\u3089\u5165\u624b\u3067\u304d\u307e\u3059\uff0e
\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30b5\u30a4\u30c8\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3082raspios\u304c\u51fa\u6765\u3066\u3044\u307e\u3059\uff0e\u3053\u308c\u307e\u3067\u306e32bit\u306f raspios_armhf \u306b\u306a\u308b\u3088\u3046\u3067\u3059\uff0e
$ w3m -dump https://downloads.raspberrypi.org/ | grep -E 'raspbian|raspios'\n[DIR] raspbian/ 2020-02-25 16:50 -\n[DIR] raspbian_full/ 2020-02-14 13:52 -\n[DIR] raspbian_lite/ 2020-02-14 13:49 -\n[DIR] raspios_arm64/ 2020-05-28 04:38 -\n[DIR] raspios_armhf/ 2020-05-28 05:27 -\n[DIR] raspios_full_armhf/ 2020-05-28 05:28 -\n[DIR] raspios_lite_armhf/ 2020-05-28 05:27 -\n[ ] wp-slice-raspbian 2020-05-28 07:46 1.0K\n
armhf\u306e\u30ea\u30ea\u30fc\u30b9\u30ce\u30fc\u30c8\u3092\u89b3\u308b\u3068\u3053\u308c\u307e\u3067\u306e\u3082\u306e\u306b\u4eca\u56de\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u8ffd\u8a18\u3055\u308c\u3066\u3044\u307e\u3057\u305f\uff0e(64bi\u306b\u306f\u672a\u3060\u5b58\u5728\u3057\u306a\u3044)
\n$ w3m -dump https://downloads.raspberrypi.org/raspios_armhf/release_notes.txt | grep ^2020-05-27:$ -A 33\n2020-05-27:\n * Added Bookshelf application\n * Added Raspberry Pi Diagnostics application\n * Added magnifier plugin to taskbar - needs magnifier application installed from Recommended Software to enable\n * Added Magnifier application to Recommended Software\n * Added marketing questionnaire as initial Chromium tab\n * Version 0.25 of Scratch 2 included - uses external application to access IMU on SenseHAT\n * Version 1.0.5 of Scratch 3 included - uses external application to access IMU on SenseHAT\n * Version 32.0.0.371 of Flash player included\n * Version 1.0.6 of Node-RED included\n * Version 6.7.1 of VNC Server included\n * Version 6.20.113 of VNC Client included\n * Internal audio outputs enabled as separate ALSA devices\n * MagPi preinstall removed and replaced with Beginner\u2019s Guide\n * MagPi weblink removed from main menu\n * Chromium made default application for PDF files\n * Common icon loading code for lxpanel plugins used\n * Italian translations added\n * Initial move of mouse pointer to menu button disabled\n * Padding at left of menu button removed\n * Focus behaviour changed so that focus moves to desktop if no windows are opened - improves reliability of Orca screen reader\n * Bug fix - focus bug in volume plugin\n * Bug fix - keyboard repeat interval bug in Mouse & Keyboard Settings\n * Bug fix - battery detection bug in battery plugin\n * Bug fix - spurious active areas on taskbar when plugins are hidden\n * Bug fix - occasional crash in file manager on file selection\n * Disk ID is now regenerated on first boot\n * Updated udev rules\n - Remove unused argon rule\n - Add vcsm-cma to video group\n - Add pwm to gpio group\n * i2cprobe: More flexible I2C/SPI alias mapping\n * Raspberry Pi firmware 21e1fe3477ffb708a5736ed61a924fd650031136\n * Linux kernel 4.19.118\n
Raspberry Pi \u306e Download \u30da\u30fc\u30b8\u3092\u89b3\u308b\u3068\u3053\u3053\u3082\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u3057\u305f\uff0e
\n\n\n\n\nRaspberry Pi OS (previously called Raspbian) is our official operating system for all models of the Raspberry Pi.
\n
\u3053\u306e64bit beta\u7248\u306fRaspberry Pi 3 \u3068 4 \u3067\u52d5\u4f5c\u3059\u308b\u3088\u3046\u3067\u3059\uff0e(2 v1.2\u3067\u3082\u591a\u5206\u52d5\u304f)
\n\n\n\n\nNote, the 64bit OS is only install-able on the Pi 3 and Pi 4 devices
\n
\u3068\u3044\u3046\u3053\u3068\u3067Raspberry Pi 3 \u306a\u3089\u6301\u3063\u3066\u308b!\u3068\u3044\u3046\u3053\u3068\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u307f\u307e\u3057\u305f\uff0e
\n$ wget https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2020-05-28/2020-05-27-raspios-buster-arm64.zip https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2020-05-28/2020-05-27-raspios-buster-arm64.zip.sha256 https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2020-05-28/2020-05-27-raspios-buster-arm64.zip.sig\n$ sha256sum -c 2020-05-27-raspios-buster-arm64.zip.sha256\n2020-05-27-raspios-buster-arm64.zip: OK\n$ gpg --verify ./2020-05-27-raspios-buster-arm64.zip.sig\ngpg: assuming signed data in './2020-05-27-raspios-buster-arm64.zip'\ngpg: Signature made Thu 28 May 2020 01:05:10 PM JST\ngpg: using RSA key 54C3DD610D9D1B4AF82A37758738CD6B956F460C\ngpg: Good signature from \"Raspberry Pi Downloads Signing Key\" [expired]\ngpg: Note: This key has expired!\nPrimary key fingerprint: 54C3 DD61 0D9D 1B4A F82A 3775 8738 CD6B 956F 460C\n\u7f72\u540d\u306e\u78ba\u8a8d\u3092\u3059\u308b\u3068\u671f\u9650\u5207\u308c\u306e\u3088\u3046\u3067\u3059\uff0e\u65b0\u3057\u3044\u9375\u3092\u8cb0\u3063\u3066\u304d\u3066\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3066\u518d\u5ea6\u7f72\u540d\u78ba\u8a8d\u3057\u307e\u3059\uff0e(\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8\u3042\u305f\u308a\u306b\u30ea\u30f3\u30af\u3057\u3066\u6b32\u3057\u3044)
\n$ wget https://www.raspberrypi.org/raspberrypi_downloads.gpg.key\n$ gpg ./raspberrypi_downloads.gpg.key\ngpg: WARNING: no command supplied. Trying to guess what you mean ...\npub rsa2048 2017-04-10 [SC] [expires: 2021-04-21]\n 54C3DD610D9D1B4AF82A37758738CD6B956F460C\nuid Raspberry Pi Downloads Signing Key\nsub rsa2048 2017-04-10 [E] [expires: 2021-04-21]\n$ gpg --import ./raspberrypi_downloads.gpg.key\ngpg: key 8738CD6B956F460C: 1 signature not checked due to a missing key\ngpg: key 8738CD6B956F460C: \"Raspberry Pi Downloads Signing Key\" 3 new signatures\ngpg: Total number processed: 1\ngpg: new signatures: 3\n :\n$ gpg --verify ./2020-05-27-raspios-buster-arm64.zip.sig\ngpg: assuming signed data in './2020-05-27-raspios-buster-arm64.zip'\ngpg: Signature made Thu 28 May 2020 01:05:10 PM JST\ngpg: using RSA key 54C3DD610D9D1B4AF82A37758738CD6B956F460C\ngpg: Good signature from \"Raspberry Pi Downloads Signing Key\" [unknown]\ngpg: WARNING: This key is not certified with a trusted signature!\ngpg: There is no indication that the signature belongs to the owner.\n\u3068\u308a\u3042\u3048\u305a\u826f\u3055\u305d\u3046\u3067\u3059\uff0e
\nsd card\u7b49\u306b\u66f8\u304d\u8fbc\u307f\u307e\u3059\uff0e\u4eca\u56dedd \u3067\u66f8\u304d\u307e\u3057\u305f\u304c\uff0c\u516c\u5f0f\u306eRaspberry Pi Imager \u3092\u4f7f\u3063\u305f\u307b\u3046\u304c\u3044\u3044\u304b\u3082\u3067\u3059\u306d\uff0e
\n$ time zcat ./2020-05-27-raspios-buster-arm64.zip | pv | sudo dd of=/dev/sdz bs=16M conv=fdatasync\n3.46GiB 0:02:34 [22.9MiB/s] [ <=> ]\n0+92723 records in\n0+92723 records out\n3711959040 bytes (3.7 GB, 3.5 GiB) copied, 212.594 s, 17.5 MB/s\n\nreal 3m32.613s\nuser 0m30.584s\nsys 2m12.420s\n$ sync\n\u3053\u308c\u3092\u4f7f\u3063\u3066\u8d77\u52d5\u3057\u3066\u307f\u308b\u3068\u666e\u901a\u306b\u8d77\u52d5\u3057\u307e\u3059\uff0e
\n$ cat /proc/device-tree/model ;echo\nRaspberry Pi 3 Model B Rev 1.2\n$ uname -a\nLinux raspberrypi 5.4.42-v8+ #1319 SMP PREEMPT Wed May 20 14:18:56 BST 2020 aarch64 GNU/Linux\n$ LC_ALL=C dpkg-architecture --print-set\nDEB_BUILD_ARCH=arm64; DEB_BUILD_ARCH_ABI=base; DEB_BUILD_ARCH_BITS=64; DEB_BUILD_ARCH_CPU=arm64; DEB_BUILD_ARCH_ENDIAN=little; DEB_BUILD_ARCH_LIBC=gnu; DEB_BUILD_ARCH_OS=linux;\nDEB_BUILD_GNU_CPU=aarch64; DEB_BUILD_GNU_SYSTEM=linux-gnu; DEB_BUILD_GNU_TYPE=aarch64-linux-gnu; DEB_BUILD_MULTIARCH=aarch64-linux-gnu; DEB_HOST_ARCH=arm64; DEB_HOST_ARCH_ABI=ba\nse; DEB_HOST_ARCH_BITS=64; DEB_HOST_ARCH_CPU=arm64; DEB_HOST_ARCH_ENDIAN=little; DEB_HOST_ARCH_LIBC=gnu; DEB_HOST_ARCH_OS=linux; DEB_HOST_GNU_CPU=aarch64; DEB_HOST_GNU_SYSTEM=li\nnux-gnu; DEB_HOST_GNU_TYPE=aarch64-linux-gnu; DEB_HOST_MULTIARCH=aarch64-linux-gnu; DEB_TARGET_ARCH=arm64; DEB_TARGET_ARCH_ABI=base; DEB_TARGET_ARCH_BITS=64; DEB_TARGET_ARCH_CPU\n=arm64; DEB_TARGET_ARCH_ENDIAN=little; DEB_TARGET_ARCH_LIBC=gnu; DEB_TARGET_ARCH_OS=linux; DEB_TARGET_GNU_CPU=aarch64; DEB_TARGET_GNU_SYSTEM=linux-gnu; DEB_TARGET_GNU_TYPE=aarch\n64-linux-gnu; DEB_TARGET_MULTIARCH=aarch64-linux-gnu; export DEB_BUILD_ARCH DEB_BUILD_ARCH_ABI DEB_BUILD_ARCH_BITS DEB_BUILD_ARCH_CPU DEB_BUILD_ARCH_ENDIAN DEB_BUILD_ARCH_LIBC D\nEB_BUILD_ARCH_OS DEB_BUILD_GNU_CPU DEB_BUILD_GNU_SYSTEM DEB_BUILD_GNU_TYPE DEB_BUILD_MULTIARCH DEB_HOST_ARCH DEB_HOST_ARCH_ABI DEB_HOST_ARCH_BITS DEB_HOST_ARCH_CPU DEB_HOST_ARCH\n_ENDIAN DEB_HOST_ARCH_LIBC DEB_HOST_ARCH_OS DEB_HOST_GNU_CPU DEB_HOST_GNU_SYSTEM DEB_HOST_GNU_TYPE DEB_HOST_MULTIARCH DEB_TARGET_ARCH DEB_TARGET_ARCH_ABI DEB_TARGET_ARCH_BITS DE\nB_TARGET_ARCH_CPU DEB_TARGET_ARCH_ENDIAN DEB_TARGET_ARCH_LIBC DEB_TARGET_ARCH_OS DEB_TARGET_GNU_CPU DEB_TARGET_GNU_SYSTEM DEB_TARGET_GNU_TYPE DEB_TARGET_MULTIARCH\n$ dpkg-query -l|wc -l\n1308\ndpkg-query -l)$ df -m\nFilesystem 1M-blocks Used Available Use% Mounted on\n/dev/root 29938 2840 25832 10% /\ndevtmpfs 329 0 329 0% /dev\ntmpfs 457 0 457 0% /dev/shm\ntmpfs 457 1 457 1% /run\ntmpfs 5 1 5 1% /run/lock\ntmpfs 457 0 457 0% /sys/fs/cgroup\n/dev/mmcblk0p1 253 54 200 22% /boot\ntmpfs 92 0 92 0% /run/user/1000\n$ ip a\n1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000\n link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\n inet 127.0.0.1/8 scope host lo\n valid_lft forever preferred_lft forever\n inet6 ::1/128 scope host\n valid_lft forever preferred_lft forever\n2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000\n link/ether b8:27:eb:46:60:13 brd ff:ff:ff:ff:ff:ff\n inet 192.168.1.182/24 brd 192.168.1.255 scope global dynamic noprefixroute eth0\n valid_lft 258810sec preferred_lft 226410sec\n inet6 fe80::2979:45f7:e3bf:a4d9/64 scope link\n valid_lft forever preferred_lft forever\n3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000\n link/ether b8:27:eb:13:35:46 brd ff:ff:ff:ff:ff:ff\n$ bluetoothctl\nAgent registered\n[bluetooth]# list\nController B8:27:EB:EC:CA:B9 raspberrypi [default]\n[bluetooth]# quit\nRaspberry Pi 3 Model B Rev 1.2\n\n\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524 Raspberry Pi Software Configuration Tool (raspi-config) \u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n\u2502 \u2502\n\u2502 1 Change User Password Change password for the 'pi' user \u2502\n\u2502 2 Network Options Configure network settings \u2502\n\u2502 3 Boot Options Configure options for start-up \u2502\n\u2502 4 Localisation Options Set up language and regional settings to match your \u2502\n\u2502 5 Interfacing Options Configure connections to peripherals \u2502\n\u2502 6 Overclock Configure overclocking for your Pi \u2502\n\u2502 7 Advanced Options Configure advanced settings \u2502\n\u2502 8 Update Update this tool to the latest version \u2502\n\u2502 9 About raspi-config Information about this configuration tool \u2502\n\u2502 \u2502\n\u2502 \u2502\n\u2502 \u2502\n\u2502 \u2502\n\u2502 <Select> <Finish> \u2502\n\u2502 \u2502\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n
$ pfetch/pfetch\n _____ pi@raspberrypi\n / __ \\ os Debian GNU/Linux 10 (buster)\n| / | host Raspberry Pi 3 Model B Rev 1.2\n| \\___- kernel 5.4.42-v8+\n-_ uptime 52m\n --_ pkgs 1313\n memory 203M / 913M\n\u3066\u611f\u3058\u3067\u8a66\u3057\u59cb\u3081\u307e\u3057\u305f\uff0e
\n\u3057\u3070\u3089\u304f\u4f7f\u3063\u3066\u307f\u3088\u3046\u304b\u3068\u601d\u3044\u307e\u3059\uff0e
\u3042\uff0c\u4f59\u3063\u305fRaspberry Pi \u304c\u3042\u3063\u305f\u3089\u304f\u3060\u3055\u3044 :p
\n\u3082\u3057\u554f\u984c\u304c\u898b\u3064\u304b\u3063\u305f\u3089\u4ee5\u4e0b\u3092\u78ba\u8a8d\u3057\u3066\u5831\u544a\u3059\u308b\u3068\u76f4\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\uff0e
\nDebian \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
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)
$ 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)
$ 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
$ 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
$ 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
$ 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
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
$ 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
$ 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
$ 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
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
$ 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\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)
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\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\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\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
$ 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\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 )
OTP \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
$ 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\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)
\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 :)
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\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
root@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
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\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
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\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
\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
$ 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)
T1: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
dtoverlay=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
\u3053\u3061\u3089\u306f\u8d77\u52d5\u7d42\u4e86\u306eUART\u306e\u30e1\u30c3\u30bb\u30fc\u30b8
\n\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=1253", "url": "https://matoken.org/blog/2016/03/01/the-launch-of-raspberry-pi-4-anniversary-and-raspberry-pi-3/", "title": "Raspberry Pi 4\u5468\u5e74\u3068Raspberry Pi 3\u306e\u767a\u58f2", "content_html": "\n\u795d4\u5468\u5e74!
\n\u305d\u3057\u3066\u65b0\u3057\u3044Raspberry Pi 3 B\u304c\u767a\u58f2\u306b\u306a\u308a\u307e\u3057\u305f\uff0e
4\u5e74\u3042\u3063\u3068\u3044\u3046\u9593\u3067\u3057\u305f\u306d\u5f53\u521d\u306f\u306a\u304b\u306a\u304b\u5165\u624b\u51fa\u6765\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u4eca\u306f\u5927\u5206\u6539\u5584\u3055\u308c\u3066\u8cb7\u3044\u3084\u3059\u304f\u306a\u3063\u3066\u3044\u3044\u3067\u3059\u306d\uff0e
\n\u305d\u3057\u3066Raspberry Pi 3 BRaspberry Pi 3 B\uff0e(A+\u306e\u57fa\u677f\u3067\u7121\u7dda\u5185\u8535\u3082\u51fa\u305f\u3089\u826f\u3055\u305d\u3046)\uff0e\u65b0\u305f\u306bWi-Fi/Bluetooth\u304c\u5185\u8535\u3055\u308c\u307e\u3057\u305f\uff0eCPU\u3082ARM64\u306b\u306a\u3063\u305f\u306e\u3067\u305d\u3063\u3061\u3092\u8a66\u3057\u3066\u307f\u305f\u3044\u5834\u5408\u3082\u826f\u3055\u305d\u3046\u3067\u3059\uff0e\u30b1\u30fc\u30b9\u306f\u6d41\u7528\u3067\u304d\u305d\u3046\u3067\u3059\u304cLED\u4f4d\u7f6e\u304c\u5909\u66f4\u306b\u306a\u3063\u3066\u308b\u306e\u3067\u3000LED\u304c\u898b\u3048\u306a\u304f\u306a\u308b\u5834\u5408\u3082\u3042\u308a\u305d\u3046\uff0e\u7121\u7dda\u304c\u3042\u308b\u3063\u3066\u3053\u3068\u3067\u65e5\u672c\u3067\u306f\u6280\u9069\u304c\u901a\u3063\u3066\u306a\u304f\u3066\u4f7f\u3048\u306a\u3044\u2026\u2026\u3068\u826f\u304f\u306a\u308b\u306e\u3067\u3059\u304c\uff0c\u672a\u3060\u901a\u3063\u3066\u306a\u3044\u3051\u3069\u8fd1\u65e5\u4e2d\u306b\u53d6\u308c\u308b\u307f\u305f\u3044\u3067\u3059!
\n\n\n\u65b0\u767a\u8868\u3055\u308c\u305f\u30e9\u30ba\u30d1\u30a4\uff13\u306e\u6280\u9069\u306b\u3064\u304d\u307e\u3057\u3066\u53d6\u5f97\u3067\u304d\u308b\u898b\u8fbc\u307f\u3067\u3054\u3056\u3044\u307e\u3059\u3002\u4eca\u3057\u3070\u3089\u304f\u304a\u5f85\u3061\u9858\u3044\u307e\u3059\u3002https://t.co/tXjTuBDbnt
\n— RSJapanMK (@RSJapanMK) 2016\u5e742\u670829\u65e5
\u3057\u304b\u3057\u96fb\u6e90\u304c2.5A\u3068\u3044\u3046\u306e\u304c\u304b\u306a\u308a\u304d\u3064\u3044\u6c17\u304c\u3057\u307e\u3059\uff0e\u5bb6\u306b\u3042\u308b\u4e00\u756a\u5927\u304d\u306a\u96fb\u6d41\u3092\u6d41\u305b\u308bmicroUSB B Cable\u3067\u30822.4A\u3067\u3059\u304b\u3089\u2026\u2026\uff0e
\n\u79c1\u306f\u3068\u308a\u3042\u3048\u305a\u624b\u6301\u3061\u306b5V 3A\u306eAC\u30a2\u30c0\u30d7\u30bf\u304c\u3042\u3063\u305f\u306e\u3067\u3053\u308c\u3092GPIO\u7d4c\u7531\u3067\u6d41\u3057\u8fbc\u3080\u3088\u3046\u306b\u3057\u305f\u3089\u884c\u3051\u305d\u3046\u304b\u306a\u3068\u601d\u3063\u3066\u3044\u307e\u3059\uff0e\u901a\u8ca9\u30b5\u30a4\u30c8\u3092\u898b\u308b\u30682.5A\u5bfe\u5fdc\u306eAC\u30a2\u30c0\u30d7\u30bf\u3082\u4f75\u58f2\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u305d\u308c\u3092\u8cb7\u3063\u305f\u307b\u3046\u304c\u7121\u96e3\u305d\u3046\u3067\u3059\u306d\uff0e
\n\n\u3053\u3046\u3044\u3046\u7d44\u307f\u5408\u308f\u305b\u3067\u3069\u3046\u306b\u304b pic.twitter.com/GLb6fNVYXt
\n— (\u300c\u03a6\u03c9\u03a6)\u300c (@matoken) 2016\u5e742\u670829\u65e5
\u306a\u304a\uff0c\u6280\u9069\u306f\u901a\u308b\u898b\u8fbc\u307f\u3060\u304b\u3089\u82f1\u56fd\u306a\u3069\u304b\u3089\u6b21\u56de\u306b\u8cb7\u304a\u3046\u3068\u3044\u3046\u4eba\u5411\u3051\u306b\u6ce8\u610f\u304c\uff0e
\n\n\n\u5fd8\u308c\u3066\u307e\u3057\u305f\u304c\u3001Pimoroni\u3068\u304b\u3067\u8cb7\u3046\u5834\u5408\u3001\u96fb\u6e90\u306f\u65e5\u672c\u306e\u96fb\u529b\u5b89\u5168\u6cd5\u306e\u5bfe\u8c61\u3068\u306a\u308a\u307e\u3059\u304b\u3089RS\u3055\u3093\u3088\u308a\u96fb\u6e90\u3060\u3051\u306f\u8cfc\u5165\u304f\u3060\u3055\u3044 #RaspberryPi3
\n— \u304a\u304a\u305f\u307e\u3055\u3075\u307f (@masafumi_ohta) 2016\u5e742\u670829\u65e5
\u3068\u3044\u3046\u3053\u3068\u3067\u56fd\u5916\u3067\u8cb7\u3063\u305f\u96fb\u6e90\u306f\u96fb\u529b\u5b89\u5168\u6cd5\u306e\u691c\u67fb\u901a\u3063\u3066\u306a\u3044\u306e\u3067\u96fb\u6e90\u306f\u56fd\u5185\u3067\u8cb7\u3044\u307e\u3057\u3087\u3046\uff0ePSE\u30de\u30fc\u30af\u306e\u4ed8\u3044\u305f\u3082\u306e\u3092\uff0e
\n\u3068\u3053\u308d\u3067USB\u96fb\u6e90\u306e\u898f\u683c\u3067\u3059\u304c\uff0c\u591a\u5206\u3053\u3093\u306a\u611f\u3058\u3067\u3059\uff0e
\n\n
Raspberry Pi 3 B\u306e5V 2.5A\u306f\u7bc4\u56f2\u5916\u306a\u611f\u3058\u304c\u3057\u307e\u3059\uff0eUSB PD\u306f3A\u307e\u3067\u3042\u308b\u3051\u3069USB C\u306e\u898f\u683c\u307f\u305f\u3044\u3067\u3059\u3057\uff0e\u706b\u3092\u5674\u3044\u305f\u308a\u3057\u306a\u3044\u304b\u3061\u3087\u3063\u3068\u4e0d\u5b89\u3067\u3059\uff0e
\nOS\u306e\u65b9\u3067\u3059\u304c\uff0cRasbian jessie/Ubuntu MATE\u304c\u65b0\u3057\u304f\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\uff0e(\u65e2\u5b58\u74b0\u5883\u306fupgrade\u3059\u308b\u3060\u3051\u3067ok)\u305d\u3057\u3066\u3061\u3087\u3063\u3068\u524d\u304b\u3089Rasbian wheezy\u304c\u5c45\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3059(ftp site\u306b\u306f\u30a2\u30fc\u30ab\u30a4\u30d6\u304c\u6b8b\u3063\u3066\u3044\u307e\u3059\u3051\u3069)\uff0ewheezy\u306fjessie\u3088\u308a\u8efd\u3044\u306e\u3067\u521d\u4ee3\u3092\u4f7f\u3046\u3068\u304d\u3068\u304b\u7528\u9014\u306b\u3088\u3063\u3066\u306f\u3044\u3044\u3093\u3067\u3059\u3051\u3069\u306d\uff0eRaspberry Pi 3 B\u3067wheezy\u304c\u52d5\u304b\u305b\u308b\u304b\u3082\u6c17\u306b\u306a\u308a\u307e\u3059\uff0e
\n\uff03\u305d\u3046\u3044\u3048\u3070Rabian\u306e\u30b5\u30dd\u30fc\u30c8\u306f\u3069\u3046\u306a\u3063\u3066\u3044\u308b\u3093\u3060\u308d\u3046?Debian\u3068\u540c\u3058\u306a\u3089\u3044\u3044\u3051\u3069\u3053\u306e\u611f\u3058\u3060\u3068\u3082\u3063\u3068\u901f\u304f\u306b\u6253\u3061\u5207\u3089\u308c\u305d\u3046\u3067\u6016\u3044\uff0e
\u3057\u304b\u3057\u4e45\u3005\u306b\u65b0\u88fd\u54c1\u3092\u8ffd\u3044\u304b\u3051\u308b\u697d\u3057\u307f\u3092\u5473\u308f\u3044\u307e\u3057\u305f\uff0e
\n\u3042\uff0cRaspberry Pi\u53e4\u3044\u306e\u304c\u4f59\u3063\u3061\u3083\u3063\u305f\u3088\u3063\u3066\u65b9\u306f\u304f\u3060\u3055\u3044\uff0e
\n