一般的環境中,都有瀏覽器,Windows/Linux/FreeBSD都有
安裝rclone不會有什麼問題
但是在伺服器的環境中,卻沒有辦法這麼做
要怎麼讓rclone在純文字環境中跑起來呢?
下載 RCLONE
curl -O https://downloads.rclone.org/rclone-current-linux-amd64.zip
解壓縮
unzip rclone-current-linux-amd64.zip
進資料匣
cd rclone-*-linux-amd64
安裝檔案
sudo cp rclone /usr/bin/
sudo chown root:root /usr/bin/rclone
sudo chmod 755 /usr/bin/rclone
安裝MAN說明
sudo mkdir -p /usr/local/share/man/man1
sudo cp rclone.1 /usr/local/share/man/man1/
sudo mandb
以上安裝完畢
=======
進行設定
產生 key,SERVICE ACCOUNT (Google API Console)
https://console.developers.google.com/
上傳jason key, 填入id,就可以正常使用了
=======
Fetching team drive list…
2017/12/28 09:48:45 NOTICE: Time may be set wrong – time from “accounts.google.com” is 9m17.872400656s different from this computer
2017/12/28 09:48:45 Failed to configure team drive: list team drives failed: Get https://www.googleapis.com/drive/v2/teamdrives?alt=json&maxResults=100: oauth2: cannot fetch token: 400 Bad Request
上面問題,使用NTP處理
2017/12/28 09:46:45 Failed to configure team drive: list team drives failed: googleapi: Error 403: Project xxxxx is not found and cannot be used for API calls. If it is recently created, enable Drive API by visiting https://console.developers.google.com/apis/api/drive.googleapis.com/overview?project=xxxxx then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry., accessNotConfigured
上面問題,打開網址,啟用API解決
PS. FreeBSD版的RClone功能少很多
隨機文章
- 電信業者調降線路費用,根本就是在調好玩的? (2010-04-04)
- 有問題的Yahoo站長工具 (2009-03-26)
- 加密勒索病毒.882f副檔名 (2017-04-04)
- Roseapple PI與Raspberry PI 使用體驗比較 (2015-10-13)
- OLPC-XO筆電即將推出Windows版 (2007-11-03)