@@ -11,41 +11,46 @@ apt-get install -y python-pip build-essential python-dev
11
11
12
12
# Install dependencies.
13
13
14
- pip install ez_setup
14
+ pip install -U pip
15
15
pip install -r /gdrivefs/requirements.txt
16
16
17
17
# Add "gdrivefs" to PYTHONPATH and install executables into path.
18
18
19
- cd /gdrivefs
20
- python setup.py develop
19
+ pip install -e /gdrivefs
21
20
22
21
# Create a mountpoint.
23
22
#
24
- # We can't use /mnt/gdrivefs, because, for some reason, when we unmount that in
23
+ # We can't use /mnt/gdrivefs, because, for some reason, when we unmount that in
25
24
# the Vagrant machine, it unmounts the shared-folder the the same name, too.
26
25
27
26
mkdir /mnt/g
27
+ sudo chown vagrant:vagrant /mnt/g
28
+
29
+ # Configure us to run as non-root.
30
+
31
+ sudo chmod 755 /etc/fuse.conf
32
+ sudo adduser vagrant fuse
28
33
29
34
# Get the user going with an authorization URL.
30
35
31
36
echo
32
- gdfstool auth -u
37
+ gdfstool auth_get_url
33
38
34
39
# Mention follow-up steps.
35
40
# *For some reason, we can't print empty strings, so we print single-spaces.
36
41
37
42
echo " "
38
43
echo " Once you have retrieved your authorization string, run:"
39
44
echo " "
40
- echo " sudo gdfstool auth -a /var/cache/gdfs.creds <auth string >"
45
+ echo " gdfstool auth_write <authcode >"
41
46
echo " "
42
47
echo " "
43
48
echo " Once authorized, you can mount by calling (as root):"
44
49
echo " "
45
- echo " sudo gdfs /var/cache/gdfs.creds /mnt/g"
50
+ echo " gdfs default /mnt/g"
46
51
echo " "
47
52
echo " Or, to debug (and disable change-monitoring, to simplify things):"
48
53
echo " "
49
- echo " sudo GD_DEBUG=1 GD_MONITOR_CHANGES=0 gdfs /var/cache/gdfs.creds /mnt/g"
54
+ echo " GD_DEBUG=1 GD_MONITOR_CHANGES=0 gdfs default /mnt/g"
50
55
echo " "
51
56
echo " "
0 commit comments