Category Archives: pi

Install netdata on C.H.I.P (or a raspberry PI)

Netdata details:

C.H.I.P:; or
Raspberry PI:

Logon to the device using SSH.
Check if CURL is installed by using the command
which curl
if it is not installed then install using sudo apt-get install curl.
Install the full install packages for netdata:
curl -Ss ‘’ >/tmp/ && bash /tmp/ -i netdata-all
(There is a minimum install package that can be used if necessary: curl -Ss ‘’ >/tmp/ && bash /tmp/ -i netdata)
Download the netdata installer:
git clone –depth=1
go into the netdata folder:
cd netdata
install netdata:
sudo ./
Once installed, you can access the website on %IPADDRESS%:19999
to update, go into the netdata folder:
cd netdata
and run the updater:
sudo ./

Installing Pi-hole on a C.H.I.P

Requirements: C.H.I.P configured as:, with a static IP address

Type the command
sudo cp /etc/resolv.conf resolv.conf.bak
sudo nano /etc/resolv.conf

Edit the nameserver to have the DNS forwader settings of your choice.

Save and Exit Nano.

Install curl using the command

sudo apt-get –y install curl

Download and install pi-hole:
wget –O
chmod +x

Press OK

You should donate (I did!).  Press OK

Chose wlan0 and press OK (wlan1 is bluetooth)

Choose IPv4, IPv6 or both and press OK

If the IP address is correct, select YES

If the IP address you have assigned the CHIP is within the DHCP range of your DHCP Server or router, you may need to exclude this IP address, or modify the range.
Click OK

Select the DNS servers to use as forwarders.  If you are not sure, choose Google, and select OK.

Once the install is complete, press OK

You can add additional block lists by doing the following:
sudo cp /etc/pihole/adlists.default /etc/pihole/adlists.list
sudo nano /etc/pihole/adlists.list

Add the bottom to the file (or add your own)

# Additional #
#Peter Lowes Ad Server List
#Ublock Filters
Reboot the chip with
sudo reboot

Change the DNS on your computer / or router to point to the IP address of the chip.  In a Window DNS environment, change the DNS forwarders

You can check the status and modify the blocklist / whitelist by navigating to:


Add Raspberrian (Jessie) to a wireless network

Login to the device using SSH
Type the following command:

sudo nano /etc/network/interfaces
Add the following lines at the bottom:

auto wlan0
iface wlan0 inet dhcp
wpa-ssid “SSIDNAME”
Where SSIDNAME is the SSID network name, and PSKPASSPHRASE is the passphrase for the wireless network.
EG: If my network was called:
Front Office Wireless
and my network passphrase is:
The interfaces file will look like:

auto lo
iface lo inet loopback

iface eth0 inet manual
allow-hotplug wlan0
iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

allow-hotplug wlan1
iface wlan1 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

auto wlan0
iface wlan0 inet dhcp
wpa-ssid “Front Office Wireless”
wpa-psk “QLDWireless3827”

Press CTRL-X to exit, press Y to save changes, and press ENTER to save the file called interfaces

sudo /etc/init.d/networking restart
to restart the networking services.

You should then be able to see the IP Address that is assigned to WLAN0.
type ifconfig to see the network settings in full.


Headless install of Raspbian (Jessie)

I needed to perform an install of Raspbian (Jessie) on a Raspberry PI, but I didn’t have a spare keyboard, mouse, or monitor / tv to connect it to. 
Download Raspbian from (current Jessie):
At the time of writing it was 4.1 (I used the lite version)
Download and install the SDCard Formatter from
Download and install Win32 Disk Imager from sourceforge:
Connect the SDCard, and run the SDFormatter application as an administrator.
This procedure will delete anything on the SDCard
Ensure the drive letter specified in the SDFormatter is the same as the drive letter of the SDCard connected (Open ‘Computer’ and check if need be)
Click the Option button and set FORMAT SIZE ADJUSTMENT to ON
Click OK.
click Format and Click OK
Click OK
Once the format is finished, click OK and then click Exit.
  Run Win32 Disk Imager as Administrator
Select the correct Device, browse and select the Raspbian Jessie image downloaded, and click Write
Double check the drive letter, and click Yes to proceed
This will copy the Raspbian Jessie image to the SDCard, and may take some time.
Once the write is Successful, click OK, and Exit the Win32 Disk Imager


edit 22/03/17
Open the USB drive in file explorer and create a new blank file called ssh in the root.  (Make sure you don’t have an extension on the file).  See note #3

Connect the SDCard back into the Raspberry Pi, connect an eternet cable, and boot the device.
After some time, check your DHCP server or logs to identify the IP address of the device, alternatively query dns for raspberrypi.
Using putty, connect to the device using SSH.
Click Yes to the key warning
Login credentials are:
username: pi
password: raspberry
Run the initial Raspberry Pi Configuration by using the command:
sudo raspi-config
Modify the configuration as required.  Once completed, select Finish
If prompted to reboot, select No
Update the package source by running the commands
sudo sed -i ‘s/wheezy/jessie/g’ /etc/apt/sources.list
sudo sed -i ‘s/wheezy/jessie/g’ /etc/apt/sources.list.d/*
Update the package list using the command
sudo aptget update
Update the distribution
sudo apt-get dist-upgrade
Select ‘Y’ to continue if prompted.
This may take some time.
Once completed, uninstall group-bin and configuration files
sudo aptget purge cgroupbin
It may / may not have anything to uninstall.  This can prevent the unit from booting.
Change the name of the device
sudo nano /etc/hostname
CTRL-X, Y and <Enter> to save the name
sudo nano /etc/hosts
Change the line     raspberrypi
to     <new name of the device>
CTRL-X, Y and <Enter> to save the name
Reboot the unit with
sudo reboot