Topic: Dropbox howto
NOTE: There is an updated Dropbox installation guide available on the wiki, see: http://crunchbanglinux.org/wiki/howto/h up_dropbox
-----
First off, what is Dropbox? Well, according to the Dropbox website:
Dropbox is the easiest way to share and store your files online.
Having tried Dropbox myself, I have to agree that it is pretty sweet, and that is coming from a guy who runs rsync everyday. Anyway, if you are interested, you can find out more at: https://www.getdropbox.com/tour
The problem with Dropbox, from the perspective of a CrunchBang Linux user, is that it is developed to be used in conjunction with the Nautilus file manager. Nautilus is great, but it is not particularly well suited to a lightweight Openbox environment. No fear, by following the instructions in this howto, you should be able to get Dropbox working under Openbox without having to invoke Nautilus, at least not once the main installation is complete.
Note: We will still be installing Nautilus, and obviously everything it has listed as dependencies. If you are bothered about having unnecessary packages/libraries on your system, this howto is probably not for you. However, if you do not mind giving up a little bit of your disk space, read on. Remember once the installation is complete, we will not actually be calling on Nautilus, so system performance should not be affected.
Right then, here goes...
1: We will be using GDebi for ease of use, so if you do not already have it, enter the following terminal command to install it:
sudo apt-get install gdebi2: Visit https://www.getdropbox.com/install and download the Dropbox package. You will most likely want the Ubuntu 8.04 or 8.10 package.
3: Open Thunar and browse to where you saved the download. Right-click on the file, select "Open with GDebi Package Installer". Perform the installation. Close GDebi when the installation is finished.
4: Hit Alt+F2 and enter the command:
nautilusIf successful, Nautilus will start and the Dropbox icon will appear in your panel's system tray.
5: Right-click on the Dropbox icon in your system tray and select "Start Dropbox". Dropbox will now download some required components before running its own user installation screens. Follow the Dropbox instructions to create a new account, or login to your existing account. Close the Dropbox and any Nautilus windows once complete.
6: Hit Alt+F2 and enter the command:
killall nautilus7: We will now create a fake Nautilus script, which will in fact launch Thunar when Dropbox requests it. We will placing the script in ~/bin. If you have deleted this directory, you will need to recreate it. When ready, open a terminal and enter the following command:
touch ~/bin/nautilus && chmod +x ~/bin/nautilus && gedit ~/bin/nautilus &Paste the following into the new file:
#!/bin/bash
exec thunar $@
exit 0Save the file and exit.
8: We now need to set-up Openbox so that it will automatically start the Dropbox daemon when we login. Enter the following terminal command:
gedit ~/.config/openbox/autostart.sh &And add the following lines to the end of the file:
# Just in case some random app calls on Nautilus, lets set some safeguards to minimise the impact:
# Disable Nautilus desktop, because we really really do not want it!
gconftool-2 -s -t bool /apps/nautilus/preferences/show_desktop false &
# Do not let Nautilus set the background, because we really really do not want this either.
gconftool-2 -s -t bool /desktop/gnome/background/draw_background false &
# Make Nautilus use spatial mode, should start-up quicker.
gconftool-2 -s -t bool /apps/nautilus/preferences/always_use_browser false &
# Make Nautilus show the advanced permissions dialog -- if it has to start, lets at least make it usable :)
gconftool-2 -s -t bool /apps/nautilus/preferences/show_advanced_permissions true &
# And finally...
# ...start dropbox daemon, but give it a minute so we can establish a net connection.
(sleep 60s && ~/.dropbox-dist/dropboxd) &Save the file and exit.
9: Reboot your system. You should now have a working Dropbox without having to invoke Nautilus ![]()
----
I have tested this on both CrunchBang Linux 8.04.02 & 8.10.01. It has worked for me quite well. I would be interested to know if it works for you too and whether or not is causes any problems. I know it is a bit of a hack, but I feel it fits well with the whole CrunchBang philosophy/mentality
Anyhow, I hope someone finds this howto useful.