yast set hostname

hi

when i go in yast, host name module

i don’t have localhost besine 127.0.0.1
i only have

127.0.0.1

when i try to modify it, i get:
UI Syntax Error
Invalid arguments for the TextEntry widget
Check the log file!

the log file show

2009-07-09 08:46:38 <1> Programmer(6628) [ui] YPushButton.cc(setFunctionKey):160 Guessing button role YOKButton for YPushButton "Oui" at 0x864d29c from function key F10
2009-07-09 08:46:38 <1> Programmer(6628) [ui] YPushButton.cc(setFunctionKey):160 Guessing button role YCancelButton for YPushButton "Non" at 0x86540ac from function key F9
2009-07-09 08:46:40 <2> Programmer(6628) [ui] YCPDialogParser.cc(parseInputField):1803
2009-07-09 08:46:40 <2> Programmer(6628) [ui] YCPDialogParser.cc(parseInputField):1803
2009-07-09 08:46:40 <2> Programmer(6628) [ui] YCPDialogParser.cc(parseInputField):1803 Using `TextEntry() in bug compatibiltiy mode.
2009-07-09 08:46:40 &lt;2&gt; Programmer(6628) [ui] YCPDialogParser.cc(parseInputField):1803 This is equivalent to `InputField(`opt(`hstretch), ...).
2009-07-09 08:46:40 <2> Programmer(6628) [ui] YCPDialogParser.cc(parseInputField):1803 This makes the field grab as much space horizontally as it can get,
2009-07-09 08:46:40 <2> Programmer(6628) [ui] YCPDialogParser.cc(parseInputField):1803 typically making it stretch across the entire width of the dialog.
2009-07-09 08:46:40 <2> Programmer(6628) [ui] YCPDialogParser.cc(parseInputField):1803 Without this hstretch, the field will take a reasonable default width.
2009-07-09 08:46:40 <2> Programmer(6628) [ui] YCPDialogParser.cc(parseInputField):1803
2009-07-09 08:46:40 <2> Programmer(6628) [ui] YCPDialogParser.cc(parseInputField):1803 If this `hstretch is really desired, please use `InputField(`opt(`hstretch), ...).
2009-07-09 08:46:40 <2> Programmer(6628) [ui] YCPDialogParser.cc(parseInputField):1803 If it is not, please use `InputField() without `hstretch.
2009-07-09 08:46:40 <2> Programmer(6628) [ui] YCPDialogParser.cc(parseInputField):1803
2009-07-09 08:46:40 <2> Programmer(6628) [ui] YCPDialogParser.cc(parseInputField):1803
2009-07-09 08:46:40 <3> Programmer(6628) [libycp] network/services/host.ycp:297 Invalid arguments for the TextEntry widget: `TextEntry (`id (`name), "Nom d'&hôte", nil)
2009-07-09 08:46:40 &lt;2&gt; Programmer(6628) [ui] YCPDialogParser.cc(parseInputField):1773  THROW:    Invalid arguments for the TextEntry widget
2009-07-09 08:46:40 &lt;2&gt; Programmer(6628) [ui] YCP_UI.cc(OpenDialog):568         CAUGHT:   Invalid arguments for the TextEntry widget
2009-07-09 08:46:40 &lt;3&gt; Programmer(6628) [libycp] network/services/host.ycp:297 UI::OpenDialog() failed

in /etc/hosts i have

127.0.0.1 localhost

somebody know what file hostname module read?

thanks

collinm wrote:

> when i go in yast, host name module
>
> i don’t have localhost besine 127.0.0.1
> i only have
>
> 127.0.0.1
>
> when i try to modify it, i get:
> UI Syntax Error
> Invalid arguments for the TextEntry widget
> Check the log file!

Maybe YaST is finding an invalid format in /etc/hosts :-?

> in /etc/hosts i have
>
> 127.0.0.1 localhost
> .
> .
>
> somebody know what file hostname module read?

It should read that file.

Delete (or just comment) the offending line (# 127.0.0.1 localhost) by
manually editing /etc/hosts and launch again YaST2 host module (yast2
host).

Then, try adding the entry for “localhost” using YaST2 module.

Greetings,


Camaleón