Skip to content

Instantly share code, notes, and snippets.

@phunehehe phunehehe/suse-hostname.sh Secret
Created Aug 30, 2017

Embed
What would you like to do?
echo myhost.myfqdn.com > /etc/hostname
sed --in-place 's/preserve_hostname: false/preserve_hostname: true/' /etc/cloud/cloud.cfg
sed --in-place 's/DHCLIENT_SET_HOSTNAME="yes"/DHCLIENT_SET_HOSTNAME="no"/' /etc/sysconfig/network/dhcp
hostname myhost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.