Windows Server 2008 time sync

First, locate your PDC Server. Open the command prompt and type: C:\\>netdom /query fsmo
Log in to your PDC Server and open the command prompt.
Stop the W32Time service: C:\\>net stop w32time
Configure the external time sources, type: C:\\> w32tm /config /syncfromflags:manual /manualpeerlist:time.nist.gov
Make your PDC a reliable time source for the clients. Type: C:\\>w32tm /config /reliable:yes
Start the w32time service: C:\\>net start w32time
The windows time service should begin synchronizing the time. You can check the external NTP servers in the time configuration by typing: C:\\>w32tm /query /configuration

Posted in My Windows, tricks & tips, windows | Comments Off on Windows Server 2008 time sync

Change the Time Zone ubuntu

Open the Terminal and enter the following command in order to list all the timezones of the specified zone:

Syntax:

$ timedatectl list-timezones | grep -i [zone]

Example:

We will use this command to list all the time zones of Europe:

$ timedatectl list-timezones | grep -i europe
Get a list of available time zones

In this example, we will be setting the time zone to Europe/Istanbul. First, let us unlink the system time with local time through the following command:

$ sudo unlink /etc/localtime

The next step is to use the following command to set a new time zone:

Syntax:

sudo ln -s /usr/share/zoneinfo/[Zone/TimeZone] /etc/localtime

Example:

sudo ln -s /usr/share/zoneinfo/Europe/Istanbul /etc/localtime

You can then verify the changed settings through one of the following commands:

Verify timezone change
$ timedatectl

or

$ ls -l /etc/localtime
Posted in command line of linux, My Linux, ubuntu | Comments Off on Change the Time Zone ubuntu

WiFi issues with Creators Update with Sonicwall VPN client

1) Open an Admin Command Prompt window:
Start > All Apps > Windows System -> Right-click “Command Prompt” > More > Run as administrator
… Note: If you want this available on your Start’s Right-click menu, you can go to Settings > Personalization > Taskbar > Replace Command Prompt > Set to Off

2) Get your network adapter name:
powershell Get-NetAdapter

3) Note your adapter’s name (mine is: Wi-Fi)

4) Get your network adapter “Receive segment coalescing” (Rsc) settings:
powershell Get-NetAdapterRsc
… Mine listed a table that had 1 row, for adapter name Wi-Fi, that had IPv4Enabled True, and IPv6Enabled True

5) Disable Rsc for your network adapter:
powershell Disable-NetAdapterRsc -Name ADAPTER_NAME_FROM_BEFORE
… Be sure to replace ADAPTER_NAME_FROM_BEFORE with whatever your network adapter name is, without quotes

6) Verify Rsc is disabled for ipv4 and ipv6, on your network adapter:
powershell Get-NetAdapterRsc
… Should now show IPv4Enabled False, and IPv6Enabled False, for your network adapter

7) Re-test your wireless internet connection.

https://answers.microsoft.com/en-us/windows/forum/windows_10-networking/wifi-issues-with-creators-update/4a20ba4f-33dc-4397-9823-e12dcb2607ba?auth=1

Posted in command line of windows, My Windows, PowerShell, tricks & tips, windows | Comments Off on WiFi issues with Creators Update with Sonicwall VPN client

resize diskspace instant machine ‘centOS’ on Google Cloud Platform

sudo yum -y install cloud-utils-growpart

sudo growpart /dev/sda 1

sudo xfs_growfs /dev/sda1

df -h /dev/[DEVICE_ID]

Posted in apache, centOS | Comments Off on resize diskspace instant machine ‘centOS’ on Google Cloud Platform

remove free SSL let’s encrypt

Right. --dry-run gets fake certificates from the staging environment and doesn’t save them. It tests most aspects of renewal pretty well, but not all of them.

If you use --force-renewal, it will issue new certificates from the production environment and save them. Don’t do this too frequently. Especially don’t do it automatically. It’s wasteful, and Let’s Encrypt has rate limits.letsencrypt.org

Rate Limits – Let’s Encrypt – Free SSL/TLS Certificates

Last updated: August 1, 2018 | See all Documentation Let’s Encrypt provides rate limits to ensure fair usage by as many people as possible. We believe these rate limits are high enough to work for most people by default. We’ve also designed them so…

Let’s Encrypt can issue more certificates without revalidating for a certain amount of time (currently 30 days, but this is not guaranteed). (Even if Certbot looks like it’s validating again.) It’s not easy bypass that within Certbot, so forcing an extremely early renewal may not actually test validating again, but it will exercise the other parts.

Mani:

How can i cancel/ permanently delete the certificate with lets encrypt.

How much do you want to delete it? For what purpose?

The “certbot delete” command can delete your local certificate files.

The “certbot revoke” command can also revoke the certificate, which you need to do if it has been compromised or the domain is no longer yours, but you normally don’t need to do if you just want to stop using it. (Revoking a certificate will also stop Let’s Encrypt from sending you emails when it’s about to expire, but you can just ignore them.)

You can’t erase all evidence the certificate existed – they’re permanently archived in public Certificate Transparency logs, which can be searched on https://crt.sh/ 1 and other websites.

(And deleting or revoking certificates doesn’t affect Let’s Encrypt’s rate limits.)

Posted in lets encrypted, My Linux, SSL | Comments Off on remove free SSL let’s encrypt