1 2 3 |
测试服务商:itldc root@ubuntu:~# uname -r 4.4.0-104-generic |
使用PPA安装方式即可,
注:ubuntu14.04以后使用PPA需要先安装 software-properties-common 依赖包.
安装
PPA repository 安装方式:
1 2 3 4 |
sudo apt-get install software-properties-common //解决add-apt-repository: command not found问题 sudo add-apt-repository ppa:alessandro-strada/ppa sudo apt-get update //必须更新 sudo apt-get install google-drive-ocamlfuse |
授权
google-drive-ocamlfuse -headless -label me -id ##yourClientID##.apps.googleusercontent.com -secret ###yoursecret#####
1 2 3 4 |
root@ubuntu:~# google-drive-ocamlfuse -headless -label me -id 497-qsaps89rs0sur7t66at9h9n1ljahfqtr.apps.googleusercontent.com -secret 8bYeJI4p9-eLGU22M2 Please, open the following URL in a web browser: https://accounts.google.com/o/oauth2/auth?client_id=49703-qsaps89rs0sur7t66at9h9n1ljahfqtr.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&response_type=code&access_type=offline&approval_prompt=force Please enter the verification code: 4/AACF4dORvoujWLjLtEIWBkRBKOFZDpW7nurhNdBWG09roUn6kHglAG0fFXuj Access token retrieved correctly. |
挂载
# mkdir /gdo
# google-drive-ocamlfuse -label me /gdo
1 2 3 4 5 6 7 8 9 10 11 |
root@ubuntu:~# mkdir /gdo root@ubuntu:~# google-drive-ocamlfuse -label me /gdo root@ubuntu:~# df -lh Filesystem Size Used Avail Use% Mounted on udev 479M 0 479M 0% /dev tmpfs 100M 1.7M 98M 2% /run /dev/vda2 9.5G 1.3G 7.8G 14% / tmpfs 497M 0 497M 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 497M 0 497M 0% /sys/fs/cgroup google-drive-ocamlfuse 8.0E 2.5T 8.0E 1% /gdo |
可看到8E文件夹
完成.