Skip to content

TEVASAKI/dotfiles

Repository files navigation

もうちょっとマシな書き方があるんじゃないかとモヤモヤしながらも分かる範囲でとにかくやってみている日々。

Clone from gitHub

git clone git@github.com:TEVASAKI/dotfiles.git

Dropbox install

環境はCentOS6.5

Dropbox 本体を HomeにDownload して展開してアカウント紐付け

$ wget -O dropbox-lnx.x86.tar.gz "https://www.dropbox.com/download?plat=lnx.x86"

$ tar zxvf dropbox-lnx.x86.tar.gz

$ ‾/.dropbox-dist/dropboxd

log

This client is not linked to any account...
Please visit https://www.dropbox.com/cli_link?host_id=xxxxyyyyzzzz to link this machine.
Client successfully linked, Welcome tevasaki!
^C

管理スクリプトをDownloadして実行権限を付けて実行パスの通った場所に配置

$ wget -O dropbox.py "https://www.dropbox.com/download?dl=packages/dropbox.py"

$ chmod 700 dropbox.py

# mv dropbox.py /usr/local/bin/dropbox

$ dropbox start -i

log

Starting Dropbox...
Dropbox is the easiest way to share and store your files online. Want to learn more? Head to https://www.dropbox.com/

In order to use Dropbox, you must download the proprietary daemon.
Note: python-gpgme is not installed, we will not be able to verify binary signatures. [y/n] y
Downloading Dropbox... 100%
Unpacking Dropbox... 100%
Done!

status オプションで同期されているか確認

$ dropbox status
最新の状態

同期除外したいフォルダを登録

$ dropbox exclude add ‾/Dropbox/dotfiles/

Excluded:
dotfiles

  • .gitファイルまで同期してしまうので、よくコンフリクトして xxx の競合コピー みたいなのが作られて色々とおかしく、面倒臭くなるので。

$ dropbox exclude add ‾/Dropbox/Photos/

Excluded:
photos

$ dropbox exclude add ‾/Dropbox/public/

Excluded:
public

$ dropbox exclude add ‾/Dropbox/share/

Excluded:
share

$ dropbox exclude add ‾/Dropbox/tool/

Excluded:
tool

除外されているかを確認

$ dropbox exclude list

log

photos
public
share
tool

dropbox.py のオプション一覧

$ Dropbox --help

Dropbox command-line interface

commands:

Note: use dropbox help to view usage for a specific command.

autostart automatically start dropbox at login
exclude ignores/excludes a directory from syncing
filestatus get current sync status of one or more files
help provide help
lansync enables or disables LAN sync
ls list directory contents with current sync status
puburl get public url of a file in your dropbox
running return whether dropbox is running
start start dropboxd
status get current status of the dropboxd
stop stop dropboxd

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published