使用者工具

網站工具


tech:dropbox_centos

CentOS 5 x86_64 上安裝 Dropbox

  • 安裝基本元件
    su - root
    yum install bzip2 wget make gtk+-devel.x86_64 libnotify-devel.x86_64 nautilus-extensions.x86_64 nautilus-devel.x86_64 gnome-vfs2-devel.x86_64 compat-glibc-headers.x86_64 compat-glibc.x86_64 gnome-desktop-devel.x86_64
  • 下載 dbcli.py
    cd /usr/local/bin/
    wget https://dl.getdropbox.com/u/43645/dbcli.py
    dos2unix dbcli.py; chmod +x dbcli.py
    vi dbcli.py

    將 python 指定 2.5 版

    #!/usr/bin/python25
    :
    :
  • 安裝 python 2.5 版
    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
    yum --nogpgcheck localinstall *.rpm
  • 開始使用 dropbox 回到原本的身份.. Exp. jonathan 這樣就可以出現輸入帳號密碼的視窗
    dbcli.py install x86_64
    [[email protected] 2010]$ dbcli.py install x86_64
    error: couldn't connect to the daemond.
    Trying to start the daemon.
    The daemon does not exist (try /usr/local/bin/dbcli.py install)
    rm: 無法移除 ‘/home/jonathan/.dropbox-dist/’: 沒有此一檔案或目錄
    Starting to download dropbox-lnx.x86_64-1.1.35.tar.gz...
      ... 1 kB of 16899 kB
      ... 1691 kB of 16899 kB
      ... 3381 kB of 16899 kB
      ... 5071 kB of 16899 kB
      ... 6761 kB of 16899 kB
      ... 8451 kB of 16899 kB
      ... 10141 kB of 16899 kB
      ... 11831 kB of 16899 kB
      ... 13521 kB of 16899 kB
      ... 15211 kB of 16899 kB
      ... 16901 kB of 16899 kB
    Done. Unpacking...
    Trying to start the daemon.
    /usr/bin/nautilus
  • 設定每次登入 X Window 都會自動啟動 dropbox
    • 在 GNOME 的 Window Manager 上選擇 [系統]→[偏好設定]→[更多偏好設定]→[作業階段]
    • 在 [初始啟動程式] → [新增] 初始啟動指令(S) 欄位內輸入
      /usr/local/bin/dbcli.py status
    • 按下 [確定] 後, 登出 X Windows, 在登入就可自動啟動 Dropbox

參考網址

tech/dropbox_centos.txt · 上一次變更: 2011/06/10 00:44 由 jonathan