From 7808eee9aa4a02c289173a45e0b02def3bf51773 Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Sat, 31 Aug 2019 16:23:15 +0900
Subject: [PATCH] Update Japanese document to follow English document
---
docs/installation/debian_based_jp.md | 135 +++++++++++++--------------
1 file changed, 67 insertions(+), 68 deletions(-)
diff --git a/docs/installation/debian_based_jp.md b/docs/installation/debian_based_jp.md
index caf72363b..5ca6b3634 100644
--- a/docs/installation/debian_based_jp.md
+++ b/docs/installation/debian_based_jp.md
@@ -5,180 +5,179 @@
## ã¤ã³ã¹ãã¼ã«
-ãã®ã¬ã¤ãã¯Debian Stretchãä»®å®ãã¦ãã¾ããUbuntu 16.04ã§ãå¯è½ã§ãã
+ãã®ã¬ã¤ãã¯Debian Stretchãå©ç¨ãããã¨ãæ³å®ãã¦ãã¾ããUbuntu 16.04ã18.04ã§ãããããåä½ãã¾ããã¾ããã¦ã¼ã¶ã¯rootãããã¯sudoã«ãã管çè
権éãæã£ã¦ãããã¨ãåæã¨ãã¾ããããã以ä¸ã®æä½ãrootã¦ã¼ã¶ã§è¡ãå ´åã¯ã `sudo` ãç¡è¦ãã¦ãã ããããã ãã`sudo -Hu pleroma` ã®ããã«ã¦ã¼ã¶ãæå®ãã¦ããå ´åã«ã¯ `su -s $SHELL -c 'command'` ã代ããã«ä½¿ã£ã¦ãã ããã
### å¿
è¦ãªã½ããã¦ã§ã¢
-- PostgreSQL 9.6+ (postgresql-contrib-9.6 ã¾ãã¯ä»ã®ãã¼ã¸ã§ã³ã® PSQL ãã¤ã³ã¹ãã¼ã«ãã¦ãã ãã)
-- Elixir 1.5 ä»¥ä¸ ([Debianã®ãªãã¸ããªããã¤ã³ã¹ãã¼ã«ããªããã¨ï¼ï¼ï¼ ããããã¤ã³ã¹ãã¼ã«ãããã¨ï¼](https://elixir-lang.org/install.html#unix-and-unix-like))ãã¾ã㯠[asdf](https://github.com/asdf-vm/asdf) ã pleroma ã¦ã¼ã¶ã¼ã§ã¤ã³ã¹ãã¼ã«ã
-- erlang-dev
+- PostgreSQL 9.6ä»¥ä¸ (Ubuntu16.04ã§ã¯9.5ããæä¾ããã¦ããªãã®ã§ï¼[](https://www.postgresql.org/download/linux/ubuntu/)ãã¡ãããæ°ãããã¼ã¸ã§ã³ãå
¥æãã¦ãã ãã)
+- postgresql-contrib 9.6ä»¥ä¸ (åä¸)
+- Elixir 1.5 ä»¥ä¸ ([Debianã®ãªãã¸ããªããã¤ã³ã¹ãã¼ã«ããªããã¨ï¼ï¼ï¼ ããããã¤ã³ã¹ãã¼ã«ãããã¨ï¼](https://elixir-lang.org/install.html#unix-and-unix-like)ãã¾ã㯠[asdf](https://github.com/asdf-vm/asdf) ãpleromaã¦ã¼ã¶ã¼ã§ã¤ã³ã¹ãã¼ã«ãã¦ãã ãã)
+ - erlang-dev
- erlang-tools
- erlang-parsetools
+- erlang-eldap (LDAPèªè¨¼ãæå¹åããã¨ãã®ã¿å¿
è¦)
- erlang-ssh
-- erlang-xmerl (Jessieã§ã¯ããã¯ãã¼ãããã¤ã³ã¹ãã¼ã«ãããã¨ï¼)
+- erlang-xmerl
- git
- build-essential
-- openssh
-- openssl
-- nginx prefered (Apacheãåãããããã¾ãããã誰ããã¹ããã¦ãã¾ããï¼)
-- certbot (ã¾ãã¯ä½ããã®ACME Let's encryptã¯ã©ã¤ã¢ã³ã)
+
+#### ãã®ã¬ã¤ãã§å©ç¨ãã¦ãã追å ããã±ã¼ã¸
+
+- nginx (ããããã§ããä»ã®ãªãã¼ã¹ãããã·ã使ãå ´åã¯ãåèã¨ãªãè¨å®ããã®ãªãã¸ããªããæ¢ãã¦ãã ãã)
+- certbot (ã¾ãã¯ä½ããã®Let's EncryptåãACMEã¯ã©ã¤ã¢ã³ã)
### ã·ã¹ãã ãæºåãã
* ã¾ãã·ã¹ãã ãã¢ãããã¼ããã¦ãã ããã
```
-apt update && apt dist-upgrade
+sudo apt update
+sudo apt full-upgrade
```
-* è¤æ°ã®ãã¼ã«ã¨postgresqlãã¤ã³ã¹ãã¼ã«ãã¾ãããã¨ã§å¿
è¦ã«ãªãã®ã§ã
+* ä¸è¨ã«æããããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ãã¦ããã¾ãã
```
-apt install git build-essential openssl ssh sudo postgresql-9.6 postgresql-contrib-9.6
+sudo apt install git build-essential postgresql postgresql-contrib
```
-(postgresqlã®ãã¼ã¸ã§ã³ã¯ãããªãã®ãã£ã¹ããã«ãããã¦å¤ãã¦ãã ãããã¾ãã¯ããã¼ã¸ã§ã³çªå·ããããªãããããã¾ããã)
+
### Elixirã¨Erlangãã¤ã³ã¹ãã¼ã«ãã¾ã
* Erlangã®ãªãã¸ããªããã¦ã³ãã¼ãããã³ã¤ã³ã¹ãã¼ã«ãã¾ãã
```
-wget -P /tmp/ https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && sudo dpkg -i /tmp/erlang-solutions_1.0_all.deb
+wget -P /tmp/ https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
+sudo dpkg -i /tmp/erlang-solutions_1.0_all.deb
```
* Elixirã¨Erlangãã¤ã³ã¹ãã¼ã«ãã¾ãã
```
-apt update && apt install elixir erlang-dev erlang-parsetools erlang-xmerl erlang-tools erlang-ssh
+sudo apt update
+sudo apt install elixir erlang-dev erlang-parsetools erlang-xmerl erlang-tools erlang-ssh
```
### Pleroma BE (ããã¯ã¨ã³ã) ãã¤ã³ã¹ãã¼ã«ãã¾ã
-* æ°ããã¦ã¼ã¶ã¼ãä½ãã¾ãã
-```
-adduser pleroma
-```
-(Give it any password you want, make it STRONG)
+* Pleromaç¨ã«æ°ããã¦ã¼ã¶ã¼ãä½ãã¾ãã
-* æ°ããã¦ã¼ã¶ã¼ãsudoã°ã«ã¼ãã«å
¥ãã¾ãã
```
-usermod -aG sudo pleroma
+sudo useradd -r -s /bin/false -m -d /var/lib/pleroma -U pleroma
```
-* æ°ããã¦ã¼ã¶ã¼ã«å¤èº«ãããã¼ã ãã£ã¬ã¯ããªã«ç§»åãã¾ãã
-```
-su pleroma
-cd ~
-```
+**注æ**: Pleromaã¦ã¼ã¶ã¨ãã¦åçºã®ã³ãã³ããå®è¡ãããå ´åã¯ã¯ã`sudo -Hu pleroma command` ã使ã£ã¦ãã ãããã·ã§ã«ã使ãããå ´å㯠`sudo -Hu pleroma $SHELL`ã§ãããã `sudo` ã使ããªãå ´åã¯ãrootã¦ã¼ã¶ã§ `su -l pleroma -s $SHELL -c 'command'` ã¨ãããã¨ã§ã³ãã³ããã`su -l pleroma -s $SHELL` ã¨ãããã¨ã§ã·ã§ã«ãéå§ã§ãã¾ãã
* Gitãªãã¸ããªãã¯ãã¼ã³ãã¾ãã
```
-git clone -b master https://git.pleroma.social/pleroma/pleroma
+sudo mkdir -p /opt/pleroma
+sudo chown -R pleroma:pleroma /opt/pleroma
+sudo -Hu pleroma git clone -b master https://git.pleroma.social/pleroma/pleroma /opt/pleroma
```
* æ°ãããã£ã¬ã¯ããªã«ç§»åãã¾ãã
```
-cd pleroma/
+cd /opt/pleroma
```
* Pleromaãä¾åããããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ãã¾ããHexãã¤ã³ã¹ãã¼ã«ãã¦ããããèãããããyesãå
¥åãã¦ãã ããã
```
-mix deps.get
+sudo -Hu pleroma mix deps.get
```
* ã³ã³ãã£ã®ã¥ã¬ã¼ã·ã§ã³ãçæãã¾ãã
```
-mix pleroma.instance gen
+sudo -Hu pleroma mix pleroma.instance gen
```
* rebar3ãã¤ã³ã¹ãã¼ã«ãã¦ããããèãããããyesãå
¥åãã¦ãã ããã
- * ãã®å¦çã«ã¯æéããããã¾ããç§ãããåããã¾ããããä½ããã®ã³ã³ãã¤ã«ãè¡ããã¦ããããã§ãã
- * ããªãã®ã¤ã³ã¹ã¿ã³ã¹ã«ã¤ãã¦ãããã¤ãã®è³ªåãããã¾ãããã®åç㯠`config/generated_config.exs` ã¨ããã³ã³ãã£ã®ã¥ã¬ã¼ã·ã§ã³ãã¡ã¤ã«ã«ä¿åããã¾ãã
+ * ãã®ã¨ãã«pleromaã®ä¸é¨ãã³ã³ãã¤ã«ãããããããã®å¦çã«ã¯æéããããã¾ãã
+ * ããªãã®ã¤ã³ã¹ã¿ã³ã¹ã«ã¤ãã¦ãããã¤ãã®è³ªåããã¾ãããã®è³ªåã«ãã `config/generated_config.exs` ã¨ããè¨å®ãã¡ã¤ã«ãçæããã¾ãã
-**注æ**: ã¡ãã£ã¢ããã¯ã·ãæå¹ã«ããã¨åçãã¦ããªããã¤ããã£ãã·ã¥ã®URLã¯ç©ºæ¬ã®ã¾ã¾ã«ãã¦ããå ´åã¯ã`generated_config.exs` ãç·¨éãã¦ã`base_url` ã§å§ã¾ãè¡ãã³ã¡ã³ãã¢ã¦ãã¾ãã¯åé¤ãã¦ãã ãããããã¦ãä¸ã«ããè¡ã® `true` ã®å¾ã«ããã³ã³ããæ¶ãã¦ãã ããã
* ã³ã³ãã£ã®ã¥ã¬ã¼ã·ã§ã³ã確èªãã¦ãããåé¡ãªããã°ããã¡ã¤ã«åãå¤æ´ãã¦ãã ããã
```
mv config/{generated_config.exs,prod.secret.exs}
```
-* ããã¾ã§ã®ã³ãã³ãã§ããã§ã« `config/setup_db.psql` ã¨ãããã¡ã¤ã«ãä½ããã¦ãã¾ãããã®ãã¡ã¤ã«ããã¨ã«ããã¼ã¿ãã¼ã¹ãä½æãã¾ãã
+* å
ç¨ã®ã³ãã³ãã§ããã§ã« `config/setup_db.psql` ã¨ãããã¡ã¤ã«ãä½ããã¦ãã¾ãããã®ãã¡ã¤ã«ããã¨ã«ããã¼ã¿ãã¼ã¹ãä½æãã¾ãã
```
-sudo su postgres -c 'psql -f config/setup_db.psql'
+sudo -Hu pleroma mix pleroma.instance gen
```
-* ããã¦ããã¼ã¿ãã¼ã¹ã®ãã°ã¬ã¼ã·ã§ã³ãå®è¡ãã¾ãã
+* ããã¦ããã¼ã¿ãã¼ã¹ã®ãã¤ã°ã¬ã¼ã·ã§ã³ãå®è¡ãã¾ãã
```
-MIX_ENV=prod mix ecto.migrate
+sudo -Hu pleroma MIX_ENV=prod mix ecto.migrate
```
-* Pleromaãèµ·åã§ããããã«ãªãã¾ããã
+* ããã§Pleromaãèµ·åã§ããããã«ãªãã¾ããã
```
-MIX_ENV=prod mix phx.server
+sudo -Hu pleroma MIX_ENV=prod mix phx.server
```
-### ã¤ã³ã¹ãã¼ã«ãçµãããã
+### ã¤ã³ã¹ãã¼ã«ã®æçµæ®µé
-ããªãã®æ°ããã¤ã³ã¹ã¿ã³ã¹ãä¸çã«åãã¦å
¬éããã«ã¯ãnginxã¾ãã¯ä½ããã®ã¦ã§ããµã¼ãã¼ (ããã¯ã·) ã使ç¨ããå¿
è¦ãããã¾ããã¾ããPleroma ã®ããã«ã·ã¹ãã ãµã¼ãã¹ãã¡ã¤ã«ãä½æããå¿
è¦ãããã¾ãã
+ããªãã®æ°ããã¤ã³ã¹ã¿ã³ã¹ãä¸çã«åãã¦å
¬éããã«ã¯ãnginxçã®Webãµã¼ãããããã·ãµã¼ããPleromaã®å段ã«ä½¿ç¨ããå¿
è¦ãããã¾ããã¾ããPleroma ã®ããã«ã·ã¹ãã ãµã¼ãã¹ãã¡ã¤ã«ãä½æããå¿
è¦ãããã¾ãã
#### Nginx
* ã¾ã ã¤ã³ã¹ãã¼ã«ãã¦ããªããªããnginxãã¤ã³ã¹ãã¼ã«ãã¾ãã
```
-apt install nginx
+sudo apt install nginx
```
* SSLãã»ããã¢ãããã¾ããä»ã®æ¹æ³ã§ãããã§ãããããã§ã¯certbotã説æãã¾ãã
certbotã使ããªãã°ãã¾ããããã¤ã³ã¹ãã¼ã«ãã¾ãã
```
-apt install certbot
+sudo apt install certbot
```
ããã¦ã»ããã¢ãããã¾ãã
```
-mkdir -p /var/lib/letsencrypt/.well-known
-% certbot certonly --email your@emailaddress --webroot -w /var/lib/letsencrypt/ -d yourdomain
+sudo mkdir -p /var/lib/letsencrypt/
+sudo certbot certonly --email -d --standalone
```
-ãããã¾ããããªãã¨ãã¯ãå
ã«nginxãè¨å®ãã¦ãã ãããssl "on" ã "off" ã«å¤ãã¦ããå試è¡ãã¦ãã ããã
+ãããã¾ããããªãã¨ãã¯ãnginxãæ£ããåãã¦ããªãå¯è½æ§ãããã¾ããå
ã«nginxãè¨å®ãã¦ãã ãããssl "on" ã "off" ã«å¤ãã¦ããå試è¡ãã¦ãã ããã
---
-* nginxã³ã³ãã£ã®ã¥ã¬ã¼ã·ã§ã³ã®ä¾ãnginxãã©ã«ãã¼ã«ã³ãã¼ãã¾ãã
+* nginxã®è¨å®ãã¡ã¤ã«ãµã³ãã«ãnginxãã©ã«ãã¼ã«ã³ãã¼ãã¾ãã
```
-cp /home/pleroma/pleroma/installation/pleroma.nginx /etc/nginx/sites-enabled/pleroma.nginx
+sudo cp /opt/pleroma/installation/pleroma.nginx /etc/nginx/sites-available/pleroma.nginx
+sudo ln -s /etc/nginx/sites-available/pleroma.nginx /etc/nginx/sites-enabled/pleroma.nginx
```
-* nginxãèµ·åããåã«ãã³ã³ãã£ã®ã¥ã¬ã¼ã·ã§ã³ãç·¨éãã¦ãã ãããä¾ãã°ããµã¼ãã¼åã証ææ¸ã®ãã¹ãªã©ãå¤æ´ããå¿
è¦ãããã¾ãã
+* nginxãèµ·åããåã«ãè¨å®ãã¡ã¤ã«ãç·¨éãã¦ãã ãããä¾ãã°ããµã¼ãã¼åã証ææ¸ã®ãã¹ãªã©ãå¤æ´ããå¿
è¦ãããã¾ãã
* nginxãåèµ·åãã¾ãã
```
-systemctl reload nginx.service
+sudo systemctl enable --now nginx.service
```
-#### Systemd ãµã¼ãã¹
+ãã証ææ¸ãæ´æ°ããå¿
è¦ãåºã¦ããå ´åã«ã¯ãnginxã®é¢é£ããlocationãããã¯ã®ã³ã¡ã³ãã¢ã¦ããå¤ãã以ä¸ã®ã³ãã³ããåããã¾ãã
-* ãµã¼ãã¹ãã¡ã¤ã«ã®ä¾ãã³ãã¼ãã¾ãã
```
-cp /home/pleroma/pleroma/installation/pleroma.service /usr/lib/systemd/system/pleroma.service
+sudo certbot certonly --email -d --webroot -w /var/lib/letsencrypt/
```
-* ãµã¼ãã¹ãã¡ã¤ã«ãå¤æ´ãã¾ãããã¹ã¦ã®ãã¹ãæ£ãããã¨ã確èªãã¦ãã ãããã¾ãã`[Service]` ã»ã¯ã·ã§ã³ã«ä»¥ä¸ã®è¡ããããã¨ã確èªãã¦ãã ããã
-```
-Environment="MIX_ENV=prod"
-```
+#### ä»ã®Webãµã¼ãããããã·
+ããã«é¢ãã¦ã¯ãµã³ãã«ã `/opt/pleroma/installation/` ã«ããã®ã§ãæ¢ãã¦ã¿ã¦ãã ããã
+
+#### Systemd ãµã¼ãã¹
-* `pleroma.service` ã enable ããã³ start ãã¦ãã ããã
+* ãµã¼ãã¹ãã¡ã¤ã«ã®ãµã³ãã«ãã³ãã¼ãã¾ãã
```
-systemctl enable --now pleroma.service
+sudo cp /opt/pleroma/installation/pleroma.service /etc/systemd/system/pleroma.service
```
-#### ã¢ãã¬ã¼ã¿ã¼ãä½ã
-
-æ°ãã«ã¦ã¼ã¶ã¼ãä½ã£ãããã¢ãã¬ã¼ã¿ã¼æ¨©éãä¸ãããããããã¾ããã以ä¸ã®ã¿ã¹ã¯ã§å¯è½ã§ãã
+* ãµã¼ãã¹ãã¡ã¤ã«ãå¤æ´ãã¾ãããã¹ã¦ã®ãã¹ãæ£ãããã¨ã確èªãã¦ãã ãã
+* ãµã¼ãã¹ãæå¹åã `pleroma.service` ãéå§ãã¦ãã ãã
```
-mix set_moderator username [true|false]
+sudo systemctl enable --now pleroma.service
```
-ã¢ãã¬ã¼ã¿ã¼ã¯ãã¹ã¦ã®ãã¹ããæ¶ããã¨ãã§ãã¾ããå°æ¥çã«ã¯ä»ã®ãã¨ãå¯è½ã«ãªãããããã¾ããã
+#### åæã¦ã¼ã¶ã®ä½æ
-#### ã¡ãã£ã¢ããã¯ã·ãæå¹ã«ãã
+æ°ãã«ã¤ã³ã¹ã¿ã³ã¹ãä½æãããã以ä¸ã®ã³ãã³ãã«ãã管çè
権éãæã£ãåæã¦ã¼ã¶ãä½æã§ãã¾ãã
-`generate_config` ã§ã¡ãã£ã¢ããã¯ã·ãæå¹ã«ãã¦ãããªãããã§ã«ã¡ãã£ã¢ããã¯ã·ãåä½ãã¦ãã¾ãããã¨ããè¨å®ãå¤æ´ããããªãã[How to activate mediaproxy](How-to-activate-mediaproxy) ãè¦ã¦ãã ããã
+```
+sudo -Hu pleroma MIX_ENV=prod mix pleroma.user new --admin
+```
-#### ã³ã³ãã£ã®ã¥ã¬ã¼ã·ã§ã³ã¨ã«ã¹ã¿ãã¤ãº
+#### ãã®ä»ã®è¨å®ã¨ã«ã¹ã¿ãã¤ãº
* [Backup your instance](backup.html)
* [Configuration tips](general-tips-for-customizing-pleroma-fe.html)
--
2.45.2