Ubuntu – set the time zone so that it takes BST into account


On Ubuntu, if you set the time manually using sudo locale-gen en_GB.UTF-8 then the problem is that it does not take BST (British Summer Time) into account, so during BST the server time is out by 1 hour. This is obviously an issue if you have time restrictions on logging on to whatever system is hosted on the server. The solution is to run: sudo dpkg-reconfigure tzdata Follow through the on...

Ubuntu – Copy all files from another server by FTP


Moving servers from one infrastructure to another. In our case, from Webfusion UK to AWS. Problem we face is that there are over 82Gb of files to move from one server to another. Traditionally we would have downloaded them all locally, then uploaded them, but what if there was a way to transfer them directly from one server to another. We turned on FTP on the source server, and updated the...

Ubuntu – count all files in a directory recursively


Ubuntu – count all files in a folder recursively. Took a while to figure out how to do this on a single command, but so very useful to check if all files have copied successfully. find . -type f | wc -l How this works: find . -type f finds all files ( -type f ) in this ( . ) directory and shows everything as one file on each line in a list. The second command comes after the pipeĀ | into wc...



Get in touch

I'm available on just about every social media platform out there as RMTWeb.