Task:
Need to update the current (now older) Dropbox executable files.
Current Setup:
Server "notes" user runs dropbox via symlinks to /opt/dropbox.
Software installed by root. Scripts are executable by all local users.
Upgrade Steps:
Switch to root user:
$ sudo su
Backup the old install incase needed:
# mv /opt/dropbox /opt/dropboxold/
Make the new folder and install into folder:
# mkdir /opt/dropbox/
# chmod 775 /opt/dropbox/
# cd /opt/dropbox/
# wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
Note: This command installs to the hidden .dropbox-dist folder inside the /opt/dropbox folder. We will move the contents up to the main /opt/dropbox folder.
# ls -la
# cd .dropbox-dist/
# mv *.* ../
# mv * ../
# cd ..
# rmdir .dropbox-dist/
Download the dropbox.py script in case it has been updated:
# wget -O ./dropbox.pynew https://www.dropbox.com/download?dl=packages/dropbox.py
# mv dropbox.pynew dropbox.py
# chmod 775 dropbox.py
Done.
# exit
Verify the user, "notes" symlinks still okay.
$ cd /home/notes/
$ ls -la
...
lrwxrwxrwx 1 notes notes 12 Dec 8 14:42 .dropbox-dist -> /opt/dropbox
lrwxrwxrwx 1 notes notes 23 Dec 8 14:45 dropbox.py -> /opt/dropbox/dropbox.py
...
Start the Dropbox python script:
$ ./dropbox.py start
Note: If Dropbox says it is not installed, run ./dropbox.py start -i..
previous page
|