forked from abcdbz/GDriveFS
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathUBUNTU_QUICKSTART.txt
More file actions
29 lines (17 loc) · 912 Bytes
/
UBUNTU_QUICKSTART.txt
File metadata and controls
29 lines (17 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
For convenience, the following steps can be followed with little or no modification under Ubuntu (tested on 13.04). It is assumed that any required dependencies are available (see README.txt for more information).
sudo easy_install gdrivefs
cd /usr/local/sbin
sudo ln -s /usr/local/lib/python2.7/dist-packages/gdrivefs-*-py2.7.egg/gdrivefs/tools/gdfs.py gdfs
sudo ln -s /usr/local/lib/python2.7/dist-packages/gdrivefs-*-py2.7.egg/gdrivefs/tools/gdfstool.py gdfstool
# This needs to be in the primary sbin/ directory.
cd /sbin
sudo ln -s /usr/local/sbin/gdfs mount.gdfs
Add to /etc/fstab:
/var/cache/gdfs/credcache /mnt/gdrivefs gdfs allow_other 0 0
To get the authorization URL:
gdfstool auth -u
Visit the given URL, log-in, and grab the resulting code.
sudo gdfstool auth -a /var/cache/gdfs/credcache "<code>"
sudo mount /mnt/gdrivefs/
# To list the root directory:
ls -l /mnt/gdrivefs/