Skip to content

Instantly share code, notes, and snippets.

@dschep
Last active March 21, 2023 01:47
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dschep/4105713 to your computer and use it in GitHub Desktop.
Save dschep/4105713 to your computer and use it in GitHub Desktop.
Gmvault on Synology NAS
  1. Install Python from DSM Package Center
  2. Enable SSH
  3. SSH in
  4. Enable and switch to user shell (optional, requres user homes to be enabled)
    • set shell to /bin/ash in /etc/passwd
    • su - <user>
  5. Create directory to store all of this (optional)
    • mkdir gmvault&&cd gmvault
  6. Get virtualenv
    • wget https://raw.github.com/pypa/virtualenv/develop/virtualenv.py
  7. Create virtualenv & install gmvault
    • python virtualenv.py venv
    • ./venv/bin/pip install gmvault
  8. Backup Gmail!
    • ash ./venv/bin/gmvault sync username@gmail.com

Relevant Links:

@wamatt
Copy link

wamatt commented Jul 17, 2013

followed this and ended up with..

reading manifest file 'gmvault.egg-info/SOURCES.txt'

reading manifest template 'MANIFEST.in'

writing manifest file 'gmvault.egg-info/SOURCES.txt'

running build_scripts

running install_lib

creating /usr/local/python/lib/python2.7/site-packages/gmv

error: could not create '/usr/local/python/lib/python2.7/site-packages/gmv': Permission denied

This was after running ./venv/bin/pip install gmvault

Any ideas?

@wamatt
Copy link

wamatt commented Jul 17, 2013

Oh.. I think I know why.. it's because venv version of PIP wasn't installed.

The step earlier gave this error:

/volume1/homes/Matt/gmvault $ python virtualenv.py venv
New python executable in venv/bin/python
Cannot find sdist setuptools-.tar.gz
Cannot find sdist pip-
.tar.gz

which I ignored... hehe.

@wamatt
Copy link

wamatt commented Jul 17, 2013

So basically I tried following the steps exactly, but after installing Python in the DSM Package Manager, it's not actually available in the CLI. So I manually added /volume1/@appstore/python/bin to the /root/.profile PATH.

Maybe that's causing issues? mmm

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