Adding or editing an entry in /etc/hosts
Brian Lunergan
ff809 at ncf.ca
Sun Jan 7 01:26:12 UTC 2007
Peter Garrett wrote:
> On Sat, 06 Jan 2007 18:19:05 +0000
> norman <norman at littletank.org> wrote:
>
>> < snip >
>>
>>> I guess i could have said alt+F2>gksu gedit for gui solution
>> I am very much a novice and needed to make some changes and was very
>> comfortable using sudo gedit
>
> Sure, but the guy with the original problem needed root and could not use
> sudo because the system was unable to use "get host by name" - so he
> needed to boot in recovery mode to the default root prompt, then use a CLI
> editor.
>
> Somehow this thread got broken and reappeared here, without the context.
>
> I second the idea that nano is a much better choice for fixing the
> problem, given that the poster would be unlikely to be familiar with
> vi/vim.
Uh, as the originator of this thread I concur that vim would have been WAY too
much power for what I needed to do. Command line in root. Simple in to make the
changes. Save it and get out of there. My thanks to Jean for suggesting nano. It
worked well with an interface that looked strangely familiar from another
command line setting I had worked in once upon a time.
Based on Rebel Lion's suggestion my hosts file no contains:
127.0.0.1 localhost.localdomain localhost
127.0.1.1 ubuntu
Login seemed to happen without the same complaint and my use of sudo adduser in
a terminal window to add my username to dip and dialup went off without
complaint. Am I basically on course at this point or do I need to crawl back
under the hood and make some adjustments?
My thanks for all help given. The adventure begins...
--
Brian Lunergan
Nepean, Ontario
Canada
---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0701-1, 2007-01-05
Tested on: 2007-01-06 20:26:15
avast! is copyright (c) 2000-2007 ALWIL Software.
http://www.avast.com
More information about the ubuntu-users
mailing list