Logging in with no host specified (user@(none):~> at cmd line)

Need help with the following problem. I made the following changes in the /etc/hosts file:

127.0.0.1 localhost
10.10.9.6 (hostname)

after restarting the computer, everytime I boot in the cmd line my user appears as:

username@(none):~>

This is the same case with the root user. I may have configured something wrong which I did not notice. Any ideas?

Another thing to add is that I already tried setting the environment variable of HOSTNAME=(hostname). Still no luck!

:frowning:

I am not quite sure I understand what you mean. Putting an enbtry in /etc/hosts is for translation between IP adress and a host-domainame (without using DNS).

Am I right that you want to change the name of your system?
In hat case, go to YaST > Network devices > Network settings. Then use the Hostname/DNS tab and fill in the new host (and domain) name. YaST will se that the new name is configured in several places.

That is where we have YaST for: to not forgot what all must be changed and configured, while we human people tend to forget things. :wink:

Hi, thanks for your reply. What I mean is this:
Open a command terminal and notice that on the right where you put your commands, it should show something like this:
youruser@yourhostname:~>

Mine shows:
youruser@(none)~>

Yes, exactly the word (none) instead of my hostname

vindal0012 wrote:
>
> Hi, thanks for your reply. What I mean is this:
> Open a command terminal and notice that on the right where you put your
> commands, it should show something like this:
> youruser@yourhostname:~>
>
> Mine shows:
> youruser@(none)~>
>
> Yes, exactly the word (none) instead of my hostname
>
>
> hcvv;2573476 Wrote:
>> I am not quite sure I understand what you mean. Putting an enbtry in
>> /etc/hosts is for translation between IP adress and a host-domainame
>> (without using DNS).
>>
>> Am I right that you want to change the name of your system?
>> In hat case, go to YaST > Network devices > Network settings. Then use
>> the Hostname/DNS tab and fill in the new host (and domain) name. YaST
>> will se that the new name is configured in several places.
>>
>> That is where we have YaST for: to not forgot what all must be changed
>> and configured, while we human people tend to forget things. :wink:
>
>
hcvv asked you to edit it using YaST > Network devices > Network
settings. Did you already do it ?

–
GNOME 3.6.2
openSUSE Release 12.3 (Dartmouth) 64-bit
Kernel Linux 3.7.10-1.16-desktop

Indeed. Please read our posts complete and answer to all remarks, suggestions.

I may be raising a stupid issue,
I guess you have configured a fixed IP address or configured a DHCP lease that matches your Hosts file entry?
And, your network interface is enabled?

ie
If you’re able to successfully login to the local mahine (no matter the issue you raised), verify your networking is working and configured properly with either

ip addr

or

ifconfig

TSU