Skip to content

matumot/google-drive-with-linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

google-drive-with-linux

Linux(Ubuntu20.04LTS)で google driveをマウントして利用する方法についてのメモ

初期設定

  • 以下の手順でライブラリインストールを行う。
sudo add-apt-repository ppa:alessandro-strada/ppa
sudo apt-get update
sudo apt-get install google-drive-ocamlfuse
  • gdfuseの設定ファイルを編集する。(注: .gdfuse ディレクトリは一旦認証処理 (google-drive-ocamlfuseを利用)を実施すると作成される)
cd ~/.gdfuse
rsync -avz default/  [your_label]

この後、~/.gdfuse/[your_label]/config の中で root_folder と team_drive_id の値を編集する。(team_drive_idは共有ドライブのトップディレクトリのfolder ID, root_folderはマウント対象のfolder IDを指す)

...
root_folder=[TEAM_DRIVE_ROOT_FOLDER_ID]
...
team_drive_id=[TEAM_DRIVE_FOLDER_ID]
...

利用手順

  • 以下コマンドで認証を行う (Googleログインのブラウザが現れた場合には ID, パスワードを入力)。
google-drive-ocamlfuse
  • マウント実行
google-drive-ocamlfuse -label [your_label] [mount_directory]
  • マウント解除
fusermount -u [mount_directory]

参考資料

About

Linuxで google driveをマウントする

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published