I recently bought a Raspberry Pi (model 4B with 2GB of RAM memory) to play a bit with HomeBridge and to also expand my knowledge on (basic) scripting and Linux in general. After re-installing the Raspbian image on my Raspberry Pi, I tried to remotely connect to the Pi with SSH again via Terminal on Continue reading →
Search Results for: ssh
Restart HomeBridge via SSH
Restarting HomeBridge can be sometimes handy when in testing mode. Here is the command to restart HomeBridge (to be used via SSH for example on your Linux system): The command will give no output, but HB should now be restarted.
Linux SSH update issue: Errno 12 and Errno 256 error message
Today I tried to update my Linux operating system via SSH using the command sudo yum update (sudo apt-get update may be working too, depending on the Linux distrubtion). Most updates worked fine, except for one, where I received this error: http://mirrors.ustc.edu.cn/centos/6/updates/x86_64/Packages/libssh2-1.4.2-3.el6_10.1.i686.rpm: [Errno 12] Timeout on http://mirrors.ustc.edu.cn/centos/6/updates/x86_64/Packages/libssh2-1.4.2-3.el6_10.1.i686.rpm: (28, ‘Operation too slow. Less than 1 bytes/sec Continue reading →
Find the largest file(s) and folder(s) in Linux via SSH
A Linux-based operating system is a powerful machine. However, most webservers are only accessible via SSH and you have to do all the work with the use of the command line. Recently, one of my webservers was using a lot of disk space. To investigate what file or files were taking up all my free Continue reading →
Disable service alerts (SSH, HTTPD, Dovecot, …) in DirectAdmin
To disable these service alerts in the Direct Admin control panel, you can simply edit the file services.status at /usr/local/directadmin/data/admin/ This file should look (similar) like this: If you want to disable SSH alerts in Direct Admin, maybe because a spammer is trying to brute force its way into your system, simply change ON to Continue reading →
Speedtest from the command line interface (without installing software)
Performing an internet speedtest is an interesting way to measure how fast your internet connection is. It may give you insights into your internet connection quality, or you may want to know if you get what you pay for. I wrote my own internet speedtest, but a more popular alternative is speedtest.net. However, you may Continue reading →
Guide: Update HomeBridge plugins
If you previously have been installing HomeBridge (let’s say, on a Raspberry Pi), you know it’s a neat little piece of software. Thanks to HB, many non-smart or non-HomeKit enabled devices can be controlled via your iPhone or iPad using the Home app. A community of developers has created HomeBridge – HomeKit support for the Continue reading →
Resolve WordPress error message: ‘PHP Update Required’
If you recently opened your WordPress dashboard, you may be seen an new banner that warns you about a required PHP update. The message says the following: WordPress has detected that your site is running on an outdated version of PHP.What is PHP and how does it affect my site?PHP is the programming language we Continue reading →
How much energy does a Raspberry Pi use per year? Cost calculation
A Raspberry Pi can be used for various cool Raspberry projects. As such, it is likely that your Raspberry Pi will be powered on all the time: 24/7 and year round. So you may be wondering: what does it cost me to have my Raspberry Pi turned on for one year? What is its power Continue reading →
Disable the Red and Green Lights on a Raspberry Pi
The Raspberry Pi has two LED light indicators: Green (the ‘action light’): to indicate the system is busy/working Red (the ‘power light’)’: to indicate the system is not getting enough power To stop the lights from blinking, you can execute the following commands on your Raspberry Pi (via SSH for example): Disable the green LED: Continue reading →
Guide: Installing HomeBridge on a Raspberry Pi
HomeBridge is a great open source software package (available on GitHub) which allows you to control non-HomeKit certified hardware (e.g. power outlets, camera’s, thermostats, ..). HomeBridge can be installed on virtually any piece of hardware, but in this tutorial I will specifically focus on installing the software on a Raspberry Pi (and more concretely the Continue reading →
DirectAdmin: “your hostname is setup improperly on your system”
A daily e-mail may be greeting your about your DirectAdmin installation not being configured properly. Subject: This is e-mail notification to warn you that your hostname is setup improperly on your system. Your hostname, example.be, and the servername you have set in DirectAdmin, abc.example.be, do not match. It is recommended that these two values are Continue reading →
Update DirectAdmin to PHP 7.0 (CustomBuild)
The web is about to get a whole lot faster! Just this week, HTTP version 2 was released, promising faster page load times. Now it’s PHP which is getting a huge upgrade, which comes with a bunch of new features and improvements. If your server runs DirectAdmin and you are looking to upgrade your PHP Continue reading →
DirectAdmin: change “Apache is functioning normally”
In DirectAdmin, the default message you get when accessing a page is “Apache is functioning normally”. This is good to know, because if you see this message, it means Apache is working and returning a reply. However, if you want to change this page to something more informative or user-friendly, you should edit the file Continue reading →
DirectAdmin: “Error Loading ssl_cipher”
When I could no longer connect to my server on port 2222, I knew something was up with Direct Admin. I received the error Stopping Direct Admin Failed. I checked the error logs and the error was as follows; There appears to be something wrong with loading the ssl cipher for the Direct Admin service. Continue reading →
Solve: “Stopping DirectAdmin: [FAILED]”
When you have made changes to the Direct Admin or you simply have to restart the DirectAdmin service, you can restart the DirectAdmin service manually. In my case, I was no longer able to connect to my server (by default, the server is accessible by going to serverip:2222 in your browser). Use one of these Continue reading →
Test your VPS server speed
A VPS can be bought for a cheap price these days and many hosting providers have various plans to choose from, ranging from a few hundred MB of RAM and a single core CPU, to virtual private servers with lots of RAM and speedy Gigabit connections. Mostly, a Linux server doesn’t need that much resources Continue reading →
phpMyAdmin – Error #1040 – Too many connections
You might encounter the error message: “phpMyAdmin – Error #1040 – Too many connections” when you work in the phpMyAdmin interface. This probably is something you don’t have to worry about that much. It is likely a temporary issue with your database and reloading the page should solve the issue. However, if this error is one Continue reading →
Custom welcome message at boot on CentOS
To edit or add a welcome message on CentOS (and this will probably work on other Linux distributions too), simply login to SSH first. Once logged in, edit the following file /etc/motd with vi, nano or any other editor you prefer. I like nano, so I’ll go with that. Here, you can customize the message or, Continue reading →
Change the hostname in CentOS from the command line
Open an SSH session to your server and edit the following file (with nano, or vim, or any other editor) In that file, change the HOSTNAME value. Save the file. Now check your hostname by typing hostname in the command line. CentOS should output your current hostname. Perhaps you might have to restart networking on Continue reading →