Got Dropbox up and working: (thx to the authors of this blog-posts [1] [2])
all kudos go to them
Tutorial Version 0.2:
32-bit:
64-bit:
execute
move dropbox (binary) folders to /opt and create a link:
Code
mv .dropbox /opt/dropbox
mv .dropbox-dist /opt/dropbox-dist
ln -s /opt/dropbox .dropbox
ln -s /opt/dropbox-dist .dropbox-dist
create a "Shared Folder" in OMV for your Dropbox-Content and link it with the Dropbox-(Document)-Folder in /home/user/
Put this in /etc/init.d/dropbox and edit line
DROPBOX_USERS="yourusername"
to match a username in OMV, _not_ your dropbox-name
Code
#! /bin/sh
# /etc/init.d/dropbox
#
# AUTHOR: Solo0815 - based on this script: http://www.fene-blog.de/linux/dropbox-unter-linux-debian-ohne-gui-einrichten/
# Correctly starts / stops / restarts dropbox at system startup
### BEGIN INIT INFO
# Provides: dropbox
# Required-Start: $remote_fs $syslog $all
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO
# Some things that run always
set -e
# Must be a valid filename
NAME=dropbox
PIDFILE=/var/run/$NAME.pid
#This is the command to be run, give the full pathname
export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
# dropbox service
# This must be a user on the OMV-System, _not_ your dropbox-username
DROPBOX_USERS="yourusername"
DAEMON=.dropbox-dist/dropbox
start() {
echo "Starting dropbox..."
for dbuser in $DROPBOX_USERS; do
HOMEDIR=$(getent passwd $dbuser | cut -d: -f6)
if [ -x $HOMEDIR/$DAEMON ]; then
HOME="$HOMEDIR" start-stop-daemon -b -o -c $dbuser -S -u $dbuser -x $HOMEDIR/$DAEMON $DAEMONOPTS
fi
done
}
stop() {
echo "Stopping dropbox..."
for dbuser in $DROPBOX_USERS; do
HOMEDIR=$(getent passwd $dbuser | cut -d: -f6)
if [ -x $HOMEDIR/$DAEMON ]; then
start-stop-daemon -o -c $dbuser -K -u $dbuser -x $HOMEDIR/$DAEMON
fi
done
}
status() {
for dbuser in $DROPBOX_USERS; do
dbpid=$(pgrep -u $dbuser dropbox)
if [ -z $dbpid ] ; then
echo "dropboxd for USER $dbuser: not running."
else
echo "dropboxd for USER $dbuser: running (pid $dbpid)"
fi
done
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload|force-reload)
stop
start
;;
status)
status
;;
*)
echo "Usage: /etc/init.d/dropbox {start|stop|reload|force-reload|restart|status}"
exit 1
esac
exit 0
Alles anzeigen
execute
dropbox should run on the next reboot