Of which there are three:
- Make life simple and do all your incron as root. I know you shouldn’t but it helps to avoid all sorts of permissions issues. You may need to create an allow file “/etc/incron.allow” and put either root or your sudo name in it.
- Ensure that you only have one “SPACE” (not a TAB) between the three elements on an incron job: e.g.
/etc/samba/smb.conf IN_MODIFY /etc/init.d/samba restart
- incron, like cron, requires full paths for just about everything, so if you are calling a script, use the full path to it, and use the full path to all programs inside the script.
Combine the command line utility with the GUI browser and you have all the tools you need in Linux to view,sync and download from your cloud storage provider.
Here is how I set it up for accessing my Google Drive on my Xubuntu machine: Continue reading
A cool little command line or two.
Say you have a remote machine that you can ssh into, it is running an X server, and you want to take a screenshot of what is on screen. You will need imagemagick installed on the remote machine for the import command to work.
1. After you have ssh’d in:
DISPLAY=:0.0 import -window root /tmp/shot.png
This will save the screenshot to the remote machine’s tmp folder. You will need to scp across to get it!
2. Before ssh’ing
ssh user@remote-host "DISPLAY=:0.0 import -window root -format png -" | display -format png -
Replace user@remote-host with your details. The image will appear on your PC, you can then save it as required.
Both very cool 🙂
A few tips on moving a drupal 7 production site to a local server: Continue reading