ちょいちょい仮想環境を作ってはDropbox入れてる気がするのでメモ。
パッケージのインストール
aptで入れる場合
まずsource.listに加える。これは9.10の例。記事を書いているときは10.04のベータに入れたかったけど、レポジトリがないので9.10のやつを入れる。
$ vim /etc/apt/source.list.d/dropbox.list deb http://linux.dropbox.com/ubuntu karmic main deb-src http://linux.dropbox.com/ubuntu karmic main $ sudo apt-get update $ apt-cache search dropbox nautilus-dropbox - Dropbox integration for Nautilus $ sudo apt-get install nautilus-dropbox
debパッケージ等で入れる場合
パッケージをダウンロードしてきて普通に入れるだけ。
$ wget https://www.dropbox.com/download?dl=packages/nautilus-dropbox_0.6.1_amd64_ubuntu_9.10.deb $ dpkg -i nautilus-dropbox_0.6.1_amd64_ubuntu_9.10.deb
設定
$ dropbox start -i Starting Dropbox... Dropbox is the easiest way to share and store your files online. Want to learn more? Head to http://www.getdropbox.com/ In order to use Dropbox, you must download the proprietary daemon. [y/n] y Downloading Dropbox... 100% Unpacking Dropbox... 100% Dropbox isn't running! Done! $ dropbox start To link this computer to a dropbox account, visit the following url: https://www.dropbox.com/cli_link?host_id=3vf1693048a73acbe5298siakd529ikjg #こんな感じのURLがでる
ここで指定されたURLにアクセス。すると下記のように承認される。
再度インストールしたユーザのホームディレクトリに行くとDropboxというディレクトリができている。
$ ls Dropbox src テンプレート ドキュメント ピクチャ 公開 examples.desktop ダウンロード デスクトップ ビデオ ミュージック $ ls Dropbox/ Photos Public config cron docs log pkg src
最後にインスタンスを起動したときに自動でDropboxがスタートするように設定。
$ dropbox autostart y