ユーザ用ツール

サイト用ツール


サイドバー

最新の10件
一覧
webapp:nextcloud:snap

Nextcloud

snap版install

snapd導入

$ sudo apt update && sudo apt upgrade
$ sudo apt install snapd

Nextcloud pkg

$ snap find nextcloud
Name                       Version                    Publisher         Notes  Summary
nextcloud                  18.0.4snap3                nextcloud✓        -      Nextcloud Server - A safe home for all your data
spreedme                   0.29.5snap1                nextcloud✓        -      Spreed.ME audio/video calls and conferences feature for the Nextcloud Snap
onlyoffice-desktopeditors  5.5.1                      onlyoffice✓       -      A comprehensive office suite for editing documents, spreadsheets and presentations
qownnotes                  20.6.2                     pbek              -      Plain-text file markdown note taking with Nextcloud / ownCloud integration
nextcloud-port8080         1.01                       arcticslyfox      -      Nextcloud Server
nextcloud-snap-abacao      11.0.3snap4                abacao            -      Nextcloud Server
nextcloud-nextant          11.0.0snap3                rmescandon        -      Nextcloud Server + search support
nextcloud-abacao           11.0.3snap4                abacao            -      Nextcloud Server
cashbox-nextcloud          11.0.2snap2                cashbox           -      Nextcloud Server for www.cashBOX.plus
nextcloudsnap              12.0.4snap1                oscarbrolin       -      Nextcloud Server - A safe home for all your data
ghostcloud                 0.9.5                      beidl             -      A modern cross-platform client for Nextcloud, ownCloud, WebDav.
htxucloud                  12.0.3snap7                htxu              -      Nextcloud Server
carnet                     0.22.1                     alexandre-roux-m  -      Powerful note taking app with sync, online editor and android app
opentodolist               3.23.0                     mhoeher           -      Todo list and note taking application
solr                       0.1                        rmescandon        -      Starts up solr as forking daemon
mdns-hostname              0.0.1                      welike            -      mDNS mini-daemon to published hostname.local
nextcloud-stondino         15.0.10snap3+git1.ff25cb9  zmusselman        -      Nextcloud Server - A safe home for all your data
vmcloud-nextcloud          1.0.0                      victoriususm      -      Nextcloud 16.0.3 Optimized-Boosted
feedreader                 0+git.9ac478f7             ken-vandine       -      RSS client for various webservices
test003-nc                 13.0.4.snap1               reinism           -      Nextcloud Server - A safe home for all your data

Nextcloud提供のものを使う.Archtectureは amd64, arm64. armhf, i386, ppc64el Raspberry Pi なども対応している. 通常版は 18.0.5 や 19 がリリースされて数日経っているがまだ無いので反映は遅そう.

$ snap info nextcloud
$ snap info nextcloud | head -30
name:      nextcloud
summary:   Nextcloud Server - A safe home for all your data
publisher: Nextcloud*
store-url: https://snapcraft.io/nextcloud
contact:   https://github.com/nextcloud/nextcloud-snap
license:   AGPL-3.0+
description: |
  Where are your photos and documents? With Nextcloud you pick a server of
  your choice, at home, in a data center or at a provider. And that is where
  your files will be. Nextcloud runs on that server, protecting your data and
  giving you access from your desktop or mobile devices. Through Nextcloud
  you also access, sync and share your existing data on that FTP drive at
  school, a Dropbox or a NAS you have at home.
snap-id: njObIbGQEaVx1H4nyWxchk1i8opy4h54
channels:
  latest/stable:    18.0.4snap3       2020-06-05 (21361) 244MB -
  latest/candidate: ^                                          
  latest/beta:      ^                                          
  latest/edge:      master-2020-06-06 2020-06-06 (21378) 247MB -
  18/stable:        18.0.4snap3       2020-06-05 (21361) 244MB -
  18/candidate:     ^                                          
  18/beta:          ^                                          
  18/edge:          18-2020-06-06     2020-06-06 (21372) 245MB -
  17/stable:        17.0.6snap1       2020-05-03 (20616) 229MB -
  17/candidate:     ^                                          
  17/beta:          ^                                          
  17/edge:          17-2020-06-06     2020-06-06 (21376) 229MB -
  16/stable:        16.0.9snap1       2020-05-03 (20623) 225MB -
  16/candidate:     ^                                          
  16/beta:          ^                                          

