His Masters' Voices Wiki

よろずのことの書き残し

ユーザ用ツール

サイト用ツール


nextcloud:build_nextcloud_try1

**文書の過去の版を表示しています。**

Nextcloud構築の記録 (1)

前提条件

構築した場所

  • WebARENA Indigo (VPS)
  • 1 CPU 1 GB
  • Ubuntu 22.04

ドメイン

No-IP(無料のDynamic DNSサービス)で取得

  • xxx.ddns.net

作業ログ

PowerShellのsshコマンドで、VPSにログイン
(Ubuntu 22.04から「Tera Term」「RLogin」からは初期設定のままではログインできなくなった?)

PS C:\Users\hiroshi> ssh -i C:\Users\hiroshi\.ssh\private_key_webarena.txt ubuntu@xxx.ddns.net
sudo apt update
sudo apt -y upgrade
ubuntu@i-19100000390517:~$ sudo snap install nextcloud
nextcloud 24.0.1snap1 from Nextcloud✓ installed
ubuntu@i-19100000390517:~$ sudo nextcloud.manual-install admin 'パスワード'
Nextcloud was successfully installed
ubuntu@i-19100000390517:~$ sudo nextcloud.occ config:system:get trusted_domains
localhost
ubuntu@i-19100000390517:~$ sudo nextcloud.occ config:system:set trusted_domains 1 --value=xxx.ddns.net
System config value trusted_domains => 1 set to string xxx.ddns.net
ubuntu@i-19100000390517:~$ sudo nextcloud.occ config:system:get trusted_domains
localhost
xxx.ddns.net
ubuntu@i-19100000390517:~$
ubuntu@i-19100000390517:~$ sudo nextcloud.enable-https lets-encrypt
In order for Let's Encrypt to verify that you actually own the
domain(s) for which you're requesting a certificate, there are a
number of requirements of which you need to be aware:

1. In order to register with the Let's Encrypt ACME server, you must
   agree to the currently-in-effect Subscriber Agreement located
   here:

       https://letsencrypt.org/repository/

   By continuing to use this tool you agree to these terms. Please
   cancel now if otherwise.

2. You must have the domain name(s) for which you want certificates
   pointing at the external IP address of this machine.

3. Both ports 80 and 443 on the external IP address of this machine
   must point to this machine (e.g. port forwarding might need to be
   setup on your router).

Have you met these requirements? (y/n) y
Please enter an email address (for urgent notices or key recovery): xxx@xxxxxx.co.jp
Please enter your domain name(s) (space-separated): xxx.ddns.net
find: Failed to restore initial working directory: /home/ubuntu: Permission denied
Restarting apache... done
ubuntu@i-19100000390517:~$

なんかFail出てるけど大丈夫なのかな???

Webブラウザで接続してみる。

httpsで鍵マーク出てるし、おそらく大丈夫なんだろう。


ログインもできた。
ここまででクラウドのファイルサーバーとしては使えるようになったと思われる。


nextcloud/build_nextcloud_try1.1658037174.txt.gz · 最終更新: 2022/07/17 14:52 by nipa28