Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-31-2004, 03:08 AM
|
#1
|
Member
Registered: Mar 2004
Location: Alabama
Distribution: Mandriva 2005 LE
Posts: 47
Rep:
|
Knoppix Changed Hostname
Hell-o,
After I booted Knoppix from a disc, my hostname in Mandrake 10.1 changed to "name"@Knoppix. I am on a cable modem with dhcp. How do I get my previous hostname back?
Thanks,
Jason Hodges
Last edited by deadlove75; 12-31-2004 at 03:11 AM.
|
|
|
12-31-2004, 08:47 AM
|
#2
|
LQ Newbie
Registered: Dec 2004
Distribution: fedora core 2
Posts: 19
Rep:
|
Check /etc/sysconfig/network
|
|
|
01-03-2005, 12:15 AM
|
#3
|
Member
Registered: Mar 2004
Location: Alabama
Distribution: Mandriva 2005 LE
Posts: 47
Original Poster
Rep:
|
Quote:
Originally posted by qazzaq
Check /etc/sysconfig/network
|
I did. It shows my orignal hostname, not Knoppix. Any other ideas?
Blessed Be,
Jason Hodges
|
|
|
04-02-2006, 07:33 PM
|
#4
|
LQ Newbie
Registered: Apr 2006
Location: Egypt
Distribution: RedHat 9 & enterprise 4
Posts: 4
Rep:
|
Hello Deadlove, i m having a problem similar to yours on RedHad enterprise 4, I m not sure of the reason, one day the host name on the command prompt has changed to be root@dhcppc0:~ although at the time, I didn't try to work on dhcp (I m still in learning stage, & sometimes I make trials utilizing my few resources just to practise like making DNS using IP alias). Any way, I checked /etc/sysconfig/network & /etc/hosts & the host name in both is the old one: localhost@localdomain localhost. I m wondering how could you solve this problem???
Thank you
|
|
|
04-10-2006, 01:15 PM
|
#5
|
Member
Registered: Mar 2004
Location: Alabama
Distribution: Mandriva 2005 LE
Posts: 47
Original Poster
Rep:
|
Quote:
Originally Posted by pretty.tulip
Hello Deadlove, i m having a problem similar to yours on RedHad enterprise 4, I m not sure of the reason, one day the host name on the command prompt has changed to be root@dhcppc0:~ although at the time, I didn't try to work on dhcp (I m still in learning stage, & sometimes I make trials utilizing my few resources just to practise like making DNS using IP alias). Any way, I checked /etc/sysconfig/network & /etc/hosts & the host name in both is the old one: localhost@localdomain localhost. I m wondering how could you solve this problem???
Thank you
|
I never did solver the problem directly. But I ended up getting a router and that solved the problem. In the host file, I put the new name of the computer and the IP address that the router assigned to the computer and that fixed it. I had to put the second computer on my network's name and ip address in the host file and that's why I changed the other one.
If you have a fixed IP address, you might want to put your computers name and that IP in your host file and remove the localhost stuff. Please back up your file before you do that; I'm not really sure what it'll do. If your IP address changes, you may not be able to get online until you change your host file and put the new IP address in.
It was something that I learned to live with. If it really bothers you, you may want to get a router. It's nice to have one just for security reasons.
Blessed Be,
Jason Hodges
Last edited by deadlove75; 04-10-2006 at 01:20 PM.
|
|
|
All times are GMT -5. The time now is 07:21 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|