wrc1944 Posted January 22, 2005 Report Share Posted January 22, 2005 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 Quote Link to comment Share on other sites More sharing options...
arthur Posted January 22, 2005 Report Share Posted January 22, 2005 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) Quote Link to comment Share on other sites More sharing options...
wrc1944 Posted January 23, 2005 Author Report Share Posted January 23, 2005 (edited) 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 January 23, 2005 by wrc1944 Quote Link to comment Share on other sites More sharing options...
kmc77 Posted January 23, 2005 Report Share Posted January 23, 2005 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". Quote Link to comment Share on other sites More sharing options...
xxbeanxx Posted January 23, 2005 Report Share Posted January 23, 2005 Just run drakconnect, and at the part that says "assign hostname from dhcp" make sure the box is unchecked. The next screen will ask you for a hostname, and put in something cool, like NIMBA or SAYTAN or something... Quote Link to comment Share on other sites More sharing options...
Gowator Posted January 23, 2005 Report Share Posted January 23, 2005 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. <{POST_SNAPBACK}> 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 Quote Link to comment Share on other sites More sharing options...
iphitus Posted January 23, 2005 Report Share Posted January 23, 2005 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. Quote Link to comment Share on other sites More sharing options...
wrc1944 Posted January 23, 2005 Author Report Share Posted January 23, 2005 Thanks all, I unchecked the "assign hostname from dhcp" box, as per the recommendations, and my prompt is now back to normal. wrc@localhost wrc]$ su Password: [root@localhost wrc]# Quote Link to comment Share on other sites More sharing options...
kmc77 Posted January 24, 2005 Report Share Posted January 24, 2005 Glad to hear that all is well again. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.