Crunchbang Linux

From Nonecks Docs

Jump to: navigation, search

Dropbox Installation

  • This will help us install Dropbox inside crunchbang without worrying about Nautilus support
  1. Download package http://www.getdropbox.com/download?plat=lnx.x86
  2. Extract and move .dropbox-dist to ~/.dropbox-dist

A fake Nautilus script

  • We will now create a fake Nautilus script, which will in fact launch pcmanfm (or Thunar depending which release of crunchbang you are using or personal preference) when Dropbox requests it. We will placing the script in ~/bin. If you have deleted this directory, you will need to recreate it and ensure that ~/bin is in your $PATH. 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 to use pcmanfm:
#!/bin/bash
exec pcmanfm $@
exit 0
  • Save the file and exit.

Make dropbox start at login

  • 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) &

Some gconf settings is included so that if some random application actually calls on /usr/bin/nautilus, the resulting fallout should be minimal.

Save the file and exit.