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
Here is a thing that i have faced few times when it comes to GPS data. Below is the GPGGA string from NMEA data receives from GPS. I have highlighted the latitude and longitude from the string. $GPGGA,081902.00, 0412.75469 ,N, 07332.48758 ,E,1,08,0.97,10.7,M,-93.5,M,,*41 Latitude = 0412.75469 Longitude = 07332.48758 If you want to plot this in google maps or any other platform you need to convert this data to decimal degrees, which will be easy to point the location rather than using raw data. In order to do that please follow these steps and write your own math function for this. For my purpose i am using my own function to handle the conversions. First lets start with latitude. Get rid of the zero first. rawdate = 4 12.75469 in this case 4 is the degrees which is in blue color and minutes in green Formula: degrees = 4 minutes = rawdate - (100*degrees) minutes = 412.75469 - (100*4) minutes = 12.75469 So to find out the decimal degree format of raw latitude valu