Skip to main content

Posts

Showing posts from January, 2014

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

Bootloading Atmega1284P Part-1

Finally able to flash the Arduino bootloader it to fresh Atmega1284P via my version of ISP programmer. ISP programmer includes and Atmega328P and FTDI board for serial communication between PC and the Atmega328P. Armega328 is loaded with ArduinoISP sketch. This works with Arduino 1.0.1(old version that i use for test) IDE and still testing for Arduino 1.5(i have upgraded to). Once the following files installed to the Arduino Hardware folder ( https://github.com/maniacbug/mighty-1284p/zipball/master ) please mind to restart the application. After restart you will see from the hardware list as Original Mighty 1284p 16 and 8MHz. Select the hardware, port and the programmer as Arduino ISP and burn the bootloader. This process takes quite sometime and after its loaded, do a test by loading blink sketch. Use upload using programmer button to upload the sketch. Blink sketch on test.. cool it works for me. I am trying to workout this method in version 1.5 too, as soo

RC receiver Hack

I have interface the Hobbyking HK-TR6A V2 a six channel receiver to my chipkit uC32 (Arduino equivalent to UNO). Actually this came up to mind when manual override was needed for a project currently i am working on. In this video i have just monitoring the wave forms which receiver outputs. Once i done testing i will upload more information and videos. I am planing to make a prototype soon. ;)   Readings measured   Waveform of the PWM