sudoaptinstallchrony
sudoservicechronyrestart
# Check that server is running
sudochronycsources-v-a
sudochronycclients
sudochronycntpdata<ServerIP>
# Check that port 123 is running
nc-zvu<ServerIP>123
chronycactivity
chronyctracking
# Update the list of packages
sudoapt-getupdate
# Install pre-requisite packages.
sudoapt-getinstall-ywgetapt-transport-httpssoftware-properties-common
# Download the Microsoft repository GPG keys
wget-qhttps://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb
# Register the Microsoft repository GPG keys
sudodpkg-ipackages-microsoft-prod.deb
# Update the list of packages after we added packages.microsoft.com
sudoapt-getupdate
# Install PowerShell
sudoapt-getinstall-ypowershell
# Start PowerShell
pwsh