stable導入

$ sudo snap install nextcloud
$ snap list
Name       Version      Rev    Tracking       Publisher   Notes
core       16-2.45      9290   latest/stable  canonical✓  core
nextcloud  18.0.4snap3  21369  latest/stable  nextcloud✓  -

これだけで関連のapache httpd/mysql/php等も一緒に導入される.

$ ps aux | grep -i nextcloud
root     17628  0.0  0.0   1872   196 ?        Ss   00:10   0:00 /bin/sh /snap/nextcloud/21169/bin/delay-on-failure mdns-publisher nextcloud
root     17615  0.0  0.1   1872  1168 ?        Ss   00:10   0:00 /bin/sh /snap/nextcloud/21169/bin/nextcloud-cron
root     17657  0.0  0.1   1872  1200 ?        Ss   00:10   0:00 /bin/sh /snap/nextcloud/21169/bin/renew-certs
root     17681  0.0  0.1   1872  1272 ?        Ss   00:10   0:00 /bin/sh /snap/nextcloud/21169/bin/start-php-fpm
root     17712  0.0  0.1   1872  1216 ?        Ss   00:10   0:00 /bin/sh /snap/nextcloud/21169/bin/start-redis-server
root     17765  0.0  0.6 258120  6008 ?        Sl   00:10   0:00 mdns-publisher nextcloud
root     17987  0.0  0.1   1872  1200 ?        Ss   00:10   0:00 /bin/sh /snap/nextcloud/21169/bin/run-httpd -k start -DFOREGROUND
root     18069  0.1  0.1   1872  1168 ?        Ss   00:10   0:01 /bin/sh /snap/nextcloud/21169/bin/start_mysql
root     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
ql.pid --lc-messages-dir=/snap/nextcloud/21169/share --socket=/tmp/sockets/mysql.sock
root     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
gin-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
root     18196  0.0  2.1 200580 21712 ?        Ss   00:10   0:00 php-fpm: master process (/snap/nextcloud/21169/config/php/php-fpm.conf)
root     18980  0.0  0.1   1872  1276 ?        S    00:10   0:00 /bin/sh /snap/nextcloud/21169/bin/httpd-wrapper -k start -DFOREGROUND
root     19017  0.0  0.0   6168  0280 ?        S    00:10   0:00 httpd -d /snap/nextcloud/21169 -k start -DFOREGROUND
root     19018  0.0  0.1 1211772 1612 ?        Sl   00:10   0:00 httpd -d /snap/nextcloud/21169 -k start -DFOREGROUND
root     19019  0.0  0.1 880108  1668 ?        Sl   00:10   0:00 httpd -d /snap/nextcloud/21169 -k start -DFOREGROUND
root     19020  0.0  0.1 1080512 1656 ?        Sl   00:10   0:00 httpd -d /snap/nextcloud/21169 -k start -DFOREGROUND
root     19221  0.0  0.0 1716012 0292 ?        Sl   00:10   0:00 httpd -d /snap/nextcloud/21169 -k start -DFOREGROUND

パスやコマンド

  • 設定ファイル /var/snap/nextcloud/current/nextcloud/config/config.php
  • Nextcloudデータ,ログ /var/snap/nextcloud/common/
  • 関連アプリ格納 /var/snap/nextcloud/current/
  • occ /snap/bin/nextcloud.occ
  • mysql-client /snap/bin/mysql-client
  • mysqldump /snap/bin/nextcloud.mysqldump
  • その他 /snap/bin/nextcloud.export /snap/bin/nextcloud.import /snap/bin/nextcloud.manual-install /snap/bin/nextcloud.disable-https /snap/bin/nextcloud.enable-https

