View previous topic :: View next topic |
Author |
Message |
hobo2 Tux's lil' helper


Joined: 08 May 2005 Posts: 87 Location: San Diego, CA & Miami, FL
|
Posted: Thu Mar 30, 2006 9:00 pm Post subject: /etc/hosts -> miten muutetaan koneen nimi? |
|
|
kysymys siis koneesta joka on lan yhteydessa muihin koneisiin (enimmakseen windows 2003 enterprise server:eita)
tama gentoo kone sisaltaa seuraavan rivin /etc/hosts tiedostossa
127.0.0.1 localhost mikkihiiri
mutta koneen "nimi" on aina localhost, miten sen saisi nayttamaan mikkihiirelta ?
kaytossa on dhcp ja kone saakin aina boottauksen yhteydessa uuden ip osoitteen, joka vaihtelee
pitaako kasipelilla nysvata koneelle nimi vai miten tuon saisi oikein nakymaan muille koneille?
kiitos neuvoista |
|
Back to top |
|
 |
linuxtuxhellsinki l33t


Joined: 15 Nov 2004 Posts: 700 Location: Hellsinki
|
Posted: Fri Mar 31, 2006 5:16 am Post subject: |
|
|
Code: | vi /etc/conf.d/hostname |  _________________ 1st use 'Search' & lastly add [Solved] to
the subject of your first post in the thread. |
|
Back to top |
|
 |
PaveQ Apprentice

Joined: 11 Feb 2005 Posts: 225 Location: Finland
|
Posted: Sun Apr 02, 2006 7:53 am Post subject: |
|
|
Code: | emacs /etc/conf.d/hostname |
 |
|
Back to top |
|
 |
linuxtuxhellsinki l33t


Joined: 15 Nov 2004 Posts: 700 Location: Hellsinki
|
Posted: Sun Apr 02, 2006 11:31 am Post subject: |
|
|
Grr
 _________________ 1st use 'Search' & lastly add [Solved] to
the subject of your first post in the thread. |
|
Back to top |
|
 |
Cougar81 n00b

Joined: 08 Nov 2002 Posts: 42 Location: Helsinki, Finland
|
Posted: Mon Apr 03, 2006 12:33 pm Post subject: |
|
|
Code: | echo "HOSTNAME=hostinnimi" > /etc/conf.d/hostname |
 |
|
Back to top |
|
 |
sjel n00b

Joined: 12 Oct 2005 Posts: 2
|
Posted: Thu Apr 06, 2006 7:40 am Post subject: |
|
|
Code: | nano /etc/conf.d/hostname |
 |
|
Back to top |
|
 |
LemurFromTheId n00b


Joined: 22 Apr 2005 Posts: 64 Location: Finland
|
Posted: Thu Apr 06, 2006 8:56 am Post subject: |
|
|
Code: | cat > /etc/conf.d/hostname |
 |
|
Back to top |
|
 |
Elekrep Tux's lil' helper

Joined: 18 Sep 2004 Posts: 108 Location: Finland
|
Posted: Tue Apr 18, 2006 3:23 pm Post subject: |
|
|
noh voiha sen oman koneen silti määrittää tonne hosts-filuunki tyyliin
192.168.0.1 kone.workgroup kone |
|
Back to top |
|
 |
|