1
2
3
4
5
| wget -O dropbox.tar.gz http://www.getdropbox.com/download?plat=lnx.x86
tar zxof dropbox.tar.gz
wget http://dl.getdropbox.com/u/6995/dbmakefakelib.py
wget http://dl.getdropbox.com/u/6995/dbreadconfig.py
python dbmakefakelib.py
|
no gcc so install it
1
2
| sudo yum install gcc
python dbmakefakelib.py
|
you should get the below meeages:
1
| dropboxd ran for 15 seconds without quitting - success?
|
just control-c out of this and continue
python errors - need to manully open sqlite
1
2
3
| cd .dropbox
sqlite3 dropbox.db
sqlite< .dump config
|
paste the ‘host_id’ into http://www.opinionatedgeek.com/dotnet/tools/Base64Decode/
paste the result ( the stuff after the ‘V’ ) at the end of this url
( https://www.getdropbox.com/cli_link?host_id= ) and enter in your browser
you’ll be asked to log into dropbox - this should link your account to your server
To start drop box just run
1
| ~/.dropbox-dist/dropboxd &
|
If you want to run dropbox as a services
1
| sudo vi /etc/init.d/dropbox
|
and paste in the below code
note: change “user1 user2” to the user(s) on the server running dropbox
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
| # chkconfig: 345 85 15
# description: Startup script for dropbox daemon
#
# processname: dropboxd
# pidfile: /var/run/dropbox.pid
#
# Source function library.
. /etc/rc.d/init.d/functions
DROPBOX_USERS="user1 user2"
prog=dropboxd
lockfile=${LOCKFILE-/var/lock/subsys/dropbox}
RETVAL=0
start() {
echo -n $"Starting $prog"
for dbuser in $DROPBOX_USERS; do
daemon --user $dbuser /bin/sh -c "/home/$dbuser/.dropbox-dist/dropboxd&"
done
RETVAL=$?
echo
[ $RETVAL = 0 ] && touch ${lockfile}
return $RETVAL
}
stop() {
echo -n $"Stopping $prog"
for dbuser in $DROPBOX_USERS; do
killproc /home/$dbuser/.dropbox-dist/dropboxd
done
RETVAL=$?
echo
[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo $"Usage: $prog {start|stop|restart}"
RETVAL=3
esac
exit $RETVAL
|
1
2
3
| sudo chmod +x /etc/init.d/dropbox
sudo /sbin/chkconfig --add dropbox
sudo chmod 755 /etc/init.d/dropbox
|
to start dropbox
1
| /etc/init.d/dropbox start
|