|
⇤ ← Revision 1 as of 2009-04-10 09:26:43
Size: 1319
Comment: Initial page
|
Size: 1555
Comment: continued
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 4: | Line 4: |
| This page explains how to change a system's [[Man:1/hostname|hostname(1)]] (i.e rename a computer/server) | This page explains how to change a system's {{{hostname}}} (i.e rename a computer/server) |
| Line 6: | Line 6: |
| Executive summary: [[Man:1/hostname|hostname(1)]] isn't enough. | |
| Line 11: | Line 12: |
| * Update {{{/etc/hosts}}}, so local address resolves with the new system name. * Reload the network configuration <<BR>> <!> This will temporarily disconnect your system from the network ({{{ssh}}} usually resists short disconnection) {{{ |
* Update {{{/etc/hostname}}} * Update {{{/etc/hosts}}}, so local address(es) resolves with the new system name. * Reload the network configuration. You have two options * Reload configuration files <<BR>> <!> This will temporarily disconnect your system from the network ({{{ssh}}} usually resists short disconnection) {{{ invoke-rc.d hostname.sh start |
| Line 14: | Line 18: |
| }}} | invoke-rc.d network-manager force-reload }}} ToDo: is it useful to reload {{{network-manager}}}? * ''or the lazy way:'' Restart the system. |
| Line 16: | Line 22: |
| ToDo: is it useful to {{{invoke-rc.d network-manager forrestartce-reload}}} ? | |
| Line 20: | Line 25: |
| Avahi is used to publish (announce) local services. Reloading it probably helps | Avahi is used to publish (announce) local services. If you tweaked {{{/etc/avahi/*}}} |
This page explains how to change a system's hostname (i.e rename a computer/server)
Executive summary: ?hostname(1) isn't enough.
Rename a computer
Core networking
Update /etc/hostname
Update /etc/hosts, so local address(es) resolves with the new system name.
- Reload the network configuration. You have two options
Reload configuration files
This will temporarily disconnect your system from the network (ssh usually resists short disconnection) invoke-rc.d hostname.sh start invoke-rc.d networking force-reload invoke-rc.d network-manager force-reload
ToDo: is it useful to reload network-manager?
or the lazy way: Restart the system.
Application specific
avahi
Avahi is used to publish (announce) local services. If you tweaked /etc/avahi/*
invoke-rc.d avahi-daemon force-reload
other
(to be written)
