Skip to main content

Posts

Showing posts from December, 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

My first Android App

Hi everybody, i have found a cool website to built Android applications in a split second. Yeah in seconds you can learn how to code for your android device. Since i am not a fan of Apple's products i will not talk about IOS stuffs. This is built by MIT and its one of the best product i found to develop for Android devices. Within few days i learnt the basic and later built an wonderful app to control my Bluetooth modules. This is how the coding looks like. Look how easy it is, just like a puzzle. For advance projects like these you need to refer to Android guide to know how some phone modules work with the command. Here is some pictures of my app. This a good and useful software for kids and schools. Instead teaching bullshit we can teach this to increase mind activities / practical involving others to learn coding for there daily use. For example i built this app to switch on/off light, you can built an app to monitor your plants health. This test is done

Solution for avrdude: stk500_getsync(): not in sync: resp=0x00

Its been a while that i have noticed an error that sometime frustrates. When i first start using Arduino Uno and flash custom ATMEGA328P firmware i have faced tons of problems and each of them ease my work when i found a cause and solution for that. Most of Arduino users faced this and thousands of posts were in the forums related to avrdude: stk500_getsync(): not in sync: resp=0x00 error. Some solutions in the forums are not much solved the issues. Earlier i faced this when i built a custom PCB with ATMEGA328P-AU. ATMEGA328P-AU  After flashing the firmware via ICSP (In circuit Serial Programming) Then i used FTDI serial to load the sketch. Finally the error occurs and the whole project came to a halt. Screen shot of Arduino IDE I have spent most of the time troubleshooting and found solutions for it. I will state what i have found, which cause this error normally. Wrong device selected from the IDE PCB/Circuit designing issues. FTDI module / Driver & software