Raspberry PI DHCP and DNS Server (dnsmasq)

IT Tips
SETTING UP A RASPBERRY PI AS A DHCP AND DNS SERVER dnsmasq: If dnsmasq is used as dhcp server, the local hostnames are automatically added "on the fly" to its dns cache. No need for an additional daemon. Dnsmasq is easier to install, and administrate than ISC dhcp-server+bind Its lease file is much easier to parse if need arises. Dnsmasq takes up less memory and CPU than ISC dhcp-server + Bind (approx. 10 times less) Dnsmasq does not bypass the kernel firewall rules like ISC daemon allegedly does in some configurations. There is a package for the Pi and so you can install it in the usual way using apt-get. DNS forwarding and cache - You still use your existing DNS (be it your ISP's DNS, Google public DNS, or…
Read More

Raspberry PI WiFi Router (hostapd)

IT Tips
Check WLAN drivers Check that your Pi sees your USB WiFi dongle lsusb If it is a Realtek chipset RTL8192EU, you will see something like: Bus 001 Device 004: ID 0bda:818b Realtek Semiconductor Corp. the 818b indicates the RTL8192EU chipset. Unfortunately this chipset is currently not 'officially' supported by Rasbian, but MrEngman over at raspberrypi.org maintains a good library of drivers (https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=127214).   First be sure of the kernel version you are running: uname -a resulted, for me in, 4.4.13-v7+ #894 So i grabbed the driver and installed it with: wget https://dl.dropboxusercontent.com/u/80256631/8192eu-4.4.13-v7-894.tar.gz tar xzf 8192eu-4.4.13-v7-894.tar.gz sudo ./install.sh sudo apt-get install hostapd   Set up wlan0 for static IP If you happen to have wlan0 active because you set it up, run sudo ifdown wlan0 Next we will set up the…
Read More

Raspberry PI NAT (for WiFi Router)

IT Tips
Configure Network Address Translation Setting up NAT will allow multiple clients to connect to the WiFi and have all the data 'tunneled' through the single Ethernet IP. (But you should do it even if only one client is going to connect) Run sudo vi /etc/sysctl.conf uncomment this line (or scroll to the bottom and add if it is not there!) net.ipv4.ip_forward=1 Save the file. This will start IP forwarding on boot up. To reload the file without rebooting .. sudo sysctl -p Run the following commands to create the network translation between the ethernet port eth0 and the wifi port wlan0 sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE sudo iptables -A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT sudo iptables -A FORWARD -i wlan0…
Read More

Raspberry PI RDP

IT Tips
How to Setup Remote Desktop from a Windows Machine to your Raspberry Pi - Step by Step Guide As I mentioned in the previous post I recently found the need to be able to remote desktop to my Raspberry Pi.  This is a step by step guide on how to set it up. What does this guide help me do? It will let you control your Raspberry Pi from another machine.  Meaning that the Raspberry Pi will not need to be connected to a monitor, keyboard or mouse. Before we get started a few clarifications: This guide is to set up remote desktop from another computer on your home network to your Raspberry Pi. It does not explain how to connect to your Pi from outside your home network. The instructions are…
Read More

Raspberry PI Mini DLNA Server

IT Tips
how to make a raspberry pi media server using MiniDLNA. This will allow you to stream your photos, videos and music around your network. Step 1: What you will need Raspberry pi (I'm using a model A) Another computer if you want to SSH into your pi Hard drive with your media SD card for the raspberry pi operating system Raspberry pi wifi dongle (you can also use Ethernet)\ A power supply for the raspberry pi (a minimum of 1 AMP and 5 Volts for the Raspberry Pi model B) A powered USB hub Step 2: Updating and Installing To begin we can SSH into our raspberry pi by using a program like putty. After we have done this I recommend updating and upgrading your raspberry pi. You can do…
Read More