DropBox Installation on CentOS 5.3 + KDE

$ cat /etc/redhat-release
CentOS release 5.3 (Final)

$ kded --version
Qt: 3.3.6
KDE: 3.5.4-22.el5.centos Red Hat

Get the necessary pieces

  1. Dependencies (which will install most of Gnome...)
    • sudo yum install bzip2 wget make gtk+-devel libnotify-devel nautilus-extensions.i386 nautilus-devel.i386 gnome-vfs2-devel compat-glibc-headers.i386 compat-glibc.i386 gnome-desktop-devel.i386

  2. Filip L.'s dbcli.py

    1. Download
      • mkdir -p ~/bin; cd ~/bin; wget https://dl.getdropbox.com/u/43645/dbcli.py

    2. Process the Windows end of line characters
      • dos2unix ~/bin/dbcli.py; chmod +x ~/bin/dbcli.py

    3. Edit the file and add "25" at the end of the first line (no spaces!) so it reads
      • #!/usr/bin/python25

  3. (See note at bottom about python2.5) The unofficial CentOS python 2.5 RPMs from http://www.geekymedia.com/python_26_centos.html

    Note: it is NOT recommanded to update the official CentOS python installation as it WILL break your system. The 'unofficial' RPMs below create a parallel python installation which lives alogside the official 2.4 release, and needs to be called explicitly (hence the modification of the dbcli.py file above).

    1. Download
      • mkdir -p ~/tmp/python25; cd ~/tmp/python25;  for PACKAGE in python25-2.5.1-bashton1.i386.rpm python25-debuginfo-2.5.1-bashton1.i386.rpm python25-devel-2.5.1-bashton1.i386.rpm python25-libs-2.5.1-bashton1.i386.rpm python25-test-2.5.1-bashton1.i386.rpm python25-tools-2.5.1-bashton1.i386.rpm tkinter25-2.5.1-bashton1.i386.rpm; do wget http://mirrors.geekymedia.com/centos/$PACKAGE; done

    2. Install
      • cd ~/tmp/python25 && sudo yum --nogpgcheck localinstall *.rpm

Run it

Open an xterm, enter this command (to install the DropBox daemon; for 64bit architecture use "x86_64" as the last parameter):

  • ~/bin/dbcli.py install x86

On my system, the script went on to open the GUI registration wizard; from then on it "just works" B) If it doesn't, try

  • ~/bin/dbcli.py status

Start with KDE startup

echo "# start dropbox daemon" >> ~/.kde/Autostart/startup; echo "~/bin/dbcli.py status &" >> ~/.kde/Autostart/startup; chmod +x ~/.kde/Autostart/startup

Enjoy :-)

http://img199.imageshack.us/img199/2707/dropbox01.png

http://img42.imageshack.us/img42/9849/dropbox02.png

http://img200.imageshack.us/img200/402/dropbox03.png

http://img200.imageshack.us/img200/6553/dropbox04.png

Thanks to Filip L. who created the dbcli.py script.

NOTE

You don't need to install python2.5 for this to work, simply go into the dbcli.py script and replace the f_file_status function with this:

def f_file_status(db, args):
    status=db.get_status(args[0])

    if (status[0].startswith("ok")):
        if (status[0]=="okf"):
            print "%s status: %s" % ("Folder", status[1])
            print "Folder is tagged as: %s" % status[3]
            print "Available options for the %s:" % ("Folder", status[1])
        else:
            print "%s status: %s" % ("File", status[1])
            print "Available options for the %s:" % ("File", status[1])

        options=dict(status[2])
        for option in options:
            print "   %s - %s" % (option,options[option][-1])
    else:
        print "error: %s" % status[1]

TipsAndTricks/CnetOS-KDE-Install (last edited 2009-10-28 11:27:25 by PeterM1)