[opensuse] 'localhost' instead of machine name after reboot
My PC running opensuse 11.1 locked up and I had to hard reset. Upon restart when I open a terminal window my prompt looks like: user-name@localhost:~> instead of: user-name@machine-name:~> I know some updates recently installed, so not sure if that had anything to do with it. My networking is using network-manager. I tried modifying my hosts file, which is where my computer name was set before. It had a line like: 127.0.0.2 machine-name.mydomain.com machine-name Now when I restart, this automatically gets change to: 127.0.0.2 localhost.localdomain localhost The biggest issue is that I had an openoffice document started and would like to recover it. When I try to start calc, it sees the change in the environment and want to ignore the one I want to recover. Any ideas how I can reset my machine name like it was before? Thanks, James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 10/1/2010 2:26 PM, James Pifer wrote:
Any ideas how I can reset my machine name like it was before? Could you temporarily change the host name with the host command and recover the document?
# host machinename Then change the hosts file and reboot. however, I would look over the entire network configuration to make sure nothing else got borked. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2010-10-01 at 14:52 -0400, Michael S. Dunsaavage wrote:
On 10/1/2010 2:26 PM, James Pifer wrote:
Any ideas how I can reset my machine name like it was before? Could you temporarily change the host name with the host command and recover the document?
# host machinename
Then change the hosts file and reboot. however, I would look over the entire network configuration to make sure nothing else got borked.
I tried that, and although the prompt looks correct int he xterm window, the title bar of the xterm window still shows username@localhost. When I start oocalc from within this xterm window, it still gives me the error. I found my document in openoffice's backup: ~/.ooo3/user/backup So that's not an issue. Now I'm just trying to understand what is going on. Whenever I modify the hosts file, it gets changed on reboot, but not just changed back to an original file. If I add: 127.0.0.2 machine-name.mydomain.com machine-name It gets change to: 127.0.0.2 localhost.localdomain localhost I'll try adding it multiple times and see what happens. It's just very strange. Nothing else seems out of whack. I got my normal reserved ip address from dhcp, and the other settings seem fine. Thanks, James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 10/1/2010 3:04 PM, James Pifer wrote:
On 10/1/2010 2:26 PM, James Pifer wrote:
Any ideas how I can reset my machine name like it was before? Could you temporarily change the host name with the host command and recover the document?
# host machinename
Then change the hosts file and reboot. however, I would look over the entire network configuration to make sure nothing else got borked. I tried that, and although the prompt looks correct int he xterm window,
On Fri, 2010-10-01 at 14:52 -0400, Michael S. Dunsaavage wrote: the title bar of the xterm window still shows username@localhost.
When I start oocalc from within this xterm window, it still gives me the error.
I found my document in openoffice's backup: ~/.ooo3/user/backup
So that's not an issue. Now I'm just trying to understand what is going on. Whenever I modify the hosts file, it gets changed on reboot, but not just changed back to an original file. If I add: 127.0.0.2 machine-name.mydomain.com machine-name
It gets change to: 127.0.0.2 localhost.localdomain localhost
I'll try adding it multiple times and see what happens. It's just very strange. Nothing else seems out of whack. I got my normal reserved ip address from dhcp, and the other settings seem fine.
Thanks, James
I would look around in the network configuration. You said you use network manager. That may be writing something everytime it starts network services. It's been a while since I used that, but there is an option to use traditional ifup if I recall. Also there is an option to not write to hosts file. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
I would look around in the network configuration. You said you use network manager. That may be writing something everytime it starts network services. It's been a while since I used that, but there is an option to use traditional ifup if I recall. Also there is an option to not write to hosts file.
Yeah, I did this and it is something with Network Manager. I disabled it for ifup and rebooted and now it's working as it should. oocalc started and did it's normal document recovery, etc. I've been using NM for a pretty long time. How can I tell if it was one of the updates that installed recently? There aren't many options in configuring NM in it's GUI. Thanks, James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2010-10-01 at 15:39 -0400, James Pifer wrote:
I would look around in the network configuration. You said you use network manager. That may be writing something everytime it starts network services. It's been a while since I used that, but there is an option to use traditional ifup if I recall. Also there is an option to not write to hosts file.
Yeah, I did this and it is something with Network Manager. I disabled it for ifup and rebooted and now it's working as it should. oocalc started and did it's normal document recovery, etc.
I've been using NM for a pretty long time. How can I tell if it was one of the updates that installed recently?
There aren't many options in configuring NM in it's GUI.
Thanks, James
Very strange. As soon as I turned Network Manager back on the machine name changed back to localhost. I found some people mention there was a way to tell it not to modify /etc/hosts. I ended up modifying /etc/sysconfig/network/dhcp and changed: DHCLIENT_SET_HOSTNAME="no" WRITE_HOSTNAME_TO_HOSTS="no" It's weird that DHCLIENT_HOSTNAME_OPTIONAL is set to the correct hostname. For the moment it's working correctly now, even after reboot. Thanks, James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 10/1/2010 4:09 PM, James Pifer wrote:
Very strange. As soon as I turned Network Manager back on the machine name changed back to localhost.
I found some people mention there was a way to tell it not to modify /etc/hosts.
I ended up modifying /etc/sysconfig/network/dhcp and changed: DHCLIENT_SET_HOSTNAME="no" WRITE_HOSTNAME_TO_HOSTS="no"
It's weird that DHCLIENT_HOSTNAME_OPTIONAL is set to the correct hostname.
For the moment it's working correctly now, even after reboot.
Thanks, James
I don't remember what OS version you said this was, but I know NM in 11.3 had issues. Actually, I never liked NM at all so just stuck to traditional settings. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
I don't remember what OS version you said this was, but I know NM in 11.3 had issues. Actually, I never liked NM at all so just stuck to traditional settings.
11.1. I agree that NM has it's issues, but this is a laptop and I occasionally switch to wireless. Plus connecting to a hotel wifi is much easier with NM. Thanks for the help. James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 01 October 2010 10:35:55 am James Pifer wrote:
I don't remember what OS version you said this was, but I know NM in 11.3 had issues. Actually, I never liked NM at all so just stuck to traditional settings.
11.1. I agree that NM has it's issues, but this is a laptop and I occasionally switch to wireless. Plus connecting to a hotel wifi is much easier with NM.
Thanks for the help.
James
try wicd. installed it a year and a half ago and never looked back at nm. and wicd requires ifup. there are times where a change in wifi connections between sleeping cycles requires a couple of reconnect tries, but all else seems fine. the only real bug, if you go to the connection details window and click on the pwd, the dots will change to the actual pword. d. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
James Pifer
-
kanenas@hawaii.rr.com
-
Michael S. Dunsaavage