LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Dropbox not running at startup (https://www.linuxquestions.org/questions/linux-newbie-8/dropbox-not-running-at-startup-4175534490/)

rjmartinator 02-18-2015 11:38 PM

Dropbox not running at startup
 
I'm running Debian wheezy. I have Dropbox installed, but it won't run on startup. I downloaded their CLI script dropbox.py, and if I use

Code:

python dropbox.py start
then it starts. I'm trying to use that to get it to run at startup. I have tried editing .profile, and crontab, but it doesn't work and I don't know what else to try. Is it a permissions issue? (I tried making dropbox.py executable and adding python to visudo) or do I need to have some other command to run it at startup?

I appreciate the help!

sudowtf 02-19-2015 08:46 AM

I use Dropbox on Debian but i don't use that script.

Install from here (as you have already done obviously) https://www.dropbox.com/install?os=lnx

$ aptitude show dropbox
Package: dropbox
New: yes
State: installed
Automatically installed: no
Version: 1.6.2
[...]

It reports version 1.6.2, but technically i've updated the binary from here: http://linux.softpedia.com/get/Commu...ox-41209.shtml

I run XFCE, and "Dropbox" shows in my menu system. I've created an "Application Autostart" in Settings Manager, and all is well and shows the icon on my panel.

beachboy2 02-19-2015 09:17 AM

The first command removes the existing Dropbox application and the second one removes files from your existing Dropbox folder.

Code:

sudo apt-get remove dropbox; rm -rvf ~/.dropbox ~/.dropbox-dist

rm -rv ~/Dropbox


Go to this page and download the 32/64 bit .deb file to your Desktop and then install it with gdebi.

You may need to install gdebi if it is not there by default, I cannot remember.

https://www.dropbox.com/install?os=lnx

suicidaleggroll 02-19-2015 09:35 AM

Just put your command in cron with the @reboot directive:
Code:

@reboot /usr/bin/python $HOME/dropbox.py start
Changing the path to python and dropbox.py accordingly.

rjmartinator 02-22-2015 11:46 PM

I tried all three - beachboy2's suggestion worked, apparently gdebi made the difference. Thanks!


All times are GMT -5. The time now is 09:25 PM.