Installing Dropbox folder on Linux/Ubuntu VM for Use With IPython Notebook -


i'm trying following instructions on http://www.dropboxwiki.com/tips-and-tricks/install-dropbox-in-an-entirely-text-based-linux-environment basis installing dropbox onto headless ubuntu vm i'm accessing via ipython notebook in browser on host machine.

!cd !wget -o dropbox.tar.gz "http://www.dropbox.com/download/?plat=lnx.x86_64" 

gets file okay, home directory set via vagrant /vagrant/notebooks, directory shared between vm , host (the idea shared directory available user on host , vm ipython notebook user).

tar tzf looks reasonable in output,

!tar -tzf dropbox.tar.gz 

but !tar -xzf dropbox.tar.gz fails:

!tar -xzf dropbox.tar.gz tar: .dropbox-dist/dropbox: cannot hard link `.dropbox-dist/library.zip': operation not permitted tar: exiting failure status due previous errors 

this seems reported elsewhere can't see fix? problem location i'm trying install dropbox folder perhaps? (in general case there may dropbox folder elsewhere on host machine.)

i have vm managed through vagrant , got dropbox running on via ipython notebook without using ssh @ all. here's did. note - there still issues worked out, did install okay.

the key step you're missing !cd doesn't take user home directory (afaict doesn't @ all), , piece of dropbox installation fails, you've seen.

also note: username "vagrant" on machine , connecting through ipython notebook in host web browser via port-forwarding.

how installed dropbox via ipython notebook

import os !cd "/home/vagrant" os.chdir('/home/vagrant/') !wget -o dropbox.tar.gz "http://www.dropbox.com/download/?plat=lnx.x86" !tar -xzf dropbox.tar.gz !./.dropbox-dist/dropboxd 

connect headless machine dropbox account
after this, follow instructions dropbox how-to linked above , following:

  1. log in or create account on https://dropbox.com in web browser
  2. once logged in, paste url you'll find in output of last ipython notebook command.
  3. click whatever ok buttons link account headless machine.

symlinking notebook dropbox convenience
make dropbox more accessible ipython notebook:

!ln -s '/home/vagrant/dropbox' '/vagrant/notebook/dropbox'

running dropbox
issue remaining getting dropbox start service. i've been playing around upstart method in linked how-to doc, ran out of time tonight working. (i'm needing write /etc without proper permissions via ipython notebook). i'll update if more time weekend make work.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -