When working remotely, one is known to sometime connect to a machine (within the vpn’d network) as a jump box. Unfortunately, it doesn’t seem to cache the ssh keys properly. Thus, they should be stopped and restarted: ps -ef |grep “[s]sh-agent -s” | awk ‘{print “kill ” $2}’ |sh eval ssh-agent -s ssh-add ~/.ssh/id_rsa Of…
Category: Linux
Rotate photo based on metadata
There are times when it makes sense to rotate the photo, based on the extra information stored in the photo. The EXIF data contains this. To download the tool on a deb distro: sudo apt install exiftran Once installed, you can rotate one photo with: exiftran -ai Or to all files in a directory: for…
centos7 /boot cleanup
Recently done some work on tweaking the centos7 system to run a newer kernel version. Similar to: https://wiki.mikejung.biz/CentOS_7 However, upon installing a newer kernel and rebooting the system, I discovered the /boot file system had 6MB of free space left. Apparently, time for a cleanup. Here are the steps I used to clean up space,…