For a long time I’ve maintained a memory aid in the form of a list of useful commands which can be used on the command line for Linux, OS X, BSD, Solaris, etc., so I thought I’d list them in a blog post in case they come in useful for others. Most of these will run on any Unix-type operating system, though I’ve usually indicated where a command is OS-specific.
A few years ago I wrote a quite popular post for security hardening on Ubuntu 14.04, and now here’s a new version for CentOS 7 and RHEL 7. Much of it should apply to CentOS/RHEL versions 6 and 8, with some tweaks required here and there. It should also largely work with Amazon Linux and Amazon Linux 2, although again some tweaks will be required for those.
CETRE SysAdmin Services continue to operate as normal during the Coronavirus pandemic and lockdown. Matt’s services are available for organisations feeling the strain during this difficult period, who are looking to keep their infrastructure up and running as efficiently as possible with minimal costs and resource usage. Matt’s services are also available for organisations taking advantage of this slower period to make improvements or launch projects requiring new infrastructure and devops engineering.
I wanted to get notified of any new machines connecting to my local network so that I could be reasonably sure there would be no unauthorised devices connecting wirelessly to use my network for unknown and potentially malicious purposes. I therefore wrote a simple script to detect new MAC addresses appearing on the network and notify me accordingly. The script requires nmap to be installed and should ideally be run from cron with the output going to a valid email account. The script can be obtained from my GitHub.
Fairly recently I made some notes for a setup of Elastic Stack on a network of CentOS 6 machines. I found it relatively involved so thought it was worth sharing.
It’s unusual for me to take much interest in anything with so much hype, but I thought I must make an exception for No Man’s Sky, a game which brings together two things I’ve treasured during my life: firstly, the concept of space exploration in a computer game, as originally explored in the form of the glorious game Elite which I spent a great deal of time playing as a teenager; and secondly, graphics inspired by wonderful 70s sci-fi artwork such as that produced by Chris Foss, which I’ve enjoyed in books since my early childhood. I was so keen to play this game that I even went so far as to buy a new PS4 so I could play it.
My original post for monitoring HP storage hardware in CentOS is now out of date, so I decided to write an updated post for monitoring all hardware, not just storage hardware, and for optionally including this hardware monitoring in Nagios.
At mongodb.org they seem to assume we can create MongoDB replica sets using unlimited numbers of instances which have infinite amounts of storage. In practice, however, we often need to use replica sets with only two nodes (plus arbiter) which have limited storage. The problem then is that MongoDB has the tendency to use vast amounts of disk space without reclaiming the space from dropped data, so it consumes ever-increasing amounts of storage. It’s then hard to deal with this storage problem given the limited options available in a two-node replica set.
I recently had to configure the open-source firewall pfSense to allow VPN access for mobile clients, particularly those using OS X on Macs and iOS on iPhones and iPads.
Earlier this year, I was invited to join a group who had decided to enter the SCI-FI-LONDON 48 Hour Film Challenge which, as the name suggests, requires you to make a science-fiction film from scratch within 48 hours during a weekend. As you can probably imagine, this is indeed very challenging, but very satisfying and great fun.