Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Install and Configure Dropbox on Ubuntu Server
02-01-2014, 12:24 AM,
Post: #1
Install and Configure Dropbox on Ubuntu Server
As-Salamualaikum,selamat malam..
Jom install dropbox dalam Ubuntu server ^^

Step 1-Download dropbox dari official site

untuk 32bit:
Code:
wget -O dropbox.tar.gz "http://www.dropbox.com/download/?plat=lnx.x86"

untuk 64bit:
Code:
wget -O dropbox.tar.gz "http://www.dropbox.com/download/?plat=lnx.x86_64"

Step 2-Extract dropbox
Code:
tar -zxvf dropbox.tar.gz

Step 3-Jalankan dropbox client daemon
Code:
~/.dropbox-dist/dropboxd
korang dikehendaki membuat satu akaun(copy paste dibrowser dengan link yg diberi)

AUTOMATIK DROPBOX START UP:

1- sudo touch /etc/init.d/dropbox
2- sudo nano /etc/init.d/dropbox

copy paste bash script ini
Code:
#!/bin/sh
# dropbox service
# Replace with linux users you want to run Dropbox clients for
DROPBOX_USERS="user1 user2"

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
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
save dan exit

3- chmod +x /etc/init.d/dropbox
4- sudo update-rc.d dropbox default
5- Control dropbox client
Quote:sudo service dropbox start|stop|reload|force-reload|restart|status

contoh nak restart dropbox
Code:
sudo service dropbox restart
If you control the code,
You can ConTROLL the world!
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Linux NTP Client Server? c0ff33 7 1,015 16-09-2013, 11:58 PM
Last Post: TRUNASUCI
  Cara Install Arch Linux - Step by Step HaoRen 10 2,373 06-09-2013, 01:41 PM
Last Post: fatah
Rainbow [TUTORIAL] Install Kali linux Dual Boot & VMWare hazard74 12 2,149 16-05-2013, 01:52 PM
Last Post: sil
  [Help] Ubuntu 12.10 64bit VPS Failed Install GUI whcool 10 1,453 01-05-2013, 07:24 PM
Last Post: whcool
  [Soalan] Distro terbaik untuk server? servant_fox 33 4,999 19-04-2013, 05:39 PM
Last Post: TRUNASUCI
  Install Cel BB di Fedora MadT0yz 3 617 27-02-2013, 01:07 AM
Last Post: biborn
  HELP: Macam Mana Nak Setup CS 1.6 Non Steam Kat Linux Server ? gamemaster 16 2,461 29-10-2012, 02:57 PM
Last Post: gamemaster
  [pertanyaan] Install CentOS dekat server dengam raid 5 card skyz3r 7 1,526 25-09-2012, 10:42 AM
Last Post: TRUNASUCI
  Problem lepas cuba install Ubuntu. File inaccessible. Yo 4 831 09-06-2012, 10:47 AM
Last Post: Yo
  Install Android Os Untuk PC Tron 9 1,715 20-05-2012, 01:57 AM
Last Post: XdeathX

Forum Jump: