{ "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/category/linux/ubuntu/feed/json -- and add it your reader.", "next_url": "https://matoken.org/blog/category/linux/ubuntu/feed/json?paged=2", "home_page_url": "https://matoken.org/blog/category/linux/ubuntu", "feed_url": "https://matoken.org/blog/category/linux/ubuntu/feed/json", "language": "ja", "title": "Ubuntu – 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=3864", "url": "https://matoken.org/blog/2023/03/01/nostr-vanity-adress/", "title": "Nostr \u306e Vanity address \u3092\u6398\u308b", "content_html": "
Nostr \u3068\u3044\u3046\u5206\u6563\u578bSNS\u306e\u30d7\u30ed\u30c8\u30b3\u30eb\u304c\u3042\u3063\u3066\u6700\u8fd1\u826f\u304f\u898b\u304b\u3051\u307e\u3059\uff0e
\n\u3053\u306eSNS\u306e\u500b\u4eba\u8a8d\u8b58\u306b\u79d8\u5bc6\u9375\u3068\u516c\u958b\u9375\u306e\u30da\u30a2\u3092\u4f5c\u6210\u3057\u3066\u305d\u308c\u3092\u5229\u7528\u3057\u307e\u3059\uff0e\u9375\u30da\u30a2\u306f\u521d\u56de\u306b\u81ea\u52d5\u751f\u6210\u3055\u308c\u308b\u306e\u3067\u3059\u304c\uff0c\u516c\u958b\u9375\u306e\u6587\u5b57\u5217\u3092\u305f\u304f\u3055\u3093\u8a08\u7b97\u3057\u3066\u597d\u307f\u306e\u30a2\u30c9\u30ec\u30b9\u304c\u542b\u307e\u308c\u305f\u30a2\u30c9\u30ec\u30b9\u3092\u6398\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u3042\u3063\u305f\u306e\u3067\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e
\n\n
\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306fbech32\u3067\u8868\u73fe\u3055\u308c\u308b\u516c\u958b\u9375\u306e npub1 \u306e\u5f8c\u308d\u306e\u6587\u5b57\u5217\u3092\u4efb\u610f\u306e\u6587\u5b57\u5217\u304b\u3089\u59cb\u307e\u308b\u3082\u306e\u306b\u3057\u305f\u3044\u3068\u3044\u3046vanity \u30a2\u30c9\u30ec\u30b9\u3092\u5f6b\u308a\u305f\u3044\u4eba\u5411\u3051\u306e\u3082\u306e\u3067\u3059\uff0e
cargo insrtall \u3067\u5c0e\u5165\u3067\u304d\u308b\u306f\u305a\u3067\u3059\u304c\uff0c\u624b\u5143\u306eDebian bookworm testing amd64 \u74b0\u5883\u3067\u306frustc \u304c 1.63 \u306b\u5bfe\u3057\u3066rana \u306f 1.64.0 \u4ee5\u4e0a\u304c\u5fc5\u8981\u3060\u3068\u3044\u3046\u3053\u3068\u3067\u53e4\u304f\u3066\u5931\u6557\u3057\u307e\u3057\u305f\uff0e
\n$ cargo install rana\n Updating crates.io index\n Installing rana v0.5.1\n Downloaded is-terminal v0.4.4\n Downloaded clap_lex v0.3.2\n Downloaded syn v1.0.109\n Downloaded bip39 v1.2.0\n Downloaded 4 crates (346.5 KB) in 2.86s\nerror: failed to compile `rana v0.5.1`, intermediate artifacts can be found at `/tmp/cargo-installvCF9z2`\n\nCaused by:\n package `clap_derive v4.1.0` cannot be built because it requires rustc 1.64.0 or newer, while the currently active rustc version is 1.63.0\n Try re-running cargo install with `--locked`\n$ dpkg-query -W rustc\nrustc 1.63.0+dfsg1-2\n
Rust Forge \u3067\u65b0\u3057\u3044Stable(1.67.1)\u3092\u8cb0\u3063\u3066\u304d\u3066\u4f7f\u304a\u3046\u304b\u3068\u3082\u601d\u3044\u307e\u3057\u305f\u304c\uff0c\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u3092\u53e9\u304f\u5f62\u3067\u74b0\u5883\u304c\u6c5a\u308c\u305d\u3046\u3067\u5c11\u3057\u9762\u5012\u305d\u3046\uff0e
\nDocker \u3092\u4f7f\u3046\u3053\u3068\u306b\u3057\u307e\u3059\uff0e
\n\u516c\u5f0f\u30a4\u30e1\u30fc\u30b8\u3060\u3051\u3042\u3063\u3066\u6700\u65b0\u306e 1.67.1 \u3067\u3059\uff0erana \u3082\u3055\u304f\u3063\u3068\u52d5\u304d\u307e\u3057\u305f\uff0e
\n$ script ./nostr_vanity.log\n$ docker run --rm -it rust\n# rustc --version\nrustc 1.67.1 (d5a82bbd2 2023-02-07)\n# adduser matoken\n# su - matoken\n$ export PATH=/usr/local/cargo/bin:$PATH\n$ rustup default stable\n$ cargo install rana\n$ rana --help\nRana 🐸\n\n o o\n ( -- )\n /\\( , ,)/\\\n^^ ^^ ^^ ^^\n\nA simple CLI to generate nostr vanity addresses\n\nFrancisco Calder\u00f3n <negrunch@grunch.dev>\n\nUsage: rana [OPTIONS]\n\nOptions:\n -d, --difficulty <DIFFICULTY>\n Enter the number of starting bits that should be 0. [default: 0]\n -v, --vanity <VANITY_PREFIX>\n Enter the prefix your public key should have when expressed\n as hexadecimal. [default: ]\n -n, --vanity-n-prefix <VANITY_NPUB_PREFIXES_RAW_INPUT>\n Enter the prefix your public key should have when expressed\n in npub format (Bech32 encoding). Specify multiple vanity\n targets as a comma-separated list. [default: ]\n -s, --vanity-n-suffix <VANITY_NPUB_SUFFIXES_RAW_INPUT>\n Enter the suffix your public key should have when expressed\n in npub format (Bech32 encoding). Specify multiple vanity\n targets as a comma-separated list. [default: ]\n -c, --cores <NUM_CORES>\n Number of processor cores to use [default: 4]\n -r, --restore <MNEMONIC>\n Restore from mnemonic to public private key [default: ]\n -g, --generate <WORD_COUNT>\n Generate mnemonic using wordcount. Should be 12,18 or 24 [default: 0]\n -p, --passphrase <MNEMONIC_PASSPHRASE>\n Passphrase used for restoring mnemonic to keypair [default: ]\n -q, --qr\n Print QR code of the private key\n -h, --help\n Print help\n -V, --version\n Print version\n
\n\n\n\nwhy can\u2019t we use characters b, i, o, or 1?
\n
\nthe characters have to be in the bech32 character set.
\u516c\u958b\u9375\u306f Bech32 \u5f62\u5f0f\u3067 023456789acdefghjklmnpqrstuvwxyz \u304c\u5229\u7528\u3067\u304d\u307e\u3059\uff0e\u4ee5\u4e0b\u306f Bech32 \u3067\u4f7f\u3048\u306a\u3044 o \u3092\u4f7f\u3063\u3066\u6012\u3089\u308c\u305f\u4f8b\u3067\u3059\uff0e
$ rana --vanity-n-prefix matok\nthread 'main' panicked at 'The vanity npub prefix can only contain characters supported by Bech32: 023456789acdefghjklmnpqrstuvwxyz', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/rana-0.5.1/src/cli.rs:146:17\nnote: run with `RUST_BACKTRACE=1` environment variable to display a backtrace\n
o\u30920\u306b\u7f6e\u304d\u63db\u3048\u3066\u52d5\u304b\u3057\u3066\u307f\u307e\u3059\uff0e
\n$ rana --vanity-n-prefix mat0k | tee rana.log\nStarted mining process for vanity bech32 prefix[es]: 'npub1[\"mat0k\"]' (estimated pow: 20)\nBenchmarking of cores disabled for vanity npub key upon proper calculation.\nMining using 4 cores...\n
\u3055\u3066\uff0c\u3053\u308c\u3067\u5f85\u3063\u3066\u3044\u308c\u3070\u9375\u304c\u6398\u308c\u308b\u306e\u3067\u3059\u304c\uff0c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u65b0\u3057\u3044\u30e9\u30c3\u30d7\u30c8\u30c3\u30d7\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u901f\u5ea6\u3067\u6398\u308c\u308b\u3068\u306e\u3053\u3068\u3067\u3059\uff0e\u3042\u307e\u308a\u9577\u304f\u3059\u308b\u3068\u306a\u304b\u306a\u304b\u6398\u308c\u306a\u3044\u306e\u3067\u6c17\u3092\u3064\u3051\u307e\u3057\u3087\u3046\uff0e
\n\n\n\n\nhow fast will nostrogen find my addresses?
\n
\nthis depends entirely upon how fast your machine is, but here are some rough estimates for a modern laptop or mobile phone:\n\n1 character = usually less than a 0.1 seconds
\n
\n2 characters = usually less than a 1 second
\n3 characters = usually less than a 30 seconds
\n4 characters = usually less than a 10 minutes
\n5 characters = usually less than a 1 hour
\n6+ characters = keep fire extinguisher handy
\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u7d50\u679c\u304c\u8868\u793a\u3055\u308c\u307e\u3059\uff0eNpub public key \u306e npub1\u306e\u5f8c\u308d\u304c\u6307\u5b9a\u3057\u305fmat0k\u304b\u3089\u59cb\u307e\u3063\u3066\u3044\u307e\u3059\uff0e
\n$ rana --vanity-n-prefix mat0k | tee rana.log\nStarted mining process for vanity bech32 prefix[es]: 'npub1[\"mat0k\"]' (estimated pow: 20)\nBenchmarking of cores disabled for vanity npub key upon proper calculation.\nMining using 4 cores...\n<<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>>\nVanity npub found: mat0k\nFound matching Nostr public key:\nHex public key: df56fb6cce5a60eac0a55b09ff6d5fbb565b07da6f64a2578ae827d70a21873b\nHex private key: 7a1a088022c3110fabc445af28681c0d2c349a2123f38fe83fbc809d7c8ed6bb\nNpub public key: npub1mat0kmxwtfsw4s99tvyl7m2lhdt9kp76daj2y4u2aqnawz3psuass9qwnz\nNsec private key: nsec10gdq3qpzcvgsl27ygkhjs6qup5krfx3py0ecl6plhjqf6lyw66as4gyfat\n26169409 iterations (about 2x10^7 hashes) in 3199 seconds. Avg rate 8180 hashes/second\n
| \n Warning \n | \n\n\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u3053\u306e\u9375\u306f\u5229\u7528\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044 | \n
\u624b\u5143\u306e\uff0cNotePC\u306e Intel\u00ae Core
i5-7300U CPU @ 2.60GHz \u3068 Oeracle Free Tier VPS Arm Ampere A1 \u5171\u306b8000\u301c8200 hashes/secod \u3068\u3044\u3046\u611f\u3058\u3067\u3057\u305f\uff0e
3\u65e5\u307b\u3069\u8d70\u3089\u305b\u3066 mak0 \u304b\u3089\u59cb\u307e\u308b\u3082\u306e\u305f\u304f\u3055\u3093\uff0cmat0ke \u304b\u3089\u59cb\u307e\u308b\u3082\u306e\u304c2\u3064\u51fa\u3066\u304d\u307e\u3057\u305f\uff0e cpu fan \u3046\u308b\u3055\u3044\u3057mat0ken \u306f\u8ae6\u3081\u3066\u3053\u306e\u8fba\u306b\u3057\u3068\u3053\u3046\u304b\u306a?
\n\n\n\n\nNpub public key: npub1mat0kejpylctwszs3h0jcaw24vsmzvx0h44hl2qf3ghuz2ggekjqkwyeq5
\n
\u305d\u3046\u3044\u3048\u3070\u4ee5\u524d\u306fTor \u306e Vanity address \u3082\u6398\u3063\u3066\u3044\u307e\u3057\u305f\u2026\u2026\uff0e
\n\u5148\u65e5snap\u7248Firefox\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306b\u60a9\u3093\u3060\u308a\uff0cKeepassXC\u306e\u30d6\u30e9\u30a6\u30b6\u7d71\u5408\u304csnap\u7248\u306b\u975e\u5bfe\u5fdc\u3060\u3063\u305f\u308a\u3057\u3066snap\u7248\u306eFirefox\u304c\u4f7f\u3044\u3065\u3089\u3044\u306a\u3068\u611f\u3058\u3066\u3044\u307e\u3059\uff0e
\nUbuntu Mozilla Team\u306ePPA\u7248Firefox ESR\u306b\u5165\u308c\u66ff\u3048\u3066\u307f\u307e\u3057\u305f\uff0e
\n\n
\u307e\u305a\uff0c\u65e2\u5b58\u306eFirefox\u3092\u524a\u9664\u3057\u307e\u3059\uff0e
\n$ sudo snap remove firefox\n$ sudo apt purge firefox\n
| \n Note \n | \n\n \n \nsnap\u30d1\u30c3\u30b1\u30fc\u30b8\u3060\u3051\u3067\u306a\u304f\uff0cUbuntu\u306efirefox\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308a\u307e\u3057\u305f\uff0csnap\u7248\u304c\u306a\u3044\u72b6\u614b\u3067\u5b9f\u884c\u3059\u308b\u3068snap\u7248\u3092\u5c0e\u5165\u3059\u308b\u3088\u3046\u8a00\u308f\u308c\u307e\u3057\u305f\uff0e \n\n \n\n \n$ firefox\n\nCommand '/usr/bin/firefox' requires the firefox snap to be installed.\nPlease install it with:\n\nsnap install firefox\n | \n
PPA\u306e\u767b\u9332\u3092\u884c\u3044\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u66f4\u65b0\u3092\u884c\u3044\u307e\u3059\uff0e
\n$ sudo add-apt-repository ppa:mozillateam/ppa\n$ sudo apt update\n
firefox \u30d1\u30c3\u30b1\u30fc\u30b8\u306fsnap\u3067\u3059\u304c\uff0c firefox-esr \u306f\u3055\u3063\u304d\u767b\u9332\u3057\u305fPPA\u7248\u306b\u5411\u3044\u3066\u3044\u307e\u3059\uff0e
$ apt show firefox\nPackage: firefox\nVersion: 1:1snap1-0ubuntu2\nPriority: optional\nSection: web\nOrigin: Ubuntu\nMaintainer: Ubuntu Mozilla Team <ubuntu-mozillateam@lists.ubuntu.com>\nBugs: https://bugs.launchpad.net/ubuntu/+filebug\nInstalled-Size: 261 kB\nProvides: gnome-www-browser, iceweasel, www-browser, x-www-browser\nPre-Depends: debconf, snapd\nDepends: debconf (>= 0.5) | debconf-2.0\nBreaks: firefox-dbg (<< 1:1snap1), firefox-dev (<< 1:1snap1), firefox-geckodriver (<< 1:1snap1), firefox-mozsymbols (<< 1:1snap1)\nReplaces: firefox-dbg (<< 1:1snap1), firefox-dev (<< 1:1snap1), firefox-geckodriver (<< 1:1snap1), firefox-mozsymbols (<< 1:1snap1)\nTask: xubuntu-live, ubuntukylin-desktop\nDownload-Size: 72.3 kB\nAPT-Manual-Installed: yes\nAPT-Sources: http://jp.archive.ubuntu.com/ubuntu kinetic/main amd64 Packages\nDescription: Transitional package - firefox -> firefox snap\n This is a transitional dummy package. It can safely be removed.\n .\n firefox is now replaced by the firefox snap.\n\nN: \u8ffd\u52a0\u30ec\u30b3\u30fc\u30c9\u304c 1 \u4ef6\u3042\u308a\u307e\u3059\u3002\u8868\u793a\u3059\u308b\u306b\u306f '-a' \u30b9\u30a4\u30c3\u30c1\u3092\u4ed8\u3051\u3066\u304f\u3060\u3055\u3044\u3002\n$ apt show firefox-esr\nPackage: firefox-esr\nVersion: 91.11.0esr+build2-0ubuntu0.22.04.1\nPriority: optional\nSection: web\nMaintainer: Ubuntu Mozilla Team <ubuntu-mozillateam@lists.ubuntu.com>\nInstalled-Size: 225 MB\nProvides: gnome-www-browser, iceweasel, www-browser\nDepends: lsb-release, libatk1.0-0 (>= 1.12.4), libc6 (>= 2.35), libcairo-gobject2 (>= 1.10.0), libcairo2 (>= 1.10.0), libdbus-1-3 (>= 1.9.14), libdbus-glib-1-2 (>= 0.78), libfontconfig1 (>= 2.12.6), libfreetype6 (>= 2.10.1), libgcc-s1 (>= 4.0), libgdk-pixbuf-2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.42), libgtk-3-0 (>= 3.14), libharfbuzz0b (>= 0.6.0), libpango-1.0-0 (>= 1.14.0), libpangocairo-1.0-0 (>= 1.14.0), libpangoft2-1.0-0 (>= 1.14.0), libstdc++6 (>= 12), libx11-6, libx11-xcb1 (>= 2:1.7.5), libxcb-shm0, libxcb1, libxcomposite1 (>= 1:0.4.5), libxcursor1 (>> 1.1.2), libxdamage1 (>= 1:1.1), libxext6, libxfixes3, libxi6, libxrender1, libxt6\nRecommends: xul-ext-ubufox, libcanberra0, libdbusmenu-glib4, libdbusmenu-gtk3-4\nSuggests: fonts-lyx\nXul-Appid: {ec8030f7-c20a-464f-9b0e-13a3a9e97384}\nDownload-Size: 61.8 MB\nAPT-Manual-Installed: yes\nAPT-Sources: https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu kinetic/main amd64 Packages\nDescription: Safe and easy web browser from Mozilla\n Firefox delivers safe, easy web browsing. A familiar user interface,\n enhanced security features including protection from online identity theft,\n and integrated search let you get the most out of the web.\nfirefox-ser\u3068\u65e5\u672c\u8a9e\u8a00\u8a9e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5c0e\u5165\u3057\u307e\u3059\uff0e
\n$ sudo apt install firefox-esr firefox-esr-locale-ja\n$ firefox-esr --version\nMozilla Firefox 91.11.0esr\n
\u6700\u65b0\u7248\u304c\u4f7f\u3044\u305f\u3044\u5834\u5408\u306f\u4f7f\u3048\u306a\u3044\u624b\u3067\u3059\u304c\u2026\u2026\uff0e
\n$ dpkg-query -W firefox-esr* keepassxc\nfirefox-esr 91.11.0esr+build2-0ubuntu0.22.04.1\nfirefox-esr-locale-ja 91.11.0esr+build2-0ubuntu0.22.04.1\nkeepassxc 2.6.6+dfsg.1-1\n$ lsb_release -dr\nDescription: Ubuntu Kinetic Kudu (development branch)\nRelease: 22.10\n$ arch\nx86_64\n
\u5148\u65e5snap\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u66f4\u65b0\u3092\u624b\u52d5\u3067\u884c\u3063\u3066\u3046\u307e\u304f\u884c\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u30e1\u30e2\u3057\u3066\u304a\u304d\u307e\u3059\uff0e\u8a72\u5f53\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u7d42\u4e86\u3057\u3066\u304b\u3089\u66f4\u65b0\u3059\u308c\u3070\u3046\u307e\u304f\u884c\u304d\u307e\u3057\u305f\uff0e
\n\n
snap\u7248\u306eFirefox\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u5c11\u3057\u53e4\u3044\u3067\u3059\uff0e
\n101.0.1-1 \u306b\u5bfe\u3057\u3066 101.0-2 \u304c\u5165\u3063\u3066\u3044\u307e\u3059\uff0e
$ sudo snap refresh\nAll snaps up to date.\n$ snap find firefox | grep \\*\nfirefox 101.0.1-1 mozilla** - Mozilla Firefox web browser\n$ snap info firefox\nname: firefox\nsummary: Mozilla Firefox web browser\npublisher: Mozilla\u2713\nstore-url: https://snapcraft.io/firefox\ncontact: https://support.mozilla.org/kb/file-bug-report-or-feature-request-mozilla\nlicense: unset\ndescription: |\n Firefox is a powerful, extensible web browser with support for modern web application\n technologies.\ncommands:\n - firefox\n - firefox.geckodriver\nsnap-id: 3wdHCAVyZEmYsCMFDE9qt92UV8rC8Wdk\ntracking: latest/stable/ubuntu-21.10\nrefresh-date: 6 days ago, at 15:52 JST\nchannels:\n latest/stable: 101.0.1-1 2022-06-09 (1443) 170MB -\n latest/candidate: 101.0.1-1 2022-06-09 (1443) 170MB -\n latest/beta: 102.0b5-2 2022-06-09 (1439) 170MB -\n latest/edge: 103.0a1 2022-06-09 (1442) 180MB -\n esr/stable: 91.10.0esr-1 2022-05-31 (1391) 161MB -\n esr/candidate: 91.10.0esr-1 2022-05-23 (1391) 161MB -\n esr/beta: \u2191\n esr/edge: \u2191\ninstalled: 101.0-2 (1406) 170MB -\n
\u624b\u52d5\u3067\u66f4\u65b0\u3057\u3066\u3082\u6700\u65b0\u3060\u3068\u8a00\u308f\u308c\u3066\u66f4\u65b0\u3055\u308c\u307e\u305b\u3093\uff0e
\n$ sudo snap refresh\nAll snaps up to date.\n$ snap find firefox | grep \\*\nfirefox 101.0.1-1 mozilla** - Mozilla Firefox web browser\n
snap\u306e\u66f4\u65b0\u6642\u9593\u3092\u5236\u9650\u3057\u3066\u3044\u308b\u306e\u3067\u3053\u308c\u306e\u305b\u3044\u304b\u3068\u601d\u3063\u3066\u89e3\u9664\u3057\u3066\u3082\u3060\u3081\u3067\u3059\uff0e
\n$ snap refresh --time (1)\ntimer: 01:00-05:59\nlast: today at 01:00 JST\nnext: tomorrow at 01:00 JST\n$ sudo snap unset system refresh.timer (2)\n$ snap refresh --time (3)\ntimer: 00:00~24:00/4\nlast: today at 01:00 JST\nnext: today at 22:48 JST\n$ sudo snap get system (4)\nKey Value\nrefresh {...}\nseed {...}\nsystem {...}\n$ sudo snap refresh\nAll snaps up to date.\n$ snap find firefox | grep \\*\nfirefox 101.0.1-1 mozilla** - Mozilla Firefox web browser\n01:00\u301c05:59 \u306b\u66f4\u65b0\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b| \n Note \n | \n\n\n | \n
\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u898b\u308b\u3068snap\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u8d77\u52d5\u4e2d\u306b\u306f\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u884c\u308f\u306a\u3044\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u5b9f\u9a13\u4e2d\u3068\u3044\u3046\u306e\u3092\u898b\u304b\u3051\u307e\u3057\u305f\uff0e\u8a18\u4e8b\u306f2\u5e74\u4ee5\u4e0a\u524d\u306e\u3082\u306e\u3067\u3059\uff0e\u3082\u3046\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u306e\u304b\u3082?
\n\u66f8\u3044\u3066\u3042\u308b\u8a2d\u5b9a\u306f\u898b\u5f53\u305f\u308a\u307e\u305b\u3093\uff0e
\n$ sudo snap get core experimental.refresh-app-awareness\nerror: snap \"core\" has no \"experimental\" configuration option\n
Firefox\u3092kill\u3057\u3066\u304b\u3089 snap refresh \u3092\u8a66\u3059\u3068\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304c\u3046\u307e\u304f\u884c\u304d\u307e\u3057\u305f\uff0e
$ pgrep firefox\n302750\n$ pkill firefox\n$ pgrep firefox\n$ sudo snap refresh\nfirefox 101.0.1-1 from Mozilla\u2713 refreshed\n$ snap find firefox | grep \\*\nfirefox 101.0.1-1 mozilla** - Mozilla Firefox web browser\n
\u3053\u306e\u8fba\u308a\u306e\u8a2d\u5b9a\u306f\u3044\u3058\u3063\u305f\u899a\u3048\u304c\u306a\u3044\u306e\u3067\uff0c\u65e2\u5b9a\u5024\u304csnap\u30a2\u30d7\u30ea\u8d77\u52d5\u4e2d\u306b\u306f\u66f4\u65b0\u3092\u884c\u308f\u306a\u3044\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\uff0e\u3068\u308a\u3042\u3048\u305a\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u7d42\u4e86\u3057\u3066\u304b\u3089refresh\u3067\u3057\u3087\u3046\u304b\uff0e
\n$ dpkg-query -W snapd\nsnapd 2.55.3+22.04ubuntu1\n$ snap find firefox | grep \\*\nfirefox 101.0.1-1 mozilla** - Mozilla Firefox web browser\n$ lsb_release -dr\nDescription: Ubuntu Kinetic Kudu (development branch)\nRelease: 22.10\n$ arch\nx86_64\n
Matrix\u306e\u6587\u7ae0\u3092\u898b\u3066\u3044\u305f\u3089Oracle\u306e\u30b5\u30fc\u30d3\u30b9\u3067200GB\u307e\u3067\u30b9\u30c8\u30ec\u30fc\u30b8\u304c\u4f7f\u3048\u305d\u3046\u306a\u306e\u306b\u6c17\u3065\u304d\u307e\u3057\u305f\uff0e
\n\n
| Vendor | \nTime-limit | \nCount | \nRAM (GB) | \nStorage (GB) | \nTransfer (GB) | \n
|---|---|---|---|---|---|
| \n AWS \n | \n\n 12 months \n | \n\n 1 t2.micro \n | \n\n 1 \n | \n\n 30 \n | \n\n 15 \n | \n
| \n Azure \n | \n\n 12 months \n | \n\n 1 B1S \n | \n\n 1 \n | \n\n 2x 64 \n | \n\n 15 \n | \n
| \n GCP \n | \n\n no limit \n | \n\n 1 e2-micro \n | \n\n 1 \n | \n\n 30 \n | \n\n 1 \n | \n
| \n Oracle \n | \n\n no limit \n | \n\n 1-4 VM.Standard.A1.Flex \n | \n\n 24 \n | \n\n 200 \n | \n\n 10000 \n | \n
\u516c\u5f0f\u30da\u30fc\u30b8\u3092\u898b\u3066\u3082200GB\u4f7f\u3048\u305d\u3046\u3067\u3059\uff0e
\n\n\n\n\n2\u3064\u306eBlock Volume\u30b9\u30c8\u30ec\u30fc\u30b8\u3001\u5408\u8a08200 GB\u3002
\n
\u73fe\u5728\u306f50GB\u7a0bx2\u5229\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3042\u3068100GB\u4f7f\u3048\u305d\u3046\u3067\u3059\uff0e\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e
\nhttps://cloud.oracle.com/ \u304b\u3089\u30ed\u30b0\u30a4\u30f3\u3057\u3066\uff0c\u300c\u30b9\u30c8\u30ec\u30fc\u30b8\u300d\u2192\u300c\u30d6\u30ed\u30c3\u30af\u30fb\u30dc\u30ea\u30e5\u30fc\u30e0\u300d\u304b\u3089\uff0c\u300c\u30d6\u30ed\u30c3\u30af\u30fb\u30dc\u30ea\u30e5\u30fc\u30e0\u306e\u4f5c\u6210\u300d\u3092\u884c\u3044\u307e\u3059\uff0e
\n\u305d\u3053\u3067\u300c\u540d\u524d\u300d\u306b\u300c\u4efb\u610f\u306e\u540d\u524d\u300d\uff0c\u30dc\u30ea\u30e5\u30fc\u30e0\u30fb\u30b5\u30a4\u30ba\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9 \u2192 \u30ab\u30b9\u30bf\u30e0\uff0c\u30dc\u30ea\u30e5\u30fc\u30e0\u30fb\u30b5\u30a4\u30ba(GB)\u306b\u300c100GB\u300d\u3092\u8a2d\u5b9a\uff0e
\n\u5de6\u4e0b\u306e\u300c\u30ea\u30bd\u30fc\u30b9\u300d\uff0c\u300c\u30e1\u30c8\u30ea\u30c3\u30af\u300d\u2192\u300c\u30a2\u30bf\u30c3\u30c1\u3055\u308c\u305f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u300d\u304b\u3089\u300c\u30d6\u30ed\u30c3\u30af\u30fb\u30dc\u30ea\u30e5\u30fc\u30e0\u306e\u30a2\u30bf\u30c3\u30c1\u300d\u3067\u65e2\u5b58\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30cb\u30a2\u30bf\u30c3\u30c1\u3057\u307e\u3059\uff0e
\n\u3053\u3053\u3067\u306f\u300c\u30dc\u30ea\u30e5\u30fc\u30e0\u306e\u9078\u629e\u300d\u2192\u300c\u4e0a\u3067\u4f5c\u6210\u3057\u305f\u30dc\u30ea\u30e5\u30fc\u30e0\u300d\uff0c\u300c\u30a2\u30bf\u30c3\u30c1\u30e1\u30f3\u30c8\u30fb\u30bf\u30a4\u30d7\u300d\u2192\u300c\u6e96\u4eee\u60f3\u5316\u300d\uff0c\u300c\u30a2\u30af\u30bb\u30b9\u300d\u2192\u300c\u8aad\u53d6\u308a/\u66f8\u8fbc\u307f\u300d\uff0c\u300c\u30c7\u30d0\u30a4\u30b9\u30fb\u30d1\u30b9\u300d\u2192\u300c/dev/oracleoci/oraclevdb\u300d
\n\u3068\u3044\u3046\u611f\u3058\u3067\u8a2d\u5b9a\u3057\u307e\u3057\u305f\uff0e
(\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u3092\u53d6\u5f97\u3057\u3066\u306a\u304b\u3063\u305f\u306e\u3067\u5927\u96d1\u628a\u3067\u3059\u2026\u2026)
\n\u3053\u306e\u72b6\u614b\u3067\u30a4\u30f3\u30b9\u30bf\u30f3\u3092\u78ba\u8a8d\u3059\u308b\u3068\u30c7\u30d0\u30a4\u30b9( /dev/oracleoci/oraclevdb )\u304c\u51fa\u6765\u3066\u3044\u307e\u3057\u305f\uff0e /dev/sdb \u306b\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u304c\u306f\u3089\u308c\u3066\u3044\u307e\u3059\uff0e
$ ls /dev/oracleoci/oraclevdb\n/dev/oracleoci/oraclevdb\n$ ls -l /dev/sdb /dev/oracleoci/oraclevdb\nlrwxrwxrwx 1 root root 6 Jun 28 12:57 /dev/oracleoci/oraclevdb -> ../sdb\nbrw-rw---- 1 root disk 8, 16 Jun 28 12:57 /dev/sdb\n
\u5f8c\u306f\u666e\u901a\u306eLinux\u306a\u306e\u3067\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u5207\u3063\u3066\uff0c\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3057\u3066\u30de\u30a6\u30f3\u30c8\u3057\u307e\u3059\uff0e
\n$ sudo fdisk -l /dev/oracleoci/oraclevdb (1)\nDisk /dev/oracleoci/oraclevdb: 100 GiB, 107374182400 bytes, 209715200 sectors\nDisk model: BlockVolume\nUnits: sectors of 1 * 512 = 512 bytes\nSector size (logical/physical): 512 bytes / 4096 bytes\nI/O size (minimum/optimal): 4096 bytes / 1048576 bytes\n$ sudo fdisk /dev/oracleoci/oraclevdb (2)\n\nWelcome to fdisk (util-linux 2.34).\nChanges will remain in memory only, until you decide to write them.\nBe careful before using the write command.\n\nDevice does not contain a recognized partition table.\nCreated a new DOS disklabel with disk identifier 0x130d310a.\n\nCommand (m for help): n (3)\nPartition type\n p primary (0 primary, 0 extended, 4 free)\n e extended (container for logical partitions)\nSelect (default p): p (4)\nPartition number (1-4, default 1): (5)\nFirst sector (2048-209715199, default 2048): (6)\nLast sector, +/-sectors or +/-size{K,M,G,T,P} (2048-209715199, default 209715199): (7)\n\nCreated a new partition 1 of type 'Linux' and of size 100 GiB.\n\nCommand (m for help): p (8)\nDisk /dev/oracleoci/oraclevdb: 100 GiB, 107374182400 bytes, 209715200 sectors\nDisk model: BlockVolume\nUnits: sectors of 1 * 512 = 512 bytes\nSector size (logical/physical): 512 bytes / 4096 bytes\nI/O size (minimum/optimal): 4096 bytes / 1048576 bytes\nDisklabel type: dos\nDisk identifier: 0x130d310a\n\nDevice Boot Start End Sectors Size Id Type\n/dev/oracleoci/oraclevdb1 2048 209715199 209713152 100G 83 Linux\n\nCommand (m for help): w (9)\nThe partition table has been altered.\nCalling ioctl() to re-read partition table.\nSyncing disks.\n\n$ sudo mkfs.ext4 /dev/oracleoci/oraclevdb1 (10)\nmke2fs 1.45.5 (07-Jan-2020)\nCreating filesystem with 26214144 4k blocks and 6553600 inodes\nFilesystem UUID: dbc5f8b5-5f38-4246-9f41-6003e1f5d1fb\nSuperblock backups stored on blocks:\n 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,\n 4096000, 7962624, 11239424, 20480000, 23887872\n\nAllocating group tables: done\nWriting inode tables: done\nCreating journal (131072 blocks): done\nWriting superblocks and filesystem accounting information: done\n\n$ sudo mkdir /export (11)\n$ sudo mount /dev/oracleoci/oraclevdb1 /export (12)\n$ df -H | grep -vE \"loop|tmpfs|udev\" (13)\nFilesystem Size Used Avail Use% Mounted on\n/dev/sda1 49G 29G 20G 60% /\n/dev/sda15 103M 297k 102M 1% /boot/efi\n/dev/sdb1 106G 63M 100G 1% /export\n$ sudo umount /export (14)\n$ echo \"/dev/sdb1 /export ext4 defaults 0 1\" | sudo tee -a /etc/fstab (15)\n/dev/sdb1 /export ext4 defaults 0 1\n$ sudo mount -a (16)\n$ df -H | grep -vE \"loop|tmpfs|udev\" (17)\nFilesystem Size Used Avail Use% Mounted on\n/dev/sda1 49G 29G 20G 60% /\n/dev/sda15 103M 297k 102M 1% /boot/efi\n/dev/sdb1 106G 63M 100G 1% /export\nn \u3067\u65b0\u3057\u3044\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u4f5c\u6210p \u3067\u30d7\u30e9\u30a4\u30de\u30ea\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u4f5c\u6210Enter \u3067\u898f\u5b9a\u5024\u306e 1Enter \u3067\u898f\u5b9a\u5024\u306e 2048Enter \u3067\u898f\u5b9a\u5024\u306e 209715199 (\u5168\u9818\u57df)p \u3067\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u8a2d\u5b9a\u78ba\u8a8dw \u3067\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u66f8\u304d\u8fbc\u307f/etc/fatab \u3092\u8a2d\u5b9afstab \u3092\u4f7f\u3063\u3066\u30de\u30a6\u30f3\u30c8\u5f8c\u306f\u666e\u901a\u306b\u4f7f\u3048\u308b\u306f\u305a\u3067\u3059\uff0e
\n\u3068\u3044\u3046\u3053\u3068\u3067arm64 4core, 24GB RAN, Disk 150GB\u306a\u7121\u6599VPS\u304c\u3067\u304d\u307e\u3057\u305f\uff0eamd64\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u524a\u9664\u3059\u308c\u3070Disk 200GB\u306b\u3082\u3067\u304d\u308b\u306f\u305a\u3067\u3059\uff0e
\n\u3053\u308c\u304c\u7121\u6599\u3067\u4f7f\u3048\u308b\u306e\u3059\u3054\u3044\u3067\u3059\u306d\uff0e(\u3044\u3064\u4f7f\u3048\u306a\u304f\u306a\u3063\u3066\u3082\u304a\u304b\u3057\u304f\u306f\u306a\u3044\u3060\u308d\u3046\u3051\u3069)
\u4e45\u3005\u306bGnome Shell\u3092\u8d77\u52d5\u3057\u305f\u3068\u3053\u308d\u62e1\u5f35\u6a5f\u80fd\u306eargos\u304c\u8d77\u52d5\u3057\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3057\u305f\uff0e
\n\n
\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u898b\u308b\u3068Gnome42\u5bfe\u5fdc\u3092\u3057\u3066\u3044\u308b\u4eba\u304c\u3044\u305f\u306e\u3067\uff0c\u4ee5\u4e0b\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306e gnome-42 \u30d6\u30e9\u30f3\u30c1\u3092\u5229\u7528\u3055\u305b\u3066\u3082\u3089\u3046\u3053\u3068\u3067\u52d5\u304f\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f :)
$ trash ~/.local/share/gnome-shell/extensions/argos\\@pew.worldwidemann.com (1)\n$ git clone https://github.com/Coda-Coda/argos (2)\n$ cd argos\n$ git branch (3)\n* gnome-42\n$ cp -a argos\\@pew.worldwidemann.com ~/.local/share/gnome-shell/extensions/ (4)\n
gnome-42 \u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3092\u78ba\u8a8d\u3053\u306e\u3042\u3068\uff0c Alt + F2 r Enter \u3067\u53cd\u6620\u3057\u307e\u3059\uff0e
\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f :)
\n\u8a73\u7d30\u306f\u4ee5\u524d\u306e\u8a18\u4e8b\u3092\uff0e
\n$ dpkg-query -W gnome-shell gnome-shell-extensions\ngnome-shell 42.0-2ubuntu1\ngnome-shell-extensions 42.0-1\n$ lsb_release -dr\nDescription: Ubuntu 22.04 LTS\nRelease: 22.04\n$ arch\nx86_64\n
\u6700\u8fd1Oracle Cloud VPS\u306eFree Tier Always Free\u67a0\u3067\u904a\u3093\u3067\u3044\u307e\u3059\uff0e
\n\u4eca\u65e5\u306f\u306a\u3093\u3060\u304b\u3068\u3066\u3082\u91cd\u304f\u306a\u308a\u307e\u3057\u305fRAM\u304c1GB\u3042\u308b\u306e\u3067\u3059\u304c\uff0c9\u5272\u4ee5\u4e0a\u5229\u7528\u3057\u3066\u3044\u307e\u3057\u305f\uff0eswap\u306f\u672a\u8a2d\u5b9a\uff0eswap\u3092\u8a2d\u5b9a\u3057\u3066\u307f\u307e\u3057\u305f\uff0e
\nOracle Cloud\u3067\u3059\u304c\u5927\u62b5\u306e\u74b0\u5883\u3067\u3082\u540c\u3058\u3088\u3046\u306b\u51fa\u6765\u308b\u306f\u305a\u3067\u3059\uff0e
\n
\u307e\u305a\u306f\u6025\u5834\u3057\u306e\u304e\u306b\u3088\u304f\u4f7f\u3046\u65b9\u6cd5\u3067\u30b9\u30ef\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u5229\u7528\u3059\u308b\u65b9\u6cd5\uff0e
\n\u9069\u5f53\u306a\u5834\u6240\u306b\u7a7a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\uff0e \u3053\u3053\u3067\u306f2GB\u5206\u4f5c\u6210\u3057\u307e\u3057\u305f\uff0e
\n$ sudo dd if=/dev/zero of=/var/tmp/swap bs=1M count=2048\n
swap\u3092\u8a2d\u5b9a\u3057\u307e\u3059\uff0e
\n$ sudo chmod 600 /var/tmp/swap (1)\n$ sudo mkswap /var/tmp/swap (2)\n$ sudo swapon /var/tmp/swap (3)\n$ free -h (4)\n total used free shared buff/cache available\nMem: 966Mi 303Mi 62Mi 12Mi 600Mi 501Mi\nSwap: 2.0Gi 0.0Ki 2.0Gi\n$ sudo swapoff /var/tmp/swap (5)\n$ sudo rm /var/tmp/swap (6)\n
\u4f7f\u3044\u7d9a\u3051\u305f\u3044\u5834\u5408\u306f/etx/fstab\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u6c38\u7d9a\u5316\u3057\u3066\u518d\u8d77\u52d5\u5f8c\u3082\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff0e(\u4e0b\u306eswap\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u4f5c\u308b\u65b9\u6cd5\u306e\u307b\u3046\u304c\u5c11\u3057\u901f\u3044\u306f\u305a)
\n$ sudo vi /etc/fstab (1)\n$ sudo git -C /etc diff HEAD~ /etc/fstab (2)\ndiff --git a/fstab b/fstab\nindex d1ac1c3..01c9c0e 100644\n--- a/fstab\n+++ b/fstab\n@@ -1,5 +1,6 @@\n LABEL=cloudimg-rootfs / ext4 defaults 0 1\n LABEL=UEFI /boot/efi vfat umask=0077 0 1\n+/var/tmp/swap none swap pri=-1 0 0\n\n # CLOUD_IMG: This file was created/modified by the Cloud Image build process\n ######################################\n$ sudo swapon -av (3)\nswapon: /var/tmp/swap: found signature [pagesize=4096, signature=swap]\nswapon: /var/tmp/swap: pagesize=4096, swapsize=2147483648, devsize=2147483648\nswapon /var/tmp/swap\n$ free (4)\n total used free shared buff/cache available\nMem: 989340 308556 71368 12880 609416 517280\nSwap: 2097148 0 2097148\n
swap\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u3046\u65b9\u6cd5\u306f\u304a\u624b\u8efd\u3067\u3059\u304c\uff0c\u30ec\u30a4\u30e4\u30fc\u304c\u5897\u3048\u308b\u306e\u3067\u5c11\u3057\u9045\u304f\u306a\u308b\u306f\u305a\u3067\u3059\uff0e\u5272\u5f53\u6e08\u306e\u30c7\u30a3\u30b9\u30af\u3092\u7e2e\u5c0f\u3057\u3066swap\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u3066\u30de\u30a6\u30f3\u30c8\u3057\u307e\u3059\uff0e
\n| \n Warning \n | \n\n \n \n\u8a2d\u5b9a\u3092\u30df\u30b9\u3059\u308b\u3068\u30b7\u30b9\u30c6\u30e0\u304c\u58ca\u308c\u308b\u306e\u3067\u6ce8\u610f\u3057\u3066\u64cd\u4f5c\u3057\u3066\u304f\u3060\u3055\u3044\uff0e\u64cd\u4f5c\u306b\u4e0d\u5b89\u304c\u3042\u308b\u5834\u5408\u306f\u4e0a\u306eswap\u30d5\u30a1\u30a4\u30eb\u3092\u5229\u7528\u3057\u305f\u307b\u3046\u304c\u5b89\u5168\u3067\u3059\uff0e \n | \n
Parted\u3067\u51e6\u7406\u3092\u884c\u3044\u307e\u3059\uff0eGUI\u306e\u5834\u5408\u306fgParted\u304c\u89e3\u308a\u3084\u3059\u304f\u3066\u4fbf\u5229\u3067\u3059\uff0e
\n\u73fe\u5728\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\uff0e\u7a7a\u304d\u30c7\u30a3\u30b9\u30af\u306f\u307b\u3068\u3093\u3069\u3042\u308a\u307e\u305b\u3093\u304c\uff0c\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f31\u306e /dev/dsa1 \u3092\u7e2e\u5c0f\u3057\u3066swap\u7528\u306b\u8cb0\u3046\u3053\u3068\u306b\u3057\u307e\u3059\uff0e
$ sudo parted /dev/sda\n :\n(parted) print free\nModel: ORACLE BlockVolume (scsi)\nDisk /dev/sda: 50.0GB\nSector size (logical/physical): 512B/4096B\nPartition Table: gpt\nDisk Flags:\n\nNumber Start End Size File system Name Flags\n 17.4kB 1049kB 1031kB Free Space\n14 1049kB 5243kB 4194kB bios_grub\n15 5243kB 116MB 111MB fat32 boot, esp\n 1 116MB 50.0GB 49.9GB ext4\n
\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f31\u309250GB\u304b\u308948GB\u306b\u30ea\u30b5\u30a4\u30ba\u3057\u307e\u3059\uff0e
\n(parted) resizepart\nPartition number? 1\nWarning: Partition /dev/sda1 is being used. Are you sure you want to continue?\nYes/No? yes\nEnd? [50.0GB]? 48GB\nWarning: Shrinking a partition can cause data loss, are you sure you want to continue?\nYes/No? yes\n
\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f31\u304c\u5c0f\u3055\u304f\u306a\u308a\u307e\u3057\u305f\uff0e
\n(parted) print\nModel: ORACLE BlockVolume (scsi)\nDisk /dev/sda: 50.0GB\nSector size (logical/physical): 512B/4096B\nPartition Table: gpt\nDisk Flags:\n\nNumber Start End Size File system Name Flags\n14 1049kB 5243kB 4194kB bios_grub\n15 5243kB 116MB 111MB fat32 boot, esp\n 1 116MB 48.0GB 47.9GB ext4\n
\u3067\u304d\u305f\u7a7a\u304d\u9818\u57df\u304b\u3089swap\u7528\u306e\u30d1\u30fc\u30c6\u30a3\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u307e\u3059\uff0e
\n(parted) mkpart\nPartition name? []?\nFile system type? [ext2]? linux-swap\nStart? 48.0GB\nEnd? 50GB\n(parted) print\nModel: ORACLE BlockVolume (scsi)\nDisk /dev/sda: 50.0GB\nSector size (logical/physical): 512B/4096B\nPartition Table: gpt\nDisk Flags:\n\nNumber Start End Size File system Name Flags\n14 1049kB 5243kB 4194kB bios_grub\n15 5243kB 116MB 111MB fat32 boot, esp\n 1 116MB 48.0GB 47.9GB ext4\n 2 48.0GB 50.0GB 2009MB linux-swap(v1)\n\n(parted) quit\nInformation: You may need to update /etc/fstab.\n
swap\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u521d\u671f\u5316\u3057\u307e\u3059\uff0e
\n$ sudo mkswap /dev/sda2\nSetting up swapspace version 1, size = 1.9 GiB (2009067520 bytes)\nno label, UUID=4e27ed83-3d75-4c3d-87ac-f16e618bba4a\n
\u30a2\u30c9\u30db\u30c3\u30af\u306b\u624b\u52d5\u3067swap\u3092\u6709\u52b9\u5316\u3057\u3066\u307f\u307e\u3059\uff0e
\n$ sudo swapon -v UUID=4e27ed83-3d75-4c3d-87ac-f16e618bba4a\nswapon: /dev/sda2: found signature [pagesize=4096, signature=swap]\nswapon: /dev/sda2: pagesize=4096, swapsize=2009071616, devsize=2009071616\nswapon /dev/sda2\n$ free\n total used free shared buff/cache available\nMem: 989340 311428 83696 12884 594216 513164\nSwap: 1961980 0 1961980\n
\u4e00\u65e6swap\u3092off\u306b\u3057\u3066\u6c38\u7d9a\u5316\u306e\u305f\u3081\u306b/etc/fstab\u306b\u767b\u9332\u3057\u3066swapon\u3057\u3066\u307f\u307e\u3059\uff0e
\n$ sudo swapoff UUID=4e27ed83-3d75-4c3d-87ac-f16e618bba4a\n$ sudo vi /etc/fstab\n$ sudo git -C /etc diff /etc/fstab\ndiff --git a/fstab b/fstab\nindex e22bda5..72d64af 100644\n--- a/fstab\n+++ b/fstab\n@@ -1,6 +1,6 @@\n LABEL=cloudimg-rootfs / ext4 defaults 0 1\n LABEL=UEFI /boot/efi vfat umask=0077 0 1\n-/var/tmp/swap none swap pri=20 0 0\n+UUID=4e27ed83-3d75-4c3d-87ac-f16e618bba4a none swap pri=-1 0 0\n\n # CLOUD_IMG: This file was created/modified by the Cloud Image build process\n ######################################\nubuntu@instance-20220327-0134:~$ sudo swapon -a\nubuntu@instance-20220327-0134:~$ free\n total used free shared buff/cache available\nMem: 989340 312360 80884 12884 596096 512232\nSwap: 1961980 0 1961980\n
\u6b21\u56de\u8d77\u52d5\u6642\u304b\u3089\u81ea\u52d5\u7684\u306b\u6709\u52b9\u306b\u306a\u308b\u306f\u305a\u3067\u3059\uff0e
\n$ dpkg-query -W parted mount\nmount 2.34-0.1ubuntu9.3\nparted 3.3-4ubuntu0.20.04.1\n$ lsb_release -dr\nDescription: Ubuntu 20.04.4 LTS\nRelease: 20.04\n$ uname -a\nLinux instance-20220327-0134 5.13.0-1027-oracle #32~20.04.1-Ubuntu SMP Fri Apr 15 05:59:34 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux\n
Ubuntu 21.10 amd64 \u304b\u3089 22.04(development branch) \u3078\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u6642\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u3067\u5931\u6557\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u305f\uff0e
\nunable to open '/usr/share/themes/Yaru/gnome-shell/calendar-today-light.svg.dpkg-new': No such file or directory
\n
Preparing to unpack .../yaru-theme-gnome-shell_22.04.3.1_all.deb ...\nUnpacking yaru-theme-gnome-shell (22.04.3.1) over (21.10.2) ...\ndpkg: error processing archive /var/cache/apt/archives/yaru-theme-gnome-shell_22.04.3.1_all.deb (--unpack):\n unable to open '/usr/share/themes/Yaru/gnome-shell/calendar-today-light.svg.dpkg-new': No such file or directory\nNo apport report written because the error message indicates an issue on the local system\n Errors were encountered while processing:\n /var/cache/apt/archives/yaru-theme-gnome-shell_22.04.3.1_all.deb\n
.../yaru-theme-gnome-shell_22.04.3.1_all.deb \u3092\u8ee2\u63db\u3059\u308b\u6e96\u5099\u3092\u3057\u3066\u3044\u307e\u3059\u3000...\nyaru-theme-gnome-shell (22.04.3.1) \u3067 (21.10.2\u3000\u306b) \u4e0a\u66f8\u304d\u5c55\u958b\u3057\u3066\u3044\u307e\u3059\u3000...\ndpkg: \u30a2\u30fc\u30ab\u30a4\u30d6 /var/cache/apt/archives/yaru-theme-gnome-shell_22.04.3.1_all.deb \u306e\u51e6\u7406\u4e2d\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f (--install):\n '/usr/share/themes/Yaru/gnome-shell/calendar-today-light.svg.dpkg-new' \u3092\u30aa\u30fc\u30d7\u30f3\u3067\u304d\u307e\u305b\u3093: \u305d\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3042\u308a\u307e\u305b\u3093\n\u51e6\u7406\u4e2d\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f:\n/var/cache/apt/archives/yaru-theme-gnome-shell_22.04.3.1_all.deb\n
\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u691c\u7d22\u3059\u308b\u3068\u4ee5\u4e0b\u306eBug\u304c\u898b\u3064\u304b\u308a\u307e\u3057\u305f\uff0e
\n\u3068\u308a\u3042\u3048\u305a\u6dfb\u4ed8\u3055\u308c\u305f.deb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066dpkg\u3067\u5c0e\u5165\u3059\u308c\u3070\u826f\u3055\u305d\u3046\u3067\u3059\uff0e
\n$ wget https://bugs.launchpad.net/ubuntu/+source/yaru-theme/+bug/1968405/+attachment/5580229/+files/yaru-theme-gnome-shell_22.04.3.1+git2ff06a41_all.deb\n$ sudo dpkg -i ./yaru-theme-gnome-shell_22.04.3.1+git2ff06a41_all.deb\n$ sudo apt --fix-broken install\n :\n$ sudo apt dist-upgrade\n :\n
\u82e5\u3057\u304f\u306f\u5c11\u3057\u5f85\u3063\u3066\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u53cd\u6620\u3055\u308c\u308b\u306e\u3092\u5f85\u3061\u307e\u3057\u3087\u3046\uff0e
\n$ lsb_release -dr\nDescription: Ubuntu 21.10\nRelease: 21.10\n$ arch\nx86_64\n
Debian\u7b49\u3067\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u76f4\u5f8c\u306eawk\u306f mawk \u304c\u5c0e\u5165\u3055\u308c\u307e\u3059\uff0e
\nDebian\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u306f\u4ed6\u306bGNU awk(\u30d1\u30c3\u30b1\u30fc\u30b8\u540d gawk ), The One True Awk(\u30d1\u30c3\u30b1\u30fc\u30b8\u540d original-awk )\u3068\u3044\u3046\u3082\u306e\u3082\u3042\u308a\u307e\u3059\uff0e*BSD\u306a\u3069\u3067\u3088\u304f\u898b\u308b nawk \u3082\u3042\u308b\u3088\u3046\u306b\u898b\u3048\u307e\u3059\u304c\uff0c\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3060\u3051\u306e\u3088\u3046\u3067\u3059\uff0e
\n(\u4ed6\u306b\u3082\u3042\u308b\u304b\u3082\u3057\u308c\u306a\u3044?)
mawk \u306f\u521d\u671f\u72b6\u614b\u3067\u5165\u3063\u3066\u3044\u3066\u8efd\u91cf\uff0eGNU awk \u306fmawk\u306b\u6bd4\u3079\u3066\u591a\u6a5f\u80fd\u3067\u65e2\u5b9a\u5024\u3067\u306f\u5c0e\u5165\u3055\u308c\u307e\u305b\u3093\u304c\uff0c byobu \u306a\u3069\u304c\u4f9d\u5b58\u3092\u6c42\u3081\u308b\u306e\u3067\u5165\u3063\u3066\u3044\u308b\u4eba\u3082\u591a\u3044\u3068\u601d\u3044\u307e\u3059\uff0e
\u8907\u6570\u306eawk\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u5c0e\u5165\u3055\u308c\u3066\u3044\u308b\u3068\u304d\u306b awk \u3068\u5b9f\u884c\u3057\u305f\u3068\u304d\u306f update-alternatives \u3067\u7ba1\u7406\u3055\u308c\u305f\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u5148\u306e\u3044\u305a\u308c\u304b\u306eawk\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\uff0e\u3053\u308c\u3092\u5207\u308a\u66ff\u3048\u3066\u307f\u307e\u3059\uff0e
\n
\u5207\u308a\u66ff\u3048\u524d\u306e\u72b6\u614b\u3067\u3059\uff0e awk , nawk \u304c gawk(GNU awk) \u306b\u5411\u3044\u3066\u3044\u307e\u3059\uff0e
$ ls -l /usr/bin/*awk\nlrwxrwxrwx 1 root root 21 May 16 00:33 /usr/bin/awk -> /etc/alternatives/awk\n-rwxr-xr-x 1 root root 694624 Feb 10 17:42 /usr/bin/gawk\n-rwxr-xr-x 1 root root 158296 Feb 17 2020 /usr/bin/mawk\nlrwxrwxrwx 1 root root 22 May 16 00:33 /usr/bin/nawk -> /etc/alternatives/nawk\n-rwxr-xr-x 1 root root 135848 Dec 22 06:24 /usr/bin/original-awk\n$ ls -l /etc/alternatives/*awk\nlrwxrwxrwx 1 root root 13 May 16 04:27 /etc/alternatives/awk -> /usr/bin/gawk\nlrwxrwxrwx 1 root root 13 May 16 04:27 /etc/alternatives/nawk -> /usr/bin/gawk\nawk \u30b3\u30de\u30f3\u30c9\u3092\u5207\u308a\u66ff\u3048\u3066\u307f\u307e\u3059\uff0e\u3053\u3053\u3067\u306f gawk \u304b\u3089 mawk \u306b\u3057\u307e\u3057\u305f\uff0e
$ sudo update-alternatives --display awk (1)\nawk - auto mode\n link best version is /usr/bin/gawk\n link currently points to /usr/bin/gawk\n link awk is /usr/bin/awk\n slave awk.1.gz is /usr/share/man/man1/awk.1.gz\n slave nawk is /usr/bin/nawk\n slave nawk.1.gz is /usr/share/man/man1/nawk.1.gz\n/usr/bin/gawk - priority 10\n slave awk.1.gz: /usr/share/man/man1/gawk.1.gz\n slave nawk: /usr/bin/gawk\n slave nawk.1.gz: /usr/share/man/man1/gawk.1.gz\n/usr/bin/mawk - priority 5\n slave awk.1.gz: /usr/share/man/man1/mawk.1.gz\n slave nawk: /usr/bin/mawk\n slave nawk.1.gz: /usr/share/man/man1/mawk.1.gz\n/usr/bin/original-awk - priority 0\n slave awk.1.gz: /usr/share/man/man1/original-awk.1.gz\n$ sudo update-alternatives --config awk (2)\nThere are 3 choices for the alternative awk (providing /usr/bin/awk).\n\n Selection Path Priority Status\n------------------------------------------------------------\n* 0 /usr/bin/gawk 10 auto mode\n 1 /usr/bin/gawk 10 manual mode\n 2 /usr/bin/mawk 5 manual mode\n 3 /usr/bin/original-awk 0 manual mode\n\nPress <enter> to keep the current choice[*], or type selection number: 2\nupdate-alternatives: using /usr/bin/mawk to provide /usr/bin/awk (awk) in manual mode\n$ sudo update-alternatives --set awk /usr/bin/mawk (3)\nupdate-alternatives: using /usr/bin/mawk to provide /usr/bin/awk (awk) in manual mode\n$ ls -l /etc/alternatives/*awk (4)\nlrwxrwxrwx 1 root root 13 Jun 7 08:27 /etc/alternatives/awk -> /usr/bin/mawk\nlrwxrwxrwx 1 root root 13 Jun 7 08:27 /etc/alternatives/nawk -> /usr/bin/mawk\nawk \u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d\uff0e gawk \u306b\u5411\u3044\u3066\u3044\u308bupdate-alternatives \u30b3\u30de\u30f3\u30c9\u3092\u8d77\u52d5\u3057\u3066 2 \u306e mawk \u306b\u8a2d\u5b9aawk , nawk \u304c mawk \u306b\u5411\u3044\u305f\u306e\u3092\u78ba\u8a8d\uff0e\u5207\u308a\u66ff\u3048\u3067\u304d\u307e\u3057\u305f\uff0e\u3000:)
\n\u3061\u306a\u307f\u306b update-alternatives \u3067\u7ba1\u7406\u3055\u308c\u3066\u3044\u308b\u30b3\u30de\u30f3\u30c9\u306e\u4e00\u89a7\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u8868\u793a\u3067\u304d\u307e\u3059\uff0e
$ update-alternatives --get-selections\n$ dpkg-query -W mawk gawk original-awk dpkg\ndpkg 1.20.9\ngawk 1:5.1.0-1\nmawk 1.3.4.20200120-2\noriginal-awk 2018-08-27-1\n$ lsb_release -dr\nDescription: Debian GNU/Linux 11 (bullseye) (1)\nRelease: 11\n$ arch\nx86_64\n
$ dpkg-query -W mawk gawk dpkg\ndpkg\t1.20.9ubuntu1\ngawk\t1:5.1.0-1build1\nmawk\t1.3.4.20200120-2\n$ lsb_release -dr\nDescription:\tUbuntu 21.04\nRelease:\t21.04\n$ arch\nx86_64\n
$ dpkg-query -W mawk gawk dpkg\ndpkg 1.19.7\ngawk 1:4.2.1+dfsg-1\nmawk 1.3.3-17\n$ lsb_release -dr\nDescription: Raspbian GNU/Linux 10 (buster)\nRelease: 10\n$ arch\narmv7l\n
\u4ee5\u4e0b\u306e\u30a8\u30f3\u30c8\u30ea\u3067ip\u30b3\u30de\u30f3\u30c9\u3067\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u901a\u4fe1\u91cf\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\uff0e
\n\u7aef\u672b\u3092\u8d77\u52d5\u3057\u3066\u304b\u3089\u306e\u901a\u4fe1\u91cf\u306f\u78ba\u8a8d\u3067\u304d\u307e\u3059\u304c\uff0c\u518d\u8d77\u52d5\u3057\u305f\u308a\u3059\u308b\u3068\u30c7\u30fc\u30bf\u91cf\u306f\u30af\u30ea\u30a2\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\uff0eMRTG\u3084Zabbix\u306a\u3069\u3092\u4f7f\u3046\u306e\u306f\u5927\u3052\u3055\u306a\u611f\u3058\u304c\u3057\u307e\u3059\uff0e
\n\u3082\u3046\u5c11\u3057\u304a\u624b\u8efd\u306a\u3082\u306e\u304c\u306a\u3044\u304b\u306a\u3068\u5c11\u3057\u63a2\u3057\u3066vnStat\u3068\u3044\u3046\u3082\u306e\u3092\u898b\u3064\u3051\u305f\u306e\u3067\u4eca\u56de\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e
\n
Debian\u3067\u306f vnstat \u3068 vnstati \u3068\u3044\u3046\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\uff0evnstat \u304c\u672c\u4f53\u3067\uff0c vnstati \u306f\u30a4\u30e1\u30fc\u30b8\u51fa\u529b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3059\uff0e
\u307e\u305a\u306f\u672c\u4f53\u306e vnstat \u3092\u5c0e\u5165\u3057\u307e\u3059\uff0e
$ sudo apt install vnstat\n\u5c0e\u5165\u3059\u308b\u3068vnStat\u306e\u30c7\u30fc\u30e2\u30f3\u304c\u8d77\u52d5\u3057\u307e\u3059\uff0e
\n$ sudo service vnstat status\n\u25cf vnstat.service - vnStat network traffic monitor\n Loaded: loaded (/lib/systemd/system/vnstat.service; enabled; vendor preset: enabled)\n Active: active (running) since Fri 2021-04-30 00:46:09 JST; 5min ago\n Docs: man:vnstatd(8)\n man:vnstat(1)\n man:vnstat.conf(5)\n Main PID: 2045411 (vnstatd)\n Tasks: 1 (limit: 18935)\n Memory: 808.0K\n CPU: 184ms\n CGroup: /system.slice/vnstat.service\n \u2514\u25002045411 /usr/sbin/vnstatd -n\n\nApr 30 00:46:10 t430s vnstatd[2045411]: Interface \"virbr0\" added with 1000 Mbit bandwidth limit.\nApr 30 00:46:10 t430s vnstatd[2045411]: Interface \"nm-br1\" added with 1000 Mbit bandwidth limit.\nApr 30 00:46:10 t430s vnstatd[2045411]: Interface \"anbox0\" added with 1000 Mbit bandwidth limit.\nApr 30 00:46:10 t430s vnstatd[2045411]: Interface \"lxcbr0\" added with 1000 Mbit bandwidth limit.\nApr 30 00:46:10 t430s vnstatd[2045411]: Interface \"docker0\" added with 1000 Mbit bandwidth limit.\nApr 30 00:46:10 t430s vnstatd[2045411]: -> 7 new interfaces found.\nApr 30 00:46:10 t430s vnstatd[2045411]: Limits can be modified using the configuration file. See \"man vnstat.conf\".\nApr 30 00:46:10 t430s vnstatd[2045411]: Unwanted interfaces can be removed from monitoring with \"vnstat --remove\".\nApr 30 00:46:10 t430s vnstatd[2045411]: Info: vnStat daemon 2.6 started. (pid:2045411 uid:149 gid:165 64-bit)\nApr 30 00:46:10 t430s vnstatd[2045411]: Info: Monitoring (7): wlp3s0 (1000 Mbit) virbr0 (1000 Mbit) nm-br1 (1000 Mbit) lxcbr0 (1000 Mbit) enp0s2>\n\u306f\u3058\u3081\u306f\u30c7\u30fc\u30bf\u304c\u306a\u3044\u306e\u3067\u3053\u3093\u306a\u611f\u3058\u306e\u5bc2\u3057\u3044\u8868\u793a\u3067\u3059\uff0e
\n$ vnstat [169/1082]\n\n rx / tx / total / estimated\n anbox0: Not enough data available yet.\n docker0: Not enough data available yet.\n enp0s25: Not enough data available yet.\n lxcbr0: Not enough data available yet.\n nm-br1: Not enough data available yet.\n virbr0: Not enough data available yet.\n wlp3s0: Not enough data available yet.\n\u6570\u5206\u7d4c\u3063\u3066\u304b\u3089\u5b9f\u884c\u3059\u308b\u3068\u30c7\u30fc\u30bf\u304c\u8a18\u9332\u3055\u308c\u3066\u30ed\u30b0\u304c\u51fa\u3066\u304d\u307e\u3059\uff0e
\n$ vnstat\n\n rx / tx / total / estimated\n anbox0: Not enough data available yet.\n docker0: Not enough data available yet.\n enp0s25: Not enough data available yet.\n lxcbr0: Not enough data available yet.\n nm-br1: Not enough data available yet.\n virbr0: Not enough data available yet.\n wlp3s0:\n 2021-04 21.10 MiB / 3.70 MiB / 24.80 MiB / 22.25 MiB\n today 21.10 MiB / 3.70 MiB / 24.80 MiB / 673.77 MiB\n\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u304c\u8907\u6570\u3042\u3063\u3066\uff0c\u7279\u5b9a\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u60c5\u5831\u3060\u3051\u3092\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u306f -i \u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u304c\u6307\u5b9a\u3067\u304d\u307e\u3059\uff0e
$ vnstat -i wlp3s0\nDatabase updated: 2021-04-30 00:53:40\n\n wlp3s0 since 2021-04-30\n\n rx: 21.10 MiB tx: 3.70 MiB total: 24.80 MiB\n\n monthly\n rx | tx | total | avg. rate\n ------------------------+-------------+-------------+---------------\n 2021-04 21.10 MiB | 3.70 MiB | 24.80 MiB | 82 bit/s\n ------------------------+-------------+-------------+---------------\n estimated 19.78 MiB | 2.47 MiB | 22.25 MiB |\n\n daily\n rx | tx | total | avg. rate\n ------------------------+-------------+-------------+---------------\n today 21.10 MiB | 3.70 MiB | 24.80 MiB | 64.60 kbit/s\n ------------------------+-------------+-------------+---------------\n estimated 573.38 MiB | 100.39 MiB | 673.77 MiB |\n\u8907\u6570\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u5408\u8a08\u3092\u6307\u5b9a\u3059\u308b\u5834\u5408\u306f\uff0c + \u3067\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u3064\u306a\u3052\u3066\u6307\u5b9a\u3057\u307e\u3059\uff0e
$ vnstat -i usb0+wlp3s0\nvnStat\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u5b58\u5728\u3057\u306a\u304b\u3063\u305f\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306f\u76e3\u8996\u3055\u308c\u307e\u305b\u3093\uff0e
\n$ vnstat -i usb0\nError: Interface \"usb0\" not found in database.\n\u65b0\u3057\u3044\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u8ffd\u52a0\u3057\u307e\u3059\uff0e\u3053\u3053\u3067\u306f usb0 \u3092\u767b\u9332\u3057\u307e\u3057\u305f\uff0e
$ sudo vnstat --add -i usb0 (1)\nAdding interface \"usb0\" for monitoring to database...\n\nRestart the vnStat daemon if it is currently running in order to start monitoring \"usb0\".\n$ sudo service vnstat restart (2)\n$ vnstat -i usb0 -d (3)\n\n usb0 / daily\n\n day rx | tx | total | avg. rate\n ------------------------+-------------+-------------+---------------\n 2021-04-30 2.03 MiB | 8.18 MiB | 10.21 MiB | 12.90 kbit/s\n ------------------------+-------------+-------------+---------------\n estimated 26.57 MiB | 107.12 MiB | 133.70 MiB |\nusb0 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u767b\u9332\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u304c\u5207\u65ad\u3055\u308c\u3066\u3044\u308b\u3068\u304d\u306f disabled \u306e\u8868\u793a\u306b\u306a\u308a\u307e\u3059\u304c\uff0c\u518d\u63a5\u7d9a\u3055\u308c\u308b\u3068\u307e\u305f\u30ab\u30a6\u30f3\u30c8\u3055\u308c\u307e\u3059\uff0e
$ vnstat | grep :\n usb0 [disabled]:\n wlp4s0:\n\u60c5\u5831\u306e\u78ba\u8a8d\u306f\u3044\u304f\u3064\u304b\u306e\u8868\u793a\u304c\u3067\u304d\u307e\u3059\uff0e\u30b5\u30de\u30ea\u30fc\uff0c5\u5206\u6bce\uff0c1\u6642\u9593\u6bce\uff0c\u65e5\u6bce\uff0c\u6708\u6bce\uff0c\u5e74\u6bce\uff0c\u30c8\u30c3\u30d7\u306a\u3069\uff0e
\n\u65e2\u5b9a\u5024\u304c\u30b5\u30de\u30ea\u30fc\u306e\u3088\u3046\u3067\u3059\uff0e
-5 \u30675\u5206\u6bce(\u3053\u3053\u3067\u306fwlp3s0\u30925\u5206x6\u8868\u793a)$ vnstat -i wlp3s0 -5 6\n\n wlp3s0 / 5 minute\n\n time rx | tx | total | avg. rate\n ------------------------+-------------+-------------+---------------\n 2021-05-24\n 14:35 1.43 MiB | 1.27 MiB | 2.70 MiB | 75.52 kbit/s\n 14:40 7.11 MiB | 1.44 MiB | 8.55 MiB | 238.96 kbit/s\n 14:45 1.60 MiB | 1.28 MiB | 2.87 MiB | 80.34 kbit/s\n 14:50 1.12 MiB | 1.17 MiB | 2.29 MiB | 63.94 kbit/s\n 14:55 1.49 MiB | 1.50 MiB | 2.99 MiB | 83.47 kbit/s\n 15:00 748.04 KiB | 1.18 MiB | 1.91 MiB | 53.41 kbit/s\n ------------------------+-------------+-------------+---------------\n-h \u30671\u6642\u9593\u6bce(\u3053\u3053\u3067\u306f1\u6642\u9593x3\u8868\u793a)$ vnstat -h 3\n\n wlp4s0 / hourly\n\n hour rx | tx | total | avg. rate\n ------------------------+-------------+-------------+---------------\n 2021-05-24\n 05:00 3.28 MiB | 623.99 KiB | 3.88 MiB | 9.05 kbit/s\n 17:00 510.09 MiB | 7.29 MiB | 517.38 MiB | 1.21 Mbit/s\n 18:00 286.84 MiB | 8.32 MiB | 295.16 MiB | 1.65 Mbit/s\n ------------------------+-------------+-------------+---------------\n-d \u3067\u65e5\u6bce(\u3053\u3053\u3067\u306f1\u65e5x3\u8868\u793a)$ vnstat -d 3\n\n wlp3s0+enp0s25+usb0 / daily\n\n day rx | tx | total | avg. rate\n ------------------------+-------------+-------------+---------------\n 2021-05-23 936.47 MiB | 820.25 MiB | 1.72 GiB | 170.56 kbit/s\n 2021-05-24 1.56 GiB | 300.01 MiB | 1.85 GiB | 183.94 kbit/s\n 2021-05-28 483.40 MiB | 372.19 MiB | 855.60 MiB | 83.07 kbit/s\n ------------------------+-------------+-------------+---------------\n estimated 642.75 MiB | 494.88 MiB | 1.11 GiB |\nestimated \u3082\u8868\u793a\u3055\u308c\u307e\u3059\uff0e\u3053\u308c\u306f\u3053\u306e\u8abf\u5b50\u3067\u4f7f\u3044\u7d9a\u3051\u308b\u3068\u3053\u306e\u304f\u3089\u3044\u3068\u3044\u3046\u63a8\u6e2c\u306e\u3088\u3046\u3067\u5229\u7528\u6642\u9593\u3084\u5229\u7528\u91cf\u304c\u5c11\u306a\u304b\u3063\u305f\u308a\uff0c\u5229\u7528\u72b6\u6cc1\u304c\u5909\u308f\u308b\u5834\u5408\u4fe1\u983c\u3067\u304d\u306a\u3044\u5024\u306b\u306a\u308a\u307e\u3059\uff0e
\n-m \u3067\u6708\u6bce$ vnstat -m\n\n wlp3s0+enp0s25+usb0 / monthly\n\n month rx | tx | total | avg. rate\n ------------------------+-------------+-------------+---------------\n 2021-04 1.54 GiB | 571.46 MiB | 2.09 GiB | 6.94 kbit/s\n 2021-05 19.13 GiB | 4.53 GiB | 23.66 GiB | 303.40 kbit/s\n ------------------------+-------------+-------------+---------------\n estimated 76.48 GiB | 18.12 GiB | 94.60 GiB |\n-y \u3067\u5e74\u6bce$ vnstat -y\n\n wlp4s0 / yearly\n\n year rx | tx | total | avg. rate\n ------------------------+-------------+-------------+---------------\n 2021 47.48 GiB | 3.16 GiB | 50.64 GiB | 34.07 kbit/s\n ------------------------+-------------+-------------+---------------\n estimated 117.29 GiB | 7.81 GiB | 125.09 GiB |\n-t \u3067top(\u3053\u3053\u3067\u306fTop3)$ vnstat -t 3\n\n wlp4s0 / top 3\n\n # day rx | tx | total | avg. rate\n -----------------------------+-------------+-------------+---------------\n 1 2021-05-19 7.76 GiB | 1.52 GiB | 9.29 GiB | 923.28 kbit/s\n 2 2021-05-27 8.01 GiB | 373.46 MiB | 8.37 GiB | 832.45 kbit/s\n 3 2021-05-18 5.66 GiB | 165.91 MiB | 5.83 GiB | 579.24 kbit/s\n -----------------------------+-------------+-------------+---------------\n-b )\uff0c\u7d42\u4e86( -e )\u671f\u9593\u6307\u5b9a(\u3053\u3053\u3067\u306f2021-05-18\u301c2021-05-25\u3092\u6307\u5b9a)$ vnstat -i usb0 -b 2021-05-18 -e 2021-05-25\nDatabase updated: 2021-05-24 05:09:40\n\n usb0 [disabled] since 2021-05-17\n\n rx: 5.84 GiB tx: 1.03 GiB total: 6.87 GiB\n\n monthly\n rx | tx | total | avg. rate\n ------------------------+-------------+-------------+---------------\n 2021-05 5.84 GiB | 1.03 GiB | 6.87 GiB | 29.41 kbit/s\n ------------------------+-------------+-------------+---------------\n estimated 7.80 GiB | 1.37 GiB | 9.17 GiB |\n\n daily\n rx | tx | total | avg. rate\n ------------------------+-------------+-------------+---------------\n 2021-05-23 3.24 GiB | 756.16 MiB | 3.98 GiB | 395.74 kbit/s\n 2021-05-24 45.06 MiB | 10.71 MiB | 55.78 MiB | 25.18 kbit/s\n ------------------------+-------------+-------------+---------------\n estimated 210.01 MiB | 49.92 MiB | 259.93 MiB |\n
-hg, --hoursgraph \u30671\u6642\u9593\u3054\u3068\u306e\u30b0\u30e9\u30d5$ vnstat -hg\n eth0 22:15\n ^ t\n | t\n | t\n | t\n | t\n | t\n | t\n | t\n | rt t\n | rt r rt rt\n -+--------------------------------------------------------------------------->\n | 23 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22\n\n h rx (MiB) tx (MiB) ][ h rx (MiB) tx (MiB) ][ h rx (MiB) tx (MiB)\n23 0.0 0.0 ][ 07 0.0 0.0 ][ 15 0.0 0.0\n00 0.0 0.0 ][ 08 0.0 0.0 ][ 16 0.0 0.0\n01 0.0 0.0 ][ 09 0.0 0.0 ][ 17 0.0 0.0\n02 0.0 0.0 ][ 10 0.0 0.0 ][ 18 3.3 9.1\n03 0.0 0.0 ][ 11 0.0 0.0 ][ 19 27.0 19.4\n04 0.0 0.0 ][ 12 0.0 0.0 ][ 20 25.0 14.6\n05 0.0 0.0 ][ 13 0.0 0.0 ][ 21 31.0 150.8\n06 0.0 0.0 ][ 14 0.0 0.0 ][ 22 20.3 37.2\n-l \u3067\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0(^c\u3067\u7d42\u4e86\uff0c\u7d71\u8a08\u304c\u8868\u793a\u3055\u308c\u308b)$ vnstat -l\nMonitoring wlp4s0... (press CTRL-C to stop)\n\n rx: 7.39 Mbit/s 632 p/s tx: 234.20 kbit/s 306 p/s^C\n\n\n wlp4s0 / traffic statistics\n\n rx | tx\n--------------------------------------+------------------\n bytes 241.31 MiB | 10.07 MiB\n--------------------------------------+------------------\n max 8.33 Mbit/s | 322.19 kbit/s\n average 322.69 kbit/s | 13.47 kbit/s\n min 0 bit/s | 0 bit/s\n--------------------------------------+------------------\n packets 187533 | 92295\n--------------------------------------+------------------\n max 716 p/s | 382 p/s\n average 29 p/s | 14 p/s\n min 0 p/s | 0 p/s\n--------------------------------------+------------------\n time 104.55 minutes\n\u6a5f\u95a2\u306e\u6307\u5b9a\u3082\u3067\u304d\u308b\u3088\u3046\u3067\u3059\u304c\uff0c\u4f7f\u3044\u65b9\u304c\u60aa\u3044\u306e\u304b\u6a5f\u95a2\u306b\u3088\u3063\u3066\u306f\u3046\u307e\u304f\u4f7f\u3048\u307e\u305b\u3093\uff0e\u3053\u3053\u3067\u306f\u30b5\u30de\u30ea\u8868\u793a\u3067\u6307\u5b9a\u3057\u3066\u3044\u306a\u3044\u671f\u9593\u306e2021-05-24\u3082\u8868\u793a\u3055\u308c\u3066\u3044\u3066\uff0c -h \u8868\u793a\u3067\u30c7\u30fc\u30bf\u304c\u51fa\u3066\u3053\u306a\u3044\uff0e
$ vnstat -i usb0 --begin \"2021-05-23 13:00\" --end \"2021-05-23 20:00\"\nDatabase updated: 2021-05-24 05:09:40\n\n usb0 [disabled] since 2021-05-17\n\n rx: 5.84 GiB tx: 1.03 GiB total: 6.87 GiB\n\n monthly\n rx | tx | total | avg. rate\n ------------------------+-------------+-------------+---------------\n 2021-05 5.84 GiB | 1.03 GiB | 6.87 GiB | 29.41 kbit/s\n ------------------------+-------------+-------------+---------------\n estimated 7.80 GiB | 1.37 GiB | 9.17 GiB |\n\n daily\n rx | tx | total | avg. rate\n ------------------------+-------------+-------------+---------------\n 2021-05-23 3.24 GiB | 756.16 MiB | 3.98 GiB | 395.74 kbit/s\n 2021-05-24 45.06 MiB | 10.71 MiB | 55.78 MiB | 25.18 kbit/s\n ------------------------+-------------+-------------+---------------\n estimated 210.01 MiB | 49.92 MiB | 259.93 MiB |\n$ vnstat -i usb0 --begin \"2021-05-23 13:00\" --end \"2021-05-23 20:00\" --hours\n\n usb0 [disabled] / hourly\n\n hour rx | tx | total | avg. rate\n ------------------------+-------------+-------------+---------------\n no data available\n ------------------------+-------------+-------------+---------------\nvnstati \u3082\u8a66\u3057\u3066\u307f\u307e\u3059\uff0e
\n\u3053\u308c\u306f vNstat \u306e\u753b\u50cf\u51fa\u529b\u30b3\u30de\u30f3\u30c9\u3067\u3059\uff0eDebian\u3067\u306fvnstat\u3068\u306f\u5225\u30d1\u30c3\u30b1\u30fc\u30b8\u306e vnstati \u306b\u5206\u304b\u308c\u3066\u3044\u308b\u306e\u3067\u3053\u308c\u3092\u5c0e\u5165\u3057\u307e\u3059\uff0e
$ sudo apt install vnstati\n\u7bc4\u56f2\u306a\u3069\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306f vnstat \u3068\u5171\u901a\u3067\u3059\uff0e
$ vnstati -i usb0 -h 7 -o /tmp/today.png\n$ dpkg-query -W vnstat vnstati\nvnstat 2.6-3\nvnstati 2.6-3\n$ lsb_release -dr\nDescription: Debian GNU/Linux 11 (bullseye)\nRelease: 11\n$ arch\nx86_64\n$ dpkg-query -W vnstat vnstati\nvnstat 2.6-3\nvnstati 2.6-3\n$ lsb_release -dr\nDescription: Debian GNU/Linux 11 (bullseye)\nRelease: 11\n$ arch\nx86_64\n$ dpkg-query -W vnstat\nvnstat 2.6-1\n$ lsb_release -dr\nDescription: Ubuntu 20.04.2 LTS\nRelease: 20.04\n$ arch\nx86_64\ncpufetch\u3068\u3044\u3046screenfetch\u30a4\u30f3\u30b9\u30d1\u30a4\u30a2\u306a\u611f\u3058\u306ecpu\u60c5\u5831\u8868\u793a\u30c4\u30fc\u30eb\u3092\u898b\u304b\u3051\u305f\u306e\u3067\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e
\n$ git clone https://github.com/Dr-Noob/cpufetch\n$ cd cpufetch\n$ make\n$ ./cpufetch -s retro\n\n ################\n ####### #######\n #### ####\n ### #### Name: Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz\n ### ### Microarchitecture: Ivy Bridge\n ### ### Technology: 22nm\n # ### ### ### Max Frequency: 3.300 GHz\n ## ### ######### ###### ###### ### ### Cores: 2 cores (4 threads)\n ## ### ### ### ### #### #### ### ### AVX: AVX\n ## ### ### ### ### ### ### ### ### FMA: No\n ## ### ### ### ### ########## ### #### L1i Size: 32KB (64KB Total)\n ## ### ### ### ### ### ### ##### L1d Size: 32KB (64KB Total)\n ## ## ### ### ##### ######### ## ### L2 Size: 256KB (512KB Total)\n ### L3 Size: 3MB\n ### Peak Performance: 52.80 GFLOP/s\n #### ####\n ##### ##########\n ########## ################\n ###############################\n\u6a19\u6e96\u306e\u30b9\u30bf\u30a4\u30eb\u3067\u30c6\u30ad\u30b9\u30c8\u3067\u8cbc\u308a\u4ed8\u3051\u308b\u3068\u771f\u3063\u767d\u306b\u306a\u308b\u306e\u3067 retro \u3067\u3059\uff0e\u901a\u5e38\u306e\u5b9f\u884c\u7d50\u679c\u306f\u4ee5\u4e0b\u306b\uff0e
\n
Linux\u4ee5\u5916\u3067\u3082Windows/macOS/Android(termux)\u3067\u3082\u52d5\u4f5c\u3059\u308b\u3088\u3046\u3067\u3059\uff0e
\nneofetch/screenfetch\u7b49\u306f\u30b7\u30b9\u30c6\u30e0\u306e\u60c5\u5831\u3092\u8868\u793a\u3057\u307e\u3059\u304ccpufetch\u306fcpu\u60c5\u5831\u306b\u7279\u5316\u3057\u3066\u3044\u307e\u3059\uff0e\u672a\u3060\u30b5\u30dd\u30fc\u30c8cpu\u306f\u591a\u304f\u306a\u3044\u3088\u3046\u3067\u3059\uff0e
\n/proc/cpuinfo, lscpu, lshw -class cpu \u3068\u304b\u306e\u307b\u3046\u304c\u5b9f\u7528\u7684\u3060\u3068\u601d\u3044\u307e\u3059\u304c\uff0c\u697d\u3057\u3044\u306e\u3067\uff0e
$ dpkg-query -W gcc make git\ngcc 4:10.2.1-1\ngit 1:2.31.0-1\nmake 4.3-4\n$ lsb_release -dr\nDescription: Debian GNU/Linux bullseye/sid\nRelease: unstable\n$ arch\nx86_64\n
$ pkg list-installed 2>&1 | grep -E 'clang|git|make'\nclang/stable,now 11.1.0 aarch64 [installed]\ngit/stable,now 2.31.1 aarch64 [installed]\nmake/stable,now 4.3-1 aarch64 [installed]\n$ termux-info\nPackages CPU architecture:\naarch64\nSubscribed repositories:\n# sources.list\ndeb https://termux.org/packages/ stable main\n# game-repo (sources.list.d/game.list)\ndeb https://grimler.se/game-packages-24 games stable\n# science-repo (sources.list.d/science.list)\ndeb https://grimler.se/science-packages-24 science stable\nUpdatable packages:\napt/stable 2.2.2 aarch64 [upgradable from: 2.1.18]\ndialog/stable 1.3-20210324-0 aarch64 [upgradable from: 1.3-20210117-0]\nnano/stable 5.6.1 aarch64 [upgradable from: 5.5]\ntermux-exec/stable 1:0.9 aarch64 [upgradable from: 1:0.8]\ntermux-tools/stable 0.115 all [upgradable from: 0.111]\nAndroid version:\n9\nKernel build information:\nLinux localhost 4.9.112-perf #1 SMP PREEMPT Thu Feb 25 22:16:13 CST 2021 aarch64 Android\nDevice manufacturer:\nTINNO\nDevice model:\nC330\n
Nextcloud 18 \u304cEoL \u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3067\uff0cNextcloud 18.0.14 \u304b\u3089 Nextcloud 19.0.7 \u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u307e\u3057\u305f\uff0e
\n| \n | release date | \nend of life | \ncurrent version | \nnext version | \n
|---|---|---|---|---|
| \n 20 \n | \n\n 2020-10-03 \n | \n\n 2021-10 \n | \n\n 20.0.7 (2021-02-02) \n | \n\n 20.0.8 (2021-02-25) \n | \n
| \n 19 \n | \n\n 2020-06-03 \n | \n\n 2021-06 \n | \n\n 19.0.8 (2021-01-27) \n | \n\n 19.0.9 (2021-02-25) \n | \n
| \n 18 \n | \n\n 2020-01-16 \n | \n\n 2021-01 \n | \n\n 18.0.14 (2021-01-27) \n | \n\n End of Life \n | \n
$ sudo -u www-data php $NEXTCLOUDPATH/occ app:update --all\n$ sudo -u www-data php $NEXTCLOUDPATH/updater/updater.phar\n$ sudo -u www-data php $NEXTCLOUDPATH/occ app:update --all\n\u4ee5\u524d\u5b9f\u884c\u3057\u305f\u3068\u304d\u3068\u6bd4\u3079\u3066\u300c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\uff06\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u8b66\u544a\u300d\u306e\u5185\u5bb9\u304c\u9055\u3063\u3066\u3044\u305f\u306e\u3067\u30e1\u30e2\u3057\u3066\u304a\u304d\u307e\u3059\uff0e
\n\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\uff06\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u8b66\u544a\n\u30b5\u30fc\u30d0\u30fc\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u3068\u3063\u3066\u91cd\u8981\u306a\u3053\u3068\u306f\u3001\u3059\u3079\u3066\u304c\u6b63\u78ba\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3067\u3059\u3002\u3042\u306a\u305f\u306e\u52a9\u3051\u3068\u306a\u308b\u3088\u3046\u3001Nextcloud\u3067\u306f\u4e00\u90e8\u306e\u81ea\u52d5\u30c1\u30a7\u30c3\u30af\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002\u8a73\u7d30\u306a\u60c5\u5831\u306f\u3001\u30ea\u30f3\u30af\u5148\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n\n\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306b\u95a2\u3057\u3066\u8b66\u544a\u304c\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u3002\nPHP\u306e\u30e1\u30e2\u30ea\u5236\u9650\u304c\u63a8\u5968\u5024\u306e512MB\u4ee5\u4e0b\u3067\u3059\u3002\n\"Strict-Transport-Security\" HTTP\u30d8\u30c3\u30c0\u304c\u6700\u4f4e\u3067\u3082 \"15552000\" \u79d2\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5f37\u5316\u3059\u308b\u306b\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3Tips ↗\u3067\u89e3\u8aac\u3057\u3066\u3044\u308bHSTS\u3092\u6709\u52b9\u306b\u3059\u308b\u3053\u3068\u3092\u63a8\u5968\u3057\u307e\u3059\u3002\nWeb\u30b5\u30fc\u30d0\u30fc\u306f\u9069\u5207\u306b\u30db\u30b9\u30c8\u540d \"/.well-known/caldav\" \u304c\u5f15\u3051\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u3088\u308a\u8a73\u3057\u3044\u60c5\u5831\u306b\u3064\u3044\u3066\u306f\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u304f\u3060\u3055\u3044\u3002\nWeb\u30b5\u30fc\u30d0\u30fc\u306f\u9069\u5207\u306b\u30db\u30b9\u30c8\u540d \"/.well-known/carddav\" \u304c\u5f15\u3051\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u3088\u308a\u8a73\u3057\u3044\u60c5\u5831\u306b\u3064\u3044\u3066\u306f\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u304f\u3060\u3055\u3044\u3002\n\u30e1\u30e2\u30ea\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u53ef\u80fd\u3067\u3042\u308c\u3070\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5411\u4e0a\u3059\u308b\u305f\u3081\u3001memcache\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3088\u308a\u8a73\u3057\u3044\u60c5\u5831\u306f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u53c2\u7167\u3067\u304d\u307e\u3059\u3002\n\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u3044\u304f\u3064\u304b\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u3042\u308a\u307e\u305b\u3093\u3002 \u5927\u304d\u306a\u30c6\u30fc\u30d6\u30eb\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u8ffd\u52a0\u3059\u308b\u3068\u3001\u81ea\u52d5\u7684\u306b\u8ffd\u52a0\u3055\u308c\u306a\u3044\u307e\u3067\u306b\u6642\u9593\u304c\u304b\u304b\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3067\u3059\u3002 \"occ db\uff1aadd-missing-indices\"\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u5b9f\u884c\u3057\u7d9a\u3051\u3066\u3044\u308b\u9593\u306b\u305d\u308c\u3089\u306e\u6b20\u3051\u3066\u3044\u308b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u624b\u52d5\u3067\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u8ffd\u52a0\u3055\u308c\u308b\u3068\u3001\u305d\u308c\u3089\u306e\u30c6\u30fc\u30d6\u30eb\u3078\u306e\u30af\u30a8\u30ea\u306f\u901a\u5e38\u306f\u308b\u304b\u306b\u901f\u304f\u306a\u308a\u307e\u3059\u3002\n\u30c6\u30fc\u30d6\u30eb \"oc_calendarobjects_props\"\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9 \"calendarobject_calid_index\"\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3002\n\u30c6\u30fc\u30d6\u30eb \"oc_schedulingobjects\"\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9 \"schedulobj_principuri_index\"\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3002\n\u30c6\u30fc\u30d6\u30eb \"oc_properties\"\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9 \"properties_path_index\"\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3002\n\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u306f\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u30ab\u30e9\u30e0\u304c\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u305b\u3093\u3002\u5927\u304d\u306a\u30c6\u30fc\u30d6\u30eb\u306b\u30ab\u30e9\u30e0\u3092\u8ffd\u52a0\u3059\u308b\u306b\u306f\u6642\u9593\u304c\u304b\u304b\u308b\u305f\u3081\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u30ab\u30e9\u30e0\u306f\u81ea\u52d5\u7684\u306b\u8ffd\u52a0\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u3002\"occ db:add-missing-columns\"\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u4e0d\u8db3\u3057\u3066\u3044\u308b\u30ab\u30e9\u30e0\u306f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u5b9f\u884c\u4e2d\u306b\u624b\u52d5\u3067\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30ab\u30e9\u30e0\u304c\u8ffd\u52a0\u3055\u308c\u308b\u3068\u3001\u5fdc\u7b54\u6027\u3084\u4f7f\u3044\u52dd\u624b\u304c\u6539\u5584\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\n\u30c6\u30fc\u30d6\u30eb \"oc_comments\" \u306b\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u30ab\u30e9\u30e0 \"reference_id\" \u304c\u5b58\u5728\u3057\u307e\u305b\u3093\u3002\n\u3053\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u306f\u63a8\u5968\u3055\u308c\u308bPHP\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u305b\u3093\u3002 \u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u5411\u4e0a\u3068\u4e92\u63db\u6027\u306e\u5411\u4e0a\u306e\u305f\u3081\u306b\u3001\u305d\u308c\u3089\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3092\u5f37\u304f\u304a\u52e7\u3081\u3057\u307e\u3059\u3002\nintl\nbcmath\ngmp\n\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306e\u3044\u304f\u3064\u304b\u306e\u5217\u3067\u3001big int\u3078\u306e\u5909\u63db\u304c\u884c\u308f\u308c\u3066\u3044\u307e\u305b\u3093\u3002 \u5927\u304d\u306a\u30c6\u30fc\u30d6\u30eb\u3067\u30ab\u30e9\u30e0\u30bf\u30a4\u30d7\u3092\u5909\u66f4\u3059\u308b\u3068\u6642\u9593\u304c\u304b\u304b\u308b\u3053\u3068\u304c\u3042\u308b\u305f\u3081\u3001\u81ea\u52d5\u7684\u306b\u306f\u5909\u66f4\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u3002 'occ db\uff1aconvert-filecache-bigint'\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3001\u305d\u308c\u3089\u306e\u4fdd\u7559\u4e2d\u306e\u5909\u66f4\u306f\u624b\u52d5\u3067\u9069\u7528\u3067\u304d\u307e\u3059\u3002 \u3053\u306e\u64cd\u4f5c\u306f\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u30aa\u30d5\u30e9\u30a4\u30f3\u306e\u9593\u306b\u884c\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3053\u308c\u306b\u95a2\u3059\u308b\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30da\u30fc\u30b8\u3092\u8aad\u3093\u3067\u304f\u3060\u3055\u3044\u3002\nfilecache_extended.fileid\nmounts.storage_id\nmounts.root_id\nmounts.mount_id\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30ac\u30a4\u30c9 ↗\u3092\u518d\u78ba\u8a8d\u3057\u3066\u3001 \u30ed\u30b0 \u306b\u3042\u308b\u3059\u3079\u3066\u306e\u30a8\u30e9\u30fc\u3084\u8b66\u544a\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n
\u3053\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u306f\u63a8\u5968\u3055\u308c\u308bPHP\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u305b\u3093\u3002 \u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u5411\u4e0a\u3068\u4e92\u63db\u6027\u306e\u5411\u4e0a\u306e\u305f\u3081\u306b\u3001\u305d\u308c\u3089\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3092\u5f37\u304f\u304a\u52e7\u3081\u3057\u307e\u3059\u3002\nintl\nbcmath\ngmp\n
\u8a72\u5f53\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5c0e\u5165\u3057\u3066httpd\u3092\u518d\u8aad\u8fbc\u3057\u307e\u3059\uff0e
\n$ sudo apt install php-intl php-bcmath php-gmp (1)\n$ sudo service apache2 reload (2)\n\u300c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\uff06\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u8b66\u544a\u300d\u30da\u30fc\u30b8\u3092\u518d\u8aad\u8fbc\u3057\u3066\u8b66\u544a\u304c\u6d88\u3048\u308b\u306e\u3092\u78ba\u8a8d\u3057\u307e\u3059\uff0e
\n\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u3044\u304f\u3064\u304b\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u3042\u308a\u307e\u305b\u3093\u3002 \u5927\u304d\u306a\u30c6\u30fc\u30d6\u30eb\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u8ffd\u52a0\u3059\u308b\u3068\u3001\u81ea\u52d5\u7684\u306b\u8ffd\u52a0\u3055\u308c\u306a\u3044\u307e\u3067\u306b\u6642\u9593\u304c\u304b\u304b\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3067\u3059\u3002 \"occ db\uff1aadd-missing-indices\"\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u5b9f\u884c\u3057\u7d9a\u3051\u3066\u3044\u308b\u9593\u306b\u305d\u308c\u3089\u306e\u6b20\u3051\u3066\u3044\u308b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u624b\u52d5\u3067\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u8ffd\u52a0\u3055\u308c\u308b\u3068\u3001\u305d\u308c\u3089\u306e\u30c6\u30fc\u30d6\u30eb\u3078\u306e\u30af\u30a8\u30ea\u306f\u901a\u5e38\u306f\u308b\u304b\u306b\u901f\u304f\u306a\u308a\u307e\u3059\u3002\n\u30c6\u30fc\u30d6\u30eb \"oc_calendarobjects_props\"\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9 \"calendarobject_calid_index\"\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3002\n\u30c6\u30fc\u30d6\u30eb \"oc_schedulingobjects\"\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9 \"schedulobj_principuri_index\"\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3002\n\u30c6\u30fc\u30d6\u30eb \"oc_properties\"\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9 \"properties_path_index\"\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3002\n
\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u901a\u308aocc\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\uff0e\u30e1\u30c3\u30bb\u30fc\u30b8\u305d\u306e\u307e\u307e\u30b3\u30d4\u30fc\u3059\u308b\u3068:\u304c\u30de\u30eb\u30c1\u30d0\u30a4\u30c8\u6587\u5b57\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\uff0e
\n$ sudo -u www-data php $NEXTCLOUDPATH/occ db:add-missing-indices\nCheck indices of the share table.\nCheck indices of the filecache table.\nCheck indices of the twofactor_providers table.\nCheck indices of the login_flow_v2 table.\nCheck indices of the whats_new table.\nCheck indices of the cards table.\nCheck indices of the cards_properties table.\nCheck indices of the calendarobjects_props table.\nAdding calendarobject_calid_index index to the calendarobjects_props table, this can take some time...\ncalendarobjects_props table updated successfully.\nCheck indices of the schedulingobjects table.\nAdding schedulobj_principuri_index index to the schedulingobjects table, this can take some time...\nschedulingobjects table updated successfully.\nCheck indices of the oc_properties table.\nAdding properties_path_index index to the oc_properties table, this can take some time...\noc_properties table updated successfully.\n\u300c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\uff06\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u8b66\u544a\u300d\u30da\u30fc\u30b8\u3092\u518d\u8aad\u8fbc\u3057\u3066\u8b66\u544a\u304c\u6d88\u3048\u308b\u306e\u3092\u78ba\u8a8d\u3057\u307e\u3059\uff0e
\n\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u306f\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u30ab\u30e9\u30e0\u304c\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u305b\u3093\u3002\u5927\u304d\u306a\u30c6\u30fc\u30d6\u30eb\u306b\u30ab\u30e9\u30e0\u3092\u8ffd\u52a0\u3059\u308b\u306b\u306f\u6642\u9593\u304c\u304b\u304b\u308b\u305f\u3081\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u30ab\u30e9\u30e0\u306f\u81ea\u52d5\u7684\u306b\u8ffd\u52a0\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u3002\"occ db:add-missing-columns\"\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u4e0d\u8db3\u3057\u3066\u3044\u308b\u30ab\u30e9\u30e0\u306f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u5b9f\u884c\u4e2d\u306b\u624b\u52d5\u3067\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30ab\u30e9\u30e0\u304c\u8ffd\u52a0\u3055\u308c\u308b\u3068\u3001\u5fdc\u7b54\u6027\u3084\u4f7f\u3044\u52dd\u624b\u304c\u6539\u5584\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\n\u30c6\u30fc\u30d6\u30eb \"oc_comments\" \u306b\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u30ab\u30e9\u30e0 \"reference_id\" \u304c\u5b58\u5728\u3057\u307e\u305b\u3093\u3002\n
\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u901a\u308aocc\u30b3\u30de\u30f3\u30c9\u3067\u30ab\u30e9\u30e0\u3092\u8ffd\u52a0\u3057\u307e\u3059\uff0e\u30e1\u30c3\u30bb\u30fc\u30b8\u305d\u306e\u307e\u307e\u30b3\u30d4\u30fc\u3059\u308b\u3068:\u304c\u30de\u30eb\u30c1\u30d0\u30a4\u30c8\u6587\u5b57\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\uff0e
\n$ sudo -u www-data php $NEXTCLOUDPATH/occ db:add-missing-columns\nCheck columns of the comments table.\nAdding additional reference_id column to the comments table, this can take some time...\nComments table updated successfully.\n\u300c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\uff06\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u8b66\u544a\u300d\u30da\u30fc\u30b8\u3092\u518d\u8aad\u8fbc\u3057\u3066\u8b66\u544a\u304c\u6d88\u3048\u308b\u306e\u3092\u78ba\u8a8d\u3057\u307e\u3059\uff0e
\n\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306e\u3044\u304f\u3064\u304b\u306e\u5217\u3067\u3001big int\u3078\u306e\u5909\u63db\u304c\u884c\u308f\u308c\u3066\u3044\u307e\u305b\u3093\u3002 \u5927\u304d\u306a\u30c6\u30fc\u30d6\u30eb\u3067\u30ab\u30e9\u30e0\u30bf\u30a4\u30d7\u3092\u5909\u66f4\u3059\u308b\u3068\u6642\u9593\u304c\u304b\u304b\u308b\u3053\u3068\u304c\u3042\u308b\u305f\u3081\u3001\u81ea\u52d5\u7684\u306b\u306f\u5909\u66f4\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u3002 'occ db\uff1aconvert-filecache-bigint'\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3001\u305d\u308c\u3089\u306e\u4fdd\u7559\u4e2d\u306e\u5909\u66f4\u306f\u624b\u52d5\u3067\u9069\u7528\u3067\u304d\u307e\u3059\u3002 \u3053\u306e\u64cd\u4f5c\u306f\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u30aa\u30d5\u30e9\u30a4\u30f3\u306e\u9593\u306b\u884c\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3053\u308c\u306b\u95a2\u3059\u308b\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30da\u30fc\u30b8\u3092\u8aad\u3093\u3067\u304f\u3060\u3055\u3044\u3002\nfilecache_extended.fileid\nmounts.storage_id\nmounts.root_id\nmounts.mount_id\n
\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u901a\u308aocc\u30b3\u30de\u30f3\u30c9\u3067big int\u3078\u306e\u5909\u63db\u3092\u3057\u307e\u3059\uff0e\u30e1\u30c3\u30bb\u30fc\u30b8\u305d\u306e\u307e\u307e\u30b3\u30d4\u30fc\u3059\u308b\u3068:\u304c\u30de\u30eb\u30c1\u30d0\u30a4\u30c8\u6587\u5b57\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\uff0e
\n\u9014\u4e2d\u6642\u9593\u304c\u304b\u304b\u308b\u65e8\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\uff0ey \u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u51e6\u7406\u3092\u7d9a\u884c\u3057\u307e\u3059\uff0esite\u306e\u898f\u6a21\u3084\u5229\u7528\u72b6\u6cc1\u306b\u3088\u3063\u3066\u5b9f\u884c\u6642\u9593\u3092\u8003\u3048\u307e\u3057\u3087\u3046\uff0e
$ sudo -u www-data php $NEXTCLOUDPATH/occ db:convert-filecache-bigint\nFollowing columns will be updated:\n\n* filecache_extended.fileid\n* mounts.storage_id\n* mounts.root_id\n* mounts.mount_id\n\nThis can take up to hours, depending on the number of files in your instance!\nContinue with the conversion (y/n)? [n] y\n\u300c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\uff06\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u8b66\u544a\u300d\u30da\u30fc\u30b8\u3092\u518d\u8aad\u8fbc\u3057\u3066\u8b66\u544a\u304c\u6d88\u3048\u308b\u306e\u3092\u78ba\u8a8d\u3057\u307e\u3059\uff0e
\nPHP\u306e\u30e1\u30e2\u30ea\u5236\u9650\u304c\u63a8\u5968\u5024\u306e512MB\u4ee5\u4e0b\u3067\u3059\u3002\n
php\u306e memory_limit \u306e\u5024\u3092 /etc/php/7.4/apache2/php.ini \u3092\u7de8\u96c6\u3057\u3066\u4fee\u6b63\u3057\u307e\u3059\uff0e\u305d\u306e\u5f8chttpd\u306e\u518d\u8aad\u8fbc\u3092\u884c\u3044\u307e\u3059\uff0e
$ sudo vim /etc/php/7.4/apache2/php.ini (1)\n$ sudo git -C /etc diff /etc/php/7.4/apache2/php.ini (2)\ndiff --git a/php/7.4/apache2/php.ini b/php/7.4/apache2/php.ini\nindex ef89b713..407ee04d 100644\n--- a/php/7.4/apache2/php.ini\n+++ b/php/7.4/apache2/php.ini\n@@ -406,7 +406,7 @@ max_input_time = 60\n\n ; Maximum amount of memory a script may consume (128MB)\n ; http://php.net/memory-limit\n-memory_limit = 128M\n+memory_limit = 512M\n\n ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n ; Error handling and logging ;\n$ php --php-ini /etc/php/7.4/apache2/php.ini -i | grep memory_limit (3)\nmemory_limit => 512M => 512M\n$ sudo service apache2 reload (4)\n\u300c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\uff06\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u8b66\u544a\u300d\u30da\u30fc\u30b8\u3092\u518d\u8aad\u8fbc\u3057\u3066\u8b66\u544a\u304c\u6d88\u3048\u308b\u306e\u3092\u78ba\u8a8d\u3057\u307e\u3059\uff0e
\n\"Strict-Transport-Security\" HTTP\u30d8\u30c3\u30c0\u304c\u6700\u4f4e\u3067\u3082 \"15552000\" \u79d2\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5f37\u5316\u3059\u308b\u306b\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3Tips ↗\u3067\u89e3\u8aac\u3057\u3066\u3044\u308bHSTS\u3092\u6709\u52b9\u306b\u3059\u308b\u3053\u3068\u3092\u63a8\u5968\u3057\u307e\u3059\u3002\n
$ sudo vi /etc/apache2/sites-available/nextcloud.conf (1)\n$ sudo git -C /etc diff /etc/apache2/sites-available/nextcloud.conf (2)\ndiff --git a/apache2/sites-available/nextcloud.conf b/apache2/sites-available/nextcloud.conf\nindex 2844232c..4a064d52 100644\n--- a/apache2/sites-available/nextcloud.conf\n+++ b/apache2/sites-available/nextcloud.conf\n@@ -135,6 +135,10 @@\n # nokeepalive ssl-unclean-shutdown \\\n # downgrade-1.0 force-response-1.0\n\n+ <IfModule mod_headers.c>\n+ Header always set Strict-Transport-Security \"max-age=15552000; includeSubDomains\"\n+ </IfModule>\n+\n </VirtualHost>\n </IfModule>\n\n$ sudo apache2ctl configtest (3)\nSyntax OK\n$ sudo service apache2 reload (4)\n\u300c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\uff06\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u8b66\u544a\u300d\u30da\u30fc\u30b8\u3092\u518d\u8aad\u8fbc\u3057\u3066\u8b66\u544a\u304c\u6d88\u3048\u308b\u306e\u3092\u78ba\u8a8d\u3057\u307e\u3059\uff0e
\nWeb\u30b5\u30fc\u30d0\u30fc\u306f\u9069\u5207\u306b\u30db\u30b9\u30c8\u540d \"/.well-known/caldav\" \u304c\u5f15\u3051\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u3088\u308a\u8a73\u3057\u3044\u60c5\u5831\u306b\u3064\u3044\u3066\u306f\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u304f\u3060\u3055\u3044\u3002\nWeb\u30b5\u30fc\u30d0\u30fc\u306f\u9069\u5207\u306b\u30db\u30b9\u30c8\u540d \"/.well-known/carddav\" \u304c\u5f15\u3051\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u3088\u308a\u8a73\u3057\u3044\u60c5\u5831\u306b\u3064\u3044\u3066\u306f\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u304f\u3060\u3055\u3044\u3002\n
\u5c02\u7528\u306e\u30c9\u30e1\u30a4\u30f3\u3067\u306f\u306a\u304f\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea( nextcloud )\u3067\u904b\u7528\u3057\u3066\u3044\u308bNextcloud \u306a\u306e\u3067\uff0c\u30c9\u30e1\u30a4\u30f3\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a .htaccess \u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3057\u307e\u3059\uff0ecaldav/carddav\u3060\u3051\u3067\u306a\u304f\u4e00\u7dd2\u306b\u4ed6\u306e\u3082\u306e\u3082\u8a2d\u5b9a\u3057\u307e\u3057\u305f\uff0e\u5c02\u7528\u306e(\u30b5\u30d6)\u30c9\u30e1\u30a4\u30f3\u306a\u3089\u3053\u306e\u554f\u984c\u306f\u51fa\u306a\u3044\u3068\u601d\u3044\u307e\u3059\uff0e
$ sudo -u www-data vi $HTTPROOTPATH/.htaccess (1)\n$ cat $HTTPROOTPATH/.htaccess (2)\n<IfModule mod_rewrite.c>\n RewriteEngine on\n RewriteRule ^\\.well-known/host-meta /nextcloud/public.php?service=host-meta [QSA,L]\n RewriteRule ^\\.well-known/host-meta\\.json /nextcloud/public.php?service=host-meta-json [QSA,L]\n RewriteRule ^\\.well-known/webfinger /nextcloud/public.php?service=webfinger [QSA,L]\n RewriteRule ^\\.well-known/carddav /nextcloud/remote.php/dav/ [R=301,L]\n RewriteRule ^\\.well-known/caldav /nextcloud/remote.php/dav/ [R=301,L]\n</IfModule>\n.htaccess \u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u300c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\uff06\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u8b66\u544a\u300d\u30da\u30fc\u30b8\u3092\u518d\u8aad\u8fbc\u3057\u3066\u8b66\u544a\u304c\u6d88\u3048\u308b\u306e\u3092\u78ba\u8a8d\u3057\u307e\u3059\uff0e
\n\u30e1\u30e2\u30ea\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u53ef\u80fd\u3067\u3042\u308c\u3070\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5411\u4e0a\u3059\u308b\u305f\u3081\u3001memcache\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3088\u308a\u8a73\u3057\u3044\u60c5\u5831\u306f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u53c2\u7167\u3067\u304d\u307e\u3059\u3002\n
\n\n\n\n\n\nA memcache is not required and you may safely ignore the warning if you prefer.\n
\u3053\u306e\u8a2d\u5b9a\u306f\u5fc5\u9808\u3067\u306f\u306a\u3055\u305d\u3046\u3067\u3059\u304c\uff0cRAM\u306f\u4f59\u3063\u3066\u3044\u308b\u306e\u3067\u8a2d\u5b9a\u3057\u307e\u3059\uff0e
\n\u3044\u304f\u3064\u304b\u7a2e\u985e\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u304c\uff0c\u4eca\u56de\u306fAPCu\u3092\u8a2d\u5b9a\u3057\u307e\u3057\u305f\uff0e
\n$ sudo apt install php-apcu (1)\n$ sudo -u www-data vim $NEXTCLOUDPATH/config/config.php (2)\n$ sudo git --git-dir=/var/git/nextcloud --work-tree=. diff config/config.php (3)\ndiff --git a/config/config.php b/config/config.php\nindex f62133e..62d137d 100644\n--- a/config/config.php\n+++ b/config/config.php\n@@ -41,4 +41,5 @@ $CONFIG = array (\n array (\n ),\n 'mail_sendmailmode' => 'smtp',\n+ 'memcache.local' => '\\OC\\Memcache\\APCu',\n );\n\u300c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\uff06\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u8b66\u544a\u300d\u30da\u30fc\u30b8\u3092\u518d\u8aad\u8fbc\u3057\u3066\u8b66\u544a\u304c\u6d88\u3048\u308b\u306e\u3092\u78ba\u8a8d\u3057\u307e\u3059\uff0e
\n:)
\n\u4eca\u56de\u306e\u30db\u30b9\u30c8\u306e\u74b0\u5883\u306fUbuntu 20.04 LTS amd64\u306eapache httpd 2.4, mysql server 8, php 7.4\u3067\u3059\uff0e
\n$ dpkg-query -W php7.4-common php7.4-apcu apache2 mysql-server\napache2 2.4.41-4ubuntu3.2\nmysql-server 8.0.23-0ubuntu0.20.04.1\nphp7.4-apcu\nphp7.4-common 7.4.3-4ubuntu2.4\n$ lsb_release -dr\nDescription: Ubuntu 20.04.2 LTS\nRelease: 20.04\n$ uname -m\nx86_64\n\u3068\u3044\u3046\u3053\u3068\u3067\u524a\u9664\u3055\u308c\u3061\u3083\u3063\u305f\u3093\u3067\u3059\u306d\uff0e
\n\u81ea\u5206\u306f\u5148\u6708\u602a\u3057\u3044\u3068\u3044\u3046\u8a71\u3092\u805e\u3044\u3066\u524a\u9664\u3057\u3066\u3044\u307e\u3057\u305f\uff0e\u305d\u306e\u6642\u30bf\u30d6\u304c\u6d88\u3048\u3066\u3057\u307e\u3044\u60b2\u3057\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3053\u3093\u306a\u611f\u3058\u3067\u5fa9\u65e7\u3055\u305b\u307e\u3057\u305f\uff0e
\n\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3068\u30bf\u30a4\u30c8\u30eb\uff0cURL\u3092json\u3067\u51fa\u529b\u3057\u307e\u3059\uff0e
$ sqlite3 ~/.config/google-chrome/Default/History \"SELECT \\\"[\\\" || group_concat(json_object('timestamp', last_visit_time, title, url)) || \\\"]\\\" FROM urls WHERE url LIKE '%bkeccnjlkjkiokjodocebajanakg%';\" | jq . | sed -e 's/chrome-extension:\\/\\/klbibkeccnjlkjkiokjodocebajanakg\\/suspended.html.*&uri=//'\n\u4f55\u3092\u3084\u3063\u3066\u3044\u308b\u304b\u3068\u3044\u3046\u3068\uff0c ~/.config/google-chrome/Default/History \u304cGoogle Chrome\u306esqlite3\u5f62\u5f0f\u306e\u5c65\u6b74\u30d5\u30a1\u30a4\u30eb\u306a\u306e\u3067\uff0c\u3053\u306e\u4e2d\u304b\u3089The Great Suspender\u306eurl\u306e\u542b\u307e\u308c\u3066\u3044\u308burl\u3092\u5f15\u3063\u5f35\u308a\u51fa\u3057\u3066\u6574\u5f62\u3057\u3066\u3044\u307e\u3059\uff0e
Chromium\u306e\u5834\u5408\u306f ~/.config/chromium/Default/History
\nBrave\u306f ~/.config/BraveSoftware/Brave-Browser/Default/History \u3067\u3057\u305f\uff0e
Default\u4ee5\u5916\u306eprofile\u306f\u540d\u524d\u3044\u308d\u3044\u308d\u306a\u306e\u3067find\u3068\u304b\u3067\u63a2\u3059\u3068\u3044\u3044\u3067\u3057\u3087\u3046\uff0e
\n$ find ~/.config/chromium/ ~/.config/google-chrome/ ~/.config/BraveSoftware/Brave-Browser -name History
\u3053\u3053\u3067\u7d39\u4ecb\u3057\u305f\u306e\u306fLinux\u3067\u306e\u5834\u5408\u3067\u3059\u304c\uff0c\u30d1\u30b9\u3092\u5909\u3048\u308b\u3068\u4ed6\u306eOS\u3067\u3082\u3044\u3051\u308b\u306f\u305a\u3067\u3059\uff0e
\n$ dpkg-query -W jq sqlite3 chromium google-chrome-stable\nchromium\ngoogle-chrome-stable 69.0.3497.100-1\njq 1.6-2.1ubuntu1\nsqlite3 3.34.0-1\n$ lsb_release -dr\nDescription: Ubuntu Hirsute Hippo (development branch)\nRelease: 21.04\n$ uname -m\nx86_64\n$ dpkg-query -W jq sqlite3 chrome brave-browser google-chrome-stable\nbrave-browser 1.19.90\ngoogle-chrome-stable 88.0.4324.146-1\njq 1.6-2.1\nsqlite3 3.34.1-1\n$ lsb_release -dr\nDescription: Debian GNU/Linux bullseye/sid\nRelease: unstable\n$ uname -m\nx86_64\nPodcast\u306eRebuild.fm 292\u56de\u3067BitBar, SwiftBar \u3068\u3044\u3046\u30c4\u30fc\u30eb\u30d0\u30fc\u306b\u4efb\u610f\u306e\u30b3\u30de\u30f3\u30c9\u306e\u7d50\u679c\u3092\u8868\u793a\u3067\u304d\u308b\u30c4\u30fc\u30eb\u3092\u77e5\u3063\u3066
\nLinux\u3067\u52d5\u4f5c\u3059\u308bBitBar/SwiftBar Alternative\u304c\u7121\u3044\u304b\u306a\u3068\u63a2\u3057\u3066\uff0cArgos, Kargos, Margos\u3068\u3044\u3046\u3082\u306e\u3092\u898b\u3064\u3051\u307e\u3057\u305f\uff0e
\n\u305d\u3057\u3066\u5148\u65e5Margos\u3092\u8a66\u3057\u3066\u307f\u305f\u3051\u3069\u30a6\u30a3\u30f3\u30c9\u30a6\u8868\u793a\u3067\u304d\u306a\u304b\u3063\u305f\u308a\u3068\u6a5f\u80fd\u304c\u5c11\u306a\u304b\u3063\u305f\u3067\u3059\uff0e
\n\u3068\u3044\u3046\u3053\u3068\u3067\u4eca\u56de\u306fGnome Shell\u74b0\u5883\u3092\u7528\u610f\u3057\u3066BitBar\u3068\u4e92\u63db\u6027\u304c\u3042\u308b\u3068\u3044\u3046Argos\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e
\nArgos\u306fGnome shell\u306e\u62e1\u5f35\u6a5f\u80fd\u3068\u3057\u3066\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\uff0e
\n\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u304b\u3089\u5165\u624b\u3067\u304d\u307e\u3059\uff0e\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u5c0e\u5165\u3082\u3057\u304f\u306f\u624b\u52d5\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u5c55\u958b\u3057\u307e\u3059\uff0e
\u624b\u52d5\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u6642\u306fGnome shell\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6c42\u3081\u3089\u308c\u308b\u306e\u3067\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u308f\u304b\u3089\u306a\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\uff0e
\n$ gnome-shell --version\nGNOME Shell 3.38.3\n\u624b\u52d5\u3067\u306e\u5c0e\u5165\u306e\u5834\u5408\u62e1\u5f35\u6a5f\u80fd\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5f8c\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u5c55\u958b\u3057\u307e\u3059\uff0e
\n$ mkdir -p ~/.local/share/gnome-shell/extensions\n$ unzip ./argospew.worldwidemann.com.v3.shell-extension.zip \\\n-d ~/.local/share/gnome-shell/extensions/argos@pew.worldwidemann.com/\n\u3053\u306e\u3042\u3068Gnome Shell \u3092 Alt+F2 r\u21b2 \u3068\u64cd\u4f5c\u3057\u3066\u518d\u8d77\u52d5\u3057\u3066\u53cd\u6620\u3057\u307e\u3059\uff0e
\n\n\n\n\n\n\u30b9\u30c6\u30fc\u30bf\u30b9\u30d0\u30fc\u306bArgos\u306f\u73fe\u308c\u307e\u3057\u305f\u304c\uff0c\u30af\u30ea\u30c3\u30af\u3057\u3066\u3082\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u958b\u304d\u307e\u305b\u3093\uff0eGnome Shell\u304c\u65b0\u3057\u3044(3.36\u4ee5\u964d?)\u3068Argos\u306f\u3046\u307e\u304f\u52d5\u304b\u306a\u3044\u3088\u3046\u3067\u3059\uff0e
\n\n\n\nGit\u30ea\u30dd\u30b8\u30c8\u30ea\u306emaster\u3068\u4ee5\u4e0b\u306ePR\u306epatch\u3092\u5229\u7528\u3057\u3066\u52d5\u4f5c\u3057\u307e\u3057\u305f\uff0e
\n\n\n\u4e00\u65e6Argos\u3092\u524a\u9664\u3057\u3066\u5c0e\u5165\u3057\u76f4\u3057\u307e\u3059\uff0e
\n\n\n\u65e7\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u524a\u9664\n\n\n\n$ gnome-extensions disable argos@pew.worldwidemann.com (1)\n$ gnome-extensions uninstall argos@pew.worldwidemann.com (2)\n\n\n
\n- \u62e1\u5f35\u6a5f\u80fd\u7121\u52b9\u5316
\n- \u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb
\n\n\n\u7d9a\u3044\u3066Git\u7248Argos\u306emaster\u3068PR\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u9069\u7528\u3057\u307e\u3059\uff0e
\n\n\n\n\n\n$ git clone https://github.com/p-e-w/argos (1)\n$ cd argos\n$ cp -r ./argos@pew.worldwidemann.com \\\n~/.local/share/gnome-shell/extensions/ (2)\n$ wget https://raw.githubusercontent.com/p-e-w/argos/c4663d9d3e29ef33b7e9123ef0c095811c91cf5b/argos%40pew.worldwidemann.com/menuitem.js \\\n-O ~/.local/share/gnome-shell/extensions/argos@pew.worldwidemann.com/menuitem.js (3)\n\n\n
\n- \u30ea\u30dd\u30b8\u30c8\u30eaclone
\n- \u62e1\u5f35\u6a5f\u80fd\u30b3\u30d4\u30fc
\n- Gnome Shell 3.36+\u5411\u3051\u306e\u4fee\u6b63\u3092\u9069\u7528
\n\n\nAlt+F2 r\u21b2 \u3067Gnome Shell\u3092\u518d\u8d77\u52d5\u3057\u3066\u53cd\u6620\u3057\u3066Gnome Shell 3.38.3\u3067\u3082\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff0e
\n
Argos\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\uff0e
\n\u30b9\u30c6\u30fc\u30bf\u30b9\u30d0\u30fc\u306bArgos\u304c\u73fe\u308c\u3066\u3044\u308b\u306f\u305a\u3067\u3059\uff0e\u6587\u5b57\u5217\u3092\u30af\u30ea\u30c3\u30af\u3067\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u8868\u793a\u3055\u308c\u307e\u3059\uff0e\u6700\u4e0b\u90e8\u306e argos.sh \u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u898f\u5b9a\u5024\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u958b\u304b\u308c\u3066\u305d\u306e\u307e\u307e\u7de8\u96c6\u3067\u304d\u3066\u4fbf\u5229\u3067\u3059\uff0e
Argos Plugin\u306f\u7d50\u69cb\u7c21\u5358\u306b\u66f8\u3051\u307e\u3059\uff0e
\n~/.config/argos/ \u306b\u5b9f\u884c\u53ef\u80fd\u30d7\u30e9\u30b0\u30e9\u30e0\u3084\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7f6e\u304f\u3068\u5373\u5b9f\u884c\u3055\u308c\u307e\u3059\uff0e\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u51fa\u529b\u7d50\u679c1\u884c\u76ee\u304c\u30d0\u30fc\u306b\u8868\u793a\u3055\u308c\uff0c--- \u306e\u5f8c\u304c\u30a6\u30a3\u30f3\u30c9\u30a6\u5185\u306b\u8868\u793a\u3055\u308c\u307e\u3059\uff0e\u30a4\u30f3\u30bf\u30fc\u30d0\u30eb\u306f\u30d5\u30a1\u30a4\u30eb\u540d\u3067\u5236\u5fa1\u3057\u307e\u3059\uff0e
\n\u4f8b\u3048\u3070 hoge.3s+.sh \u306e\u5834\u5408\u306f3\u79d2\u6bce\u306b\u5b9f\u884c\u3055\u308c\uff0c fuga.10m+.py \u306f10\u5206\u6bce\u306b\u5b9f\u884c\u3055\u308c\u307e\u3059\uff0e
\n\u305d\u306e\u4ed6\u8272\u3092\u4ed8\u3051\u305f\u308a\u30a2\u30a4\u30b3\u30f3\u3092\u8a2d\u5b9a\u3057\u305f\u308a\u8272\u3005\u3067\u304d\u308b\u3088\u3046\u3067\u3059\uff0e\u8a73\u3057\u304f\u306fBitBar, Argos\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\uff0e
\u8a66\u3057\u306b\u7c21\u5358\u306aPlugin\u3092\u4f5c\u3063\u3066\u307f\u307e\u3059\uff0e
\n\u307e\u305a\u306f\u5b9a\u756a\u306e\u5929\u6c17\u8868\u793a\u3092wego\u30b3\u30de\u30f3\u30c9\u3067\u8a66\u3057\u307e\u3059\uff0e
\n\u5929\u6c17\u3092\u30d0\u30fc\u306b\u8868\u793a\u3057\u3066\u30af\u30ea\u30c3\u30af\u3059\u308b\u30682\u65e5\u5206\u306e\u5929\u6c17\u4e88\u5831\u3092\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3057\u305f\uff0e\u7f6b\u7dda\u306f\u5d29\u308c\u3061\u3083\u3044\u307e\u3057\u305f\uff0e
#!/bin/bash\n\nSTR=`wego -d 2 -f emoji`\necho \"`echo \"${STR}\" | head -4 | tail -1`\"\necho \"---\"\necho \"${STR}\" | awk 1 ORS=\"\\\\\\\\n\"\necho \" | font=monospace\"\n\u6b21\u306bCPU\u306e\u6e29\u5ea6\u3068top\u3092\u8868\u793a\u3059\u308b\u3082\u306e\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\uff0e1\u5206\u6bce\u306bCPU\u306e\u6e29\u5ea6\u3092\u30d0\u30fc\u306b\u8868\u793a\u3057\u3066\uff0c\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068top\u30b3\u30de\u30f3\u30c9\u306e\u4e0a\u306e\u65b9\u3092\u3092\u8868\u793a\u3057\u307e\u3059\uff0e\u624b\u5143\u306ePC\u306f\u3088\u304fCPU\u6e29\u5ea6\u304c\u4e0a\u304c\u3063\u3066\u30b5\u30fc\u30de\u30eb\u30b9\u30ed\u30c3\u30c8\u30ea\u30f3\u30b0\u3055\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u3053\u308c\u306f\u7d50\u69cb\u5b9f\u7528\u7684\u3067\u3059\uff0e
\n#!/bin/bash\n\nTHERMAL=`acpi -t | awk '{print $4}'`\nCOLOR=\"white\"\n\nif [ `echo \"${THERMAL} >= 80\" | bc` == 1 ] ; then\n COLOR=\"red\"\nfi\n\n#echo \"<span color='${COLOR}' weight='normal'><tt>
${THERMAL}\u2103 </tt></span>\"\necho \"
${THERMAL}\u2103 | color=${COLOR}\"\necho \"---\"\nif [ \"${ARGOS_MENU_OPEN}\" == \"true\" ]; then\n TOP_OUTPUT=$(top -b -n 1 | head -n 20 | awk 1 ORS=\"\\\\\\\\n\")\n echo \"${TOP_OUTPUT} | font=monospace bash=top\"\nelse\n echo \"Loading...\"\nfi\n\u672c\u5f53\u306f80\u5ea6\u3092\u8d85\u3048\u3066\u3044\u305f\u3089\u30d0\u30fc\u306e\u6587\u5b57\u5217\u3092\u8d64\u304f\u3057\u305f\u3044\u306e\u3067\u3059\u304c\u3046\u307e\u304f\u884c\u3063\u3066\u3044\u307e\u305b\u3093\uff0eArgos\u306e\u30d0\u30b0\u3089\u3057\u304f\uff0c\u30ef\u30fc\u30af\u30a2\u30e9\u30a6\u30f3\u30c9\u3068\u3057\u3066\u7d75\u6587\u5b57\u3092\u8868\u793a\u3059\u308c\u3070OK\u3068\u3044\u3046\u306e\u3092\u898b\u304b\u3051\u307e\u3057\u305f\u304c\u3053\u308c\u3082\u3046\u307e\u304f\u52d5\u3044\u3066\u3044\u307e\u305b\u3093\uff0e(\u3061\u306a\u307f\u306b\u30a8\u30b9\u30b1\u30fc\u30d7\u30b7\u30fc\u30b1\u30f3\u30b9\u3067\u306e\u8272\u5909\u66f4\u306f\u52b9\u304f\u3088\u3046\u3067\u3059\uff0e)
\n\u6b21\u306bArgos\u306fBitBar\u3068\u4e92\u63db\u6027\u304c\u3042\u308b\u3068\u3044\u3046\u3053\u3068\u3067BitBar Plugin\u3092\u5229\u7528\u3067\u304d\u308b\u304b\u8a66\u3057\u3066\u307f\u307e\u3059\uff0e
\n\u305f\u3060\u3057\uff0cPlugin\u306b\u3088\u308aAPI key\u3084\u5ea7\u6a19\u3092\u8a18\u8ff0\u3057\u305f\u308a\u3068\u884c\u3063\u305f\u5c11\u3057\u306e\u4fee\u6b63\u306f\u5fc5\u8981(\u3053\u308c\u306fBitBar\u3067\u3082)\uff0c\u66f4\u306bBitBar\u306fmacOS\u7528\u306a\u306e\u3067\u30b7\u30b9\u30c6\u30e0\u5468\u308a\u306ePlugin\u306f\u52d5\u304b\u306a\u304b\u3063\u305f\u308aPATH\u304c\u9055\u3063\u305f\u308a\u3059\u308b\u306e\u3067\u4fee\u6b63\u3057\u306a\u3046\u3068\u52d5\u304b\u306a\u304b\u3063\u305f\u308a\u3057\u307e\u3059\uff0e
\n\u305d\u306e\u307e\u307e\u52d5\u304d\u305d\u3046\u306a\u3082\u306e\u3068\u3057\u3066HackserNews\u3092\u8868\u793a\u3059\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092clone\u3057\u3066\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u8cbc\u308b\u3068\u52d5\u4f5c\u3057\u307e\u3057\u305f :)
\n$ git clone https://github.com/matryer/bitbar-plugins\n$ cd bitbar-plugins\n$ ln -s `pwd`/Web/HackerNews/hacker_news.1m.rb ~/.config/argos/\n\u3068\u3044\u3046\u611f\u3058\u3067Argos\u306fBitBar\u3068\u4e92\u63db\u6027\u304c\u3042\u308b\u3057Shell Script\u306a\u3069\u3092\u3061\u3087\u3063\u3068\u66f8\u304f\u3060\u3051\u3067\u30b9\u30c6\u30fc\u30bf\u30b9\u30d0\u30fc\u306b\u3044\u308d\u3044\u308d\u306a\u60c5\u5831\u3092\u8868\u793a\u6765\u3066\u3068\u3066\u3082\u4fbf\u5229\u3067\u3059\uff0eGnome Shell\u74b0\u5883\u306e\u65b9\u306f\u305c\u3072\u305f\u3081\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff0e
\n\u3057\u304b\u3057\uff0c\u89e3\u50cf\u5ea6\u304c\u4f4e\u3044\u3068\u8868\u793a\u9818\u57df\u304c\u72ed\u304f\u4e00\u90e8\u3057\u304b\u8868\u793a\u3055\u308c\u306a\u304f\u3066\u8996\u8a8d\u6027\u304c\u60aa\u304f\u306a\u308b\u306e\u3067\u5927\u753b\u9762\u306e\u30e2\u30cb\u30bf\u304c\u307b\u3057\u3044\u3068\u3053\u308d\u3067\u3059\u2026\u2026\uff0e
\n\u3068\u3044\u3046\u3053\u3068\u3067Margos, Argos\u3092\u8a66\u3057\u3066\u6b8b\u308a\u306fKDE Plasma\u5411\u3051\u306eKargos\u3067\u3059\u304c\uff0cWeb\u306eREADME\u3092\u898b\u308b\u3068\u3061\u3087\u3063\u3068\u53e4\u305d\u3046\u306a\u306e\u3067\u8a66\u3059\u306e\u3092\u305f\u3081\u3089\u3063\u3066\u3044\u307e\u3059\uff0e
\n\n\n\n\nA Plasma port of Argos and BitBar plugins to fast create custom plasmoids.
\n\n\nNote: This is an alpha project. By now, it only was tested on Kubuntu 16.04 LTS.
\n
$ git -C ~/src/argos log | head -1\ncommit fcb475140bd9d0b4b95279ce56c4c28f36fb29d6\n$ dpkg-query -W gnome-shell gnome-shell-extensions\ngnome-shell 3.38.3-1\ngnome-shell-extensions 3.38.2-1\n$ lsb_release -dr\nDescription: Debian GNU/Linux bullseye/sid\nRelease: unstable\n$ uname -m\nx86_64\n$ git -C ~/src/argos log | head -1\ncommit fcb475140bd9d0b4b95279ce56c4c28f36fb29d6\n$ dpkg-query -W gnome-shell gnome-shell-extensions\ngnome-shell 3.38.2-1ubuntu1\ngnome-shell-extensions 3.38.2-1\n$ lsb_release -dr\nDescription: Ubuntu Hirsute Hippo (development branch)\nRelease: 21.04\n$ uname -m\nx86_64\n| \n Note \n | \n\n\u203bMargos/Argos\u306b\u3064\u3044\u3066\u300c\u6771\u6d77\u9053\u3089\u3050\u3000\u3042\u3072\u308b\u713c\u304d\u3055\u3093\u306e\u30e9\u30a4\u30c8\u30cb\u30f3\u30b0\u30c8\u30fc\u30af\u30c0\u30fc\u30d3\u30fc\uff01\u300d\u3067Bitbar/SwiftBar\u3092Linux\u3067\u3082\u4f7f\u3044\u305f\u3044 | edocr\u3068\u3057\u3066\u767a\u8868\u3057\u307e\u3057\u305f\uff0e | \n
\u3053\u306e\u8a18\u4e8b\u306f \u65e5\u672cAndroid\u306e\u4f1a\u79cb\u8449\u539f\u652f\u90e8\u30ed\u30dc\u30c3\u30c8\u90e8 Advent Calendar 2020 \u306e20\u65e5\u5206\u306e\u8a18\u4e8b\u3067\u3059\uff0e
\n\u65e5\u672cAndroid\u306e\u4f1a\u79cb\u8449\u539f\u652f\u90e8\u30ed\u30dc\u30c3\u30c8\u90e8\u306f\u73fe\u5728\u6708\u306b\u4e00\u56de\u52c9\u5f37\u4f1a\u3092\u884c\u3044\u69d8\u3005\u306a\u8a71\u984c\u3067\u76db\u308a\u4e0a\u304c\u3063\u3066\u3044\u307e\u3059\uff0e
\n\u6b21\u306e\u52c9\u5f37\u4f1a\u306f\u3061\u3087\u3046\u3069\u4eca\u65e5(20\u65e5)\u3067\u3059\uff0e\u8208\u5473\u306e\u3042\u308b\u65b9\u306f\u8997\u3044\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff0e
\u30bb\u30f3\u30b5\u30fc\u306e\u30ed\u30b0\u306a\u3069\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u306e\u306b\u8272\u3005\u306aweb\u30b5\u30fc\u30d3\u30b9\u3092\u4f7f\u3063\u305f\u308a\uff0cGoogle\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u66f8\u3044\u305f\u308a\u3057\u3066\u3044\u307e\u3059\uff0e
\n\u4fbf\u5229\u306a\u3093\u3060\u3051\u3069\u30ed\u30c3\u30af\u30a4\u30f3\u306b\u306a\u308b\u306e\u306f\u5acc\u3060\u306a\u3063\u3066\u601d\u3063\u305f\u308a\u3057\u307e\u3059\uff0e
Nextcloud\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u5171\u6709\u30b5\u30fc\u30d3\u30b9+\u03b1\u306aOSS\u304c\u3042\u308a\u307e\u3059\uff0e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3057\u3066\u6a5f\u80fd\u3092\u5897\u3084\u3059\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\uff0e\u4f8b\u3048\u3070\u30c6\u30ec\u30d3\u96fb\u8a71\u3084\uff0c\u30aa\u30f3\u30e9\u30a4\u30f3\u30aa\u30d5\u30a3\u30b9\u3068\u304b\uff0c\u30de\u30c3\u30d7\u30b5\u30fc\u30d3\u30b9\u3068\u304b\u69d8\u3005\u306a\u30a2\u30d7\u30ea\u304c\u3042\u308a\u307e\u3059\uff0e
\n\u3053\u308c\u3092\u500b\u4eba\u7684\u306b\u7acb\u3066\u3066\u4fbf\u5229\u306b\u4f7f\u3063\u3066\u3044\u307e\u3059
\u3053\u306e\u4e2d\u306e\u30a2\u30d7\u30ea\u3092\u773a\u3081\u3066\u3044\u308b\u3068Sensorlogger\u3068\u3044\u3046\u30bb\u30f3\u30b5\u30fc\u306e\u30ed\u30b0\u3092\u4fdd\u5b58\u3067\u304d\u305d\u3046\u306a\u3082\u306e\u3092\u898b\u3064\u3051\u305f\u306e\u3067\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e
\n\u307e\u305aNextcloud\u3067\u3059\u304c\uff0c\u3068\u308a\u3042\u3048\u305a\u8a66\u3059\u3060\u3051\u306a\u3089snap\u3092\u5229\u7528\u3059\u308b\u306e\u304c\u304a\u624b\u8efd\u3067\u3059\uff0eRaspberry Pi + Raspberry Pi OS\u306a\u3069\u3067\u3082OK\u3067\u3059\uff0e
\nDebian sid amd64/Ubuntu 20.04 LTS/Raspberry Pi OS armhf\u3067\u306f\u4ee5\u4e0b\u306e\u624b\u9806\u3067OK\u3067\u3057\u305f\uff0e
\n$ sudo apt update && sudo apt upgrade (1)\n$ sudo apt install snapd (2)\n$ sudo snap install nextcloud (3)\nsnapd \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5c0e\u516510\u5206\u4f4d\u5f85\u3064\u3068\u5c0e\u5165\u304c\u7d42\u308f\u308a\u307e\u3059\uff0e\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u306bIP\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3059\u308b\u3068\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u7ba1\u7406\u8005ID/PASSWORD\u3092\u8a2d\u5b9a\u3057\u307e\u3059\uff0e
\n\u3053\u308c\u3067\u3068\u308a\u3042\u3048\u305a\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3068\u601d\u3044\u307e\u3059\uff0e
\n\u3053\u306e\u5f8cSensorlogger\u3092\u5c0e\u5165\u3057\u307e\u3059\uff0e
\n\u7ba1\u7406\u8005\u6a29\u9650\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3067Nextcloud\u306e\u53f3\u4e0a\u306e\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u300c\u30a2\u30d7\u30ea\u300d\u3092\u958b\u304d\u307e\u3059\uff0e
\u6b21\u306b\u4e0a\u306e\u691c\u7d22\u30d0\u30fc\u306b\u300cSensorlogger\u300d\u3068\u304b\u306e\u6587\u5b57\u5217\u3067\u691c\u7d22\u3057\u3066\u300c\u6709\u52b9\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u5c0e\u5165\u3057\u307e\u3059\uff0e
\n| \n Tip \n | \n\nNextcloud\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u5c0e\u5165\u3059\u308b\u3053\u3068\u3082\u51fa\u6765\u307e\u3059\uff0e \n $ sudo -u www-data occ app:install sensorlogger #\u901a\u5e38\u5c0e\u5165\u3057\u305f\u5834\u5408\n $ sudo /snap/bin/nextcloud.occ app:install sensorlogger #snap\u3067\u5c0e\u5165\u3057\u305f\u5834\u5408 | \n
\u3053\u3053\u304b\u3089\u306f\u4e00\u822c\u30e6\u30fc\u30b6\u3067OK\u3067\u3059\uff0e
\nNextcloud\u306e\u4e0a\u90e8\u304b\u3089\u300cSensorlogger\u300d\u306e\u30a2\u30a4\u30b3\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068Sensorlogger\u306e\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\uff0e
\n\u306f\u3058\u3081\u306f\u30c7\u30fc\u30bf\u304c\u306a\u3044\u306e\u3067\u307e\u3063\u3055\u3089\u3067\u3059\uff0e\u300cDevice\u300d\u8fba\u308a\u3067\u30c7\u30d0\u30a4\u30b9\u306e\u767b\u9332\u3092\u3059\u308b\u306e\u304b\u306a?\u3068\u601d\u3044\u307e\u3057\u305f\u304c\u51fa\u6765\u307e\u305b\u3093\uff0e
\n\u300cRead SensorLogger Wiki Devices\u300d\u3068\u66f8\u304b\u308c\u3066\u3044\u308b\u306e\u3067Wiki\u3092\u53c2\u7167\u3057\u3066\u307f\u307e\u3059\uff0e
\u30c7\u30fc\u30bf\u3092\u9001\u308b\u3068\u81ea\u52d5\u7684\u306b\u30c7\u30d0\u30a4\u30b9\u304c\u51fa\u6765\u308b\u3088\u3046\u3067\u3059\uff0eSimple, Complex\u306e2\u7a2e\u985e\u306e\u30c7\u30fc\u30bf\u30bf\u30a4\u30d7\u304c\u3042\u308b\u3088\u3046\u3067\u3059\uff0eSimple\u306f\u6e29\u5ea6\uff0c\u6e7f\u5ea6\u306e\u3088\u3046\u3067\u3068\u308a\u3042\u3048\u305a\u3053\u308c\u3092\u8a66\u3057\u3066\u307f\u307e\u3059\uff0e
\n\u4ee5\u4e0b\u306e\u8fba\u308a\u304b\u3089 post.php \u3092\u6301\u3063\u3066\u304d\u3066\u4f7f\u3044\u307e\u3059\uff0e\u3053\u306escript\u306f\u30c0\u30df\u30fc\u306e\u30e9\u30f3\u30c0\u30e0\u306a\u6e29\u5ea6\u3068\u6e7f\u5ea6\u30c7\u30fc\u30bf\u3092\u4f5c\u3063\u3066Sensourlogger\u306b\u30c7\u30fc\u30bf\u3092\u6295\u3052\u307e\u3059\uff0e
\n$NEXTCLOUDPATH/apps/sensorlogger/tests/curl/post.php \u901a\u5e38\u5c0e\u5165\u3057\u305f\u5834\u5408/snap/nextcloud/current/htdocs/apps/sensorlogger/tests/curl/post.php snap\u3067\u5c0e\u5165\u3057\u305f\u5834\u5408\u4f55\u7b87\u6240\u304b\u66f8\u304d\u63db\u3048\u307e\u3059\uff0e
\n* $url = ` \u3092\u81ea\u5206\u306eNextcloud\u306eURL\u306b\u5909\u66f4\u3057\u307e\u3059\uff0e \u3092
\n* `$array = array(\"deviceId\" \u21d2uuidgen \u30b3\u30de\u30f3\u30c9\u306a\u3069\u3067\u751f\u6210\u3057\u305fUUID\u306b\u5909\u66f4\u3057\u307e\u3059\uff0e
\n* $username = \u3092Nextcloud\u306e\u81ea\u5206\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u5909\u66f4\u3057\u307e\u3059\uff0e
\n* $token = \u306b\u300c\u8a2d\u5b9a\u300d\u300c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u300d\u30da\u30fc\u30b8\u306e\u300c\u30c7\u30d0\u30a4\u30b9\u3068\u30bb\u30c3\u30b7\u30e7\u30f3\u300d\u306e\u4e00\u756a\u4e0b\u306e\u300c\u65b0\u3057\u3044\u30a2\u30d7\u30ea\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4f5c\u6210\u300d\u3067\u4f5c\u6210\u3057\u305f\u30c8\u30fc\u30af\u30f3\u306b\u4fee\u6b63\u3057\u307e\u3059\uff0e
\u305d\u3057\u3066php\u3068php-curl\u304c\u5fc5\u8981\u306a\u306e\u3067\u5c0e\u5165\u3057\u307e\u3059\uff0e
\n$ sudo apt install php-cli php-curl\n\u3053\u306e\u72b6\u614b\u3067 post.php \u3092\u5b9f\u884c\u3057\u3066\u6210\u529f\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u5e30\u3063\u3066\u304d\u307e\u3059\uff0e
$ php ./post.php\n{\"success\":true,\"message\":\"Sensor Log successfully stored\",\"data\":null}\nSensorlogger\u306e\u30da\u30fc\u30b8\u306e List \u3092\u898b\u308b\u3068\u30a8\u30fc\u30bf\u304c\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u89e3\u308a\u307e\u3059 :)
\u624b\u52d5\u3067\u5b9f\u884c\u3059\u308b\u306e\u306f\u5927\u5909\u306a\u306e\u3067crontab\u306b\u3053\u3093\u306a\u611f\u3058\u3067\u767b\u9332\u3057\u3066\u307f\u307e\u3059\uff0e5\u5206\u306b\u4e00\u56de\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3057\u307e\u3059\uff0e
\n$ crontab -e (1)\n$ crontab -l | grep post.php (2)\n*/5 * * * * php ~/tmp/post.php 2&>1 > ~/tmp/post.php.log\n\u540c\u69d8\u306bRaspberry Pi\u306e\u6e29\u5ea6\u3082\u9001\u3063\u3066\u307f\u307e\u3059\uff0e\u6e29\u5ea6\u306e $temperature \u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u66f8\u304d\u63db\u3048\u3066\uff0cUUID\u3082\u66f8\u304d\u63db\u3048\u308b\u3068OK\uff0e\u3053\u308c\u3082crontab\u306b\u767b\u9332\u3057\u307e\u3059\uff0e
$temperature = system( '/opt/vc/bin/vcgencmd measure_temp | awk -F \"[=\\']\" \\'{print $2 }\\' | tr -d \\'\\n\\'' );\n\u3057\u3070\u3089\u304f\u52d5\u304b\u3057\u3066\u304b\u3089\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u3053\u3093\u306a\u611f\u3058\u306e\u30c1\u30e3\u30fc\u30c8\u304c\u8868\u793a\u3067\u304d\u307e\u3057\u305f\uff0e
\n\u5bc6\u96c6\u3057\u3066\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u90e8\u5206\u306f\u30de\u30a6\u30b9\u30c9\u30e9\u30c3\u30b0\u3067\u77e9\u5f62\u9078\u629e\u3059\u308b\u3068\u305d\u306e\u90e8\u5206\u304c\u30ba\u30fc\u30e0\u3055\u308c\u307e\u3059\uff0e
\n\u3068\u3044\u3046\u611f\u3058\u3067\u3068\u308a\u3042\u3048\u305a\u52d5\u304d\u307e\u3057\u305f\uff0e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u304c\u672a\u3060\u5145\u5b9f\u3057\u3066\u3044\u306a\u8cb7\u3063\u305f\u308a\u4f7f\u3044\u52dd\u624b\u3082\u60aa\u3044\u3067\u3059\u304c\u6700\u4f4e\u9650\u306e\u6a5f\u80fd\u306f\u3042\u308b\u304b\u306a\u3068\u3044\u3046\u611f\u3058\u3067\u3059\uff0e
\n\u8208\u5473\u304c\u3042\u3063\u305f\u3089\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff0e
\n\u82e5\u3057\u304f\u306f\u304a\u3059\u3059\u3081\u306e\u30a2\u30d7\u30ea\u3084\u30b5\u30fc\u30d3\u30b9\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\uff0e
Debian sid amd64\u74b0\u5883\u3067\u6700\u8fd1Bash\u306b\u30c6\u30ad\u30b9\u30c8\u3092\u8cbc\u308a\u4ed8\u3051\u308b\u3068\u8cbc\u308a\u4ed8\u3051\u305f\u6587\u5b57\u5217\u304c\u53cd\u8ee2\u3057\u3066\u5373\u6642\u53cd\u6620\u3055\u308c\u306a\u3044\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\uff0e
\n\u4f55\u3089\u304b\u306e\u64cd\u4f5c\u3092\u3059\u308b\u3068\u53cd\u8ee2\u306f\u89e3\u9664\u3055\u308c\u3066\u53cd\u6620\u3055\u308c\u307e\u3059\uff0e\u6539\u884c\u306e\u542b\u307e\u308c\u305f\u6587\u5b57\u5217\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u8aa4\u3063\u3066\u5b9f\u884c\u3055\u308c\u308b\u3068\u3044\u3046\u3088\u3046\u306a\u3053\u3068\u304c\u6291\u5236\u3067\u304d\u3066\u3044\u3044\u611f\u3058\u3067\u3059\uff0e\u3067\u3082\u8cbc\u308a\u4ed8\u3051\u305f\u3060\u3051\u3067\u5b9f\u884c\u3055\u308c\u305f\u3064\u3082\u308a\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u3053\u3068\u3082\u3042\u3063\u305f\u308a\uff0e
\u4fbf\u5229\u3060\u3051\u3069\u3053\u308c\u306a\u3093\u3060\u308d\u3046\u3068\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u305f\uff0e
\nChangelog\u3092\u898b\u3066\u307f\u307e\u3059\uff0e
\n/usr/share/doc/bash/changelog.Debian.gz \u306f\u6b86\u3069Upstream\u3078\u306e\u8ffd\u5f93\uff0e
\n/usr/share/doc/bash/changelog.gz \u3092\u898b\u308b\u3068\u305d\u308c\u3089\u3057\u3044\u3082\u306e\u304c\u8f09\u3063\u3066\u3044\u307e\u3057\u305f\uff0e
bash-4.4-alpha, bash-4.3-release.\u304b\u3089 Bracketed paste mode \u304c\u5165\u3063\u305f\u3088\u3046\u3067\u3059\uff0e
\n\u305d\u3057\u3066bash-5.1-alpha, bash-5.0-release\u304b\u3089\u65e2\u5b9a\u5024\u306b\u306a\u305f\u3088\u3046\u3067\u3059\uff0e(\u305d\u3057\u3066\u6c17\u3065\u3044\u305f)
\n\n\n\nb. There is a new bindable variable, `enable-bracketed-paste’, which enables
\n
\nsupport for a terminal\u2019s bracketed paste mode.
\n\n\n\nh. Bracketed paste mode is enabled by default.
\n
info\u3092\u898b\u308b\u3068 enable-bracketed-paste \u3068\u3044\u3046\u9805\u76ee\u3067\u8a2d\u5b9a\u3067\u304d\u308b\u3088\u3046\u3067\u3059\uff0e
\n\n\n\n\n\nenable-bracketed-paste (On)\n When set to On, readline will configure the terminal in a way that will enable it to insert each paste into the editing buffer as a single string of characters, instead of treating\n each character as if it had been read from the keyboard. This can prevent pasted characters from being interpreted as editing commands.\n
\n\n\n\n\n\nReadline Variables\n Readline has variables that can be used to further customize its behavior. A variable may be set in the inputrc file with a statement of the form\n\n\n\n\nset variable-name value\nor using the bind builtin command (see SHELL BUILTIN COMMANDS below).\n
\u5b9f\u969b\u306b\u53e9\u3044\u3066\u307f\u307e\u3059\uff0e\u3053\u3093\u306a\u611f\u3058\u3067off/on\u3067\u304d\u307e\u3057\u305f\uff0e
\n$ bind 'set enable-bracketed-paste off'\n$ bind 'set enable-bracketed-paste on'\n~/.bashrc \u8fba\u308a\u306b\u66f8\u3044\u3066\u304a\u304f\u3068\u6b21\u56de\u306ebash\u8d77\u52d5\u6642\u306b\u53cd\u6620\u3055\u308c\u307e\u3059\uff0e
enable-bracketed-paste on \u3057\u3066\u3082\u5229\u7528\u3067\u304d\u306a\u3044?enable-bracketed-paste on \u3067\u6709\u52b9\u306b\u51fa\u6765\u308b$ dpkg-query -W bash\nbash 5.1~rc2-1\n$ lsb_release -dr\nDescription: Debian GNU/Linux bullseye/sid\nRelease: unstable\n$ uname -m\nx86_64\n
\u6700\u8fd1\u4f7f\u3046Python\u30a2\u30d7\u30ea\u306fPython3\u304c\u591a\u304f\u306a\u3063\u3066\u3044\u307e\u3059\uff0ePython2\u306eEoL\u304c\u8feb\u3063\u3066\u3044\u308b\u306e\u3067\u6b63\u3057\u3044\u306e\u3067\u3059\u304c\uff0c\u624b\u5143\u306e\u74b0\u5883\u3067\u306f python \u30b3\u30de\u30f3\u30c9\u306f python2 \u306b\u5411\u3044\u3066\u3044\u307e\u3059\uff0epython3 \u30b3\u30de\u30f3\u30c9\u3092\u53e9\u3051\u3070\u3044\u3044\u306e\u3067\u3059\u304c\uff0c\u3053\u308c\u3092 python3 \u306b\u5411\u3051\u3089\u308c\u306a\u3044\u304b\u306a\u3068\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e
Raspberry Pi OS arm64(buster\u30d9\u30fc\u30b9)\u3067\u306ePython\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\uff0epython \u30b3\u30de\u30f3\u30c9\u306f python2.7 \u3092\u547c\u3076\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\uff0e
$ python --version\nPython 2.7.16\n$ ls -l `which python`\nlrwxrwxrwx 1 root root 7 3\u6708 5 2019 /usr/bin/python -> python2\n$ ls -l `which python2`\nlrwxrwxrwx 1 root root 9 3\u6708 5 2019 /usr/bin/python2 -> python2.7\n$ ls -l `which python3`\nlrwxrwxrwx 1 root root 9 3\u6708 26 2019 /usr/bin/python3 -> python3.7\nupdate-alternatives \u3067\u7ba1\u7406\u3055\u308c\u3066\u308b\u306e\u304b\u306a?\u3068\u601d\u3044\u307e\u3057\u305f\u304c\u8a2d\u5b9a\u304c\u306a\u3055\u305d\u3046\u3067\u3059\uff0e
$ update-alternatives --get-selections|grep -i ^python\nupdate-alternatives \u3092\u624b\u52d5\u3067\u8a2d\u5b9a\u3057\u3066\u307f\u307e\u3059\uff0e
\n\u3053\u308c\u3067 python \u30b3\u30de\u30f3\u30c9\u304c python3.7 \u3092\u547c\u3076\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff0e
$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1\nupdate-alternatives: /usr/bin/python (python) \u3092\u63d0\u4f9b\u3059\u308b\u305f\u3081\u306b\u81ea\u52d5\u30e2\u30fc\u30c9\u3067 /usr/bin/python2.7 \u3092\u4f7f\u3044\u307e\u3059\n$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.7 2\nupdate-alternatives: /usr/bin/python (python) \u3092\u63d0\u4f9b\u3059\u308b\u305f\u3081\u306b\u81ea\u52d5\u30e2\u30fc\u30c9\u3067 /usr/bin/python3.7 \u3092\u4f7f\u3044\u307e\u3059\n$ ls -l `which python`\nlrwxrwxrwx 1 root root 24 7\u6708 28 08:47 /usr/bin/python -> /etc/alternatives/python\n$ python --version\nPython 3.7.3\n$ update-alternatives --query python\nName: python\nLink: /usr/bin/python\nStatus: auto\nBest: /usr/bin/python3.7\nValue: /usr/bin/python3.7\n\nAlternative: /usr/bin/python2.7\nPriority: 1\n\nAlternative: /usr/bin/python3.7\nPriority: 2\n\u5207\u308a\u66ff\u3048\u305f\u3044\u3068\u304d\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u9078\u629e\u80a2\u306a\u304a\u305b\u3070ok\uff0e
\n$ sudo update-alternatives --config python\nalternative python (/usr/bin/python \u3092\u63d0\u4f9b) \u306b\u306f 2 \u500b\u306e\u9078\u629e\u80a2\u304c\u3042\u308a\u307e\u3059\u3002\n\n \u9078\u629e\u80a2 \u30d1\u30b9 \u512a\u5148\u5ea6 \u72b6\u614b\n------------------------------------------------------------\n* 0 /usr/bin/python3.7 2 \u81ea\u52d5\u30e2\u30fc\u30c9\n 1 /usr/bin/python2.7 1 \u624b\u52d5\u30e2\u30fc\u30c9\n 2 /usr/bin/python3.7 2 \u624b\u52d5\u30e2\u30fc\u30c9\n\n\u73fe\u5728\u306e\u9078\u629e [*] \u3092\u4fdd\u6301\u3059\u308b\u306b\u306f <Enter>\u3001\u3055\u3082\u306a\u3051\u308c\u3070\u9078\u629e\u80a2\u306e\u756a\u53f7\u306e\u30ad\u30fc\u3092\u62bc\u3057\u3066\u304f\u3060\u3055\u3044:\nDebian asid amd64, Ubuntu 20.04 LTS amd64 \u3067\u3082\u8a2d\u5b9a\u3057\u3066\u307f\u307e\u3057\u305f\uff0e
\n$ update-alternatives --query python\nName: python\nLink: /usr/bin/python\nStatus: auto\nBest: /usr/bin/python3.8\nValue: /usr/bin/python3.8\n\nAlternative: /usr/bin/python2.7\nPriority: 1\n\nAlternative: /usr/bin/python3.7\nPriority: 2\n\nAlternative: /usr/bin/python3.8\nPriority: 3\n$ update-alternatives --query python\nName: python\nLink: /usr/bin/python\nStatus: auto\nBest: /usr/bin/python3.8\nValue: /usr/bin/python3.8\n\nAlternative: /usr/bin/python2.7\nPriority: 1\n\nAlternative: /usr/bin/python3.5\nPriority: 2\n\nAlternative: /usr/bin/python3.8\nPriority: 3\n\u3066\u3053\u3068\u3067 python \u30b3\u30de\u30f3\u30c9\u304c python3 \u306b\u306a\u308a\u307e\u3057\u305f\uff0e\u3057\u304b\u3057\u30b7\u30b9\u30c6\u30e0\u30ef\u30a4\u30c9\u306a\u8a2d\u5b9a\u306a\u306e\u3067\u30b7\u30b9\u30c6\u30e0\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306a\u3069\u3067\u554f\u984c\u304c\u51fa\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u3067\u3059\u306d\uff0e
\n\u554f\u984c\u304c\u8d77\u3053\u3063\u305f\u3089python2\u306b\u623b\u3057\u307e\u3057\u3087\u3046\uff0e
$ dpkg-query -W python python3\npython 2.7.16-1\npython3 3.7.3-1\n$ lsb_release -dr\nDescription: Debian GNU/Linux 10 (buster)\nRelease: 10\n$ uname -m\naarch64\n$ cat /proc/device-tree/model&&echo\nRaspberry Pi 3 Model B Rev 1.2\n$ dpkg-query -W python python3 python3.7\npython 2.7.17-2\npython3 3.8.2-3\npython3.7 3.7.7-1+b1\n$ lsb_release -dr\nDescription: Debian GNU/Linux bullseye/sid\nRelease: unstable\n$ uname -m\nx86_64\n$ dpkg-query -W python python3 python3.7\npython 2.7.17-1\npython3 3.8.2-0ubuntu2\npython3.7\n$ lsb_release -dr\nDescription: Ubuntu 20.04.1 LTS\nRelease: 20.04\n$ uname -m\nx86_64\n2020-07-23\u4f4e\u30ec\u30d9\u30eb\u52c9\u5f37\u4f1a\u306b\u53c2\u52a0\u3057\u307e\u3057\u305f\uff0eZoom.us\u3067\u306e\u958b\u50ac\u3067\u3057\u305f\uff0e
\n\u5185\u5bb9\u306fLinux\u540d\u523a\u7684\u306a\u3082\u306e\u3092\u958b\u767a\u3057\u3088\u3046\u3068\u3044\u3046\u5185\u5bb9\u3067\uff0c\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3068\u3057\u3066SD\u30ab\u30fc\u30c9\u30b5\u30a4\u30ba\u306e\u5c0f\u3055\u306aLinux\u306e\u52d5\u4f5c\u3059\u308barm\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306eSipeed Lichee Nano\u3092\u4f7f\u3044\u307e\u3057\u305f\uff0e
\n\u6b32\u3057\u3044\u5834\u5408\u306f1000\u5186\u3061\u3087\u3044\u304f\u3089\u3044\u304b\u3089\u3067\u5165\u624b\u3067\u304d\u305d\u3046\u3067\u3059\uff0e
\nLichee Nano\u3092\u6301\u3063\u3066\u3044\u306a\u3044\u4eba\u306f\u30ea\u30e2\u30fc\u30c8\u3067\u89e6\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u3042\u3063\u305f\u306e\u3067\u6301\u3063\u3066\u3044\u306a\u3044\u79c1\u3082\u697d\u3057\u3081\u307e\u3057\u305f\uff0e
\n\u3053\u306e\u30ea\u30e2\u30fc\u30c8\u958b\u767a\u306e\u4ed5\u7d44\u307f\u306fLichee Nano\u3068Raspberry Pi\u3092USB\u7d4c\u7531\u306eUART\u3067\u63a5\u7d9a\u3057\uff0cRaspberry Pi\u3067GNU screen\u3092\u8d77\u52d5\uff0cssh\u7d4c\u7531\u3067GNU screen\u306b\u7e4b\u3044\u3067\u64cd\u4f5c\u3068\u3044\u3046\u611f\u3058\u3067\u3059\uff0e
\nGNU screen\u3092Gotty\u7b49\u306b\u3059\u308b\u3068\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u3067\u53c2\u52a0\u3067\u304d\u3066\u3061\u3087\u3063\u3068\u4fbf\u5229\u304b\u3082\u3068\u601d\u3063\u305f\u308a\u3082\uff0e(GoTTY\u306f\u958b\u767a\u6b62\u307e\u3063\u3066\u308b\u3088\u3046\u306b\u898b\u3048\u308b\u304b\u3089\u5225\u306e\u3082\u306e\u306e\u307b\u3046\u304c\u3044\u3044\u304b\u3082\u3057\u308c\u306a\u3044)
Lichee Nano\u3067\u4f55\u304b\u3092\u52d5\u304b\u3057\u305f\u3044\uff0earm\u3060\u3051\u3069armhf\u52d5\u304f\u306e\u304b\u306a?\u3068\u308a\u3042\u3048\u305a\u306a\u306b\u304b\u8ee2\u9001\u3057\u3066\u52d5\u304b\u3057\u3066\u307f\u3088\u3046\u3068\uff0e
\n\u3068\u308a\u3042\u3048\u305aDebian\u306earmhf\u30d0\u30a4\u30ca\u30ea\u3092uuencode\u3057\u3066\u30b3\u30d4\u30da\u3067\u8ee2\u9001\u3057\u3066\u307f\u307e\u3059.\u3053\u308c\u304c\u52d5\u3051\u3070Debian\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7fa4\u304c\u5229\u7528\u3067\u304d\u308b\u304b\u3082\u3060\u3051\u3069\u2026\u2026\uff0e
\n\u307e\u305a\u306f\u7c21\u5358\u305d\u3046\u306afortune\u3092\u8a66\u3057\u307e\u3059.
\n$ apt download -t armhf fortune-mod\n$ unar fortune-mod_1.99.1-7+b1_armhf.deb\n$ cd fortune-mod_1.99.1-7+b1_armhf\n$ tar xf data.tar.xz\n$ cd usr/games\nLichee Nano\u306fserial\u3067\u63a5\u7d9a\u3055\u308c\u3066\u3044\u3066\uff0cInternet\u306b\u306f\u7e4b\u304c\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb\u306e\u8ee2\u9001\u306b\u306fuudecode/uuencode\u3092\u4f7f\u3044\u307e\u3057\u305f\uff0e\u4e45\u3005\u3067\u3059\uff0e
\n\u624b\u5143\u306eGNU sharutils 4.15.2\u306euudecode\u306b\u306fbase64\u3092\u4f7f\u3046 -m, --base64 \u304c\u3042\u308b\u306e\u3067\u826f\u3055\u305d\u3046\uff0e\u3068\u601d\u3063\u305f\u3051\u3069Lichee Nano\u306e\u65b9\u306fbusybox\u306e\u3082\u306e\u3067\u975e\u5bfe\u5fdc\u3067\u3057\u305f\uff0e
$ gzip -c fortune | uuencode fortune.gz > fortune.gz.uu\n$ cat fortune.gz.uu | xclip\n# cat | uudecode #\u3053\u3053\u3067\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u304b\u3089\u8cbc\u308a\u4ed8\u3051\n# zcat fortune.gz > fortune\n# rm fortune.gz\n\u305d\u3057\u3066\u2026\u200b\u2026\u200b
\n# ./fortune\n-sh: ./fortune: not found\n# ldd ./fortune\nchecking sub-depends for 'not found'\nchecking sub-depends for '/lib/libc.so.6'\n/lib/ld-linux.so.3 (0xb6fa0000)\nlibrecode.so.0 => not found (0x00000000)\nlibc.so.6 => /lib/libc.so.6 (0x00000000)\n/lib/ld-linux.so.3 => /lib/ld-linux.so.3 (0x00000000)\n\u3053\u308c\u3092\u52d5\u304b\u3059\u306e\u306f\u30c0\u30a4\u30ca\u30df\u30c3\u30af\u30ea\u30f3\u30af\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u3092\u7528\u610f\u3057\u3066\u3042\u3052\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u3067\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u5bb9\u91cf\u7684\u306b\u96e3\u3057\u3044\u3067\u3059\u306d\uff0e
\n\u3053\u3053\u3067\u306fgzip\u3067\u5727\u7e2e\u3057\u307e\u3057\u305f\u304c\uff0cLichee Nano\u306ebusybox\u306bxz\u304c\u3042\u308a\u307e\u3057\u305f\uff0egzip\u3088\u308axz\u306b\u3057\u305f\u307b\u3046\u304c\u5c0f\u3055\u304f\u306a\u308a\u307e\u3059\u306d\uff0e\u8a66\u3057\u3066\u307f\u308b\u3068\u3053\u3093\u306a\u611f\u3058\u3067\u3057\u305f\uff0e$ xz -c fortune | uuencode fortune.xz > fortune.xz.uu
-rw-r--r-- 1 matoken matoken 22368 Jul 23 15:11 fortune #\u5143\u30d5\u30a1\u30a4\u30eb\n-rw-r--r-- 1 matoken matoken 30844 Jul 23 14:58 fortune.uu #uudecode\n-rw-r--r-- 1 matoken matoken 14975 Jul 23 15:08 fortune.gz.uu #zip + uudecode\n-rw-r--r-- 1 matoken matoken 13047 Jul 23 15:47 fortune.xz.uu #xz + uudecode\n\u305d\u3046\u3044\u3048\u3070\u3042\u307e\u308a\u6709\u540d\u3067\u306f\u306a\u3044\u3067\u3059\u304cbasE91\u306a\u3093\u3066\u3082\u306e\u3082\u3042\u308a\u307e\u3059\uff0ebase64\u3088\u308a\u30b5\u30a4\u30ba\u304c\u5c0f\u3055\u304f\u306a\u308a\u307e\u3059\u304c\u5c0e\u5165\u304b\u3089\u3084\u3089\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u3067\u3061\u3087\u3063\u3068\u9762\u5012\uff0e
\nHello world\u3092\u8a66\u3057\u3066\u307f\u307e\u3059\uff0e\u9069\u5f53\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u7528\u610f\u3057\u3066\u30b9\u30bf\u30c6\u30a3\u30c3\u30af\u30ea\u30f3\u30af\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u307f\u307e\u3059\uff0e
\n$ cat hello.c\n#include <stdio.h>\nint\nmain(void)\n{\n printf(\"Hello, world!\\n\");\n return 0;\n}\n$ gcc -static ./hello.c\n$ ./a.out\nHello, world!\n$ ls -l a.out\n-rwxr-xr-x 1 pi pi 571120 7\u6708 23 16:18 a.out\n\u3067\u304b\u3044\u2026\u200b\u2026\u200b
\n\u3068\u308a\u3042\u3048\u305a\u3067\u304b\u3044\u306e\u306f\u304a\u3044\u3068\u3044\u3066\u3053\u308c\u3060\u3068arm64\u306a\u306e\u3067\u52d5\u304f\u306f\u305a\u304c\u306a\u3044\uff0e\u3068\u3044\u3046\u3053\u3068\u3067\u30af\u30ed\u30b9\u30b3\u30f3\u30d1\u30a4\u30eb\u74b0\u5883\u3092\u7528\u610f\u3057\u307e\u3059\uff0e
\n\u4eca\u56de\u8a66\u3057\u305f\u30db\u30b9\u30c8\u306fDebian sid amd64/Ubuntu 20.04 LTS arm64/Raspberry Pi OS arm64\u3067\u3059\uff0e\u3044\u305a\u308c\u3082\u540c\u3058\u624b\u9806\u3067OK\u3067\u3057\u305f\uff0e
\ncrossbuild-essential-<arch> \u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u5404\u7a2e\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306e\u74b0\u5883\u304c\u5c0e\u5165\u3067\u304d\u308b\u3088\u3046\u3067\u3059\uff0e
$ apt-cache search crossbuild-essential-\ncrossbuild-essential-amd64 - Informational list of cross-build-essential packages\ncrossbuild-essential-arm64 - Informational list of cross-build-essential packages\ncrossbuild-essential-armel - Informational list of cross-build-essential packages\ncrossbuild-essential-armhf - Informational list of cross-build-essential packages\ncrossbuild-essential-i386 - Informational list of cross-build-essential packages\ncrossbuild-essential-powerpc - Informational list of cross-build-essential packages\ncrossbuild-essential-ppc64el - Informational list of cross-build-essential packages\ncrossbuild-essential-s390x - Informational list of cross-build-essential packages\ncrossbuild-essential-mips - Informational list of cross-build-essential packages\ncrossbuild-essential-mips64 - Informational list of cross-build-essential packages\ncrossbuild-essential-mips64el - Informational list of cross-build-essential packages\ncrossbuild-essential-mips64r6 - Informational list of cross-build-essential packages\ncrossbuild-essential-mips64r6el - Informational list of cross-build-essential packages\ncrossbuild-essential-mipsel - Informational list of cross-build-essential packages\ncrossbuild-essential-mipsr6 - Informational list of cross-build-essential packages\ncrossbuild-essential-mipsr6el - Informational list of cross-build-essential packages\n\u6ca2\u5c71\u3042\u308a\u307e\u3059\uff0e\u4eca\u56de\u306farmlf/armhf\u306e crossbuild-essential-armel, crossbuild-essential-armhf \u3092\u5c0e\u5165\u3057\u307e\u3057\u305f\uff0e
$ sudo apt install crossbuild-essential-armel crossbuild-essential-armhf\ngcc\u3060\u3051\u3067\u3044\u3044\u5834\u5408\u306farmlf\u306f gcc-arm-linux-gnueabi\uff0carmhf\u306f gcc-arm-linux-gnueabihf \u3060\u3051\u3067OK\u3067\u3059\uff0e
\u307e\u305a\u306f arm-linux-gnueabihf-gcc \u3092\u4f7f\u3063\u3066armhf\u306e\u30d0\u30a4\u30ca\u30ea\u3092\u4f5c\u308a\u307e\u3059\uff0e
$ /usr/bin/arm-linux-gnueabihf-gcc -static ./hello.c\n$ strip a.out\n$ xz -c a.out | uuencode a.out.xz > a.out.xz.uu\narmhf\u306f\u99c4\u76ee\u305d\u3046\u3067\u3059\uff0e
\n# cat | uudecode\n^d\n# xzcat ./a.out.xz > ./a.out\n# chmod +x ./a.out\n# ./a.out\nSegmentation fault\n\u6b21\u306f gcc-arm-linux-gnueabi \u3067armlf\u306e\u30d0\u30a4\u30ca\u30ea\u3092\u4f5c\u3063\u3066\u8a66\u3059\u3068\u52d5\u304d\u307e\u3057\u305f\uff0e
$ /usr/bin/arm-linux-gnueabi-gcc -static ./hello.c\n$ strip a.out\n$ xz -c a.out | uuencode a.out.xz > a.out.xz.uu\n# cat | uudecode\n^d\n# xzcat ./a.out.xz > ./a.out\n# chmod +x ./a.out\n# ./a.out\nHello, world!\n# /usr/bin/time -f \"%M KB\" ./a.out\nHello, world!\n2144 KB\n\u3053\u306e\u8fba\u308a\u3067\u4eca\u56de\u306f\u6642\u9593\u5207\u308c\uff0e\u6b21\u56de\u306e\u540c\u3058\u3088\u3046\u306a\u611f\u3058\u306b\u306a\u308a\u305d\u3046\u3067\u3059\uff0e\u8208\u5473\u306e\u3042\u308b\u65b9\u306f\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u304b\u3089\uff0e
\n\u3068\u308a\u3042\u3048\u305aarmel\u306e\u30d0\u30a4\u30ca\u30ea\u304c\u52d5\u304f\u3088\u3046\u306a\u306e\u304c\u308f\u304b\u3063\u305f\u306e\u3067\u9762\u767d\u305d\u3046\u306a\u5c0f\u3055\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u8a66\u305d\u3046\u304b\u306a\u3068\u601d\u3063\u3066\u3044\u307e\u3059\uff0ecowsay\u3068\u304b\u597d\u304d\u306a\u3093\u3060\u3051\u3069\u3053\u308c\u306fPerl\u306a\u306e\u3067\u5bb9\u91cf\u7684\u306b\u96e3\u3057\u305d\u3046\uff0e\u3068\u308a\u3042\u3048\u305afortune\u3042\u305f\u308a\u304b\u306a?
\n\u4ee5\u524dPQI Air Pen\u3067\u3084\u3063\u305f\u3088\u3046\u306bSD card\u3092\u7528\u610f\u3057\u3066\u305d\u3053\u306bDebian armlf\u74b0\u5883\u3092\u5c55\u958b\u3057\u3066chroot\u3068\u304b\u3082\u3067\u304d\u305d\u3046\u3067\u3059\uff0e
\n\u30d5\u30a1\u30a4\u30eb\u540c\u671f\u306b\u3068\u3066\u3082\u4fbf\u5229\u306arsync\u306e3.2.0\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\uff0e
\n\u30d0\u30b0\u30d5\u30a3\u30af\u30b9\u3084\uff0c\u3044\u304f\u3064\u304b\u306e\u65b0\u6a5f\u80fd\u304c\u5165\u3063\u305f\u3088\u3046\u306a\u306e\u3067\u5c11\u3057\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e
\n\u203b1. \u3053\u306e\u8a18\u4e8b\u6295\u7a3f\u6642\u306b\u306f 3.2.2 \u304c\u51fa\u3066\u3044\u307e\u3059\uff0e
\n\u203b2. \u9e7f\u5150\u5cf6Linux\u52c9\u5f37\u4f1a 2020.06\u3067\u767a\u8868\u3057\u305f\u3082\u306e\u3068\u540c\u3058\u5185\u5bb9\u3067\u3059\uff0e
$ sudo apt build-dep rsync\n$ sudo apt install libxxhash-dev libzstd-dev liblz4-dev\n$ wget -c \\\nhttps://download.samba.org/pub/rsync/rsync-3.2.0.tar.gz \\\nhttps://download.samba.org/pub/rsync/rsync-3.2.0.tar.gz.asc \\\nhttps://opencoder.net/WayneDavison.key\n$ gpg2 --import ./WayneDavison.key\n$ gpg2 --verify ./rsync-3.2.0.tar.gz.asc\n$ tar tvzf ./rsync-3.2.0.tar.gz\n$ tar xzf ./rsync-3.2.0.tar.gz\n$ cd rsync-3.2.0\n$ ./configure --help\n$ ./configure\n$ make\n$ ./rsync --version\nrsync version 3.2.0 protocol version 31\nCopyright (C) 1996-2020 by Andrew Tridgell, Wayne Davison, and others.\nWeb site: http://rsync.samba.org/\nCapabilities:\n 64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints,\n socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace, append,\n ACLs, xattrs, iconv, symtimes, prealloc, SIMD\nChecksum list:\n xxh64 (xxhash) md5 md4 none\nCompress list:\n zstd lz4 zlibx zlib none\n\nrsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you\nare welcome to redistribute it under certain conditions. See the GNU\nGeneral Public Licence for details.\n| \n Note \n | \n\ngpg\u9375\u306f\u6b21\u304b\u3089\u5165\u624b\u3067\u304d\u307e\u3059\uff0ersync download | \n
Raspberry Pi OS arm64\u306e\u5834\u5408 libzstd-dev \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c 1.3.8+dfsg-3 \u3068\u5c11\u3057\u53e4\u304fbuild\u306b\u5931\u6557\u3057\u307e\u3059\uff0e ./configure --disable-zstd \u3068\u3057\u3066zstd\u3092\u7121\u52b9\u306b\u3059\u308b\u304b\uff0csource\u304b\u3089 zstd 1.4.5 \u3092\u5c0e\u5165\u3059\u308b\u3053\u3068\u3067build\u51fa\u6765\u307e\u3057\u305f\uff0e
$ make\n :\ntoken.c: In function \u2018init_compression_level\u2019:\ntoken.c:73:40: warning: implicit declaration of function \u2018ZSTD_minCLevel\u2019; did you mean \u2018ZSTD_maxCLevel\u2019? [-Wimplicit-function-declaration]\n min_level = skip_compression_level = ZSTD_minCLevel();\n ^~~~~~~~~~~~~~\n ZSTD_maxCLevel\ntoken.c: In function \u2018send_zstd_token\u2019:\ntoken.c:685:2: error: unknown type name \u2018ZSTD_EndDirective\u2019; did you mean \u2018ZSTD_DDict\u2019?\n ZSTD_EndDirective flush = ZSTD_e_continue;\n ^~~~~~~~~~~~~~~~~\n ZSTD_DDict\ntoken.c:685:28: error: \u2018ZSTD_e_continue\u2019 undeclared (first use in this function)\n ZSTD_EndDirective flush = ZSTD_e_continue;\n ^~~~~~~~~~~~~~~\ntoken.c:685:28: note: each undeclared identifier is reported only once for each function it appears in\ntoken.c:701:3: warning: implicit declaration of function \u2018ZSTD_CCtx_setParameter\u2019 [-Wimplicit-function-declaration]\n ZSTD_CCtx_setParameter(zstd_cctx, ZSTD_c_compressionLevel, do_compression_level);\n ^~~~~~~~~~~~~~~~~~~~~~\ntoken.c:701:37: error: \u2018ZSTD_c_compressionLevel\u2019 undeclared (first use in this function); did you mean \u2018skip_compression_level\u2019?\n ZSTD_CCtx_setParameter(zstd_cctx, ZSTD_c_compressionLevel, do_compression_level);\n ^~~~~~~~~~~~~~~~~~~~~~~\n skip_compression_level\ntoken.c:751:13: error: \u2018ZSTD_e_flush\u2019 undeclared (first use in this function); did you mean \u2018ZSTD_DCtx_s\u2019?\n flush = ZSTD_e_flush;\n ^~~~~~~~~~~~\n ZSTD_DCtx_s\ntoken.c:753:8: warning: implicit declaration of function \u2018ZSTD_compressStream2\u2019; did you mean \u2018ZSTD_compressStream\u2019? [-Wimplicit-function-declaration]\n r = ZSTD_compressStream2(zstd_cctx, &zstd_out_buff, &zstd_in_buff, flush);\n ^~~~~~~~~~~~~~~~~~~~\n ZSTD_compressStream\n$ cd ..\n$ sudo apt remove libzstd-dev\n$ wget https://github.com/facebook/zstd/releases/download/v1.4.5/zstd-1.4.5.tar.gz \\\nhttps://github.com/facebook/zstd/releases/download/v1.4.5/zstd-1.4.5.tar.gz.sha256\n$ sha256sum -c ./zstd-1.4.5.tar.gz.sha256\n$ tar tvf ./zstd-1.4.5.tar.gz | lv\n$ tar xf ./zstd-1.4.5.tar.gz\n$ cd zstd-1.4.5\n$ make\n$ sudo make install\n$ cd ../rsync-3.2.0\n$ ./configure && make\nDebian sid amd64 \u74b0\u5883\u306b\u306f\u3059\u3067\u306b\u964d\u3063\u3066\u304d\u3066\u3044\u308b\u306e\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u304b\u3089\u5c0e\u5165\u3059\u308b\u3060\u3051\u3067OK\u3067\u3059\uff0e
\n$ sudo apt install rsync\n$ rsync --version\nrsync version 3.2.0 protocol version 31\nCopyright (C) 1996-2020 by Andrew Tridgell, Wayne Davison, and others.\nWeb site: http://rsync.samba.org/\nCapabilities:\n 64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints,\n socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace, append,\n ACLs, xattrs, iconv, symtimes, prealloc, SIMD\nChecksum list:\n xxh64 (xxhash) md5 md4 none\nCompress list:\n zstd lz4 zlibx zlib none\n\nrsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you\nare welcome to redistribute it under certain conditions. See the GNU\nGeneral Public Licence for details.\n$ dpkg-query -W rsync\nrsync 3.2.0-1\n\u3063\u3066\u3053\u3068\u3067\u8a66\u305b\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff0eNEWS\u3092\u898b\u3066\u307f\u307e\u3059\uff0e
\n\n\n\n\nAvoid a hang when an overabundance of messages clogs up all the I/O buffers.
\n
\u3053\u306e\u30d0\u30b0\u4fee\u6b63\u304c\u3061\u3087\u3063\u3068\u6c17\u306b\u306a\u308a\u307e\u3059\uff0efat32\u306e\u5236\u9650\u306b\u5f15\u3063\u304b\u304b\u3063\u305f\u3068\u304d\u306b\u5e30\u3063\u3066\u3053\u306a\u3044\u554f\u984c\u3082\u3053\u308c\u3067\u89e3\u6c7a\u3057\u3066\u308b\u304b\u3082?\u672a\u78ba\u8a8d\uff0e
\n\u30c1\u30a7\u30c3\u30af\u30b5\u30e0\u5f62\u5f0f\u3092\u9078\u3079\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3088\u3046\u3067\u3059\uff0e\u73fe\u5728\u9078\u629e\u3067\u304d\u308b\u306e\u306f xxh64/md5/md4 \u306e3\u7a2e\u985e or none or auto(\u65e2\u5b9a\u5024)
o auto (the default)\n o xxh64 (aka xxhash)\n o md5\n o md4\n o none\n
--version \u306b\u3082\u51fa\u529b\u3055\u308c\u307e\u3059\uff0e
$ rsync --version | grep Checksum -A1\nChecksum list:\n xxh64 (xxhash) md5 md4 none\nconfigure option \u306b --disable-xxhash \u304c\u3042\u308a\u307e\u3057\u305f\uff0e
--disable-xxhash disable xxhash checksums\n\u74b0\u5883\u5909\u6570 RSYNC_CHECKSUM_LIST \u3067\u3082\u6307\u5b9a\u3067\u304d\u307e\u3059\uff0e\u30aa\u30d7\u30b7\u30e7\u30f3 --checksum-choice \u304c\u3042\u308b\u5834\u5408\u306f\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u307b\u3046\u304c\u512a\u5148\u306a\u3088\u3046\u3067\u3059\uff0e
\u3061\u306a\u307f\u306b --checksum-choice \u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044 3.1.3 \u306b\u5bfe\u3057\u3066 xxh64 \u3092\u5411\u3051\u3066\u53e9\u3044\u3066\u307f\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3057\u305f\uff0e(md4, md5 \u306fok)
$ rsync --checksum-choice=xxh64 -avc ./* user@remote:/tmp/\nunknown checksum name: xxh64\nrsync error: requested action not supported (code 4) at checksum.c(73) [server=3.1.3]\nrsync: connection unexpectedly closed (0 bytes received so far) [sender]\nrsync error: error in rsync protocol data stream (code 12) at io.c(235) [sender=3.2.0]\n\u6642\u9593\u304c\u3069\u306e\u304f\u3089\u3044\u5909\u308f\u308b\u304b\u3061\u3087\u3046\u3069\u8ee2\u304c\u3063\u3066\u3044\u305fkernel source(\u5c0f\u3055\u3044\u30d5\u30a1\u30a4\u30eb\u304c\u6ca2\u5c71)\u3067\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e\u306f\u3058\u3081\u666e\u901a\u306b\u540c\u671f\u3057\u305f\u5f8c\uff0c\u30ad\u30e3\u30c3\u30b7\u30e5\u30af\u30ea\u30a2\u3057\u3066 md4, md5, xxh64 \u3067\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e\u601d\u3063\u305f\u3088\u308a\u5dee\u304c\u51fa\u306a\u3044\u611f\u3058?
$ find ./linux-5.6 | wc -l\n82114\n$ du -ms ./linux-5.6\n1310 ./linux-5.6\n$ rsync --checksum-choice=auto -ac ./linux-5.6 /tmp/\n$ sync ; echo 3 | sudo tee /proc/sys/vm/drop_caches ; time rsync --checksum-choice=md4 -ac ./linux-5.6 /tmp/\n3\n\nreal 0m52.393s\nuser 0m5.051s\nsys 0m12.246s\n$ sync ; echo 3 | sudo tee /proc/sys/vm/drop_caches ; time rsync --checksum-choice=md5 -ac ./linux-5.6 /tmp/\n3\n\nreal 0m57.716s\nuser 0m6.976s\nsys 0m13.486s\n$ sync ; echo 3 | sudo tee /proc/sys/vm/drop_caches ; time rsync --checksum-choice=xxh64 -ac ./linux-5.6 /tmp/\n3\n\nreal 1m5.520s\nuser 0m2.507s\nsys 0m13.625s\n\u5927\u304d\u3081\u306e\u30d5\u30a1\u30a4\u30eb\u3067\u3082\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e4GB\u7a0b\u306eiso\u30d5\u30a1\u30a4\u30eb1\u3064\u3067\u3059\uff0emd4, md5 \u306f\u3042\u307e\u308a\u4ee3\u308f\u308a\u307e\u305b\u3093\u304c\uff0cxxh64 \u306f\u304b\u306a\u308a\u9ad8\u901f\u3067\u3059\u306d\uff0e
$ ls -s ./Parrot-security-4.9.1_x64.iso*\n3909164 ./Parrot-security-4.9.1_x64.iso 3909164 ./Parrot-security-4.9.1_x64.iso2\n$ sync ; echo 3 | sudo tee /proc/sys/vm/drop_caches ; time rsync --checksum-choice=md4 -ac ./Parrot-security-4.9.1_x64.iso ./Parrot-security-4.9.1_x\n64.iso2\n3\n\nreal 0m23.276s\nuser 0m10.601s\nsys 0m4.387s\n$ sync ; echo 3 | sudo tee /proc/sys/vm/drop_caches ; time rsync --checksum-choice=md5 -ac ./Parrot-security-4.9.1_x64.iso ./Parrot-security-4.9.1_x64.iso2\n3\n\nreal 0m28.150s\nuser 0m16.945s\nsys 0m4.399s\n$ sync ; echo 3 | sudo tee /proc/sys/vm/drop_caches ; time rsync --checksum-choice=xxh64 -ac ./Parrot-security-4.9.1_x64.iso ./Parrot-security-4.9.1_x64.iso2\n3\n\nreal 0m12.767s\nuser 0m1.375s\nsys 0m4.060s\n\u3053\u306e\u8fba\u306e\u901f\u5ea6\u306f\u74b0\u5883\u306b\u3088\u308a\u5927\u5206\u5909\u308f\u308b\u3068\u601d\u3046\u306e\u3067\u53c2\u8003\u7a0b\u5ea6\u306b\uff0e
\n--compress \u30aa\u30d7\u30b7\u30e7\u30f3\u5229\u7528\u6642\u306e\u5727\u7e2e\u5f62\u5f0f\u3092\u6307\u5b9a\u3067\u304d\u308b\u3088\u3046\u3067\u3059\uff0e
\u5727\u7e2e\u5f62\u5f0f\u306frsync 3.2.0 \u540c\u58eb\u3067\u306f zlibx \u5f62\u5f0f\u304c zlib \u5f62\u5f0f\u3088\u308a\u3082\u512a\u5148\u3055\u308c\u308b\u3088\u3046\u3067\u3059\uff0e
\n\u9078\u629e\u3067\u304d\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u306f zstd, lz4, zlibx, zlib, none \u306e\u3088\u3046\u3067\u3059\uff0e
o zstd\n o lz4\n o zlibx\n o zlib\n o none\nrsync --version \u3067\u3082\u78ba\u8a8d\u3067\u304d\u307e\u3059\uff0e
$ rsync --version | grep Compress -A1\nCompress list:\n zstd lz4 zlibx zlib none\nconfigure oprion \u306b --disable-zstd, --disable-lz4 \u304c\u3042\u308a\u307e\u3059\uff0e
--disable-zstd disable zstd compression\n --disable-lz4 disable LZ4 compression\n\u74b0\u5883\u5909\u6570 RSYNC_COMPRESS_LIST \u3067\u3082\u6307\u5b9a\u3067\u304d\u308b\u3088\u3046\u3067\u3059\uff0e
\u672a\u5bfe\u5fdc\u306e 3.1.3 \u306b\u5bfe\u3057\u3066\u6307\u5b9a\u3059\u308b\u3068 unknown option \u3068\u8a00\u308f\u308c\u307e\u3059\uff0e
$ time rsync --compress-choice=zstd --compress -a ./hoge mk@x201i.local:/tmp/\nrsync: on remote machine: --compress-choice=zstd: unknown option\nrsync error: syntax or usage error (code 1) at main.c(1596) [server=3.1.3]\nrsync: connection unexpectedly closed (0 bytes received so far) [sender]\nrsync error: error in rsync protocol data stream (code 12) at io.c(235) [sender=3.2.0]\n\u3053\u3061\u3089\u3082\u7c21\u5358\u306b\u30d9\u30f3\u30c1\u3092\uff0e\u3067\u3082Wi-Fi\u74b0\u5883\u3060\u3057\u53c2\u8003\u7a0b\u5ea6\u306b\uff0e
\n$ ssh user@remote rm -rf ~/tmp/linux-5.6; echo 3 | sudo tee /proc/sys/vm/drop_caches; time rsync --compress-choice=zstd --compress -a --rsync-path=~/src/rsync-3.2.0/rsync ~/src/linux-5.6 user@remote:~/tmp/\n3\n\nreal 4m38.921s\nuser 0m24.463s\nsys 0m7.182s\n$ ssh user@remote rm -rf ~user/tmp/linux-5.6; echo 3 | sudo tee /proc/sys/vm/drop_caches; time rsync --compress-choice=lz4 --compress -a --rsync-path=~/src/rsync-3.2.0/rsync ~/src/linux-5.6 user@remote:~/tmp/\n3\n\nreal 9m28.829s\nuser 0m4.878s\nsys 0m6.177s\n$ ssh user@remote rm -rf ~user/tmp/linux-5.6; echo 3 | sudo tee /proc/sys/vm/drop_caches; time rsync --compress-choice=zlibx --compress -a --rsync-path=~/src/rsync-3.2.0/rsync ~/src/linux-5.6 user@remote:~/tmp/\n3\n\nreal 5m21.702s\nuser 0m46.740s\nsys 0m6.541s\n$ ssh user@remote rm -rf ~user/tmp/linux-5.6; echo 3 | sudo tee /proc/sys/vm/drop_caches; time rsync --compress-choice=zlib --compress -a --rsync-path=~/src/rsync-3.2.0/rsync ~/src/linux-5.6 user@remote:~/tmp/\n3\n\nreal 5m28.722s\nuser 0m45.861s\nsys 0m6.381s\n$ ssh user@remote rm -rf ~user/tmp/linux-5.6; echo 3 | sudo tee /proc/sys/vm/drop_caches; time rsync --compress-choice=none -a --rsync-path=~/src/rsync-3.2.0/rsync ~/src/linux-5.6 user@remote:~/tmp/\n3\n\nreal 22m56.712s\nuser 0m1.848s\nsys 0m7.323s\n\u30c1\u30a7\u30c3\u30af\u30b5\u30e0\u3068\u5727\u7e2e\u306e\u8a73\u7d30\u3092\u8868\u793a\u3059\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u3088\u3046\u3067\u3059\uff0e\u3069\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u306e\u304b\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\uff0e
\nClient negotiated checksum: xxh64\nClient compress: zstd (level 3)\n
--debug=OPTS \u3092\u4f7f\u3046\u3068\u30ea\u30e2\u30fc\u30c8\u306ersync\u306b\u30c7\u30d0\u30c3\u30b0\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u9001\u3089\u306a\u304f\u306a\u308b\u3088\u3046\u3067\u3059\uff0e\u3053\u308c\u306b\u3088\u308a\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u3068\u30b5\u30fc\u30d0\u5074\u3067\u7570\u306a\u308b\u30c7\u30d0\u30c3\u30b0\u30ec\u30d9\u30eb\u3092\u6307\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u305d\u3046\u3067\u3059\uff0e
\n\u30ea\u30e2\u30fc\u30c8\u5074\u306b\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u9001\u308b\u5834\u5408\u306b\u306f -M\u2014\u200bdebug=OPTS
rsync\u30d7\u30ed\u30bb\u30b9\u306b SIGINFO & SIGVTALRM \u30b7\u30b0\u30ca\u30eb\u3092\u9001\u4fe1\u3059\u308b\u3053\u3068\u3067\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u8868\u793a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3088\u3046\u3067\u3059\uff0eLinux\u306f SIGINFO \u306b\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u306e\u3067\uff0c SIGVTALRM \u3092\u8a66\u3057\u307e\u3057\u305f\uff0e
SIGVTALRM \u3092\u9001\u4fe1$ pkill -SIGVTALRM rsync\nlinux-5.6/arch/sparc/lib/lshrdi3.S\n 114,384,392 81% 931.12kB/s 0:01:59 (xfr#21058, ir-chk=1030/23451)\n\u6307\u5b9a\u30e6\u30fc\u30b6/\u30b0\u30eb\u30fc\u30d7\u6a29\u9650\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u3059\u308b\u3088\u3046\u3067\u3059\uff0e
\n$ ls -Al /tmp/rsync-test/\ntotal 0\n-rw-r--r-- 1 matoken matoken 0 Jun 25 18:50 matokenfile\n-rw-r--r-- 1 root root 0 Jun 25 18:51 root\n-rw-r--r-- 1 www-data www-data 0 Jun 25 18:51 www-data\n$ sudo ./rsync -a /tmp/rsync-test/ /tmp/rsync-test2\n$ ls -lA /tmp/rsync-test2\ntotal 0\n-rw-r--r-- 1 matoken matoken 0 Jun 25 18:50 matokenfile\n-rw-r--r-- 1 root root 0 Jun 25 18:51 root\n-rw-r--r-- 1 www-data www-data 0 Jun 25 18:51 www-data\n--copy-as=matoken \u3092\u6307\u5b9a\u3059\u308b\u3068\u3059\u3079\u3066matoken\u306b\u306a\u308b$ sudo \\rm -rf /tmp/rsync-test2\n$ sudo ./rsync --copy-as=matoken -a /tmp/rsync-test/ /tmp/rsync-test2\n$ ls -lA /tmp/rsync-test2\ntotal 0\n-rw-r--r-- 1 matoken matoken 0 Jun 25 18:50 matokenfile\n-rw-r--r-- 1 matoken matoken 0 Jun 25 18:51 root\n-rw-r--r-- 1 matoken matoken 0 Jun 25 18:51 www-data\n--version \u306e\u77ed\u3044\u30aa\u30d7\u30b7\u30e7\u30f3\u3068\u3057\u3066 -V \u304c\u5165\u308a\u307e\u3057\u305f\uff0e
$ ./rsync --help|grep -- -V\n--version, -V print the version + other info and exit\n$ ./rsync --help|grep \\-V\ngrep (GNU grep) 3.4\nCopyright (C) 2020 Free Software Foundation, Inc.\nLicense GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.\n\nWritten by Mike Haertel and others; see\n<https://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.\nipv4, ipv6 \u3092\u6307\u5b9a\u3057\u305f\u3044\u3068\u304d\u306b rsh='ssh -4' \u3068\u3059\u308b\u3088\u308a\u4fbf\u5229\u306a --ipv4, -4, --ipv6, -6 \u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u5165\u308a\u307e\u3057\u305f\uff0e
-6 \u3092\u6307\u5b9a\u3057\u3066\u5931\u6557\u3059\u308b$ rsync -avc6 ./ user@remote:/tmp/\nssh: Could not resolve hostname remote: Name or service not known\nrsync: connection unexpectedly closed (0 bytes received so far) [sender]\nrsync error: unexplained error (code 255) at io.c(235) [sender=3.2.1]\nNextcloud\u5c0e\u5165\u304c\u9762\u5012?snap\u3092\u4f7f\u3046\u3068\u3053\u308c\u3060\u3051\u3067GoogleDoc\u307f\u305f\u3044\u306a\u3053\u3068\u304c\u3067\u304d\u307e\u3059(Debian sid amd64/Ubuntu 20.04 LTS\u3067\u78ba\u8a8d\u6e08\u307f)\uff0e
\n$ sudo apt update && sudo apt upgrade\n$ sudo apt install snapd\n$ sudo snap install nextcloud\n$ sudo /snap/bin/nextcloud.occ app:install documentserver_community\n$ sudo /snap/bin/nextcloud.occ app:install onlyoffice\n\u7c21\u5358\u306b\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\uff0e
\n$ sudo apt update && sudo apt upgrade\n$ sudo apt install snapd\n$ snap find nextcloud\nName Version Publisher Notes Summary\nnextcloud 18.0.4snap3 nextcloud\u2713 - Nextcloud Server - A safe home for all your data\nspreedme 0.29.5snap1 nextcloud\u2713 - Spreed.ME audio/video calls and conferences feature for the Nextcloud Snap\nonlyoffice-desktopeditors 5.5.1 onlyoffice\u2713 - A comprehensive office suite for editing documents, spreadsheets and presentations\nqownnotes 20.6.2 pbek - Plain-text file markdown note taking with Nextcloud / ownCloud integration\nnextcloud-port8080 1.01 arcticslyfox - Nextcloud Server\nnextcloud-snap-abacao 11.0.3snap4 abacao - Nextcloud Server\nnextcloud-nextant 11.0.0snap3 rmescandon - Nextcloud Server + search support\nnextcloud-abacao 11.0.3snap4 abacao - Nextcloud Server\ncashbox-nextcloud 11.0.2snap2 cashbox - Nextcloud Server for www.cashBOX.plus\nnextcloudsnap 12.0.4snap1 oscarbrolin - Nextcloud Server - A safe home for all your data\nghostcloud 0.9.5 beidl - A modern cross-platform client for Nextcloud, ownCloud, WebDav.\nhtxucloud 12.0.3snap7 htxu - Nextcloud Server\ncarnet 0.22.1 alexandre-roux-m - Powerful note taking app with sync, online editor and android app\nopentodolist 3.23.0 mhoeher - Todo list and note taking application\nsolr 0.1 rmescandon - Starts up solr as forking daemon\nmdns-hostname 0.0.1 welike - mDNS mini-daemon to published hostname.local\nnextcloud-stondino 15.0.10snap3+git1.ff25cb9 zmusselman - Nextcloud Server - A safe home for all your data\nvmcloud-nextcloud 1.0.0 victoriususm - Nextcloud 16.0.3 Optimized-Boosted\nfeedreader 0+git.9ac478f7 ken-vandine - RSS client for various webservices\ntest003-nc 13.0.4.snap1 reinism - Nextcloud Server - A safe home for all your data\n$ snap info nextcloud\nname: nextcloud\nsummary: Nextcloud Server - A safe home for all your data\npublisher: Nextcloud*\nstore-url: https://snapcraft.io/nextcloud\ncontact: https://github.com/nextcloud/nextcloud-snap\nlicense: unset\ndescription: |\n Where are your photos and documents? With Nextcloud you pick a server of\n your choice, at home, in a data center or at a provider. And that is where\n your files will be. Nextcloud runs on that server, protecting your data and\n giving you access from your desktop or mobile devices. Through Nextcloud\n you also access, sync and share your existing data on that FTP drive at\n school, a Dropbox or a NAS you have at home.\ncommands:\n - nextcloud.disable-https\n - nextcloud.enable-https\n - nextcloud.export\n - nextcloud.import\n - nextcloud.manual-install\n - nextcloud.mysql-client\n - nextcloud.mysqldump\n - nextcloud.occ\nservices:\n nextcloud.apache: simple, enabled, active\n nextcloud.mdns-publisher: simple, enabled, active\n nextcloud.mysql: simple, enabled, active\n nextcloud.nextcloud-cron: simple, enabled, active\n nextcloud.nextcloud-fixer: simple, enabled, inactive\n nextcloud.php-fpm: simple, enabled, active\n nextcloud.redis-server: simple, enabled, active\n nextcloud.renew-certs: simple, enabled, active\nsnap-id: njObIbGQEaVx1H4nyWxchk1i8opy4h54\ntracking: latest/stable\nrefresh-date: yesterday at 21:53 JST\nchannels:\n latest/stable: 18.0.4snap4 2020-06-08 (21413) 264MB -\n latest/candidate: ^\n latest/beta: 18.0.4snap4+git5.31f0acd 2020-06-09 (21469) 264MB -\n latest/edge: master-2020-06-10 2020-06-10 (21487) 267MB -\n 18/stable: 18.0.4snap4 2020-06-08 (21413) 264MB -\n 18/candidate: ^\n 18/beta: ^\n 18/edge: 18-2020-06-10 2020-06-10 (21482) 265MB -\n 17/stable: 17.0.6snap1 2020-05-03 (20616) 229MB -\n 17/candidate: ^\n 17/beta: 17.0.6snap1+git10.8f765f8 2020-06-09 (21474) 249MB -\n 17/edge: 17-2020-06-10 2020-06-10 (21483) 250MB -\n 16/stable: 16.0.11snap1 2020-06-08 (21459) 225MB -\n 16/candidate: ^\n 16/beta: ^\n 16/edge: ^\n 15/stable: 15.0.14snap1 2020-01-20 (18374) 216MB -\n 15/candidate: ^\n 15/beta: ^\n 15/edge: ^\n 14/stable: 14.0.10snap1 2019-05-04 (13208) 202MB -\n 14/candidate: ^\n 14/beta: ^\n 14/edge: ^\n 13/stable: 13.0.12snap1 2019-05-03 (13155) 193MB -\n 13/candidate: ^\n 13/beta: ^\n 13/edge: ^\n 12/stable: 12.0.13snap1 2019-01-07 (10632) 206MB -\n 12/candidate: ^\n 12/beta: ^\n 12/edge: ^\n 11/stable: 11.0.8snap1 2018-05-10 (6942) 202MB -\n 11/candidate: ^\n 11/beta: ^\n 11/edge: ^\n\u3044\u304f\u3064\u304b\u3067\u3066\u304d\u307e\u3059\u304c\uff0cPublisher\u304c nextcloud \u306b\u306a\u3063\u3066\u3044\u308b\u516c\u5f0f\u306estable\u3092\u4f7f\u3044\u307e\u3059\uff0e\u3061\u306a\u307f\u306b\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u53e9\u3044\u305f\u6642\u70b9\u306719.0.0\u308418.0.5\u304c\u51fa\u3066\u3044\u3066\u3053\u306e\u8a18\u4e8b\u57f7\u7b46\u6642\u70b9\u306718.0.6\u304c\u51fa\u3066\u3044\u307e\u3059\uff0e\u3061\u3087\u3063\u3068\u53cd\u6620\u304c\u9045\u3044\u307f\u305f\u3044\u3067\u3059\u306d\uff0e
$ sudo snap install nextcloud\n\u3057\u3070\u3089\u304f\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u304c\uff0c\u3053\u308c\u3067Nextcloud\u3068\u95a2\u9023\u306eApache httpd/PHP/MySQL\u7b49\u304c\u8a2d\u5b9a\u6e08\u307f\u306e\u72b6\u614b\u3067\u5c0e\u5165\u3055\u308c\u307e\u3059\uff0e
\n$ ps aux | grep -i nextcloud\nroot 17628 0.0 0.0 1872 196 ? Ss 00:10 0:00 /bin/sh /snap/nextcloud/21169/bin/delay-on-failure mdns-publisher nextcloud\nroot 17615 0.0 0.1 1872 1168 ? Ss 00:10 0:00 /bin/sh /snap/nextcloud/21169/bin/nextcloud-cron\nroot 17657 0.0 0.1 1872 1200 ? Ss 00:10 0:00 /bin/sh /snap/nextcloud/21169/bin/renew-certs\nroot 17681 0.0 0.1 1872 1272 ? Ss 00:10 0:00 /bin/sh /snap/nextcloud/21169/bin/start-php-fpm\nroot 17712 0.0 0.1 1872 1216 ? Ss 00:10 0:00 /bin/sh /snap/nextcloud/21169/bin/start-redis-server\nroot 17765 0.0 0.6 258120 6008 ? Sl 00:10 0:00 mdns-publisher nextcloud\nroot 17987 0.0 0.1 1872 1200 ? Ss 00:10 0:00 /bin/sh /snap/nextcloud/21169/bin/run-httpd -k start -DFOREGROUND\nroot 18069 0.1 0.1 1872 1168 ? Ss 00:10 0:01 /bin/sh /snap/nextcloud/21169/bin/start_mysql\nroot 18111 0.0 0.1 1872 1100 ? S 00:10 0:00 /bin/sh /snap/nextcloud/21169/bin/mysqld_safe --datadir=/var/snap/nextcloud/21169/mysql --pid-file=/tmp/pids/mys\nql.pid --lc-messages-dir=/snap/nextcloud/21169/share --socket=/tmp/sockets/mysql.sock\nroot 18128 0.9 22.0 1815000 210060 ? Sl 00:10 0:08 /snap/nextcloud/21169/bin/mysqld --basedir=/snap/nextcloud/21169 --datadir=/var/snap/nextcloud/21169/mysql --plu\ngin-dir=/snap/nextcloud/21169/lib/plugin --lc-messages-dir=/snap/nextcloud/21169/share --log-error=error.log --pid-file=/tmp/pids/mysql.pid --socket=/tmp/sockets/mysql.sock\nroot 18196 0.0 2.1 200580 21712 ? Ss 00:10 0:00 php-fpm: master process (/snap/nextcloud/21169/config/php/php-fpm.conf)\nroot 18980 0.0 0.1 1872 1276 ? S 00:10 0:00 /bin/sh /snap/nextcloud/21169/bin/httpd-wrapper -k start -DFOREGROUND\nroot 19017 0.0 0.0 6168 0280 ? S 00:10 0:00 httpd -d /snap/nextcloud/21169 -k start -DFOREGROUND\nroot 19018 0.0 0.1 1211772 1612 ? Sl 00:10 0:00 httpd -d /snap/nextcloud/21169 -k start -DFOREGROUND\nroot 19019 0.0 0.1 880108 1668 ? Sl 00:10 0:00 httpd -d /snap/nextcloud/21169 -k start -DFOREGROUND\nroot 19020 0.0 0.1 1080512 1656 ? Sl 00:10 0:00 httpd -d /snap/nextcloud/21169 -k start -DFOREGROUND\nroot 19221 0.0 0.0 1716012 0292 ? Sl 00:10 0:00 httpd -d /snap/nextcloud/21169 -k start -DFOREGROUND\n\u3053\u308c\u3067\u3082\u3046\u30c7\u30fc\u30e2\u30f3\u3082\u8d77\u52d5\u3057\u3066\u3044\u308b\u306e\u3067\u5bfe\u8c61\u30de\u30b7\u30f3\u306e\u30db\u30b9\u30c8\u540d\u3084ip\u30a2\u30c9\u30ec\u30b9\u3092\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u306b\u5165\u529b\u3057\u3066\u4efb\u610f\u306e\u7ba1\u7406\u8005\u30e6\u30fc\u30b6\u306e\u30e6\u30fc\u30b6\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u767b\u9332\u3057\u307e\u3059\uff0e\u540c\u3058\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3060\u3068\u8ab0\u3067\u3082\u7e4b\u3044\u3067\u8a2d\u5b9a\u3067\u304d\u3066\u3057\u307e\u3046\u306e\u3067\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\uff0e
\n\u300c\u63a8\u5968\u30a2\u30d7\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u300d\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3066\u304a\u304f\u3068\u4fbf\u5229\u306a\u63a8\u5968\u30a2\u30d7\u30ea\u304c\u5c0e\u5165\u3055\u308c\u307e\u3059\uff0e\u6642\u9593\u304c\u304b\u304b\u308b\u306e\u3067\u5f8c\u3067\u3082\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\uff0e
\n\u3053\u308c\u3067\u3068\u308a\u3042\u3048\u305aNextcloud\u304c\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff0e\u5b9f\u306f\u3053\u3053\u307e\u3067\u306f snap\u30d1\u30c3\u30b1\u30fc\u30b8\u304c amd64\u4ee5\u5916\u306b\u3082 arm64. armhf, i386, ppc64el \u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u306e\u3067 armhf/arm64 \u306a Raspberry Pi \u306a\u3069\u3067\u3082\u52d5\u4f5c\u3057\u307e\u3059\uff0e
\n\u7d9a\u3044\u3066 OnlyOffice, community edition \u306e server\u7248\u3092\u5c0e\u5165\u3057\u307e\u3059\uff0e
\nNextcloud\u306e\u30a6\u30a7\u30d6\u304b\u3089\u3082\u5c0e\u5165\u3067\u304d\u308b\u306e\u3067\u3059\u304c\uff0c300MB\u7a0b\u3068\u30b5\u30a4\u30ba\u304c\u5927\u304d\u304f\u56de\u7dda\u306b\u3088\u3063\u3066\u306f\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3057\u3066\u3057\u307e\u3044\u307e\u3059\uff0e
\n\u305d\u306e\u5834\u5408\u306f occ \u30b3\u30de\u30f3\u30c9\u3067\u5c0e\u5165\u3057\u307e\u3059\uff0e(snap\u306a\u306e\u3067 nextcloud.occ \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3044\u307e\u3059)
$ sudo /snap/bin/nextcloud.occ app:install documentserver_community\n\u3053\u308c\u3067\u3082\u5931\u6557\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\uff0e\u305d\u306e\u5834\u5408\u306f\u624b\u52d5\u3067GitHub \u304b\u3089\u30a2\u30fc\u30ab\u30a4\u30d6\u3092\u5165\u624b\u3057\u3066\u624b\u52d5\u3067\u5c55\u958b\u3057\u3066\u6709\u52b9\u5316\u3057\u307e\u3059\uff0e(\u3053\u306e\u65b9\u6cd5\u3060\u3068amd64\u4ee5\u5916\u3067\u3082\u5c0e\u5165\u306f\u3067\u304d\u3061\u3083\u3044\u307e\u3059\u304c\u52d5\u304b\u306a\u3044\u306e\u3067\u6ce8\u610f)
\n$ COUNT=1; while :;do wget https://github.com/nextcloud/documentserver_community/releases/download/v0.1.6/documentserver_community.tar.gz && break; c=$(( $c + 1 )) ;sleep 10; done;echo $COUNT\n$ sudo tar xvf ./documentserver_community.tar.gz -C /var/snap/nextcloud/current/nextcloud/extra-apps/\n$ sudo chown -R root.root /var/snap/nextcloud/current/nextcloud/extra-apps/documentserver_community\n$ sudo /snap/bin/nextcloud.occ app:enable documentserver_community\nCollabora\u306fAppImage\u3092\u4f7f\u3063\u3066\u3044\u305f\u306e\u3067\u30d5\u30a1\u30a4\u30eb\u6570\u306f\u5c11\u306a\u304b\u3063\u305f\u3067\u3059\u304c\u3053\u3061\u3089\u306f\u666e\u901a\u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5c55\u958b\u3055\u308c\u308b\u3088\u3046\u3067\u305f\u304f\u3055\u3093\u3042\u308a\u307e\u3059\uff0e
\n$ sudo find /var/snap/nextcloud/current/nextcloud/extra-apps/documentserver_community | wc -l\n12935\n\u7d9a\u3044\u3066OnlyOffice\u30a2\u30d7\u30ea\u3082\u5c0e\u5165\u3057\u307e\u3059\uff0e
\n\u3053\u308c\u306fOnlyOffice Server\u306b\u7e4b\u3044\u3067\u3084\u308a\u53d6\u308a\u3059\u308b\u3082\u306e\u3067\u3059\uff0eNextcloud \u306e\u30a2\u30d7\u30ea\u753b\u9762\u82e5\u3057\u304f\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u5c0e\u5165\u3057\u307e\u3059\uff0e
\n$ sudo /snap/bin/nextcloud.occ app:install onlyoffice\n\u3053\u308c\u3067Nextcloud\u306b\u623b\u3063\u3066\u5bfe\u5fdc\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u958b\u3044\u305f\u308a\u65b0\u898f\u4f5c\u6210\u3059\u308b\u3068OnlyOffice\u304c\u8d77\u52d5\u3057\u3066\u7de8\u96c6\u3067\u304d\u308b\u306f\u305a\u3067\u3059 :)
\n
\n
\u30a2\u30d7\u30ea\u304c\u5c0e\u5165\u3055\u308c\u3066\u3044\u308b\u3051\u3069\u3046\u307e\u304f\u884c\u304b\u306a\u3044\u5834\u5408\u306fOnlyOffice\u30a2\u30d7\u30ea\u3092\u5c0e\u5165\u3057\u76f4\u3059\u3068\u3046\u307e\u304f\u884c\u304f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\uff0e(OnlyOffice\u30a2\u30d7\u30ea\u304cServer\u3088\u308a\u5148\u306b\u5c0e\u5165\u3055\u308c\u308b\u3068\u3046\u307e\u304f\u884c\u304b\u306a\u3044)
\n$ sudo /snap/bin/nextcloud.occ app:remove onlyoffice\n$ sudo /snap/bin/nextcloud.occ app:install onlyoffice\n\u3068\u308a\u3042\u3048\u305a\u3053\u308c\u3067\u304a\u8a66\u3057\u306f\u51fa\u6765\u308b\u611f\u3058\u3067\u3059\uff0e\u5b9f\u969b\u306b\u904b\u7528\u3059\u308b\u306b\u306fhttps\u5316\u3057\u305f\u308a\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u5b9a\u671f\u7684\u306b\u53d6\u308b\u3088\u3046\u306b\u3057\u305f\u308a\u306a\u3069\u8a2d\u5b9a\u3057\u305f\u307b\u3046\u304c\u3044\u3044\u3067\u3059\u304c\u30d1\u30b9\u3084\u30b3\u30de\u30f3\u30c9\u4ee5\u5916\u306f\u901a\u5e38\u306eNextcloud\u3068\u540c\u3058\u3060\u3068\u601d\u3044\u307e\u3059\uff0e
\n\u4e3b\u306a\u30d1\u30b9\u3084\u30b3\u30de\u30f3\u30c9\u306f\u3053\u3046\u306a\u3063\u3066\u3044\u307e\u3059\uff0e
db\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u60c5\u5831\u306f\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u8f09\u3063\u3066\u3044\u307e\u3059\uff0e
\n$ sudo grep db /var/snap/nextcloud/current/nextcloud/config/config.php\n 'dbtype' => 'mysql',\n 'dbname' => 'nextcloud',\n 'dbhost' => 'localhost:/tmp/sockets/mysql.sock',\n 'dbport' => '',\n 'dbtableprefix' => 'oc_',\n 'dbuser' => 'nextcloud',\n 'dbpassword' => 'wdwYevflNhziZDUxxG2OXJs6el4zThtkmX20Bijih7Zh_4XU58OkZs3TAt7TCJjt',\n\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u3066\u30c7\u30fc\u30e2\u30f3\u3092\u518d\u8d77\u52d5\u3057\u305f\u3044\u5834\u5408\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u518d\u8d77\u52d5\u3067\u304d\u307e\u3059\uff0e
\n$ sudo snap restart nextcloud\n\u3066\u3053\u3068\u3067snap\u7248Nextcloud\u306f\u304a\u8a66\u3057\u306b\u306f\u304a\u3059\u3059\u3081\u3067\u3059\uff0e
\nOnlyOffice\u306f\u4eca\u306e\u3068\u3053\u308damd64\u74b0\u5883\u3057\u304b\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u304cRaspberry Pi \u306a\u3069\u3067\u3082\u52d5\u304f\u3088\u3046\u306b\u3057\u305f\u3044\u3068\u8a00\u3063\u3066\u3044\u308b\u306e\u3067\u3053\u308c\u3082\u671f\u5f85\u3067\u3059\uff0e
Nextcloud 19 \u3060\u3068\u5148\u65e5\u7d39\u4ecb\u3057\u305fCollabora\u3082\u540c\u69d8\u306bWeb\u304b\u3089\u5c0e\u5165\u3067\u304d\u308b\u306e\u3067\u304a\u3059\u3059\u3081\u3067\u3059\uff0e
\n\n\n\n\n\n\u8a72\u5f53\u3057\u305d\u3046\u306aBug
\n
\u30aa\u30f3\u30e9\u30a4\u30f3\u3067\u30d7\u30ec\u30bc\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u3059\u308b\u3068\u304d\u4e00\u822c\u7684\u306b\u306f\u753b\u9762\u5171\u6709\u3059\u308b\u3068\u601d\u3044\u307e\u3059\u304c\uff0c\u30b9\u30e9\u30a4\u30c9\u30d5\u30a1\u30a4\u30eb\u3092\u524d\u3082\u3063\u3066\u914d\u5e03\u3057\u3066\u304a\u3044\u3066\u304a\u4e92\u3044\u305d\u308c\u3092\u898b\u306a\u304c\u3089\u30d7\u30ec\u30bc\u30f3\u3082\u51fa\u6765\u307e\u3059\uff0e
\n\u305d\u306e\u9593\u304f\u3089\u3044\u306e\u6a5f\u80fd\u3067\u30b9\u30e9\u30a4\u30c9\u306e\u30da\u30fc\u30b8\u3081\u304f\u308a\u3092\u30d7\u30ec\u30bc\u30f3\u30bf\u30fc\u3068\u8996\u8074\u8005\u3067\u540c\u671f\u3059\u308b\u30b5\u30fc\u30d3\u30b9\u304c\u6b32\u3057\u3044\u306a\u3068\u601d\u3063\u3066\u3044\u307e\u3059\uff0e
\n\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b5\u30fc\u30d3\u30b9\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u304c\u81ea\u5206\u304c\u4f55\u5ea6\u304b\u8a66\u3057\u305f\u9650\u308a\u3067\u306f\u300c\u30ed\u30b0\u30a4\u30f3\uff0f\u65b0\u898f\u767b\u9332\u300d\u304c\u51fa\u6765\u305a\u4f7f\u3048\u3066\u3044\u307e\u305b\u3093\uff0e
LibreOffice Impress \u306eHTML \u66f8\u304d\u51fa\u3057\u6a5f\u80fd\u306bWebCast \u6a5f\u80fd\u3092\u898b\u3064\u3051\u305f\u306e\u3067\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e
\n\u3057\u304b\u3057\u7d39\u4ecb\u3057\u3066\u304a\u3044\u3066\u306a\u3093\u3067\u3059\u304c\u3053\u306e\u6a5f\u80fd\u306f\u9577\u3089\u304f\u30e1\u30f3\u30c6\u3055\u308c\u3066\u3044\u306a\u3044\u3088\u3046\u306a\u306e\u3067\u3042\u307e\u308a\u4f7f\u308f\u306a\u3044\u307b\u3046\u304c\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\uff0e(Perl cgi\u74b0\u5883\u3082\u7528\u610f\u3057\u306b\u304f\u3044\u3060\u308d\u3046\u3057)
\u30d8\u30eb\u30d7\u3082\u3056\u3063\u304f\u308a\u3068\u3057\u305f\u8aac\u660e\u3057\u304b\u3042\u308a\u307e\u305b\u3093\uff0e
\nHTML \u5f62\u5f0f\u3067\u4fdd\u5b58\u3059\u308b\u30d7\u30ec\u30bc\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u304d\u307e\u3059\u3002
\n\u30d5\u30a1\u30a4\u30eb \u2192 \u30a8\u30af\u30b9\u30dd\u30fc\u30c8 \u3092\u884c\u306a\u3044\u307e\u3059\u3002
\n\u30d5\u30a1\u30a4\u30eb\u66f8\u5f0f \u3092 HTML \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8 (LibreOffice Impress) (.html;.htm) \u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002
\n\u30d5\u30a1\u30a4\u30eb\u540d \u3092\u5165\u529b\u3057\u3066\u3001\u30a8\u30af\u30b9\u30dd\u30fc\u30c8 \u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002
\nHTML \u30a8\u30af\u30b9\u30dd\u30fc\u30c8 \u30a6\u30a3\u30b6\u30fc\u30c9\u306e\u6307\u793a\u306b\u5f93\u3044\u307e\u3059\u3002
\n\u3066\u3053\u3068\u3067\u30e1\u30e2\u304c\u3066\u3089\uff0e
\nLibreOffice Impress \u3067\u66f8\u304d\u51fa\u3057\u305f\u3044\u30b9\u30e9\u30a4\u30c9\u3092\u958b\u304d\u307e\u3059\uff0e
\n\u300c\u30d5\u30a1\u30a4\u30eb\u300d\u2192\u300c\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u300d\u3067\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u30a6\u30a3\u30c9\u30a6\u304c\u958b\u304d\u307e\u3059\uff0e
\n\u66f8\u304d\u51fa\u3057\u5148\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea(\u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u66f8\u304d\u51fa\u3055\u308c\u308b\u306e\u3067\u65b0\u3057\u3044\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u7528\u610f\u3057\u305f\u307b\u3046\u304c\u826f\u3044)\u3092\u6307\u5b9a\u3057\uff0c\u4efb\u610f\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a\u3057\u307e\u3059\uff0e
\n\u300c\u30d5\u30a1\u30a4\u30eb\u5f62\u5f0f\u300d\u306b\u300cHTML \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8 (Impress) (.html;.htm)\u300d\u3092\u9078\u629e\u3057\u3066\u300c\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u307e\u3059\uff0e
\u300c\u30c7\u30b6\u30a4\u30f3\u306e\u5272\u308a\u5f53\u3066\u300d\u306f\u521d\u56de\u306f\u300c\u65b0\u898f\u30c7\u30b6\u30a4\u30f3\u300d\u3057\u304b\u9078\u3079\u307e\u305b\u3093\uff0e\u300c\u6b21\u3078\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u307e\u3059\uff0e
\n\u300c\u767a\u8868\u65b9\u6cd5\u300d\u306b\u300cWebCast\u300d\u3092\u9078\u629e\u3057\uff0c\u53f3\u5074\u306e\u300cWebCast\u300d\u3067\u306f\u300cPerl\u300d\u3092\u9078\u629e\u3057\u307e\u3059(ASP\u306f\u672a\u691c\u8a3c)\uff0e\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u306f\u898f\u5b9a\u5024\u306e\u307e\u307e\u3067\u69cb\u3044\u307e\u305b\u3093\uff0e\u300c\u6b21\u3078\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u307e\u3059\uff0e
\n\u300c\u540d\u524d\u3092\u4ed8\u3051\u3066\u753b\u50cf\u3092\u4fdd\u5b58\u300d(\u539f\u6587\u306f Save Image As \u306a\u306e\u3067\u8a33\u304c\u9593\u9055\u3063\u3066\u3044\u305d\u3046)\u3067\u753b\u50cf\u5f62\u5f0f\u3092\uff0c\u300c\u30e2\u30cb\u30bf\u30fc\u306e\u89e3\u50cf\u5ea6\u300d\u3067\u30b9\u30e9\u30a4\u30c9\u306e\u89e3\u50cf\u5ea6\u3092\u6307\u5b9a\u3057\u307e\u3059\uff0e\u300c\u4f5c\u6210\u300d\u30dc\u30bf\u30f3\u3067\u66f8\u304d\u51fa\u3055\u308c\u307e\u3059\uff0e
\n\u66f8\u304d\u51fa\u3057\u6642\u306bHTML\u30c7\u30b6\u30a4\u30f3\u306e\u4fdd\u5b58\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u304c\u30ad\u30e3\u30f3\u30bb\u30eb\u3082\u51fa\u6765\u307e\u3059\uff0e
\u66f8\u304d\u51fa\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u898b\u308b\u3068\uff0c\u30b9\u30e9\u30a4\u30c9\u306e\u753b\u50cf\u3068\u3044\u304f\u3064\u304b\u306e.html\u30d5\u30a1\u30a4\u30eb\u3084.pl\u306a\u3069\u3082\u51fa\u529b\u3055\u308c\u3066\u3044\u307e\u3059\uff0e\u3053\u308c\u3089\u306e\u30d5\u30a1\u30a4\u30eb\u3092cgi\u306e\u52d5\u304fsite\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\uff0e
\n\u4eca\u306fcgi\u306e\u52d5\u304f\u5834\u6240\u304c\u3068\u3066\u3082\u9650\u3089\u308c\u3066\u3044\u308b\u306e\u3067\u3053\u308c\u304c\u4e00\u756a\u96e3\u3057\u3044\u304b\u3082\u3057\u308c\u306a\u3044\u3067\u3059\u306d\uff0e
$ ls -w 80 ./slide_dir\ncommon.pl img15.png img24.png img33.png img42.png img51.png img7.png\ncurrpic.txt img16.png img25.png img34.png img43.png img52.png img8.png\neditpic.pl img17.png img26.png img35.png img44.png img53.png img9.png\nimg0.png img18.png img27.png img36.png img45.png img54.png index.html\nimg1.png img19.png img28.png img37.png img46.png img55.png picture.txt\nimg10.png img2.png img29.png img38.png img47.png img56.png poll.pl\nimg11.png img20.png img3.png img39.png img48.png img57.png savepic.pl\nimg12.png img21.png img30.png img4.png img49.png img58.png show.pl\nimg13.png img22.png img31.png img40.png img5.png img59.png slide.html\nimg14.png img23.png img32.png img41.png img50.png img6.png webcast.pl\n\u4eca\u56de\u306f\u81ea\u5b85\u306e\u9069\u5f53\u306aApache httpd\u306e\u52d5\u3044\u3066\u3044\u308b\u74b0\u5883\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3057\u305f\uff0e
\n$ scp -r ./slide_dir user@host:~/public_html/cgi-bin/\n\u3053\u306e\u74b0\u5883\u306f .cgi \u3057\u304bcgi\u3068\u3057\u3066\u52d5\u304b\u306a\u3044\u306e\u3067\uff0c.htaccess \u3092\u4f5c\u6210\u3057\u3066 .pl \u3082cgi\u3068\u3057\u3066\u52d5\u304f\u3088\u3046\u306b\u3057\u307e\u3057\u305f\uff0e
$ echo 'AddHandler cgi-script .pl' > ./.htaccess\n$ cat ./.htaccess\nAddHandler cgi-script .pl\n\u6b21\u306b *.pl \u30d5\u30a1\u30a4\u30eb\u306b\u5b9f\u884c\u6a29\u3092\u4ed8\u4e0e\u3057\u307e\u3059\uff0ehttpd\u306e\u30e6\u30fc\u30b6\u304c\u5b9f\u884c\u3067\u304d\u308b\u6a29\u9650\u306b\u3057\u307e\u3059\uff0e
$ chmod o+x ./*.pl\n\u6b21\u306b\u30da\u30fc\u30b8\u7ba1\u7406\u30d5\u30a1\u30a4\u30eb\u306e currpic.txt \u306b\u8aad\u307f\u66f8\u304d\u6a29\u3092\u4ed8\u4e0e\u3057\u307e\u3059\uff0ehttpd\u306e\u30e6\u30fc\u30b6\u304c\u8aad\u307f\u66f8\u304d\u3067\u304d\u308b\u6a29\u9650\u306b\u3057\u307e\u3059\uff0e
$ chmod o+rw ./currpic.txt\n\u3053\u308c\u306f\u6050\u3089\u304f\u30b5\u30fc\u30d0\u306e\u74b0\u5883\u4f9d\u5b58\u3067\u3084\u3089\u306a\u304f\u3066\u3082\u52d5\u304f\u74b0\u5883\u306e\u307b\u3046\u304c\u591a\u3044\u3068\u601d\u3046\u306e\u3067\u4e00\u65e6\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u52d5\u304b\u306a\u304b\u3063\u305f\u3089\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\uff0eeditpic.pl, editpic.pl, savepic.pl, show.pl \u30d5\u30a1\u30a4\u30eb\u306e require \"common.pl\"; \u884c\u3092 require \"./common.pl\"; \u306b\u66f8\u304d\u63db\u3048\u307e\u3059\uff0e
- require \"common.pl\";\n+ require \"./common.pl\";\n\u3053\u306e\u72b6\u614b\u3067\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u3067\u8996\u8074\u8005\u306f index.html \u3092\uff0c\u30d7\u30ec\u30bc\u30f3\u30bf\u30fc\u306f slide.html (html\u66f8\u304d\u51fa\u3057\u6642\u306e\u30d5\u30a1\u30a4\u30eb\u540d)\u3092\u958b\u3051\u3070OK\u306a\u306f\u305a\u3067\u3059\uff0e
\u4ee5\u4e0b\u4eca\u56de\u8a66\u3057\u305f\u30b5\u30f3\u30d7\u30eb\u3067\u3059\uff0e\u591a\u5206\u3059\u3050\u306b\u6d88\u3057\u307e\u3059\uff0e
\n\u4ed5\u7d44\u307f\u3068\u3057\u3066\u306f\u30d7\u30ec\u30bc\u30f3\u30bf\u30fc\u304c\u30da\u30fc\u30b8\u3081\u304f\u308a\u64cd\u4f5c\u3092\u3059\u308b\u3068\uff0c\u30da\u30fc\u30b8\u756a\u53f7\u306e\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b currpic.txt \u30d5\u30a1\u30a4\u30eb\u306b\u30da\u30fc\u30b8\u756a\u53f7\u3092\u683c\u7d0d\uff0e
\n\u8996\u8074\u8005\u5074\u306e\u30d6\u30e9\u30a6\u30b6\u3067\u306f1\u79d2\u6bce\u306b cgi \u3092\u547c\u3073\u51fa\u3057\u3066\u3044\u3066\uff0c\u547c\u3073\u51fa\u3055\u308c\u305f cgi \u5074\u3067\u306f\u73fe\u5728\u306e\u30da\u30fc\u30b8\u756a\u53f7\u304c\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b currpic.txt \u306e\u5185\u5bb9\u304b\u3089\u8a72\u5f53\u306e\u30da\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\uff0e\u3068\u3044\u3063\u305f\u3053\u3068\u3092\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\uff0e
\n\u305d\u306e\u305f\u3081\u30d7\u30ec\u30bc\u30f3\u30bf\u30fc\u304c\u64cd\u4f5c\u3057\u3066\u304b\u3089\u5b9f\u969b\u306b\u8996\u8074\u8005\u306e\u30da\u30fc\u30b8\u304c\u66f4\u65b0\u3055\u308c\u308b\u307e\u3067\u6570\u79d2\u639b\u304b\u308b\u611f\u3058\u3067\u3059\uff0e
\u4e2d\u3092\u898b\u308b\u3068\u89e3\u308a\u307e\u3059\u304c\u30e9\u30a4\u30d6\u30e9\u30ea\u3082\u540c\u68b1\u306e\u5c0f\u3055\u306a\u72ec\u81ea\u30e9\u30a4\u30d6\u30e9\u30ea1\u3064\u3060\u3051\u3067\u884c\u6570\u3082\u5c11\u306a\u304f\u3068\u3066\u3082\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u3067\u3059\uff0e\u3053\u308c\u306f\u8ab0\u3082\u4f7f\u308f\u305a\u57cb\u3082\u308c\u3066\u4f55\u5e74\u3082\u653e\u7f6e\u3055\u308c\u3066\u3044\u305d\u3046\u3067\u3059\uff0e
\n\u51fa\u6765\u308b\u3053\u3068\u306a\u3089\u6700\u8fd1\u306e\u30ae\u30b8\u30e5\u3068\u3067\u66f8\u304d\u76f4\u3055\u308c\u3066\u307b\u3057\u3044\u3051\u3069\u3053\u308c\u307e\u3067\u306e\u653e\u7f6e\u3063\u3077\u308a\u304b\u3089\u96e3\u3057\u305d\u3046\u3067\u3059\u306d\uff0e
\u3068\u308a\u3042\u3048\u305a\u306fWeb\u306b\u516c\u958b\u3057\u3066\u53e3\u982d\u3067\u30da\u30fc\u30b8\u3081\u304f\u308a\u3092\u6307\u793a\u3059\u308b\u306e\u304c\u73fe\u5b9f\u7684\u305d\u3046\u3067\u3059\uff0e
\n(\u305d\u308c\u304b\u666e\u901a\u306b\u753b\u9762\u5171\u6709)
$ dpkg-query -W libreoffice\nlibreoffice 1:6.4.4-1\n$ lsb_release -dr\nDescription: Debian GNU/Linux bullseye/sid\nRelease: unstable\n$ uname -m\nx86_64\n
$ dpkg-query -W apache2 perl\napache2 2.4.41-4ubuntu3\nperl 5.30.0-9build1\n$ lsb_release -dr\nDescription: Ubuntu 20.04 LTS\nRelease: 20.04\n$ uname -m\nx86_64\n
\u6700\u8fd1Bluetooth \u30d8\u30c3\u30c9\u30bb\u30c3\u30c8\u3067 A2DP \u306b\u5207\u308a\u66ff\u3048\u304c\u51fa\u6765\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3057\u305f\uff0e\u30aa\u30fc\u30c7\u30a3\u30aa\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3092 A2DP \u306b\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u5909\u66f4\u306b\u5931\u6557\u3057\u307e\u3059\uff0e
\n\u6709\u7dda\u306e\u30d8\u30c3\u30c9\u30db\u30f3(\u30bb\u30ea\u30a2\u88fd100\u5186!)\u3067\u4f7f\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u982d\u306b\u5408\u308f\u306a\u304b\u3063\u305f\u308a\u4e0d\u81ea\u7531\u306a\u306e\u3067\u8abf\u3079\u308b\u3053\u3068\u306b\uff0e
\n\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u898b\u3064\u3051\u307e\u3057\u305f\uff0e
\u3069\u3046\u3082 PulseAudio \u306e\u81ea\u52d5\u5207\u308a\u66ff\u3048\u304c\u3046\u307e\u304f\u884c\u3063\u3066\u3044\u306a\u3044\u3088\u3046\u3067\u3053\u308c\u3092\u7121\u52b9\u306b\u3059\u308b\u3053\u3068\u3067\u76f4\u308a\u307e\u3057\u305f\uff0e
\n\u5177\u4f53\u7684\u306a\u8a2d\u5b9a\u306f\uff0c /etc/pulse/default.pa \u30d5\u30a1\u30a4\u30eb\u306e load-module module-bluetooth-policy \u306b auto_switch=false \u3068\u3044\u3046\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u3067\u30c7\u30fc\u30e2\u30f3\u306e\u518d\u8d77\u52d5\u3067\u3059\uff0e
/etc/pulse/default.pa \u3092\u4fee\u6b63\uff0e$ sudo git -C /etc diff /etc/pulse/default.pa\ndiff --git a/pulse/default.pa b/pulse/default.pa\nindex f670be0..494c1ce 100644\n--- a/pulse/default.pa\n+++ b/pulse/default.pa\n@@ -64,7 +64,7 @@ load-module module-jackdbus-detect channels=2\n\n ### Automatically load driver modules for Bluetooth hardware\n .ifexists module-bluetooth-policy.so\n-load-module module-bluetooth-policy\n+load-module module-bluetooth-policy auto_switch=false\n .endif\n\n .ifexists module-bluetooth-discover.so\n$ pulseaudio -k\n$ sudo service bluetooth restart\n\u3053\u306e\u5f8c\u30d8\u30c3\u30c9\u30bb\u30c3\u30c8\u3092\u63a5\u7d9a\u3057\u76f4\u3059\u3053\u3068\u3067A2DP\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff0e
\n\u4eca\u4f7f\u3063\u3066\u3044\u308b\u30d8\u30c3\u30c9\u30bb\u30c3\u30c8\u306f Aukey EP-B26 \u3067\u9577\u6642\u9593\u4f7f\u3048\u3066\u3044\u305f\u306e\u304c\u826f\u304b\u3063\u305f\u306e\u3067\u3059\u304c\uff0c\u30d0\u30c3\u30c6\u30ea\u30fc\u304c\u3078\u305f\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u307e\u3059\uff0e\u4eca\u306fUSB\u30b1\u30fc\u30d6\u30eb\u3067\u7d66\u96fb\u3057\u306a\u304c\u3089\u4f7f\u3063\u3066\u3044\u307e\u3059\uff0e\u6709\u7dda\u306a\u3093\u3060\u3051\u3069\u7d30\u3044\u30b1\u30fc\u30d6\u30eb(100\u5186\u30b7\u30e7\u30c3\u30d7\u306e\u5dfb\u53d6\u308aUSB microB\u306e\u4e2d\u306e\u7dda\u3060\u3051\u306b\u3057\u305f\u3082\u306e)\u3067\u5c0f\u3055\u306a\u30e2\u30d0\u30a4\u30eb\u30d0\u30c3\u30c6\u30ea\u30fc\u3092\u30dd\u30b1\u30c3\u30c8\u306b\u5165\u308c\u3066\u4f7f\u3046\u3068\u7d50\u69cb\u81ea\u7531\u5ea6\u9ad8\u3044\u611f\u3058\u3067\u3059\uff0e
\n
\u3067\u3082\u51fa\u6765\u308c\u3070\u65b0\u8abf\u3057\u305f\u3044\u3068\u3053\u308d\uff0e\u540c\u3058\u3082\u306e\u306f\u3082\u3046\u58f2\u3063\u3066\u306a\u3044\u3088\u3046\u306a\u306e\u3067\u3053\u306e\u3078\u3093\u3068\u304b\u304b\u306a?
\n
AfterShokz \u3082\u6c17\u306b\u306a\u3063\u3066\u308b\u3051\u3069\u3061\u3087\u3063\u3068\u304a\u9ad8\u3044\u3067\u3059\u306d\uff0e
\n
$ dpkg-query -W pulseaudio* bluez* blueman\nblueman 2.1.2-1\nbluez 5.53-0ubuntu2\nbluez-alsa\nbluez-audio\nbluez-cups 5.53-0ubuntu2\nbluez-gnome\nbluez-input\nbluez-network\nbluez-obexd 5.53-0ubuntu2\nbluez-serial\nbluez-utils\npulseaudio 1:13.99.1-1ubuntu1\npulseaudio-module-bluetooth 1:13.99.1-1ubuntu1\npulseaudio-utils 1:13.99.1-1ubuntu1\n$ lsb_release -dr\nDescription: Ubuntu Focal Fossa (development branch)\nRelease: 20.04\n$ uname -m\nx86_64\n$ lsusb -d 0a5c:217f\nBus 001 Device 016: ID 0a5c:217f Broadcom Corp. BCM2045B (BDC-2.1)\n$ lspci | grep -i audio\n00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)\n\n\n\n\n
Instagram \u306e\u52d5\u753b\u304c\u308f\u304b\u308a\u3084\u3059\u3044\u3067\u3059\u306d\uff0e
\nRaspberry Pi\u516c\u5f0f\u306eOS\u30a4\u30e1\u30fc\u30b8\u66f8\u304d\u8fbc\u307f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3059\uff0e\u5c11\u3057\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e
\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8\u306b\u306fWindows/macOS\u306e\u4ed6 Ubuntu amd64 \u5411\u3051\u306e.deb\u3078\u306e\u30ea\u30f3\u30af\u3057\u304b\u7121\u3044\u306e\u3067\u3059\u304c\uff0c https://downloads.raspberrypi.org/imager/ \u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068 AppImage \u3068 .sig \u304c\u3042\u308a\u307e\u3057\u305f\uff0e
\n\u3069\u3061\u3089\u3082 amd64 \u306a\u306e\u3067\u4ed6\u306eArchtecture\u3058\u3083\u4f7f\u3048\u306a\u3044\u3088\u3046\u3067\u3059\uff0eRaspbian\u306earmhf\u7248\u304f\u3089\u3044\u306f\u6b32\u3057\u3044\u3067\u3059\u306d\uff0e
\u3068\u308a\u3042\u3048\u305a Ubuntu 20.04 amd64 \u3067\u306f .deb \u3092\uff0cDebian sid amd64 \u3067\u306f AppImage \u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e
\n\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u7f72\u540d\u691c\u8a3c\u3057\u3066 dpkg -i \u3067\u5c0e\u5165\u3057\u305f\u306e\u3067\u3059\u304cpkg\u304c\u8db3\u308a\u306a\u304f\u3066\u30a8\u30e9\u30fc\u304c\u51fa\u529b\u3055\u308c\u307e\u3057\u305f\uff0e\u8db3\u308a\u306a\u3044\u30d1\u30c3\u30b1\u30fc\u30b8\u306f apt install -f \u3067\u5c0e\u5165\u3057\u307e\u3057\u305f\uff0e\u8db3\u308a\u306a\u304b\u3063\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u306f qml-module-qt-labs-settings \u3068 libdleyna-core-1.0-5 \u3067\u3057\u305f\uff0e(\u74b0\u5883\u306b\u3088\u308a\u5909\u308f\u308b\u306f\u305a)
$ wget https://downloads.raspberrypi.org/imager/imager_amd64.deb https://downloads.raspberrypi.org/imager/imager_amd64.deb.sig\n$ gpg --verify ./imager_amd64.deb.sig\ngpg: assuming signed data in './imager_amd64.deb'\ngpg: Signature made Fri Mar 6 20:49:08 2020 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.\nPrimary key fingerprint: 54C3 DD61 0D9D 1B4A F82A 3775 8738 CD6B 956F 460C\n$ sudo dpkg -i ./imager_amd64.deb\n$ sudo apt install -f\n$ sudo rpi-imager\n\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u7f72\u540d\u691c\u8a3c\u3057\u3066\u5b9f\u884c\u6a29\u3092\u4ed8\u3051\u308b\u3060\u3051\u3067\u3059\uff0e
\n$ wget https://downloads.raspberrypi.org/imager/imager_amd64.AppImage https://downloads.raspberrypi.org/imager/imager_amd64.AppImage.sig\n$ gpg --verify ./imager_amd64.AppImage.sig\ngpg: assuming signed data in './imager_amd64.AppImage'\ngpg: Signature made Fri 06 Mar 2020 10:34:08 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.\nPrimary key fingerprint: 54C3 DD61 0D9D 1B4A F82A 3775 8738 CD6B 956F 460C\n$ chmod +x ./imager_amd64.AppImage\n$ sudo ./imager_amd64.AppImage\n$ ar x ./imager_amd64.deb\n$ tar xf data.tar.xz\n$ sudo ./usr/bin/rpi-imager\nroot\u6a29\u304c\u5fc5\u8981\u3067\u3059\uff0e\u4e00\u822c\u30e6\u30fc\u30b6\u3067\u3082\u8d77\u52d5\u3067\u304d\u308b\u306e\u3067\u3059\u304c\uff0c\u66f8\u304d\u8fbc\u307f\u6642\u306bSD card\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3057\u307e\u3044\u307e\u3059\uff0e
\n\u73fe\u5728\u30b5\u30fc\u30d0\u5074\u3067SSL\u306e\u554f\u984c\u304c\u3042\u308a\u5927\u62b5\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\uff0e9\u56de\u306b1\u56de\u306e\u5272\u5408\u3067\u6210\u529f\u3059\u308b\u3089\u3057\u3044\u3067\u3059\u304c\uff0c\u79c1\u306f30\u56de\u307b\u3069\u8a66\u3057\u3066\u3084\u3063\u3068\u3046\u307e\u304f\u884c\u304d\u307e\u3057\u305f\uff0e\u6570\u65e5\u5f85\u3066\u3070\u6cbb\u308b\u305d\u3046\u306a\u306e\u3067\u3057\u3070\u3089\u304f\u5f85\u3063\u3066\u304b\u3089\u8a66\u3059\u65b9\u304c\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\uff0e
\n\n\n\n\nCaleb says:5th Mar 2020 at 3:32 pm
\n
\nCurrently giving me a \u201cError downloading OS list from Internet\u201d when running it on a raspberry pi 4b\n\nAvatar Gordon Hollingworth says:5th Mar 2020 at 5:05 pm
\n
\nYes, that\u2019s because downloads.raspberrypi.org needs its SSL stuff updated. It should happen in the next few days!\n\nOtherwise keep loading it, there\u2019s a 1 in 9 chance you\u2019ll get through to the server that does work!
\n\n\nGordon
\n
\u3061\u306a\u307f\u306bOS list\u304c\u53d6\u5f97\u3067\u304d\u306a\u304f\u3066\u3082\u81ea\u5206\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30a4\u30e1\u30fc\u30b8\u306e\u66f8\u304d\u8fbc\u307f\u3084SD card\u306e\u6d88\u53bb\u306f\u51fa\u6765\u307e\u3059\uff0e
\n\u8d77\u52d5\u3059\u308b\u3068\u3053\u3093\u306a\u753b\u9762\u3067\u3059\uff0e\u300cCHOOSE OS\u300d\u3067OS\u30a4\u30e1\u30fc\u30b8\u306e\u9078\u629e(Raspbian\u5404\u7a2e\u3068LibreELEC)\uff0c\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\uff0c\u6d88\u53bb\uff0c\u30ab\u30b9\u30bf\u30e0\u304c\u9078\u629e\u3067\u304d\u307e\u3059\uff0e
\n\u300cCHOOSE SD CARD\u300d\u3067SD card\u3084USB\u30e1\u30e2\u30ea\u306a\u3069\u304c\u9078\u629e\u3067\u304d\u307e\u3059\uff0e
\n
\u3053\u306e\u753b\u9762\u3092\u8868\u793a\u3057\u3066\u304b\u3089SD card\u3084USB\u30e1\u30e2\u30ea\u7b49\u3092\u633f\u5165\u3059\u308b\u3068\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306b\u8868\u793a\u3055\u308b\u306e\u3067\u308f\u304b\u308a\u3084\u3059\u3044\u3067\u3059\uff0e\u5185\u8535disk\u306f\u51fa\u3066\u304d\u307e\u305b\u3093\u304c\uff0c\u30de\u30a6\u30f3\u30c8\u4e2d\u306eHDD\u306a\u3069\u306f\u51fa\u3066\u304f\u308b\u306e\u3067\u9593\u9055\u3048\u306a\u3044\u3088\u3046\u306b\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\uff0e
\n\u9078\u629e\u3067\u304d\u308b\u30b9\u30c8\u30ec\u30fc\u30b8\u306f1\u5ea6\u306b1\u3064\u3060\u3051\u306e\u3088\u3046\u3067\u3059\uff0e\u8907\u6570\u306e\u30e1\u30c7\u30a3\u30a2\u306b\u66f8\u304d\u8fbc\u3080\u5834\u5408\u306f\u8907\u6570\u56de\u306e\u5b9f\u884c\u304c\u5fc5\u8981\u3067\u3059\uff0e
\u300cWRITE\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3053\u3068\u3067\u66f8\u304d\u8fbc\u307f\u304c\u958b\u59cb\u3055\u308c\u307e\u3059\uff0eSecureErase\u3092\u8a66\u307f\u3066\u30a4\u30e1\u30fc\u30b8\u66f8\u304d\u8fbc\u307f\uff0c\u30d9\u30ea\u30d5\u30a1\u30a4\u3092\u884c\u3044\u307e\u3059\uff0e\u7d42\u308f\u308b\u307e\u3067\u3057\u3070\u3089\u304f\u5f85\u3061\u307e\u3057\u3087\u3046\uff0e
\n
\n
\n
deb\u7248\u306e\u65b9\u306f ~root/.cache/Raspberry Pi/Imager/lastdownload.cache \u3068\u3057\u3066 \u6700\u5f8c\u306b\u5229\u7528\u3057\u305f\u3082\u306e\u3060\u3051 \u304c\u6b8b\u308b\u3088\u3046\u3067\u3059\uff0e\u306a\u306e\u3067\u540c\u3058\u30a4\u30e1\u30fc\u30b8\u3067\u3042\u308c\u30702\u56de\u76ee\u306f\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u305b\u305a\u306b\u6e08\u307f\u307e\u3059\uff0e
\n\u5225\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u5229\u7528\u3059\u308b\u3068\u4e0a\u66f8\u304d\u3055\u308c\u3066\u305d\u306e\u30a4\u30e1\u30fc\u30b8\u306b\u306a\u308a\u307e\u3059\uff0e
AppImage \u306f /tmp/runtime-root \u4ee5\u4e0b\u306e\u3088\u3046\u306a\u306e\u3067\u518d\u8d77\u52d5\u3057\u305f\u3089\u6d88\u3048\u3066\u3057\u307e\u3044\u307e\u3059\u306d\uff0e
\n\n\n\nQStandardPaths: XDG_RUNTIME_DIR not set, defaulting to ‘/tmp/runtime-root’
\n
# sha256sum ./lastdownload.cache\n80cd38e0a576f75caaecf511970ae563c5b605896074809643aecfdc91344bcf ./lastdownload.cache\n# wget http://releases.libreelec.tv/LibreELEC-RPi.arm-9.2.0.img.gz\n# sha256sum LibreELEC-RPi.arm-9.2.0.img.gz\n80cd38e0a576f75caaecf511970ae563c5b605896074809643aecfdc91344bcf LibreELEC-RPi.arm-9.2.0.img.gz\n# diff -as lastdownload.cache LibreELEC-RPi.arm-9.2.0.img.gz\nFiles lastdownload.cache and LibreELEC-RPi.arm-9.2.0.img.gz are identical\n\u3066\u3053\u3068\u3067\u5fdc\u7528\u304c\u805e\u304b\u306a\u3044\u611f\u3058\u306a\u306e\u3067Raspberry Pi\u3092\u521d\u3081\u3066\u4f7f\u3046\u4eba\u5411\u3051\u304b\u306a\u30fc\u3068\u611f\u3058\u307e\u3057\u305f\uff0eLibreELEC\u306a\u3093\u304b\u3082\u540c\u3058\u3088\u3046\u306a\u30c4\u30fc\u30eb\u3092\u7528\u610f\u3057\u3066\u3044\u308b\u3057OS\u30a4\u30e1\u30fc\u30b8\u66f8\u304d\u8fbc\u307f\u3067\u8e93\u304f\u4eba\u304c\u591a\u3044\u306e\u3067\u30c4\u30fc\u30eb\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u306e\u304b\u3082\u3057\u308c\u306a\u3044\u3067\u3059\u306d\uff0e
\n\u66f4\u306b\u9762\u5012\u3060\u3068\u3044\u3046\u4eba\u306fOS\u30a4\u30e1\u30fc\u30b8\u5165\u308a\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u8cfc\u5165\u3059\u308b\u3068\u826f\u3055\u305d\u3046\u3067\u3059\uff0e
\u500b\u4eba\u7684\u306a\u304a\u3059\u3059\u3081\u306f\u73fe\u5728\u3060\u3068\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306f\u624b\u52d5\u3067\u66f8\u304d\u8fbc\u307f\u306b\u306f balenaEtcher \u304c\u3044\u3044\u304b\u306a\u3068\u601d\u3044\u307e\u3059\uff0e\u3053\u308c\u3082\u30de\u30eb\u30c1\u30d7\u30e9\u30c3\u30c8\u30db\u30fc\u30e0\u5bfe\u5fdc\u3067\u66f4\u306b\u540c\u6642\u306b\u8907\u6570\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u66f8\u304d\u8fbc\u307f\u3082\u53ef\u80fd\u3067\u3059\uff0e
$ dpkg-query -W rpi-imager qml-module-qt-labs-settings libdleyna-core-1.0-5\nlibdleyna-core-1.0-5:amd64\nqml-module-qt-labs-settings:amd64 5.12.5-5\nrpi-imager 1.0\n$ lsb_release -dr\nDescription: Ubuntu Focal Fossa (development branch)\nRelease: 20.04\n$ uname -m\nx86_64\n$ lsb_release -dr\nDescription: Debian GNU/Linux bullseye/sid\nRelease: unstable\n$ uname -m\nx86_64\n
samba\u306e\u901f\u5ea6\u3092\u6e2c\u308b\u306e\u306bsamba\u3092wget\u306e\u3088\u3046\u306b\u4f7f\u3048\u308b smbget \u3092\u4f7f\u304a\u3046\u3068\u3057\u305f\u306e\u3067\u3059\u304c\u4ee5\u524d\u4f7f\u3048\u3066\u3044\u305f\u6c17\u304c\u3059\u308b -p \u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u7121\u304f\u306a\u3063\u3066\u3044\u307e\u3059\uff0e
$ bash -c \"read -sp \\\"passwd: \\\" passwd; smbget smb://smbhost/share/data -U user -p $passwd -O > /dev/null\"\npasswd: -p: unknown option\n
usage\u3092\u898b\u308b\u3068\u78ba\u304b\u306b\u3042\u308a\u307e\u305b\u3093\uff0e
\n$ smbget --usage\nUsage: smbget [-?aneruRODqv] [-?|--help] [--usage] [-w|--workgroup=STRING] [-U|--user=STRING] [-a|--guest] [-n|--nonprompt] [-d|--debuglevel=INT] [-e|--encrypt]\n [-r|--resume] [-u|--update] [-R|--recursive] [-b|--blocksize=INT] [-o|--outputfile=STRING] [-O|--stdout] [-D|--dots] [-q|--quiet] [-v|--verbose]\n [-f|--rcfile=STRING]\n
-p\u3092\u7121\u304f\u305b\u3070\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u51fa\u3066\u304d\u307e\u3059\u304c\u6bce\u56de\u5165\u529b\u3059\u308b\u306e\u306f\u9762\u5012\u306a\u306e\u3067\u3069\u3046\u306b\u304b\u51fa\u6765\u306a\u3044\u304b\u306a\u3068man\u3092\u898b\u3066\u307f\u307e\u3059\uff0e
\n-U, --user=username[%password]\n Username (and password) to use\n
-U \u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u4e00\u7dd2\u306b\u66f8\u3051\u308b\u3088\u3046\u3067\u3059\uff0e\u30c7\u30df\u30ea\u30bf\u306f\u8981\u3089\u306a\u3044\u3088\u3046\uff0e
$ bash -c \"read -sp \\\"passwd: \\\" passwd; smbget smb://smbhost/share/data -U user$passwd -O > /dev/null\"\n
\u30c7\u30df\u30ea\u30bf\u306b : \u3092\u6307\u5b9a\u3057\u3066\u3082\u52d5\u304d\u307e\u3057\u305f\uff0e
$ bash -c \"read -sp \\\"passwd: \\\" passwd; smbget smb://smbhost/share/data -U user:$passwd -O > /dev/null\"\n
\u4ed6\u306b\u3082SMB URL\u306b\u3082\u66f8\u3051\u308b\u3088\u3046\u3067\u3059\uff0e
\nSMB URLS\n SMB URL's should be specified in the following format:\n\n smb://[[[domain;]user[:password@]]server[/share[/path[/file]]]]\n
\u305f\u3060\u3057\uff0c\u3053\u306e\u66f8\u304d\u65b9\u3060\u3068SMB URL\u304c\u74b0\u5883\u5909\u6570\u304c\u5c55\u958b\u3055\u308c\u3066STDOUT\u306b\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u96a0\u3057\u305f\u3044\u5834\u5408\u306f\u4f7f\u3048\u307e\u305b\u3093\uff0e
\n$ bash -c \"read -sp \\\"passwd: \\\" passwd; smbget smb://user:$passwd@smbhost/share/data -O > /dev/null\"\nsmb://user:password@smbhost/share/data(100.00%) at 130.69MB/s ETA: 00:00:0008\nDownloaded 2.17GB in 17 seconds\n
\u305d\u308c\u3092\u8a00\u3046\u3068 -U \u306e\u5834\u5408\u3082\u30d7\u30ed\u30bb\u30b9\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u8868\u793a\u3055\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u3042\u307e\u308a\u3088\u308d\u3057\u304f\u306a\u3044\u3067\u3059\u306d\uff0e\u3066\u3053\u3068\u3067\u3068\u308a\u3042\u3048\u305a\u3053\u3093\u306a\u611f\u3058\u306a\u3089\u3044\u3044\u304b\u306a?
$ bash -c \"read -sp \\\"passwd: \\\" passwd; echo $passwd | smbget smb://smbhost/share/data -U user -O > /dev/null\"\n
\u3053\u306e\u3068\u304d\u306e\u30d7\u30ed\u30bb\u30b9
\n$ ps -ef|grep smbget\nmk 12626 14620 0 22:38 pts/6 00:00:00 bash -c read -sp \"passwd: \" passwd; echo $passwd | smbget smb://smbhost/share/data -U user -O > /dev/null\nmk 13263 12626 49 22:39 pts/6 00:00:00 smbget smb://smbhost/share/data -U user -O\n
\u3042\u308c?\u7d50\u5c40\u6700\u521d\u306b\u623b\u3063\u3066\u2026\u2026\uff0e
\n\u901f\u5ea6\u3092\u6e2c\u308a\u305f\u3044\u3051\u30692\u56de\u76ee\u4ee5\u964d\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u30af\u30ea\u30a2\u3057\u3066\u6e2c\u308b\uff0e
\n\u4ee5\u4e0b\u306flocalhost\u3067\u8a66\u3057\u3066\u308b\u306e\u3067\u5dee\u304c\u51fa\u3066\u3044\u308b\u304c\uff0c\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u7d4c\u7531\u3060\u3068\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u304c\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u306b\u306a\u308a\u5dee\u304c\u51fa\u306a\u304b\u3063\u305f\uff0e\u3067\u3082\u4e00\u5fdc\u3084\u3063\u3066\u304a\u304f\uff0e
smb://smbhost/share/data(100.00%) at 28.12MB/s ETA: 00:00:00434\nDownloaded 2.17GB in 79 seconds\n
smb://smbhost/share/data(100.00%) at 130.69MB/s ETA: 00:00:0008\nDownloaded 2.17GB in 17 seconds\n
$ sudo sh -c \"sync; echo 3 > /proc/sys/vm/drop_caches\"\n
smb://smbhost/share/data(100.00%) at 27.43MB/s ETA: 00:00:0044\nDownloaded 2.17GB in 81 seconds\n
\u203b/proc/sys/vm/drop_caches \u306b\u3064\u3044\u3066\u306fKernel Documents\u306e admin-guide/sysctl/vm.rst.gz \u3042\u305f\u308a\u3092\u53c2\u7167\u306e\u3053\u3068\uff0e
\n\n\n\n\n
$ zgrep ^drop_caches -A42 /usr/share/doc/linux-doc-5.3/Documentation/admin-guide/sysctl/vm.rst.gz
$ dpkg-query -W samba smbclient bash\nbash 4.4.18-2ubuntu1.2\nsamba 2:4.7.6+dfsg~ubuntu-0ubuntu2.14\nsmbclient 2:4.7.6+dfsg~ubuntu-0ubuntu2.14\n$ lsb_release -dr\nDescription: Ubuntu 18.04.3 LTS\nRelease: 18.04\n$ uname -rvm\n4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 x86_64\n
$ dpkg-query -W samba smbclient bash\nbash 5.0-5\nsamba 2:4.11.1+dfsg-3\nsmbclient 2:4.11.1+dfsg-3\n$ lsb_release -dr\nDescription: Debian GNU/Linux bullseye/sid\nRelease: unstable\n$ uname -rvm\n5.3.0-3-amd64 #1 SMP Debian 5.3.15-1 (2019-12-07) x86_64\n
Nextcloud\u306e\u30c7\u30fc\u30bf\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u65e2\u5b9a\u5024\u3067\u306fNextcloud\u306e\u3059\u3050\u4e0b\u306e data \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u306a\u308a\u307e\u3059\uff0e\u3057\u304b\u3057\u3053\u3053\u306f\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u4ee5\u4e0b\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u8a2d\u5b9a\u3092\u30df\u30b9\u3059\u308b\u3068\u30c7\u30fc\u30bf\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u4e00\u822c\u516c\u958b\u3055\u308c\u3066\u3057\u307e\u3046\u53ef\u80fd\u6027\u304c\u3042\u308a\u5c11\u3057\u6016\u3044\u3067\u3059\uff0e
\n\u305d\u3053\u3067Nextcloud\u5c0e\u5165\u6642\u306b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e config/config.php \u3067 datadirectory \u306b\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u306e\u5916\u306bNextcloud\u30c7\u30fc\u30bf\u3092\u8a2d\u5b9a\u3057\u307e\u3059\uff0e
\u4eca\u56de\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u5185\u306e\u307e\u307e\u904b\u7528\u3055\u308c\u3066\u3044\u308bNextcloud\u304c\u3042\u3063\u305f\u306e\u3067\u305d\u308c\u3092\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u5916\u306b\u79fb\u52d5\u3057\u3066\u307f\u307e\u3057\u305f\uff0e
\n\u30c7\u30a3\u30b9\u30af\u3092\u5897\u8a2d\u3057\u3066\u305d\u3061\u3089\u306b\u30c7\u30fc\u30bf\u3092\u79fb\u3059\u306a\u3069\u306e\u969b\u306b\u3082\u540c\u3058\u624b\u9806\u3067\u30c7\u30fc\u30bf\u79fb\u884c\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\uff0e
\u4eca\u56de\u306e\u4f8b\u3067\u306e\u30d1\u30b9\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\uff0e
\n| \n Important \n | \n\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306e\u30c7\u30fc\u30bf\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u79fb\u52d5\u306f\u516c\u5f0f\u3067\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093\uff0e | \n
\u540c\u4e00\u306e\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u9593\u3067\u3042\u308c\u3070 mv command\u3067\u4e00\u77ac\u3067\u3059\u304c\uff0c\u4eca\u56de\u306f\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u8de8\u3044\u3067\u3044\u308b\u306e\u3067\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\uff0e
\n\u30c0\u30a6\u30f3\u30bf\u30a4\u30e0\u3092\u77ed\u304f\u3057\u305f\u3044\u306e\u3067Nextcloud\u52d5\u4f5c\u72b6\u614b\u3067\u4e00\u5ea6\u30c7\u30fc\u30bf\u3092\u30b3\u30d4\u30fc\u3057\u3066\u305d\u306e\u5f8crsync\u3067\u5dee\u5206\u306e\u307f\u30b3\u30d4\u30fc\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\uff0e
$ sudo cp -a /var/www/nextcloud/data /var/www/nextcloud/\n
1\u5ea6\u76ee\u306e\u30c7\u30fc\u30bf\u30b3\u30d4\u30fc\u306b\u6642\u9593\u304c\u304b\u304b\u3063\u305f\u306e\u3067rsync\u3067\u540c\u671f
\n$ sudo rsync -avc /var/www/nextcloud/data /var/www/nextcloud/\n
\u6b21\u306e\u624b\u9806\u3067\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u30e2\u30fc\u30c9\u306b\u79fb\u884c\u3059\u308b\u306e\u3067\u4e0d\u8981\u3060\u3068\u601d\u3046\u3051\u3069\u5ff5\u306e\u70ba\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u30b8\u30e7\u30d6\u3092crontab\u3067\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u306e\u3092\u505c\u6b62(\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8)\u3057\u3066\u304a\u304f\uff0e(Webcron\u306e\u5834\u5408\u3082\u6b62\u3081\u305f\u307b\u3046\u304c\u3044\u3044\u304b\u3082\uff0eAJAX\u306e\u5834\u5408\u306f\u6050\u3089\u304f\u4e0d\u8981)
\n$ sudo -u www-data crontab -e\n
\u3053\u3053\u304b\u3089Nextcloud\u306f\u5229\u7528\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\uff0e
\n$ sudo -u www-data php ./occ maintenance:mode --on\n
-c \u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u4ed8\u3051\u305f\u307b\u3046\u304c\u3044\u3044\u3051\u3069\u30c7\u30fc\u30bf\u304c\u5927\u304d\u3044\u3068\u6642\u9593\u304c\u304b\u304b\u308b\u306e\u3067\u4eca\u56de\u306f\u306a\u3057\u3067\u3042\u3068\u3067\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3053\u3068\u306b\u3059\u308b\uff0e
$ sudo rsync -av /var/www/nextcloud/data /var/www/nextcloud/\n
Nextclud\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u60c5\u5831\u3092\u66f8\u304d\u63db\u3048\u307e\u3059\uff0e\u66f8\u304d\u63db\u3048\u524d\u306b\u5ff5\u306e\u70ba\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3082\u53d6\u3063\u3066\u304a\u304d\u307e\u3059\uff0e
\n$ sh -c \"umask 266 ; mysqldump -uroot -p --opt --all-databases --events | xz > mysqlbackup-`date +\\%F_\\%T_\\%s_$`.sql.xz\"\n
$ mysql -unextcloud -p\nmysql> use nextcloud;\nmysql> update oc_storages set id='local::/var/data/nextcloud/data/' where id='local::/var/www/nextcloud/data/';\nmysql> quit;\n
Nextcloud\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e config/config.php \u306e\u4e2d\u306e datadirectory \u3092\u65b0\u3057\u3044\u30d1\u30b9\u306b\u66f8\u304d\u63db\u3048\u307e\u3059\uff0e
'datadirectory' => '/var/data/nextcloud/data',\n
$ sudo -u www-data php ./occ maintenance:mode --off\n
Nextcloud\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u95b2\u89a7\u3067\u304d\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\uff0e
\n\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u30b8\u30e7\u30d6\u3092crontab\u3067\u518d\u8a2d\u5b9a
\n$ sudo -u www-data crontab -e\n
\u3057\u3070\u3089\u304f\u904b\u7528\u3057\u3066\u554f\u984c\u306a\u3044\u3088\u3046\u306a\u3089\u65e7\u30c7\u30fc\u30bf\u3092\u524a\u9664\u3059\u308b\uff0e
\n$ sudo rm -rf /var/www/nextcloud/data\n
\u751f\u30c7\u30a3\u30b9\u30af\u306a\u3093\u304b\u3060\u3068 secure-delete \u3068\u304b\u4f7f\u3046\u3068\u5c11\u3057\u5b89\u5fc3\uff0e\u3067\u3082\u78ba\u5b9f\u3058\u3083\u306a\u3044\u3057\u6642\u9593\u304b\u304b\u308b\u306e\u3067\u6697\u53f7\u5316fs\u3092\u63a8\u5968\uff0e
$ sudo nice -20 ionice -c1 -n0 srm -r /var/www/nextcloud/data\n
$ sudo -u www-data php ./occ -V\nNextcloud 17.0.1\n$ dpkg-query -W php7.2-common mysql-server\nmysql-server 5.7.28-0ubuntu0.18.04.4\nphp7.2-common 7.2.24-0ubuntu0.18.04.1\n$ lsb_release -dr\nDescription: Ubuntu 18.04.3 LTS\nRelease: 18.04\n$ uname -m\nx86_64\n
Nextcloud 15.0.7\u304b\u3089Nextcloud 16.0.6\u3078\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3092\u884c\u304a\u3046\u3068\u3057\u305f\u3068\u3053\u308d\uff0c\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u753b\u9762\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3066\u5148\u306b\u52e7\u3081\u307e\u305b\u3093\uff0e
\nCheck for expected files\nThe following extra files have been found:\n.rnd\n
Nextcloud \u4ee5\u4e0b\u3092\u78ba\u8a8d\u3059\u308b\u30683\u3064\u306e .rnd \u30d5\u30a1\u30a4\u30eb\u304c\u898b\u3064\u304b\u308a\u307e\u3057\u305f\uff0e
$ cd /export/data/var/nextcloud-data\n$ find ./ -name .rnd -ls\n13495506336 0 drwxr-xr-x 3 www-data www-data 38 Jan 31 2018 ./data/matoken/files_encryption/keys/files/tmp/pizero/home/pi/.rnd\n15757999341 12 -rw-r--r-- 1 www-data www-data 9656 Jan 31 2018 ./data/matoken/files/tmp/pizero/home/pi/.rnd\n11866753713 4 -rw------- 1 www-data www-data 1024 Nov 25 13:19 ./.rnd\n
\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u898b\u308b\u3068\uff0cNextcloud \u76f4\u4e0b\u306e .rnd \u30d5\u30a1\u30a4\u30eb\u304c\u60aa\u3055\u3092\u3057\u3066\u3044\u308b\u3088\u3046\u306a\u306e\u3067\u3053\u308c\u3092\u9000\u907f\u3057\u307e\u3059\uff0e
$ sudo mv ./.rnd ~/tmp\n
\u3053\u306e\u5f8c\u3082\u3046\u4e00\u5ea6\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3092\u8a66\u307f\u308b\u3068\u3046\u307e\u304f\u884c\u304d\u307e\u3057\u305f\uff0e
\n\n\n\n\nThis behavior continues up to version 15.0.7.
\n
\u3068\u306e\u3053\u3068\u3067\u304e\u308a\u304e\u308a\u5f15\u3063\u304b\u304b\u3063\u305f\u3088\u3046\u3067\u3059
$ sudo -u www-data php ./occ -V\nNextcloud 16.0.6\n$ dpkg-query -W php7.2-common mysql-server\nmysql-server 5.7.28-0ubuntu0.18.04.4\nphp7.2-common 7.2.24-0ubuntu0.18.04.1\n$ lsb_release -dr\nDescription: Ubuntu 18.04.3 LTS\nRelease: 18.04\n$ uname -m\nx86_64\n