Last active
April 4, 2017 04:46
-
-
Save jroehl/2ac01c3393a40b1b3ffb744f128ad799 to your computer and use it in GitHub Desktop.
setup_headless_dropbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# needs sudo rights | |
# https://www.digitalocean.com/community/tutorials/how-to-install-dropbox-client-as-a-service-on-ubuntu-14-04 | |
curl -Lo dropbox-linux-x86_64.tar.gz https://www.dropbox.com/download?plat=lnx.x86_64 | |
mkdir -p /opt/dropbox | |
tar xzfv dropbox-linux-x86_64.tar.gz --strip 1 -C /opt/dropbox | |
# needs user input | |
echo "" | |
echo "" | |
echo ">>> user input needed" | |
echo "" | |
sudo -i -u jroehl /opt/dropbox/dropboxd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# grab dropbox service | |
curl -o /etc/init.d/dropbox https://gist.githubusercontent.com/thisismitch/d0133d91452585ae2adc/raw/699e7909bdae922201b8069fde3011bbf2062048/dropbox | |
chmod +x /etc/init.d/dropbox | |
# create dropbox users file | |
echo "DROPBOX_USERS=\"jroehl\"" | sudo tee /etc/default/dropbox | |
chown jroehl:jroehl /home/jroehl/Dropbox | |
# restart daemon | |
systemctl daemon-reload | |
service dropbox start | |
update-rc.d dropbox defaults | |
# get python script for starting/stopping etc. | |
mkdir -p ~/dev | |
curl https://www.dropbox.com/download?dl=packages/dropbox.py -Lo ~/dev/dropbox.py --create-dirs | |
chmod +x ~/dev/dropbox.py | |
ln -s /opt/dropbox ~/.dropbox-dist | |
/home/jroehl/dev/dropbox.py exclude add /home/jroehl/Dropbox/photos | |
/home/jroehl/dev/dropbox.py exclude add /home/jroehl/Dropbox/Documents | |
/home/jroehl/dev/dropbox.py exclude add /home/jroehl/Dropbox/freigabeordner | |
/home/jroehl/dev/dropbox.py exclude add /home/jroehl/Dropbox/temp\ Bilder | |
/home/jroehl/dev/dropbox.py exclude add /home/jroehl/Dropbox/lightroom |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment