Announcement

Collapse
No announcement yet.

[SOLVED] unable to resolve host

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] unable to resolve host

    Hello,

    I'm new to Kubuntu and I have a few post installation questions. This one concerns an error message "unable to resolve host larrylaca1"

    When I opened a konsole I got this long command prompt. So I opened /etc/hostname and lopped of the last 2/3 of the line. Now I get the error message. How do I fix this? BTW my prompt is still cumbersome, it's "larrylaca1@larrylaca1". This is after I lopped off the long tag following this.

    Thanks,

    lcharles

    #2
    Re: unable to resolve host

    attach a copy of /etc/hosts to your next post.

    Please Read Me

    Comment


      #3
      Re: unable to resolve host

      You can change your prompt to whatever you want with a little bash editing. Most people don't bother since they rarely use the command line these days...

      Please Read Me

      Comment


        #4
        Re: unable to resolve host

        Originally posted by oshunluvr
        Most people don't bother since they rarely use the command line these days...
        We, the proud members of the 'International CLI Users United' find your generalization offensive!
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Re: unable to resolve host

          This is what's in the file:

          127.0.0.1 localhost
          127.0.1.1 larrylaca1-System-Product-Name

          # The following lines are desirable for IPv6 capable hosts
          ::1 ip6-localhost ip6-loopback
          fe00::0 ip6-localnet
          ff00::0 ip6-mcastprefix
          ff02::1 ip6-allnodes
          ff02::2 ip6-allrouters

          This is my prompt since I made the change I mentioned.

          larrylaca1@larrylaca1:~$

          Comment


            #6
            Re: unable to resolve host

            open /etc/hosts and "lop off" the part after larrylaca1 on the line that begins with 127.0.1.1

            That should fix the error message.

            As far as your prompt goes, what would you like it to say? The prompt is defined in ~/.bashrc. Unless you activated color prompts, the line in question is

            PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '

            Here's an explanation of the codes http://www.cyberciti.biz/tips/howto-...up-prompt.html

            Basically, change the \u@\h:\w\$ to whatever you want to see. You can test before editing by entering

            PS1=

            and whatever you want in a terminal and it will take effect immediately, but not on next login.

            P.S. Sorry Snow hog - you know I'm a member!

            Please Read Me

            Comment


              #7
              Re: unable to resolve host

              Thanks, that solved the problem and I was able to change my terminal prompt.

              Thanks again.

              Comment

              Working...
              X