Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: [OPGELOST] Computernaam veranderen  (gelezen 1225 keer)

[OPGELOST] Computernaam veranderen
« Gepost op: 2010/12/23, 12:23:19 »
Ik wil de naam van mijn PCtje veranderen, ik weet dat dit via
gksudo gedit /etc/hosts /etc/hostnamegaat, alleen heb ik een probleempje bij /etc/hosts, er staan achter 127.0.1.1 2 namen, welke moet ik nemen?
En het maakt niet uit dat die van de networkmanager blijft staan of wel?

/etc/hosts:
192.168.1.77   [huidige naam]   # Added by NetworkManager
127.0.0.1   localhost.localdomain   localhost
::1   [huidige naam]   localhost6.localdomain6   localhost6
127.0.1.1   [andere naam]   [huidige naam]
« Laatst bewerkt op: 2010/12/23, 14:03:59 door Cheap Applications »
Desktop:
Processor: Intel® Core™2 Quad CPU Q8300 @ 2.50GHz × 4, Geheugen: 3.9Gb, GPU: nVidia 220GT OS: Windows 7 64 bit / Ubuntu 12.04 64 bit
Notebook:
Processor: Intel® Core™ i7-4700MQ, Geheugen: 8Gb, GPU: nVidia GTX765m (met Optimus) OS: Windows 8 64 bit / Elementary OS Luna 64 bit

Re: Computernaam veranderen
« Reactie #1 Gepost op: 2010/12/23, 13:14:01 »
http://www.brighthub.com/computing/linux/articles/12306.aspx

gksudo gedit /etc/hostname
Citaat
Renaming from the terminal
In the command-line method of changing the computer name, as well as changing the machine name in /etc/hostname, you should replace all occurrences of the old name with the new name in the file /etc/hosts - otherwise you may not be able to log on to the GUI after reboot.
Ubuntu Pocket Guide and Reference - LinuxCommands.org - Manual Pages (man)

PC: Ubuntu 18.04 LTS /  Intel Core i5 8600 / Gigabyte B360M DS3H / Samsung 970 EVO / Corsair Vengeance LPX 16GB

Re: Computernaam veranderen
« Reactie #2 Gepost op: 2010/12/23, 14:03:48 »
Oké, bedankt.
Desktop:
Processor: Intel® Core™2 Quad CPU Q8300 @ 2.50GHz × 4, Geheugen: 3.9Gb, GPU: nVidia 220GT OS: Windows 7 64 bit / Ubuntu 12.04 64 bit
Notebook:
Processor: Intel® Core™ i7-4700MQ, Geheugen: 8Gb, GPU: nVidia GTX765m (met Optimus) OS: Windows 8 64 bit / Elementary OS Luna 64 bit