problem with hostname

by on 2009-07-07T02:54:45+00:00
------=_Part_49046_477276422.1246935110023
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
When I first set up my box the system prompt read:
@:$
Recently it changed to :
@(none):$
When I need to invoke sudo I get:
@(none):~$ sudo
sudo: unable to resolve host
sudo: unable to resolve host
sudo: unable to resolve host
sudo: unable to resolve host
[sudo] password for :
I can set the hostname with:
sudo hostname
but the new hostname is not retained after reboot.
Shouldn't the following define my hostname?
@(none):~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
@(none):~$ cat /etc/hostname

How can I restore permanently?
TIA
Paul

------=_Part_49046_477276422.1246935110023
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
p { margin: 0; }When I fi=
rst set up my box the system prompt read:<username>@<hostn=
ame>:$Recently it changed to:<username>@(none):$When I need to invoke sudo I get:<username>@(none):~$ s=
udo <command>sudo: unable to resolve hostsudo: unable to reso=
lve hostsudo: unable to resolve hostsudo: unable to resolve host[sudo] password for <username>:I can set the hostname with:sudo hostname <hostname>but the new hostname is not re=
tained after reboot.Shouldn't the following define my hostname?=
<username>@(none):~$ cat /etc/hosts127.0.0.1 localhost127=
.0.1.1 <hostname># The following lines are desirable for IPv6 cap=
able hosts::1 localhost ip6-localhost ip6-loopbackfe00::0 ip6-local=
netff00::0 ip6-mcastprefixff02::1 ip6-allnodesff02::2 ip6-allro=
utersff02::3 ip6-allhosts<username>@(none):~$ cat /etc/ho=
stname<hostname>How can I restore <hostname> perman=
ently?TIAPaul
------=_Part_49046_477276422.1246935110023--

Re: problem with hostname

by Fred Rolleron 2009-07-07T03:09:36+00:00.
On Tue, 2009-07-07 at 02:51 +0000, pkaplan1@comcast.net wrote:
> How can I restore permanently?
Using whatever editor your comfortable with edit /etc/hostname as root:
sudo vi /etc/hostname
--
Fred R.
www.fwrgallery.com
"Life is like Linux, simple. If you are fighting it, you are doing
something wrong."

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Re: problem with hostname

by on 2009-07-07T03:23:30+00:00.
------=_Part_49321_2126643251.1246936799804
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
To what?
@(none):~$ cat /etc/hostname

@(none):~$
and still is not retained thru reboot.
Paul
----- Original Message -----
From: "Fred Roller"
To: "Ubuntu user technical support, not for general discussions"
Sent: Monday, July 6, 2009 11:06:50 PM GMT -05:00 US/Canada Eastern
Subject: Re: problem with hostname
On Tue, 2009-07-07 at 02:51 +0000, pkaplan1@comcast.net wrote:
> How can I restore permanently?
Using whatever editor your comfortable with edit /etc/hostname as root:
sudo vi /etc/hostname
--
Fred R.
www.fwrgallery.com
"Life is like Linux, simple. If you are fighting it, you are doing
something wrong."

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
------=_Part_49321_2126643251.1246936799804
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
p { margin: 0; }To what?<username>@(none):~$ cat /etc/hostname<hostname>=
<username>@(none):~$and still <hostname> is not retaine=
d thru reboot.Paul----- Original Message -----From: "Fred R=
oller" <froller@tnclimited.com>To: "Ubuntu user technical support=
, not for general discussions" <ubuntu-users@lists.ubuntu.com>Sen=
t: Monday, July 6, 2009 11:06:50 PM GMT -05:00 US/Canada EasternSubject=
: Re: problem with hostnameOn Tue, 2009-07-07 at 02:51 +0000, pkapl=
an1@comcast.net wrote:> How can I restore <hostname> permanent=
ly?Using whatever editor your comfortable with edit /etc/hostname a=
s root:sudo vi /etc/hostname-- Fred R.www.fwrga=
llery.com"Life is like Linux, simple.  If you are fighting it,=
you are doingsomething wrong."-- ubuntu-users =
mailing listubuntu-users@lists.ubuntu.comModify settings or unsubsc=
ribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
------=_Part_49321_2126643251.1246936799804--