Jump to content

Strange Bash Prompt after getting Cable [solved]


wrc1944
 Share

Recommended Posts

I just went to Cable from years of dialup, and setup winXP and Gentoo connections without too much trouble. I then got my Mandrake 10.1 box connected OK, but now I have this in any terminal (kde-konsole, aterm, gnome, or xterm), but only with the Mandrake box.

 

[wrc@ip24-250-199-108 wrc]$ su

Password:

[root@ip24-250-199-108 wrc]#

 

Everything seems to be working perfectly OK, but I'd still like to know why I have this strange bash prompt, and how to get rid of it (the "ip24-250-199-108" part) , without messing up my Cable connection. Any advice or insight is greatly appreciated.

 

Thanks,

wrc1944

Link to comment
Share on other sites

well you set up gentoo to have a dynamic hostname - which means that your hostname is the one assigned to you by your ISP.

 

it's not a problem at all, I also don't know what will happen if you try to get rid of it. However, check if you have a setting in your /etc/rc.conf or /etc/conf.d/net like:

 

dhcpd_eth0="-HD"

 

removing it should disable it. you should set your hostname to something else like "mobiletux", however your setup might accept only FQDN (fully qualified domain names)

Link to comment
Share on other sites

I guess I wasn't too clear before- the problem I'm having is only on the Mandrake box. I've looked around extensively in the Mandrake /etc directory and can't find any files with the "ip24-250-199-108" relating to the bash prompt, or in fact, any file at all referring to it.. Maybe I just don't know where to look. The files you mentioned are in Gentoo, but Mandrake does not use them.

Edited by wrc1944
Link to comment
Share on other sites

I believe arthur still had the solution correct.

 

I'm not using MDK 10.1 yet, but I'm sure you can still go into the controll center and your networking options then when you are setting up the eth0 options, uncheck the automaticaly assign hostname button, and input your own. For example, mine is "kevins.linux.machine.com".

Link to comment
Share on other sites

I guess I wasn't too clear before- the problem I'm having is only on the Mandrake box. I've looked around extensively in the Mandrake /etc directory and can't find any files with the "ip24-250-199-108" relating to the bash prompt, or in fact, any file at all referring to it.. Maybe I just don't know where to look. The files you mentioned are in Gentoo, but Mandrake does not use them.

 

Firstly. Don't play with the Mandrake Wizards lightly unless you have another internet connection. They are very poor and if they go wrong can bork your system. Since its internet your loosing getting support might be hard after that!

 

second : You won't find it,its dynamically generated and as said already its your FQDN.

Your bash prompt is just set to show the fqdn ... so the real question is what do you wish to change.

 

Your ISP might allow you to use something else or not. That's an ISP issue but the fact its not shown in Gentoo or Windows doesn't mean its not using it.

 

If all you want is to change your bash shell then its in your home .bashrc.

 

this is often set to use a global skeleton such as /etc/profile

 

\s-\v\$
is the default

 

 

    \a     an ASCII bell character (07)
             \d     the  date  in "Weekday Month Date" format (e.g., "Tue May
                    26")
             \D{format}
                    the format is passed to strftime(3)  and  the  result  is
                    inserted  into the prompt string; an empty format results
                    in a locale-specific time representation.  The braces are
                    required
             \e     an ASCII escape character (033)
             \h     the hostname up to the first `.'
             \H     the hostname
             \j     the number of jobs currently managed by the shell
             \l     the basename of the shell's terminal device name
             \n     newline
             \r      \t     the current time in 24-hour HH:MM:SS format
             \T     the current time in 12-hour HH:MM:SS format
             \@     the current time in 12-hour am/pm format
             \A     the current time in 24-hour HH:MM format
             \u     the username of the current user
             \v     the version of bash (e.g., 2.00)
             \V     the release of bash, version + patch level (e.g., 2.00.0)
             \w     the  current  working  directory,  with $HOME abbreviated
                    with a tilde
             \W     the basename of the current working directory, with $HOME
                    abbreviated with a tilde
             \!     the history number of this command
             \#     the command number of this command
             \$     if the effective UID is 0, a #, otherwise a $
             \nnn   the character corresponding to the octal number nnn
             \\     a backslash
             \[     begin  a sequence of non-printing characters, which could
                    be used to embed a terminal  control  sequence  into  the
                    prompt
             \]     end a sequence of non-printing characters
carriage return
             \s     the  name  of  the shell, the basename of $0 (the portion
                    following the final slash)

 

from man bash

 

edits brackets on CODE block

Link to comment
Share on other sites

this happened to me, its not a bad thing, its not a problem, its not a bug. its perrrrfectly normal

 

in this case it would be safe to do as kmc77 suggests. I've run the same configuration as you in every version of mandrake i've used and the wizards have worked. flawlessly. so do as kmc77 sayd.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...