I’m running the Unify controller software on the Raspberry Pi. For some reason, I encountered an error message when updating my Linux operating system via the sudo apt-get update command: Here is how I solved this: Entering this command started to upgrade unify 6.0 to 6.1 on my Raspberry device. Update Linux (Unify controller) error Continue reading →
Linux
Linux is a collection of open source, Unix-like operating systems, based on the POSIX-standard. The linux flavours are called linux distributions (or distro’s) and are mostly free to download and use. A popular example is Ubuntu or CentOS.
Raspberry Pi via SSH login error ‘WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!’
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 →
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. Restart HomeBridge via SSH was last modified: August 18th, 2019 by Thomas
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 →
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 →
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 →
Upgrade to Ubuntu 15.10 via command line
Ubuntu recently announced and released a new version of their operating system, called Wily Werewolf. This is version 15.10 of this Linux distribution and is officially supported until 07-2016. To upgrade your Ubuntu installation to the newest Ubuntu 15.10 release, open terminal and execute the following command: Upgrading Ubuntu from the command line is really that Continue reading →
Solved: Apache webserver unreachable after installing OpenVPN
After installing OpenVPN on a VPS running Linux (i.e. Ubuntu), my website that was hosted on that VPS running Apache webserver was no longer reachable. When I tried to connect to that website, the connection timed out. Apparently, something was messing with the functionality of Apache, which no longer worked properly. Apache was running fine Continue reading →
Howto: Updating Linux when DirectAdmin is installed
When you have DirectAdmin installed on your Linux operating system (e.g. Ubuntu, CentOS), you should not update your operating system without taking care of one thing first. DirectAdmin takes care of some packages itself, such as Apache or MySQL. So by updating these packages directly, you may cause some errors for DirectAdmin. To only update Continue reading →
Fix: php mail() slow to sent on Ubuntu
I recently installed sendmail to set up e-mail on my server. It’s as easy as intalling that package via apt-get: E-mail was installed correctly and working properly, because I tested it by creating a testmail.php file with these contents: Then, from the command line, I check if everything was working as I was expecting via 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 →
Speed up Ubuntu in VirtualBox
Ubuntu or other Linux distributions may be slow when you run it within VirtualBox. Often, the cause is that not enough RAM is assigned to the virtual machine, which makes it run slow and makes it unresponsive. However, if your VM already has plenty of RAM and you also already tried assigning an extra virtual Continue reading →
Add/Insert text before each line in Notepad++
If you have a list of items and you want to append text to each of these items, you can use the find and replace function of Notepad++. So press CTRL + H and in Find what , you enter ^. In Replace with, you enter the text you want to add before each new Continue reading →
Decrease Virtualbox .vdi size by compressing it
A .vdi file (“VirtualBox Disk Image”) is at least a few gigabytes in size if you run a virtual Windows OS or Linux OS. To reduce the filesize of this file, you can compress it. This can potentially save a few megabytes or even gigabytes on your disk. Maybe needless to say, but you want Continue reading →
Find httpd.conf on Apache Linux webserver
The httpd.conf file is a configuration file used by the Apache webserver. It contains information about settings and functions by this webserver. The file can be located in various places; this depends on the version of Apache and/or the operating system used. It can be commonly found here: /etc/httpd/httpd.conf You can then edit this file with 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 →
Search for text in a file within a specific directory in Linux
Sometimes, you need to find something quickly and don’t want to open tens or hundreds of file to find it. Luckily, Linux is a powerful operating system and can assist you in finding what you need. If you need to find something, let’s say you are looking for a specific piece of text within a Continue reading →
Check the number of cores on your Linux server
If you have a virtual linux server running, or you just don’t know how many cores your Linux server has, you can use this command to find out. If you need more details, such as your CPU architecture, vendor ID, stepping and other information, issue this command: The output you should see, should be similar Continue reading →