Logo Hardware.com.br
Z0
Z0 Zerinho Registrado
2.3K Mensagens 0 Curtidas

Como mudar nome da máquina?

#1 Por Z0 23/05/2006 - 00:20
Sei que é uma questão meio batida, mas pesquisando não consegui; quando instalei o Frugalware, deixei em branco o nome da máquina, e agora quero colocar um. Meu /etc/hosts é o seguinte:

# hosts         This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# 'named' name server. Just add the names, addresses
# and any aliases to this file...

# For loopbacking.
127.0.0.1 localhost
127.0.0.1


Só quero mudar pra colocar alguma coisa depois do @ no terminal e no karamba, deixar bonitinho e talz... :mrgreen:

Grato!
Gafanhootoo
Gafanhootoo Super Participante Registrado
723 Mensagens 0 Curtidas
#2 Por Gafanhootoo
23/05/2006 - 03:39
Coloca o nome em /etc/hostname e pode colocar também aí abaixo do localhost em /etc/hosts para aceitar as chamdas loopbacking pelo nome.
______________________________
Link Patrocinado:
### MECÂNICA QUÂNTICA ###
*******by Gafanhootoo******
Lataria, Pintura, Auto-elétrica e
Mecânica Geral.
http://www.mecanicaquantica.com.br/
_______________________________
Z0
Z0 Zerinho Registrado
2.3K Mensagens 0 Curtidas
#4 Por Z0
23/05/2006 - 18:44
Não adiantou... fiz errado?

/etc/hosts:

#
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# 'named' name server. Just add the names, addresses
# and any aliases to this file...
#

# For loopbacking.
127.0.0.1 localhost
127.0.0.1 frugalware.org

# End of hosts.


E no /etc/hostame só tem a palavra frugal.
sml0179 Distribuição de Distros Linux em todo o Brasil!
         (__)
(oo)
/------\/
/ | ||
* /\---/\
~~ ~~
netw0rk g33k
netw0rk g33k Super Participante Registrado
732 Mensagens 13 Curtidas
#5 Por netw0rk g33k
23/05/2006 - 20:27
No arquivo /etc/hosts você tem que descrever o FQDN da máquina, ou "fully qualyfied domain name" (nome completo).

127.0.0.1 shortname.dominio.com.br

E no /etc/hostname, apenas o "shortname" da máquina, sem o domínio.

shortname


Basicamente isso. Um abraço.
Linux User #415511
Mikrotik MTCNA #MKBR0039
Mikrotik MTCRE #1010RE004

Mikrotik MTCINE #1010INE006
© 1999-2024 Hardware.com.br. Todos os direitos reservados.
Imagem do Modal