Ik wil dropbox op mijn headless ubuntu 10.04 box installeren. Daarvoor dacht ik de volgende guide te gebruiken: http://wiki.dropbox.com/TipsAndTricks/TextBasedLinuxInstall
Koekie eitje dacht je. Maar bij stap 6:
Inhoud script:
Iemand een idee?
Koekie eitje dacht je. Maar bij stap 6:
gaat het mis. Ik krijg een error als ik dat pthyon scriptje draai:6. Run the dbreadconfig.py script to get the URL with the hostid. (There is a version of the script at DropboxAddons/PythonScriptToDisplayConfig that has problems for linux but seems to work on other OS's. I have edited it and cut out the Windows stuff, and also gotten it to print the correct URL. It is here http://dl.dropbox.com/u/8709885/dbreadconfig.py). Also, see further down in the Daemon section for alternative ways to get the URL.
code:
1
2
3
4
5
| lowfi@Server:~$ python dbreadconfig.py Traceback (most recent call last): File "dbreadconfig.py", line 8, in <module> cur.execute('select key, value from config where key ="host_id" order by key') sqlite3.OperationalError: no such table: config |
Inhoud script:
code:
1
2
3
4
5
6
7
8
9
10
11
| #!/usr/bin/python import base64, pickle, sqlite3, os, string dropbox_db_path = os.path.expanduser('~/.dropbox/dropbox.db') db = sqlite3.connect(dropbox_db_path) cur = db.cursor() cur.execute('select key, value from config where key ="host_id" order by key') for row in cur: print 'https://www.dropbox.com/cli_link?host_id=' + string.lstrip(pickle.loads(base64.b64decode(row[1]))) if row[1] != None else row[1] db.close() |
Iemand een idee?