Tuesday, January 7, 2020

NTP Time Sync single shot

NTP time sync, previously was done using ntpdate and it was deprecated as of September 2012. ntpd provides same functionality from then on using following.

ntpd -gqx






NOTE:- one needs to setup the /etc/ntp.conf file.


-g
Normally, ntpd exits with a message to the system log if the offset exceeds the panic threshold, which is 1000 s by default. This option allows the time to be set to any value without restriction; however, this can happen only once. If the threshold is exceeded after that, ntpd will exit with a message to the system log. This option can be used with the -q and -x options. See the tinker command for other options.


-q
Exit the ntpd just after the first time the clock is set. This behavior mimics that of the ntpdate program, which is to be retired. The -g and -x options can be used with this option. Note: The kernel time discipline is disabled with this option.



-x
Normally, the time is slewed if the offset is less than the step threshold, which is 128 ms by default, and stepped if above the threshold. This option sets the threshold to 600 s, which is well within the accuracy window to set the clock manually. Note: Since the slew rate of typical Unix kernels is limited to 0.5 ms/s, each second of adjustment requires an amortization interval of 2000 s. Thus, an adjustment as much as 600 s will take almost 14 days to complete. This option can be used with the -g and -q options. See the tinker command for other options. Note: The kernel time discipline is disabled with this option.


Monday, January 6, 2020

Fixed: blurry font fix on vm ( virtual machine )

Problem : Blurry font on the virtual machine screen.


Solution:

1. change the above setting to remove selection of both Keep Aspect Ratio Stretch and Free Stretch.
2. screen may resize.
3. if the fonts are still not fixed then you may need to change the screen resolution in VM to your screen resolution.



4. I changed mine to 2560 x 1600 (16:10)


NOTE: This sort of issue are due to Aspect Ratio mainly.