Non-interactive Debian upgrade script

This could be run as a cron job on any Debian based system (tested on Debian, Ubuntu, Raspian). #!/bin/bash export DEBIAN_FRONTEND=noninteractive yes ” | apt-get -y -o DPkg::options::=”–force-confdef” -o DPkg::options::=”–force-confold” dist-upgrade See http://slave27.local/debian-handbook/sect.automatic-upgrades.html for more details.

Installing Motion on Ubuntu

Install motion: sudo apt-get install motion Enable motion to start at boot: sudo nano /etc/default/motion Find the line that says start_motion_daemon=no and change it to start_motion_daemon=yes. Enable the stream to be viewed from other computers on the local network, and also make the output a little bigger: sudo nano /etc/motion/motion.conf Change the following values: daemon … Read more

Disabling X11 on Raspberry Pi build of Ubuntu

Executing graphical disable will present a console login on the next boot, with no X11 or associated services running. If you want to get the full Ubuntu MATE desktop back, run graphical enable and reboot. See https://ubuntu-mate.org/raspberry-pi/ for more information on this build and how it works.

Software update scripts

Mac OS X #!/bin/bash echo “updateall v.1.1 for OS X. This software will upgrade all your Apple/Homebrew software.” # Run this as a normal user. Your admin password will be asked for if required. # Update all Apple software (requires admin password at this point) sudo softwareupdate -i -a # Update all software installed via … Read more