Browse Month: January 2017

5 Best Basic Security tips and tricks every Raspberry Pi user needs to take

Security on the Raspberry Pi is often overlooked especially with the rise of IoT (Internet of Things) gadgets and every device being connected to the internet. Today I will show you some easy tips and tricks you can take to improve the security of your Raspberry Pi. I recently wrote an article about 3 steps to take to improve your SSH security on the Raspberry Pi. Today’s focus will be more of the basics and general security tips and tricks that you should be doing on every Pi setup. The following steps should be done by new and experienced Raspberry Pi users and will improve the security of your system ten-fold.

I will discuss how to delete the default Raspberry Pi ‘pi’ user as well as changing the password for any other users you create. This is a good first step because if a hacker identify’s that your system is running the Rasbian distro then one can assume that there is a user called ‘pi’ on the system and can begin trying to crack that users password. Deleting the default ‘pi’ user and creating a new Raspberry Pi username and password will make it much harder to gain access to your system.

I will also be discussing about installing Fail2Ban which will block hackers from brute-forcing your username and password. This is good because it will block the hackers IP Address if they fail to login to your system and they will be unable to perform an unlimited number of username and passwords trying to gain access to your system. Another item that I will be discussing is setting up unique SSH keys, this will allow only clients that have the correct keys that you generated to login to your Raspberry Pi. This is one of the most secure ways of logging into your Raspberry Pi because only computers that you give the generated key file will be able to login and anyone who doesn’t have the key file will be blocked.

The final security tip and trick I will show you will be how to setup automated security updates. This is great if you are using your Raspberry Pi as a server and don’t access it often. All Raspbian security updates will be downloaded and applied in the background so you know you are running the latest and most secure software.


To learn about and perform basic security steps on our Raspberry Pi to improve our overall security on the Raspberry Pi system


You will need the following:

Continue Reading

How to turn your Raspberry Pi into a Home VPN Server using PiVPN

With all the news about privacy concerns and security threats on the internet recently more people are starting to use a VPN on their home networks and phones. A VPN or a Virtual Private Network allows you to send and receive data across shared or public networks as if their devices were directly connected to the private network. For example if you are connected to the public WiFi network at the mall, everyone can see your data, if you use a VPN all your data is encrypted through a private tunnel and it looks like you are connected directly to your home network. VPN’s are very popular in the business world and most likely you may be using one for work and not even know why. The main reason is security and access of your local files.

You can use your Raspberry Pi as a VPN server for free or you can use a VPN service which will limit the amount of data you can use monthly as well a paying a monthly fee. With your Raspberry Pi VPN server you will be able to connect to public WiFi networks and have all your data encrypted which will prevent you from man-in-the-middle attacks as well as any one else snooping WiFi data on the network. When you are connected to your own VPN server you will be able to access all of your home files. If you have movies or music you will be able to access them with ease.


To improve our network security by turning our Raspberry Pi into a Home VPN Server using PiVPN


You will need the following:


Installation of PiVPN (The software we will be using as our VPN server) is a breeze. You simply have to run just one command to install PiVPN. I will assume you already have the Raspbian OS up and running. You only need the lite version if you will be running headless, that’s how I am installing it since I will have PiVPN running along side PiHole, my network wide ad blocker.

Continue Reading

How to setup the 8Bitdo NES30 Gamepad Controller on RetroPie

About: With all the recent talk about the NES Classic console I really wanted to play some Super Mario again and relive those childhood moments of trying to save the princess. I have used RetroPie before to play old games on the Raspberry Pi and I highly recommend it. I would usually play with the keyboard but recently used my Raspberry Pi to install Kodi and RetroPie together and I wanted to use a wireless Bluetooth controller to get the full gaming experience. I picked up the 8BitDo NES30 wireless Bluetooth controller after reading many reviews about it. 8BitDo makes some high quality retro controllers which are easy to setup and you can use them to play games on your computer or phone over bluetooth.

