WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Linux, UNIX, Open Source (http://www.wcm.at/forum/forumdisplay.php?f=13)
-   -   namenloser rechner (http://www.wcm.at/forum/showthread.php?t=91616)

mischamann 18.03.2003 21:12

namenloser rechner
 
mein computer hat unter linux keinen hostnamen, beim konfigurieren der nic im KDE hagelts fehlermeldungen und es bleibt ohne erfolg.
wie geb' ich meinem rechner einen namen, denn im moment ist er nur mit der IP-adresse zu erreichen

FIREwaLKER 18.03.2003 22:44

in der Datei /etc/hosts kannst du den Rechnernamen eingeben!

Ähnlich wie diese
#
# 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.
# Syntax:
#
# IP-Address Full-Qualified-Hostname Short-Hostname
#

127.0.0.1 localhost

# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback

fe00::0 ipv6-localnet

ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts

192.168.0.126 linux.local linux

Beachte die Letzte Zeile!

valo 18.03.2003 23:01

der hostname steht in der datei /etc/hostname drinnen ;) dort einfach nur den namen reinschreiben und speichern, fertig :D

MZ 19.03.2003 10:45

oder du schreibst in der shell einfach

hostname neuername


Alle Zeitangaben in WEZ +2. Es ist jetzt 10:19 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag