@staticmethod
def configure_locales(connection, config):
    """
        Generate and configure locales in recently installed server.
        """
    connection.sudo('locale-gen en_US.UTF-8', warn=True, hide='both')
    connection.sudo('dpkg-reconfigure locales', warn=True, hide='both')
