vim is a great tool for editing any form of text, be it a blog post, text or programming code. Unfortunately there is a bit of a learning curve when first getting started with vim. In this article I want to provide an overview of some of the key features of vim and how to … Continue reading A gentle introduction to vim
Tag: Linux
Upgrade to Oracle JDK 10 on CentOS/RHEL
With the release of Java 10 only a few days ago, it seems only prudent to update to Java 10 on suitable systems since the support for Java 9 official ends with the release of Java 10. (Note that Java 8 still enjoys long-time support, so it might be the best choice to stick with … Continue reading Upgrade to Oracle JDK 10 on CentOS/RHEL
Configuring an initd Service for node_exporter
I recently wrote an article showing how to configure Prometheus and Grafana for easy metrics collection. In that article, I assumed that the system which should be monitored would use the systemd approach for defining services. I now had to set up the node_exporter utility on a system which uses the initd approach. Thus, I … Continue reading Configuring an initd Service for node_exporter
Easy VPS Backup
I love VPS providers such as RamNode or ServerCheap which provide excellent performance at a low price point. Unfortunately, when going with most VPS providers, there are no easy built-in facilities for backing up and restoring the data of your servers (such as with AWS EC2 snapshots). Thankfully, there is some powerful, easy to use … Continue reading Easy VPS Backup
Setting up Prometheus and Grafana for CentOS / RHEL 7 Monitoring
As mentioned in my previous post, I have long been looking for a centralised solution for collecting logs and monitoring metrics. I think my search was unsuccessful since I was looking for too many things in one solution. Instead I found now two separate solutions, one for log management (using Graylog) and one for metrics … Continue reading Setting up Prometheus and Grafana for CentOS / RHEL 7 Monitoring
Installing Jenkins on Centos 7
I set up a Jenkins server on a brand new Centos 7 VPS. In the following the instructions for doing this in case you are looking at doing the same: Setting up Jenkins Server Install OpenJDK Java sudo yum install java-1.8.0-openjdk Add Jenkins Repo and install Jenkins sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo sudo rpm --import … Continue reading Installing Jenkins on Centos 7
Test Latency Between Two Servers (Linux)
Today I was looking for a simple way to test the latency and bandwidth between two Linux servers. The easiest way, of course, is to just use ping. The ping utility should be available on almost any Linux server and is extremely easy to use. Just login to one of your servers and then execute … Continue reading Test Latency Between Two Servers (Linux)
Install PHP Application and WordPress Alongside Each Other
Problem You have a webpage like http://www.example.com and you would like to serve both WordPress and files from a PHP application from the root domain. For instance, opening http://www.example.com/my-post will open a post on WordPress and http://www.example.com/index.php will open a page in a PHP application. Solution Set up your php application in /var/www/html Install WordPress … Continue reading Install PHP Application and WordPress Alongside Each Other
Versioning WordPress with Git and Revisr
WordPress is a powerful platform to just get a simple website up and running. Unfortunately, some things which are considered best practice in software development projects are a bit difficult to realize with WordPress. One of these things is versioning. Thankfully, there is a powerful plug in which enables versioning WordPress using a git repository: … Continue reading Versioning WordPress with Git and Revisr
Install Latest JDK on Linux Server
Edit: Updated with new script version provided by MaxdSre. To install the Oracle JDK on a Linus server is often a tricky proposition. For one, the download page requires to confirm a prompt and only unlocks the download link after this prompt has been confirmed (via a cookie, I think). This makes it difficult to … Continue reading Install Latest JDK on Linux Server