Created
August 31, 2011 05:17
-
-
Save hdemon/1182868 to your computer and use it in GitHub Desktop.
DropBox設定スクリプト RHEL 64bit用
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
# Amazon EC2 / Amazon Linux 64bitでも起動 | |
cd ~ | |
# wget -O dropbox.tar.gz "http://www.dropbox.com/download/?plat=lnx.x86" | |
wget -O dropbox.tar.gz "http://www.dropbox.com/download/?plat=lnx.x86_64" | |
tar xvzf dropbox.tar.gz | |
rm dropbox.tar.gz | |
~/.dropbox-dist/dropboxd | |
# ここで以下の様なメッセージが出るので、指定のURIにアクセスしてマシン認証を行う。 | |
# This client is not linked to any account... Please visit | |
# https://www.dropbox.com/cli_link?host_id=*** to link this machine. | |
git clone git://gist.github.com/1210487.git gist-1210487 | |
mv ./gist-1210487/dropbox /etc/init.d/dropbox | |
chmod 755 /etc/init.d/dropbox | |
# 注意! user1 user2 = 許可するユーザ。自分で変えること。 | |
echo DROPBOX_USERS=\"user1 user2\" > /etc/sysconfig/dropbox | |
chmod 755 /etc/sysconfig/dropbox | |
service dropbox start | |
chkconfig dropbox on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment