- Run
YaST
- Network devices -> Network settings
- (If you get "Warning: Network is currently controlled by NetworkManager", just click "OK")
- Open the
Hostname/DNS
tab - Fill in the desired hostname
- Check "Change Hostname via DHCP" if desired
- click "OK"
Even after doing that, though, the old hostname was still displayed on the XDM login screen. Annoying. So I decided to run a search for the old hostname over all ordinary text files in the
/etc
tree (see Basic usage of GNU find and GNU grep):# find /etc -type f -exec grep -H oldhostname {} \; ./NetworkManager/NetworkManager.conf:hostname=oldhostname
Sure enough, after editing that file, the XDM login screen displayed the correct hostname.
No comments:
Post a Comment