Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Hostname [OPGELOST]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Dutch
View previous topic :: View next topic  
Author Message
DraaK
n00b
n00b


Joined: 21 Feb 2005
Posts: 62

PostPosted: Thu May 19, 2005 1:28 pm    Post subject: Hostname [OPGELOST] Reply with quote

Weer een makkelijke vrees ik:

Als ik inlog op mijn Gentoo-box krijg ik username@Vigor18 te zien. Nou heb ik mijn hostname in de file /etc/hosts in Gentux veranderd maar hij blijft na reboot nog steeds de hostname Vigor18 aangeven.
Raar is wel dat in de titelbalk van putty wel username@Gentux:~ komt te staan.

Iemand een idee?
_________________
I'm a n00b and I'm proud of it!


Last edited by DraaK on Sun Jun 05, 2005 9:55 am; edited 1 time in total
Back to top
View user's profile Send private message
Bonkie
Guru
Guru


Joined: 28 Oct 2002
Posts: 501
Location: Antwerpen, Belgium

PostPosted: Thu May 19, 2005 1:50 pm    Post subject: Reply with quote

je moet ook /etc/conf.d/hostname of /etc/hostname aanpassen, afhankelijk van je baselayout versie: (>=baselayout-1.11.x geloof ik gebruikt /etc/conf.d/hostname
_________________
"I would say we have a 50% chance of survival, but I consider myself an optimist so I'll give us 50,5% ..."
~ Arthur C. Clarke [Physics PHD,SF Writer], when asked about the chances of the human race's survival
Back to top
View user's profile Send private message
DraaK
n00b
n00b


Joined: 21 Feb 2005
Posts: 62

PostPosted: Thu May 19, 2005 1:57 pm    Post subject: Reply with quote

Ja klopt dit had ik al gedaan. Maar nog steeds geen resultaat!
_________________
I'm a n00b and I'm proud of it!
Back to top
View user's profile Send private message
ruben-
Apprentice
Apprentice


Joined: 09 Nov 2004
Posts: 197

PostPosted: Thu May 19, 2005 3:46 pm    Post subject: Reply with quote

Code:

NAME
       hostname - show or set the system's host name


Zo al eens gedaan?

- Ruben
Back to top
View user's profile Send private message
Braempje
l33t
l33t


Joined: 31 Jan 2003
Posts: 748

PostPosted: Sat May 21, 2005 9:58 am    Post subject: Reply with quote

Je kan proberen met /etc/init.d/hostname restart maar ik probeerde het net hier en zag een hele resem fouten passeren, beter even herstarten dus...
_________________
Dictionary of the Flemish Sign Language - Woordenboek Vlaamse Gebarentaal
Back to top
View user's profile Send private message
DraaK
n00b
n00b


Joined: 21 Feb 2005
Posts: 62

PostPosted: Sun May 22, 2005 7:08 pm    Post subject: Reply with quote

Braempje wrote:
Je kan proberen met /etc/init.d/hostname restart maar ik probeerde het net hier en zag een hele resem fouten passeren, beter even herstarten dus...


Jep! Gelukt! Dankjewel!
_________________
I'm a n00b and I'm proud of it!
Back to top
View user's profile Send private message
DraaK
n00b
n00b


Joined: 21 Feb 2005
Posts: 62

PostPosted: Wed Jun 01, 2005 4:28 pm    Post subject: Reply with quote

Hmzzz t wil toch niet lukken vrees ik. Iemand nog suggesties?
_________________
I'm a n00b and I'm proud of it!
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Wed Jun 01, 2005 4:44 pm    Post subject: Reply with quote

Hostname in /etc/conf.d/hostname en /etc/hosts zetten en /etc/hostname verwijderen
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Braempje
l33t
l33t


Joined: 31 Jan 2003
Posts: 748

PostPosted: Thu Jun 02, 2005 12:47 pm    Post subject: Reply with quote

nixnut wrote:
Hostname in /etc/conf.d/hostname en /etc/hosts zetten en /etc/hostname verwijderen

Alleen doen als je unstable draait! De baselayout van stable gebruikt de oude files nog...
_________________
Dictionary of the Flemish Sign Language - Woordenboek Vlaamse Gebarentaal
Back to top
View user's profile Send private message
ruben
Guru
Guru


Joined: 04 Jul 2003
Posts: 462

PostPosted: Thu Jun 02, 2005 1:41 pm    Post subject: Reply with quote

Die naam zit toch niet gehardcoded in je prompt of zo?
Wat geeft hetvolgende terug?
Code:
echo $PS1

En wat heeft het commando "hostname" terug... je nieuwe hostname ?
(sorry als dat stomme vragen lijken...)
Back to top
View user's profile Send private message
DraaK
n00b
n00b


Joined: 21 Feb 2005
Posts: 62

PostPosted: Sat Jun 04, 2005 12:51 pm    Post subject: Reply with quote

ruben wrote:
Die naam zit toch niet gehardcoded in je prompt of zo?
Wat geeft hetvolgende terug?
Code:
echo $PS1

En wat heeft het commando "hostname" terug... je nieuwe hostname ?
(sorry als dat stomme vragen lijken...)


Dit is de output:

Code:
\s-\v\$


En wat voor mij bestaan er geen domme vragen want ik ben nog steeds een echte n00b!
_________________
I'm a n00b and I'm proud of it!
Back to top
View user's profile Send private message
DraaK
n00b
n00b


Joined: 21 Feb 2005
Posts: 62

PostPosted: Sun Jun 05, 2005 9:55 am    Post subject: Reply with quote

Nou na veel frustratie bleek t eigenlijk iets simpels zoals ik al zei aan het begin van deze thread. Mijn interface krijgt via dhcp automatisch een ip adres en hostname toegewezen. De hostname die ik heb gezet wordt overschreven door de verkregen hostname. Static ip was de oplossing dus.

Thnx for al your help
_________________
I'm a n00b and I'm proud of it!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Dutch All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum