Skip to content

Instantly share code, notes, and snippets.

@adw0rd
Last active December 29, 2017 16:30
Show Gist options
  • Save adw0rd/f3efd348f45cd32cff12e437bd88a1f9 to your computer and use it in GitHub Desktop.
Save adw0rd/f3efd348f45cd32cff12e437bd88a1f9 to your computer and use it in GitHub Desktop.
sudo su
apt install -y python-pip
git clone https://github.com/google/google-api-python-client
cd google-api-python-client
python setup.py install install_egg_info
pip install gdrivefs
cd /sbin
ln -s /usr/local/bin/gdfs mount.gdfs
echo "/root/.gdfs.creds /mnt/gdrivefs gdfs allow_other,big_writes 0 0" >> /etc/fstab
gdfstool auth -u
# open url in browser and copy result code
gdfstool auth -a /root/.gdfs.creds "<code>"
mkdir /mnt/gdrivefs
mount /mnt/gdrivefs
ls -la /mnt/gdrivefs
@adw0rd
Copy link
Author

adw0rd commented Dec 29, 2017

If fstab not work and _netdev too, then use (ubuntu example):

echo "post-up /bin/mount /root/.gdfs.creds /mnt/gdrivefs -t gdfs -o allow_other,big_writes" >> /etc/network/interfaces

@adw0rd
Copy link
Author

adw0rd commented Dec 29, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment