|
71 | 71 | $ sudo pip install gdrivefs
|
72 | 72 |
|
73 | 73 |
|
| 74 | +Vagrant |
| 75 | +======= |
| 76 | + |
| 77 | +A Vagrantfile has been made available in the event that you'd like to mount your account from a system that isn't FUSE compatible (like Mac), or you're having issues installing GDriveFS somewhere else and would like to debug. |
| 78 | + |
| 79 | +To install Vagrant: |
| 80 | + |
| 81 | + $ sudo apt-get install vagrant |
| 82 | + |
| 83 | +To start and provision the instance: |
| 84 | + |
| 85 | + $ cd gdrivefs/vagrant |
| 86 | + $ vagrant up |
| 87 | + Bringing machine 'default' up with 'virtualbox' provider... |
| 88 | + ==> default: Importing base box 'ubuntu/trusty64'... |
| 89 | + ==> default: Matching MAC address for NAT networking... |
| 90 | + ==> default: Checking if box 'ubuntu/trusty64' is up to date... |
| 91 | + ==> default: Setting the name of the VM: vagrant_default_1413437502948_22866 |
| 92 | + ==> default: Clearing any previously set forwarded ports... |
| 93 | + ==> default: Clearing any previously set network interfaces... |
| 94 | + ==> default: Preparing network interfaces based on configuration... |
| 95 | + default: Adapter 1: nat |
| 96 | + ==> default: Forwarding ports... |
| 97 | + |
| 98 | + ... |
| 99 | + |
| 100 | + ==> default: Using /usr/lib/python2.7/dist-packages |
| 101 | + ==> default: Finished processing dependencies for gdrivefs==0.13.14 |
| 102 | + ==> default: To authorize FUSE to use your Google Drive account, visit the following URL to produce an authorization code: |
| 103 | + ==> default: |
| 104 | + ==> default: https://accounts.google.com/o/oauth2/auth?scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive.file&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&client_id=1056816309698.apps.googleusercontent.com&access_type=offline |
| 105 | + ==> default: |
| 106 | + ==> default: Once you have retrieved your authorization string, run: |
| 107 | + ==> default: |
| 108 | + ==> default: sudo gdfstool auth -a /var/cache/gdfs.creds <auth string> |
| 109 | + ==> default: |
| 110 | + |
| 111 | +This may take a few more minutes the first time, as it might need to acquire the Ubuntu 14.04 image if not already available. |
| 112 | + |
| 113 | +To log into the guest instance: |
| 114 | + |
| 115 | + $ vagrant ssh |
| 116 | + |
| 117 | +The GDFS source directory will be mounted at `/gdrivefs`, and the scripts will be in the path. |
| 118 | + |
| 119 | + |
74 | 120 | Troubleshooting
|
75 | 121 | ===============
|
76 | 122 |
|
|
0 commit comments