Passport is authentication middleware for Node.js. Extremely flexible and modular, Passport can be unobtrusively dropped in to any Express-based web application. A comprehensive set of strategies support authentication using a username and password, Facebook, Twitter, and more. Overview Passport is authentication middleware for Node. It is designed to serve a singular purpose: authenticate requests. When … Continue reading A Simple, unobtrusive authentication for Node.js
Internet of Things
Edge computing could push the cloud to the fringe
Peter Levine, a general partner at venture capital firm Andreessen Horowitz, has an interesting working theory. He believes that cloud computing is soon going to take a back seat to edge computing — and we will very quickly see the majority of processing taking place at the device level. As crazy as that sounds — … Continue reading Edge computing could push the cloud to the fringe
Raspberry Pi Serial Connection
Source: https://elinux.org/RPi_Serial_Connection The serial port is a low-level way to send data between the Raspberry Pi and another computer system. There are two main ways in which it can be used: Connecting to a PC to allow access to the Linux console. This can help to fix problems during boot, or to log in to … Continue reading Raspberry Pi Serial Connection
Set up WiFi through the command line terminal on Raspberry Pi
This method is suitable if you don't have access to the graphical user interface normally used to set up WiFi on the Raspberry Pi. It is particularly suitable for use with a serial console cable if you don't have access to a screen or wired Ethernet network. Note also that no additional software is required; … Continue reading Set up WiFi through the command line terminal on Raspberry Pi
Domain Name System (DNS)
https://www.raspberrypi.org/learning/networking-lessons/lesson-4/plan/ Lesson 4 - Domain Name System (DNS) Introduction It is recommended that all students complete the previous DHCP lesson before attempting this. It is important to complete the lessons in this order because understanding DNS requires the understanding of its relationship to DHCP. Please note that DNS is a fairly complex subject and this … Continue reading Domain Name System (DNS)
Dynamic Host Configuration Protocol (DHCP) on Raspberry Pi
https://www.raspberrypi.org/learning/networking-lessons/lesson-3/plan/ In this lesson, students will learn how the Raspberry Pi can be used to demonstrate Dynamic Host Configuration Protocol on an isolated network. By now it will be clear that repeatedly changing the /etc/network/interfaces file is time-consuming and laborious. There are a number of disadvantages to giving static IP addresses to all computers on … Continue reading Dynamic Host Configuration Protocol (DHCP) on Raspberry Pi
Scan available wifi access points on Ubuntu
Turn on the interface and scan all available WiFi networks sudo ifconfig wlan0 up sudo iwlist wlan0 scan Anther way to turn up and off wifi interface (ifdown will release the existing IP address to the DHCP server; ifup will get another IP address from the DHCP server) sudo ifdown wlan0 sudo ifup wlan0 A … Continue reading Scan available wifi access points on Ubuntu
Configure Raspberry Pi 3 as a WiFi Access Point (AP)
The tutorial below is for Raspberry Pi 3 ONLY. One of my thoughts was, can I use it as a SoftAP for some ESP8266 sensor nodes? As it turns out, you can, and it's not that difficult, as the BCM43438 chip is supported by the open-source brcmfmac driver! Packages The first step is to install … Continue reading Configure Raspberry Pi 3 as a WiFi Access Point (AP)
How to enable or disable service/Daemon on Ubuntu?
There are services that can be enabled/disabled using the GUI (like the startup application) or the terminal. For the Terminal you have several options. First, open a terminal (Type "terminal" in the dash, for example, and open it). Then: Temporary enabling/disabling services To stop and start services temporarily (Does not enable / disable them for … Continue reading How to enable or disable service/Daemon on Ubuntu?
Where to store wireless credential on Raspbian
/etc/wpa_supplicant/wpa_supplicant.conf ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="wireless ID" psk="myPassword" key_mgmt=WPA-PSK } network={ ssid="wireless ID" psk="myPassword" key_mgmt=WPA-PSK }