Update and upgrade Moodle using Git

Git provides the easiest way to manage Moodle code, including updates and upgrades. An update is a minor version change such as from 3.3.2 to 3.3.3 for example, whereas an upgrade involves a major version change such as from 3.3 to 3.4. These examples were all run on CentOS Enterprise Linux 7 but should be similar for any Linux distro.

Continue reading “Update and upgrade Moodle using Git”

Certbot solves HTTPS

There is general agreement these days that the internet as a whole needs to be more secure from eavesdropping and content hijacking. This could be achieved by a general move from HTTP to HTTPS as the default protocol, but for years the issue of the certificates required to do this has been dominated by the SSL certificate mafia. This cartel which includes Symantec, RapidSSL, GeoTrust and Thawte has discouraged the widespread adoption of HTTPS by making it an expensive and tedious chore. Not any more.

Continue reading “Certbot solves HTTPS”

Zabbix and ICTNWK403

The unit ICTNWK403 Manage network and data integrity covers a mixed bag of skills and knowledge around the “development of asset protection processes, determining threats and implementing controls to mitigate risk“: in other words, keeping the show on the road.¬†Topics range from the management of user accounts, file permissions, assets and backups to handling environmental and virus/malware threats and deploying network monitoring systems.

Continue reading “Zabbix and ICTNWK403”

Ansible control centre

This post describes one way to configure a computer to centrally manage an IT training lab using Ansible. The control centre computer could be physical or virtual, headless or not, a laptop, a desktop or anything else: the only real requirements are that the device can bring up a CLI (command line interface) in a terminal, that the vi text editor is installed, and that normal SSH infrastructure is in place.

Continue reading “Ansible control centre”

Advanced open source networking resources

gearsIt is no secret that most corporate and industrial computing resources in the world today have now been migrated from physical infrastructure to a combination of public, private and hybrid cloud environments. A similar trend is now under way in the networking space, with network control logic shifting from proprietary hardware-based platforms to open source software-based platforms (SDN or Software Defined Networking).

Continue reading “Advanced open source networking resources”

CentOS 7 firewalld NAT router

gearsThis post outlines how to build a simple router using firewalld and dnsmasq on CentOS 7.3. The problem this router solves for us at SuniTAFE is that it isolates virtual networks being built or used by students on VMWare ESX hosts from the main college network, while still allowing student access to the college network for DNS forwarding and internet access purposes.

Continue reading “CentOS 7 firewalld NAT router”

Update CentOS 7 to Golang 1.6

wowCentOS 7 is a rock-solid development and production platform, but this stability often means that default web-related packages are outdated. It turns out golang is no exception: the default CentOS 7 version is 1.4, whereas I wanted 1.6. There have been some changes in golang project layout between the two versions and I figured I may as well get with the program and update before starting a new API project.

Continue reading “Update CentOS 7 to Golang 1.6”

MySQL database migration

 

gearsI recently upgraded my development laptop to CentOS 7 and while I was at it built a spare laptop running the same operating system. After manually creating a dozen MySQL databases and users and then importing their data from dump files on one laptop, I wasn’t interested in going through exactly the same process again on the second laptop.

Continue reading “MySQL database migration”