Tag Info

Hot answers tagged

3

The script /etc/rc.local is run as root. Make sure that you have the correct private key for user slyme@192.168.1.4 installed in /root/.ssh/ (and not just in your user's $HOME/.ssh) Alternatively, to make sure the correct private key is used, you can specify it on the rsync command line: rsync -e "ssh -i /path/to/ssh_key" ... Hope this helps.


3

If you want to use /etc/rc.local you should run the script as your user: su -l myuser -c /path/to/the/script Otherwise, you can use the @startup option of the cron system; this way the job is safely executed as your user and you do not need to edit system files. See for example ...


2

I had exactly the same problem and solve it by installing dropbox following these instructions, but substituting nautilus-dropbox by dropbox. That is, I installed dropbox by executing these commands: sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 5044912E sudo add-apt-repository "deb http://linux.dropbox.com/ubuntu $(lsb_release -sc) main" sudo ...


1

I installed dropbox from the app provided in the Ubuntu Software Centre and works well placing an icon in the top bar of the screen.


1

You could also edit /etc/rc.local - it runs later in the start up process than cron tasks. I had to use it to fire off some MySQL stuff on re-boot because mysql wasn't up and running when the cron task fired. EDIT: Run this: `sudo nano /etc/rc.local' Add your command like so ... #!/bin/sh -e # # rc.local # # This script is executed at the end of each ...


1

You may have thought that the solution is just around the corner, but I think you need to go one step back. What you need to do appears to be a kind of automatic registration. Smart idea, yet... your current approach will require a browser supporting JavaScript. I think I would do that differently. At the end of the day, all you need to do is issue the ...


1

@i08in http://askubuntu.com/a/92235/72576 seems to do the job. This is what I ended up with on my Debian jessie, KDE. /etc/pm/sleep.d/20_xmodmap.sh case "${1}" in resume|thaw) su $USER -c "sleep 3; /usr/bin/xmodmap /home/$USER/.Xmodmap" & ;; esac Note: At first it may seem to not work, but just give it a minute or so. There seems to be ...



Only top voted, non community-wiki answers of a minimum length are eligible