This post builds on the second step to create a Raspberry Pi Cluster Node to create a hello world application across two different scripts. Here we will create a socket connection between the two and use it to send a message to the master.
Today I will be improving the basic script used to backup my Raspberry Pi’s so that it compresses the files after they have been copied. This will allow me to store several backups instead of having a single copy stored on my computer. This assumes you have followed the first tutorial to create a Raspberry
Firefox, unlike many other applications, keeps a store of its own trusted root certificate authorities. This means that adding a new root certificate to the operating system will not work. This post runs through how to add a new root certificate to Firefox.
This post describes how you can upgrade Raspbian Jessie, version 8, to Raspbian Stretch, version 9. Raspbian Stretch was recently released and while they recommend installing from fresh you are able to upgrade the versions. Here I follow the steps of upgrading the Raspberry Pi’s in my cluster including some of the common problems that
This post walks you through the process of installing the Raspberry Pi OS, Raspbian, with VirtualBox. I am going to use this at times to test my software running on the OS that the Raspberry Pi Cluster runs.
The TTP223B Capacitive touch sensor is a button type sensor that allows you to detect when it is being pressed. In this post I review the sensor and provide code and a wiring diagram to use such a sensor.
I was looking to add shared folders to my Fedora VM but during mounting them there was an error. The error “access denied” appeared each time I attempted to mount the volume. This post explains why this happens and what you can do to fix it.
A slight deviation from my normal weekly posts to announce that the most recent update to chewett.co.uk has been uploaded! I have added a couple of pages including: Contact me page – A simple page with the easiest way contacting me Legal Stuff – Includes the software licence for code snippets on my blog and website
The recommended way to modify a WordPress theme is to use a child theme. This allows redefining all features of the parent theme without manually changing the theme. This post describes why you might want to do this and how to do it.
I am a big fan of Linux and today want to share how you can install the Windows Subsystem for Linux (WSL) on Windows 10. This new feature available in Windows 10 lets you install a Linux bash shell and run various linux tools on Windows. Here I describe how to set up and install
To set up a Raspberry Pi node I will follow a specific set of steps so that every Pi is set up similarly. For the initial deployment I will follow this once and then clone the SD Card multiple times. If at a later date more are added I will use this guide to follow
This post describes how to set up a SSL certificate with Certbot on Apache and Fedora. The guide primarily follows the guide on the certbot website however adds some additional information for if auto configuration fails.
For my cluster project I will add a new user to each Raspberry Pi. This is so the user I use for all other systems will be the same on the Raspberry Pi’s. This post describes how to add another user to Raspbian OS.
On my fedora system I found that after upgrading the kernel the graphics drivers wouldnt work. My machine would boot into the operating system perfectly fine but would have no image on the screen. This post describes how I fixed this issue.
A number of years ago I was introduced to using Linux day to day. During this period of time I ran a large number of virtual machines to test its performance and various aspects which make it “linux”. Typically when I first set up a system I would install a common set of packages. Then
I will be testing the performance of each Raspberry Pi version in my cluster. This is to determine what each one is best suited to running. To do this I need a similar set of tests to run for each and compare them. Ideally the tests will also be runnable on other embedded Linux devices
Since the first Raspberry Pi was released in 2012 there have been a number of changes to their design. Since I plan to include a number of different models in my cluster I will review and test each model to find its weakness and strengths.
To set up my cluster I want to create single SD card image then run this same image on multiple Pi’s. This means I wont need to set up each Raspberry Pi at a time. One of the ways you can do this is by taking an image of the raspberry Pi then flashing that
The Raspberry Pi foundation have recently updated their Raspbian image. This brings bugfixes and upgrades to the Raspberry Pi. In this blogpost I share how you can run a command on your Raspberry Pi without logging in (this is mostly true although you still do “log in” just not in the typical way). This includes
When trying to mount an encrypted drive using Veracrypt I encountered this error: chewett@bunker-master2:/mnt$ veracrypt /dev/sdc1 gen500 Enter password for /dev/sdc1: Enter PIM for /dev/sdc1: Enter keyfile [none]: Protect hidden volume (if any)? (y=Yes/n=No) [No]: Error: device-mapper: reload ioctl on veracrypt2_0 failed: No such file or directory I did some research and found out that
I was setting up a new install of Raspbian Pixel and found I couldn’t login to the Raspberry Pi. It was giving me an error: chewett@bunker-master:~$ ssh pi@raspberrypi ssh: connect to host raspberrypi port 22: Connection refused It turns out that recently the Raspberry Pi Foundation have changed the default setting for SSH and disabled
It has started getting really hot in the UK and my flat is about 28 degrees at night. This means I have been sitting in a dark flat with all the windows and doors open. This works well but If I want to work on my computer then the lowest brightness level is still too
Now I have the power supply and built the stacking system I can show off the clusters initial state. Every Raspberry Pi in the cluster Here are the 7 initial Pi’s that are to become part of the cluster. Each have been given a codename to designate its position in the cluster. The Raspberry Pi designed “M” will be
If you are getting “Read-only file system” on your Raspberry Pi when mounting drives there is a simple fix. chewett@bunker-master2:/mnt/wd500$ touch test.txt touch: cannot touch ‘test.txt’: Read-only file system I noticed this happening when I tried to mount and work on my external hard drive. This is formatted with the NTFS filesystem. I did some
This post is a review of the “Light Intensity Sensor Module 5528 Photo Resistor” and includes code and images to use the sensor. There are a couple variants of this light sensor sold by different companies but all have similar components and designs. This model is sold by HiLetgo CN and is available on amazon (link below).
One of the objectives for the Raspberry Pi cluster is to manage a number of servers including syncing their contents and backing up databases. The data included may contain personal information so they are always backed up to an encrypted drive. This means I need to be able to access the encrypted content on the Raspberry
The stackable Raspberry Pi case purchased allows stacking Raspberry Pi B+ and Raspberry Pi 2/3 but I was planning to modify this to stack older Pi’s. Stacking the Raspberry Pi (256 MB) The original Raspberry Pi does not have any mounting points. This makes it quite hard to stack using my chosen stacking solution. Therefore for the time
To access some of the lower level aspects of the Raspberry Pi’s config you can use the built in command vcgencmd. This is a useful on the command line but to easily access it in a program you need to parse the output. I am planning to use this command to store data like the
I want to be able to access my Raspberry Pi Cluster and log onto any node without entering a password. To do this I can set up as passwordless SSH key. Generating a SSH Key To generate a SSH key you can use the command ssh-keygen. Once you have ran this you will get the
The Raspberry Pi doesn’t come with its own power supply so you need to decide how to power it. The recommendation from the Raspberry Pi website is that they have “found that purchasing a 2.5A power supply from a reputable retailer will provide you with ample power to run your Raspberry Pi”. After doing some research
Something I want to do with my Raspberry Pi Cluster is mount a hard drive and share it like a windows share. To do this I am going to set up Samba on a Raspberry Pi. Installing the required packages To run samba as a service we need to install a couple packages. Running the
Here I suggest some recommended steps to install Raspbian on top of their install guide. Choosing an OS for the Raspberry Pi One of the main ways to install a Raspberry Pi OS is to download a disk image called NOOBS. This lets you choose to easily install a number of different OS’s. If you want to
This blog post describes how to set up free SSL certificates on a Web Host Manager CPanel server. This requires root access to the server, if you don’t have access to this then you must ask your service provider to install it for you. What is Let’s Encrypt? Let’s Encrypt is in their own words
For the Raspberry Pi cluster I wanted to make sure that they are neatly stored to keep them easy to reach. Why nicely storing them is important Each Raspberry Pi requires a power and network cable. When using a single raspberry pi the cables are not an issue but I am planning to use five as a baseline
If when running vcgencmd on a raspberry pi you get VCHI initialization failed then you need to add the video group to your user. The vcgencmd tool requires you have this group role so without it, it will give VCHI initialization failed. To add the user group to your user you can run: sudo usermod -aG
Today’s blog marks the official start of my Raspberry Pi cluster project. Here I will be documenting the process of assembling, building, and running a small cluster. This blog will include both code snippets, hardware diagrams and the results of various projects using the cluster. Aims of the project The Raspberry Pi cluster will be looking into distributed
In MySQL 5.5+ you can abuse a new feature with BIGINT values. This involves a problem called integer rollover and your ability to run arbitrary SQL. The problem of integer rollover Integer rollover happens when a number is too big or small and is made bigger/smaller. In the case where the number is the highest
It appears newer linux sshd configs (fedora 22) by default include a smaller set of key exchange based mechanisms that they have turned on. This means that it gives errors saying it is unable to connect to the server. To fix this you need to enable some of the older key exchange mechanisms, Adding this line
I have always wondered this, its exceptionally hit and miss and there isnt any real standards. I recently found the reason on the internet Well, there were other factors in play there. htmlspecialchars was a very early function. Back when PHP had less than 100 functions and the function hashing mechanism was strlen(). In order to
In one of his books: The Hour of the Dead was when men died. And when a man died, they sent him home by clacks. Moist’s mouth dropped open. ‘Huh?’ ‘That’s what they call it,’ said Harry. ‘Not lit’rally, o’ course. But they send his name from one end of the Trunk to the other,
Installing via the normal route didn’t work and meant I couldn’t easily resize the screen. Doing the below allowed me to use the resize easily. Install rpmfusion on fedora run `sudo yum install akmod-VirtualBox VirtualBox-guest` run `cd /usr/src/akmods` run `sudo rpm -ivh VirtualBox-*.rpm` Once this was installed, rebooting will give you access to shared folders and fullscreen mode
I was trying to find an open source licence that would fit my purpose for my Trend Analyser project. After some googling I found a wonderful website “Choose a Licence” This showed specifically what each main licence does and gave templates to use. It made it easier than reading through and trying to understand all
How to add a user to a group in Linux usermod -a -G Its a simple as that. So for me adding the user “chewett” to the user “vboxusers” i run the command usermod -a -G vboxusers chewett The -a flag means that the new group is appended, without it you will overwrite your current
When trying to install MySQL Server it failed with the message “Could not access network location \Hewlett-Packard\\” After some searching it turns out this is a common issue where HP have inserted a registry entry with the install path of “\Hewlett-Packard\\” which isnt a valid location. This can be resolved by removing this entry. This
To find the location of GeoIP for PHP you can ssh into the server and use the “find” command. find / -iname GeoIP.dat Will return a list of file paths where the file with this name is found. In my case I found: /usr/share/GeoIP/GeoIP.dat /usr/local/share/GeoIP/GeoIP.dat /opt/geoip/share/GeoIP/GeoIP.dat In my case the bottom link was the one
Vim is a wonderful command line text editor with syntax highlighting and everything you could ask for provided you turn on the functionality. Recently i was shown that it was also show trailing whitespace with a quick addition to the .vimrc file. All you need to do is add the following: set list set listchars=tab:→\
If your computer is recent and has an i3/i5/i7 intel core and a Nvidia graphics card it likely uses Optimus technology. This smart piece of software turns off the power-hungry Nvidia graphics card and runs most programs on the integrated intel graphics chip. In laptops this can save a lot of power. However this solution
Windows 7 has a really nice feature that lets you tile a window to the left or right of the screen, allowing easier placement. This is normally activated with the Windows-(left, right, up down) Arrow key combination. I had searched how to do this with XFCE for a while and today after upgrading to Fedora
After i installed Fedora 18 XFCE i found that it by default doesnt show the icons on the application menu. I normally navigate it by checking the images and not reading the words, so this inconvenienced me. On checking the properties I found that “Show icons in menu” was checked but it did not seem to
A IRC client lets you connect to a IRC server enabling you to join chatrooms on that server. IRC servers do not by default store logs while you are not logged in. This can be annoying if you wish to keep informed of whats going in on the chatroom. One solution to this is to never
During Christmas I got a raspberry pi and I have been waiting to start playing around with it for ages. Finally I decided to order the remaining pieces for it such as the power cable and SD card. Since I didn’t have a HDMI TV around I decided to plug it into the router and
Since i reinstalled my laptop a couple of weeks ago the sound of many applications randomly got reduced requiring me to go into the sound mixer to restore the levels. I noticed this most often when i plugged in my iPhone into the computer. Since i initially thought this was related to my iPhone in
A 20-year-old hacker has been recently arrested in Amiens, France after allegedly stealing 500k euros from unwitting victims. The hack worked by downloading and modifying android applications with a trojan which would call premium rate numbers in exchange for SMS codes for playing online lotteries. Central Office for the Fight against Crime Linked to Information
On the left you can see the WikiLeaks “paywall” image that you currently see when visiting some of the released leaks. The “paywall” is now simple to get around just by reloading the page however it encourages you to donate, spread the word by sharing the video or posting to twitter. However in the first
I recently was recommended Breaking Free to listen to as background drum and bass music, but when downloading (available for free at the above link) it I found it was a single mp3 with a “cue” file. The Cue files tells a media player how to split up the mp3 into different tracks, and has information
I’m relatively surprised that I hadn’t heard of her before a couple of weeks ago. While discussing small loop optimizations with some friends someone referenced her nanoseconds video (see below). This short video explains quite simply, the concept of a nanosecond. After seeing her talk about nanoseconds, I went to research her a bit further
I finally got around to fixing WordPress Jetpack plugin! This tool is a useful plugin that allows you to add a large amount of functionality that is turned on by default on wordpress.com accounts. This was something i was really interested in getting working because i wanted some more stats and other things. Sadly when
UPDATE: Thanks to DeclaredInsane who says that also adding “xres=800” to the shortcut fixes more problems for him also, I have added this to the article 🙂 Recently i installed Age of Mythology on my Windows 7 laptop and sadly when i started it up it failed to load the first cinematic and then crashed
I eventually decided that i would start a blog that would document various things I do, if not for everyone, but myself. Numerous times over the past year I have felt I wanted to write long posts about certain topics that I meet, but haven’t had a medium to do so. The search for a