Skip to main content

Posts

Showing posts from April, 2013

How to setup 2FA On Linux SSH Login

  This is a simple setup guide to enabling Two Factor Authentication (2FA) on Linux SSH login. I this article I wont go deep into setup and issues that I have faced when implementing this. First thing is first Update your system first. I have used Ubuntu 20.04 and it is always up to date. To enable 2FA you need to install google authenticator modules sudo apt install libpam-google-authenticator Configuration for PAM and SSHD Add the the following line to /etc/pam.d/sshd and After adding this line please restart the sshd services.  auth required pam_google_authenticator.so Go to /etc/ssh/sshd_config and check if the following line exist. Default value will be "no" so change it to "yes" to activate.  ChallengeResponseAuthentication yes Configuration for Authenticator In the terminal run google authenticator command It will ask few things to acknowledge by user. Details you can see from the below video. Once this part is done you are ready to use the 2FA in ubuntu. T

OpenWrt on TL-MR3020 controlling Arduino - CONTINUED

Temperature Monitoring added Now temperature sensor data is view-able from the web interface, LM35 attached to arduino senses the temperature. Once the status update request send from the router to arduino in a given interval, Arduino replies with the pin status and sensor data. That data can be stored in a Lite DB for further use or to draw the graph on the web GUI. Currently it is displayed on the GUI for testing purposes.

ATmega328 is no longer blank, it loaded with Arduino boot loader

Blank ATmega328 flushed with Arduino boot loader Flushed ATmega circuit built and testing with sketches (This  board is named as  "pixelduino") :-) My recent test with Arduino is flushing an ATmega328 with arduino boot loader and its successful. I have an Arduino UNO SMD version and its loaded Arduino ISP sketch, to make it as an ISP programmer. Arduino UNO connected to Blank ATmega328 as an ISP programmer. After  flushing its loaded with blink sketch for test and it works well. So now i can avoid the Arduino board in some of my final projects.