This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Google Диск в Debian 12
Установка google-drive-ocamlfuse
Создать конфигурацию
Активация 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 Диск"
Установка службы
Создать файл /etc/systemd/system/google-drive-.service :
[Unit]
Description = FUSE filesystem over Google Drive
After = network.target
[Service]
User = <username>
Group = <username>
ExecStart = google-drive-ocamlfuse -label default ~/"Google Диск"
ExecStop = fusermount -u ~/"Google Диск"
Restart = always
Type = forking
[Install]
WantedBy = multi-user.target
Запуск службы
systemctl enable google-drive-<username>.service
systemctl start google-drive-<username>.service