Dropbox without Nautilus in Fluxbox

Comments // Written on Mar 02, 2009 // Net

Dropbox is unquestionably a convenient utility for any Desktop Environment. For those who don’t know it, it’s a file sync service, useful to share files beetween two or more computers and keep them syncronized. It’s useful, for example, when you need to
keep your home computer up to date with the work one.

I used to make an intensive use of dropbox last year, but then I switched from Gnome to Fluxbox in my Gentoo work installation and stopped using Nautilus and its dropbox plugin. Since then I began starting Dropbox manually launching Nautilus when I needed to sync the files. That was really annoying…

Yesterday reading Francesco’s blog, I discovered Dropbox wiki and that it was possible to launch it from the command line! As I had it already installed on nautilus it was just a matter of starting the daemon, and that can be easily achieved by using a  python script .

The script can do a lot of things, such as installing the daemon on a non graphical environment, but I just use it to start the daemon on fluxbox startup.

Here’s how I did it on fluxbox:

1. Download the python script

cd ~ && wget https://dl.getdropbox.com/u/43645/dbcli.py

2. Open the fluxbox start script

vim .fluxbox/startup

3. Find this line

exec fluxbox

4. Before that, insert

exec python dbcli.py status &

Yes, it’s that easy! And we just have to thank Filip L. who published this script on Dropbox forums..

If you are interested on knowing all the fantastic feature of Filip’s script please have a look at DropBox wiki page

Fluxbox loving Slim

Comments // Written on Jan 05, 2009 // Open Source

Slim is a lightweight graphical login manager, for those who don’t know it’s something like GDM and KDM, but a bit less stressing for your hardware, very simple, minimal, easily customizable and skinnable. Also slim can be used with any Desktop Environment and got no heavy dependancies.

Fluxbox, well I hope you all have at least heard something about it, is a great lightweight window manager, that combined with a good filemanager (I prefer pcmanfm), its own panel, a light dock (using simdock here) and a bit of vim can became the right choice for any use.

Together…well you’re completely free from any Gnome,Kde influence and you got a nice and fast Desktop Environment.

For fluxbox installation and configuration there are a lot of guides. Here are my favourites for Gentoo and Ubuntu.

To install slim just use your distribution package manager. For example I did

# emerge -avt slim

or in Ubuntu

$ sudo apt-get install slim

After installin open slim configuration

# vim /etc/slim.conf

and around line 54 you will find your sessions array. Just delete sessions you don’t own or don’t want to use and then set as first session

startfluxbox

We do use the start script as doing this we will be able to use the ’startup’ script into the .fluxbox directory to start our own apps on DE booting.

Now that slim is configured you can choose to follow the white rabbit or not. If you want to, follow those passages to disable gdm/kdm and start using slim instead.

On Gentoo just change the configuration file of Xdm

# vim /etc/conf.d/xdm

replacing your current variable ‘DISPLAYMANAGER’ from any previous value to

slim

On Ubuntu (and I believe on all the debian based) remove GDM from startup and add slim

$ sudo update-rc.d -f gdm remove
$ sudo update-rc.d slim defaults

Now just logout from any grafical interface and from your shell restart the Login Manager

On Gentoo

# /etc/init.d/xdm restart

While on Ubuntu

$ sudo /etc/init.d/gdm stop && sudo /etc/init.d/slim start

Everything  should work fine, and you should be able to login to your fluxbox desktop. To change session just press F11 while writing your username/password!