I was having one minor issue setting up my 8BitDo NES30 controller, the D-Pad would not work and not be recognized by RetroPie. The controller setup screen kept reading my D-Pad inputs as a Keyboard and not a Game-pad. I saw many people having issues with this so I decided to write this tutorial about the workaround I discovered on how to get the 8BitDo NES30 controller working on RetroPie.

Objective: To setup the 8BitDo NES30 wireless Bluetooth controller on the RetroPie.

Material: You will need the following:

Instructions: I will assume you are starting with a fresh install of RetroPie. I am using RetroPie 4.0 in this tutorial. You will need a keyboard connected to your Raspberry Pi to setup the controller if you plan on manually configuring it. I included the configuration files below if you want to set it up faster and avoid manually setting up the controller. Continue Reading

6 Great Arduino Project books for Beginners

The Arduino has been around for ages, and there is tons of information and help out there if you are just getting into electronics and programming. I wanted to compile a list of my favorite Arduino books that contain many projects. I like Arduino books that focus more on the quality of the projects that it includes and not the quantity. Arduino project books should contain many details and should be easy to follow. There are many books out that that start off strong explaining the basics of electronics and then just jump to projects leaving the reader to fend for themselves trying to figure out what they are doing.

The projects included in this book are intended for beginners to intermediate readers. Having some background in electronics or programming will definitely help you understand more of the projects you are doing. Below is a list of some of my favorite Arduino project books.

6. Sylvia’s Super-Awesome Project Book: Super-Simple Arduino

This Arduino book is aimed more at children with the quirky style of writing but, honestly, everyone can learn something from it. If your kids enjoy watching electronics videos then they will definitely recognize Sylvia from YouTube. The book is aimed at trying to get more kids involved with electronics and programming, and making things from scratch using their hands. Some of the explanations are not very deep and detailed, so they may need some adult supervision to answer those questions, assuming the adult has knowledge of electronics and programming.

The projects you’ll make in this book are unlike any of the others I have seen in Arduino project books. You’ll learn how to make an adjustable strobe light as well as two digital musical instruments you can actually play. You’ll also learn the basics of coding, electronics and science. Again, the book doesn’t go deep into these topics so if you do follow along with a child then you make need to explain more into detail about what is going on.

I definitely recommend this book just for the different projects that are included in the book that aren’t seen in other Arduino project books, however don’t expect them going into deep detail about what exactly you are doing. The book is aimed for children and getting them to develop an interest in science, electronics and programming or just basically getting their feet wet in the topics.

5. Getting Started with Arduino: The Open Source Electronics Prototyping Platform

This isn’t the official Arduino book, however you can basically call it the unofficial Arduino Getting Started book. Getting Started with Arduino is co-written by Massimo Banzi, the co-founder of the Arduino. The book is aimed at people with no prior experience in programming or electronics at all. It features some cool projects and starts off slow with a lot of detail, but than suddenly starts assuming you already know about programming and electronics and becomes vague.

The book starts with the absolute basics of how the Arduino Uno works and what components are on the board. It provides some great starter projects that teach you how to make LED’s blink and how to read the inputs of push buttons but as I stated earlier it suddenly jumps from fun and easy to difficult code and hardware setups with little explanation on what you are doing and how to learn from the topics.

This wouldn’t be the best getting started book only because of the poor explanations in the later subjects. The book started off going slow and explained many things in detail but quickly jumped to a more advanced level. I would only recommend this book for the early chapters or if you already have some experience with electronics and programming to get some ideas for projects you can make.

4. Programming Arduino Getting Started with Sketches

This was my go-to book when first learning to program the Arduino and learning the basics of the C language. The book assumes you have no prior knowledge of programming and holds your hand as you learn the basics of programming on the Arduino step by step. The book contains many programming examples and you’ll learn the basics of C as well as writing your own libraries.

You’ll learn the fundamentals of the Arduino hardware and how to exploit and interact with the hardware. The book will show you how to upload your own sketches, all the way to developing your own libraries and use object-oriented programming methods. The book not only shows you the basics but will lead you thru more advanced sketches like writing and retrieving data to the Arduino EEPROM and interacting with LCD display screens and drawing your own symbols on the LCD screen.

