+++
parent
ba2025bee3
commit
ef4e40fe7e
@ -9,10 +9,39 @@ https://ocaml.org/p/google-drive-ocamlfuse/0.7.32
|
||||
|
||||
Активация Google Drive Api: https://cloud.google.com/service-usage/docs/enable-disable
|
||||
|
||||
Создать конфигурацию
|
||||
**Создать конфигурацию**
|
||||
|
||||
Запускать команду от имени текущего пользователя, НЕ root!
|
||||
|
||||
```
|
||||
google-drive-ocamlfuse -id xxxxxxxxxxx-xxxxxxxx...xxxxxxx.apps.googleusercontent.com -secret xxxxxxxxxxxxxxx -redirect_uri http://localhost
|
||||
```
|
||||
|
||||
## Запуск из командной строки
|
||||
Будет создан конфигурационный файл в каталоге пользователя ~/.gdfuse/default/config
|
||||
|
||||
google-drive-ocamlfuse ~/"Google Диск"
|
||||
**Запуск из командной строки**
|
||||
|
||||
google-drive-ocamlfuse ~/"Google Диск"
|
||||
|
||||
|
||||
## Установка службы
|
||||
|
||||
|
||||
```ini
|
||||
|
||||
[Unit]
|
||||
Description=FUSE filesystem over Google Drive
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=alexey
|
||||
Group=alexey
|
||||
ExecStart=google-drive-ocamlfuse -label default ~/"Google Диск"
|
||||
ExecStop=fusermount -u ~/"Google Диск"
|
||||
Restart=always
|
||||
Type=forking
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
```
|
Loading…
Reference in New Issue
Block a user