Mainos / Advertisement:
Ero sivun ”Isäntänimen muuttaminen/en” versioiden välillä
Siirry navigaatioon
Siirry hakuun
(Ak: Uusi sivu: Instructions on changing your host name) |
(Ak: Uusi sivu: == Sources ==) |
||
(8 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
Rivi 4: | Rivi 4: | ||
== Debian == | == Debian == | ||
− | + | Open the hostname file | |
nano /etc/hostname | nano /etc/hostname | ||
− | + | and switch your desired host name on the place of the old host name | |
− | + | Open the hosts file | |
nano /etc/hosts | nano /etc/hosts | ||
− | + | And replace your old hostname with your new one. | |
− | + | Restart services which might be affected by this change. This will cut any connections like SSH, although they should reconnect. We recommend just restarting the whole machine in order to make sure you restarted all affected services. | |
invoke-rc.d hostname.sh start | invoke-rc.d hostname.sh start | ||
Rivi 22: | Rivi 22: | ||
invoke-rc.d network-manager force-reload | invoke-rc.d network-manager force-reload | ||
− | + | Or more simply, Just reboot. | |
reboot | reboot | ||
− | + | Other operating systems: | |
− | https://www.omaserveri.info/hostnamen-vaihtaminen/ | + | https://www.omaserveri.info/hostnamen-vaihtaminen/ (Finnish) |
− | == | + | == Sources == |
https://wiki.debian.org/HowTo/ChangeHostname | https://wiki.debian.org/HowTo/ChangeHostname |
Nykyinen versio 21. elokuuta 2015 kello 08.24
Instructions on changing your host name
Debian
Open the hostname file
nano /etc/hostname
and switch your desired host name on the place of the old host name
Open the hosts file
nano /etc/hosts
And replace your old hostname with your new one.
Restart services which might be affected by this change. This will cut any connections like SSH, although they should reconnect. We recommend just restarting the whole machine in order to make sure you restarted all affected services.
invoke-rc.d hostname.sh start invoke-rc.d networking force-reload invoke-rc.d network-manager force-reload
Or more simply, Just reboot.
reboot
Other operating systems:
https://www.omaserveri.info/hostnamen-vaihtaminen/ (Finnish)
Sources
Mainos / Advertisement: