$ ssh 10.0.0.31
In my local ~/.ssh/config
I have:
Host server.appletonmakerspace.org
HostName 184.59.236.69
User mike
Port 2222
The above allows me to do:
$ ssh server.appletonmakerspace.org
# Make note of currently running linux kernel (in case we need to revert to it)
$ sudo uname -a
# Fetch and apply updates
$ sudo apt-get update && sudo aptitude safe-upgrade
# Reboot so we can be running the new kernel, and therefore delete the old one
# *** There is very little space at /boot so to avoid out-of-disk problems that can prevent boot up,
# best to delete the previous kernel every time you install a new one!
$ sudo reboot
<<<ssh back into the machine>>>
# Observe the new kernel version number
$ sudo uname -a
# Inspect the /boot for anything containing the OLD version and delete it carefully
$ sudo ls -la /boot
$ sudo rm -rf /boot/*184*
# Check for old linux module stuff managed by apt.
$ sudo apt list --installed | grep linux
# Remove anything with an older version than you are currently running. Alternately, play it safe and keep one of the previous versions around just-in-case.
$ sudo apt remove linux-headers-4.15.0-184
# Clears the package cache and any no-longer-needed dependencies.
$ sudo apt autoremove
# Switch from yourself to the 'dhmn' user as this is where the webcam script lives/is owned
$ sudo -iu dhmn
# This is the HTML for http://webcam.appletonmakerspace.org/
# The jpgs here are placed by a script in /home/dhmn/webcam edit that script to add/remove/change the images or their names.
/var/www/webcam/index.html
# The main script: /home/dhmn/webcam/webcam.sh
# This bash script is called on a cron job every 60 seconds.
# If you want to change the cron, be logged in as the 'dhmn' user and do the following to edit it: $ EDITOR=vim crontab -e
# The script uses 'curl'/'ffmpeg' to fetch stills from the various types of cameras.
# The temporal images are named "raw..."
# The script then goes on to run the watermark.php script against all the "raw..." images to put the "Appleton Makerspace" and date/time on the images.
# The script then copies the "raw..." files into /var/www/webcam.
# The finally with all the files in place, it renames them all to strip the temporal name and assert the names the 'index.html' is expecting.
$ sudo nmap -sP 10.0.0.0/24