Thanks to these lovely instructions and this wonderful set of compiled programs, I was able to install Dropbox on the Cr-48! There was one thing that bothered me, however, and that was the inability to view the file/directory listing from the browser. By default, the dropbox folder is stored in /home/chronos/user/Dropbox and it seems like the only directory that is viewable from the browser is /home/chronos/user/Downloads (which can be seen by typing Control+o in a tab). You can also type in file:///home/chronos/user/Downloads in the address bar to see a listing. But if you try to view the Dropbox folder, you get an access denied error code. From a permissions point, the Dropbox folder has less restricted permissions than the Downloads folder, so I guess there is something else restricting access.
Anyways, it seemed like I could resolve this if I moved my Dropbox folder inside the Downloads folder. So here are some steps on how I was able to do that without messing up the syncing.
First some notes:
- the ~/.dropbox contains the sqlite database file config.db
- the ~/.dropbox-dist directory contains the dropbox binary for starting/stopping the service
- Stop the Dropbox process. I tried doing ~/.dropbox-dist/dropbox stop but it didn’t work (it said “Another instance of Dropbox is running!”). So I ran a ps and killed the process.
- Move your dropbox folder to the new location (somewhere inside the Downloads folder so it’s viewable from the browser). You may want to backup your files just in case too.
- Update the dropbox folder location in config.db.
- sqlite3 ~/.dropbox/config.db
- Check the existing path: SELECT value FROM config WHERE key=”dropbox_path”;
- Update to the new path: REPLACE INTO config (key, value) VALUES (“dropbox_path”, “/path/to/new/location”);
- Start the dropbox service again. You can either run ~/.dropbox-dist/dropbox start, or assuming the .bashrc file contains a script to automatically start the service in the background, you can exit and reopen the terminal.
- Test it! Make a new file in the folder, and it should appear when you login to your dropbox account online.
Alternatively, I just came across this script, which is more official. I probably would’ve tried it if I saw it earlier.