Trucos Linux: Cambiar nombre de la máquina

Vía: TuxApuntes



Para cambiar el nombre del pc usamos el comando hostname

    * sudo hostname NUEVO_NOMBRE_PC

Editamos el archivo /etc/hostname y reemplazamos el antiguo nombre con el NUEVO_NOMBRE_PC

    * sudo gedit /etc/hostname

Editamos el archivo /etc/hosts y en la linea donde aparezca el antiguo nombre ponemos el NUEVO_NOMBRE_PC

    * sudo gedit /etc/hosts

Y ya está, con eso podrás llamar a tu ordenador como te apetezca.

1 comentario:

Anónimo dijo...

Este truco me dio problemas, es preferible utilizar lo siguiente: gksudo gedit /etc/hosts /etc/hostname

Entradas populares