データベース情報

$ sudo grep db /var/snap/nextcloud/current/nextcloud/config/config.php

occ command

/snap/bin/nextcloud.occ として用意されている.

$ sudo /snap/bin/nextcloud.occ status
  - installed: true
  - version: 18.0.4.2
  - versionstring: 18.0.4
  - edition: 

デバッグモード

On

$ sudo snap set nextcloud mode=debug

Off

$ sudo snap set nextcloud mode=production

信頼済みドメインの登録

リモートからアクセスしようとしたり,導入時と都外アドレスでアクセスするとエラー画面になる.

信頼できないドメインを介したアクセス
管理者に連絡してください。 管理者の場合は、config.sample.phpを参照して config/config.phpの "trusted_domains" を設定してください。
これを構成する方法の詳細は、ドキュメントにあります。

アクセス出来るアドレスを登録してあげる.

$ sudo /snap/bin/nextcloud.occ config:system:set trusted_domains 1 --value=mrjsyrkofvr3uqyfz6f5xgmlhhehf4esnjuwxkk24n4g5lb6sozjkdyd.onion
System config value trusted_domains => 1 set to string mrjsyrkofvr3uqyfz6f5xgmlhhehf4esnjuwxkk24n4g5lb6sozjkdyd.onion
$ sudo /snap/bin/nextcloud.occ config:system:set trusted_domains 2 --value=192.168.0.1/23
System config value trusted_domains => 2 set to string 192.168.0.1/23
$ sudo /snap/bin/nextcloud.occ config:system:get trusted_domains
192.168.1.193
mrjsyrkofvr3uqyfz6f5xgmlhhehf4esnjuwxkk24n4g5lb6sozjkdyd.onion
192.168.0.1/23

2 で登録した 192.168.0.1/23 は効かなかった.

--value= を忘れても登録できるが動かないので注意.

$ sudo /snap/bin/nextcloud.occ config:system:set trusted_domains 2 example.com
System config value trusted_domains => 2 => example.com set to empty string
$ sudo /snap/bin/nextcloud.occ config:system:get trusted_domains
localhost
2:
  example.com: 

上書き登録し直す.

$ sudo /snap/bin/nextcloud.occ config:system:set trusted_domains 2 --value=example.com
System config value trusted_domains => 2 set to string example.com
$ sudo /snap/bin/nextcloud.occ config:system:get trusted_domains
localhost
example.com

https有効

$ sudo /snap/bin/nextcloud.enable-https -h
Usage:
    nextcloud.enable-https -h
    Display this help message.

    nextcloud.enable-https <subcommand> [OPTIONS]
    Run the provided subcommand.

Available subcommands:
    lets-encrypt [OPTIONS]
    Obtain a certificate from Let's Encrypt and automatically keep it
    up-to-date.

    self-signed
    Generate and use a self-signed certificate. This is easier to
    setup than Let's Encrypt certificates, but will cause warnings in
    browsers.

    custom [OPTIONS]
    Use certificates generated by other means.

とりあえず自己証明 httpはhttpsにリダイレクトされるようになる.

$ sudo /snap/bin/nextcloud.enable-https self-signed
Generating key and self-signed certificate... done
Restarting apache... done

https 無効化

$ sudo /snap/bin/nextcloud.disable-https
Deactivating HTTPS... done
Restarting apache... done

コメント

コメントを入力. Wiki文法が有効です:
  _      __  __  __  _____   ___    _  __
 | | /| / / / / / / / ___/  / _ )  / |/ /
 | |/ |/ / / /_/ / / /__   / _  | /    / 
 |__/|__/  \____/  \___/  /____/ /_/|_/
 
webapp/nextcloud/snap.txt · 最終更新: 2020/07/23 03:33 by matoken