If you are new to programming or just have some basic programming skills then I highly recommend this book. It’s a must-have for someone who is just starting with programming and working with the Arduino.

3. Arduino Projects for Amateur Radio

This book may not be for everyone especially if you are not into HAM radio. I do recommend getting into Amateur Radio as it is still a fun way to communicate with other people and in emergency situations it can be the only way to communicate locally. This is a great book that starts off discussing in detail about the Arduino and the basics then jumps in to the projects. The projects start off easy like displaying data on an LCD screen and slowly lead into one another.

You’ll learn how to display data on an LCD screen and get data from your HAM radio to display going into a mores code decoder all the way to a solar powered station. The authors do a good job of explaining what the parts are and what you are building. They also go into detail about the programming so you are not just blindly copying and pasting like some other project books. This books explains how to put the circuit together and the reason why it works in the end.

I would definitely recommend this book if you are into Amateur Radio or are thinking of getting into it. Some of the topics do start getting more advanced so a small background in electronics and programming is helpful but not needed. The book gives you a very good foundation for hacking your HAM Radio as well as doing some modifications to make it fit your needs.

2. Arduino Cookbook: Recipes to Begin, Expand, and Enhance Your Projects

The Arduino Cookbook is more then just a book about different projects you can make. It is more of a tutorial for all the different things you can do with your Arduino. The book is very educational and features educational chapters that allow you to learn more about electronics. I must say, the educational chapters don’t go very deep but just glide over the subjects that they are covering. You may get easily lost but I like to think of it as opening your world to different subjects you can research on your own.

Some of the subjects include serial communication, wireless communication, Bluetooth, and infrared projects. The book also covers some basics in programming as well, which will help you write your own code. The projects included in this book are pretty useful to make bigger and better projects. You’ll learn how to use wireless transceivers to send data between two Arduinos or even reprogramming the Arduino Uno to emulate a native USB drive.

I recommend this book if you already have some experience with the Arduino and programming. If you do end up buying the book and the subjects seems too deep or you are having trouble understanding them then don’t return the book, come back to it in a few months once you learn the basics. You’ll be glad you did.

1. Arduino Project Handbook: 25 Practical Projects to Get You Started

Arduino Project Handbook is a very well organized beginner friendly book which includes many useful projects. The first couple of projects start off slow and include the basics like turning on LED’s and making a buzzer go off, but as you do the projects you will use these new skills by building an “Intruder” sensor or Electronic Die.

Some of the projects included in the book are a Plant Monitor which will help you monitor the health of your plants around the house. Maybe you would like to build your own Weather Station and find out the temperature outside. That’s all covered in this book. The projects are well organized and slowly increase in difficulty as you progress through the book. It is very well illustrated and doesn’t expect the reader to have a vast knowledge of electronics.

I highly recommend this book of projects if you are just beginning or learning programming and the Arduino. Some of the projects do get repetitive and are the same project repackaged as something else or with added features.

Fix Xbox Live Achievements not popping up when using Pi-Hole

About: I’ve been using Pi-Hole on my Raspberry Pi for the past year to block ad’s on my whole network. It works great however some of the ad blocking lists end up blocking the Xbox Live servers which cause weird issues like being unable to update your Xbox or unable to access Netflix or Youtube or just simply not allowing you to connect to the Xbox Live servers. I have compiled a list of domains that should be white-listed to avoid these issues, check out the white-list here.

The issue I was having was my achievements would take up to a week to show completed and show up on my Xbox. I usually don’t play many games that unlock achievements but I was suspicious when the achievements would unlock at random times, often when I am not even playing the game. I did some investigating and seeing what domains were being blocked on my Pi-Hole while the Xbox was sitting idle and found a few Microsoft domains that were being blocked. I compiled the short list below.

Objective: To fix Xbox Live achievements not showing up when using Pi-Hole due to blocking of Microsoft servers.

Material: You will need the following:

  • Xbox One (Click the link to check out the price on Amazon. Usually under $250 with free shipping and some bundles let you choose your own game)

Continue Reading