In this guide I will be showing you how to install and enable the SAR utility/command on Linux servers. The SAR command can be used to look at performance history, and is really useful for identifying when CPU spikes occurred and more. And example of one of the outputs that SAR is capable of delivering is below.
Today I will be showing you how to use a basic expect script inside of your bash scripts for automation. Expect works just like the name sounds, expect to see a prompt or other piece of text and then send the response. With this you can do things such as automatically entering password for SSH (not recommended for daily use), automatically answer prompts, etc.
If you get even remotely as annoyed as I do when you recieve an SSH timeout or disconnect then this post is for you. Below is how to quickly and easily fix the SSH timeout issue on the server side. This solution will not disable the timeouts entirely though, instead it just sets the threshold extremely high. While you can fix ssh timeouts on your clients, its much better to do so on your server that way you won’t have to do it on every single client/computer that is used to connect to your server.
In this quick and simple post I will show you how to generate a free SSL certificate for Apache using letsencrypt and certbot, this will allow your users to view your website or blog over a secure and encrypted HTTPS connection instead of a standard insecure HTTP connection. For the purpose of this guide I will assume you are using Ubuntu server but if you need help getting it to work on a different OS then feel free to comment.