さくらVPSでDropboxが出来るそうなのでやってみた
やってみた。いつもどおりroot権限ない人用。
// pythonbrew で2.6はインストール済み $ pythonbrew list Python-2.6.6 (*) // download $ wget https://www.dropbox.com/download?dl=packages/dropbox.py // シェバングを書き換えないやり方。引数は$@でそのまま渡す $ cat >dropbox #!/bin/bash python2.6 $HOME/bin/dropbox.py $@ (Ctrl+d) // 権限をつけてパスの通っているところへ $ chmod +x dropbox $ chmod +x dropbox.py $ cp -a dropbox ~/bin/ $ cp -a dropbox.py ~/bin/ $ mkdir ~/Dropbox // 一回目はなんかデーモンプログラムをDLするらしい $ 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.dropbox.com/ In order to use Dropbox, you must download the proprietary daemon. [y/n] y Downloading Dropbox... 100% Unpacking Dropbox... 100% Done! // 二回目はこのURLにブラウザでアクセスして認証通せば使えるようになる。 $ dropbox start -i To link this computer to a dropbox account, visit the following url: https://www.dropbox.com/cli_link?host_id=xxxxxxxxxxxxx&cl=ja // 蛇足 $ dropbox status Idle $ dropbox stop Dropbox daemon stopped. $ dropbox status Dropbox isn't running! $ dropbox start Starting Dropbox...Done! $ dropbox status ファイル一覧をダウンロード中... $ dropbox status Idle $ dropbox Dropbox command-line interface commands: Note: use dropbox help <command> to view usage for a specific command. status get current status of the dropboxd help provide help puburl get public url of a file in your dropbox stop stop dropboxd running return whether dropbox is running start start dropboxd filestatus get current sync status of one or more files ls list directory contents with current sync status autostart automatically start dropbox at login exclude ignores/excludes a directory from syncing
VPSでDropboxを使うなら、LAN Syncを止めよう! | Linux - Soukaku's HENA-CHOKO Blog