KNOPPIX changed HOSTNAME
I was testing out the new version of KNOPPIX since the electric went out in the neighborhood (California). After playing around in it, which is really neat, it changed my HOSTNAME and the command prompt. i.e. user@KNOPPIX> used to be user@IOS How do I go about changing it back? I checked the /etc/HOSTNAME, it is IOS.local, where else do I need to look? TIA! NeoFax
On Tuesday 01 July 2003 04:15, Terry Milnes wrote:
user@KNOPPIX> used to be user@IOS How do I go about changing it back? I checked the /etc/HOSTNAME, it is IOS.local, where else do I need to look? TIA!
Just use YaST2 -> Network/Basic -> Network card configuration Click on change next to the "Already configured devices" -> from the list choose your network card (usually eth0) and click "Edit". Under "Detailed settings", there's a button "Host name and name server". There you can change your hostname easily. Hansen -- Powered by SuSE 8.1pro - KDE 3.0.3 - KMail 1.4.3
Knoppix is based on Debain so it doesn't have YaST2! I think the Terry Milnes will have to take his Knoppix to one of the Debian or Knoppix mailing lists. http://www.knoppix.net/forum/ is a good one for Knoppix. I don't know why he can't change his hostname. I would try as root: hostname --file /etc/HOSTNAME if that doesn't work then he should look in the /etc/init.d/hostname.sh boot script and see what Knoppix did that was strange. pben On Tuesday 01 July 2003 04:19 am, Johannes Liedtke wrote:
On Tuesday 01 July 2003 04:15, Terry Milnes wrote:
user@KNOPPIX> used to be user@IOS How do I go about changing it back? I checked the /etc/HOSTNAME, it is IOS.local, where else do I need to look? TIA!
Just use YaST2 -> Network/Basic -> Network card configuration Click on change next to the "Already configured devices" -> from the list choose your network card (usually eth0) and click "Edit". Under "Detailed settings", there's a button "Host name and name server". There you can change your hostname easily.
Hansen
-- Powered by SuSE 8.1pro - KDE 3.0.3 - KMail 1.4.3
On Tuesday 01 July 2003 16:26, Paul Benjamin wrote:
Knoppix is based on Debain so it doesn't have YaST2!
Oh, I thought Knoppix might've messed up his SuSE installation (which surprised somewhat) and he wanted to have his original SuSE-setup back. Hansen -- Powered by SuSE 8.1pro - KDE 3.0.3 - KMail 1.4.3
Maybe your right I made a differnet assumption because I know that Knoppix puts all it's config into memory unless you choose to install it to the hard drive. If it was still booting off the CD all his changes would have disappeared when the power went off. Maybe Terry Milnes can tell us what happened in more detail of it screwed up his SuSE install or go to the Knoppix forum if it is with his Knoppix install. pben On Tuesday 01 July 2003 10:25 am, Johannes Liedtke wrote:
On Tuesday 01 July 2003 16:26, Paul Benjamin wrote:
Knoppix is based on Debain so it doesn't have YaST2!
Oh, I thought Knoppix might've messed up his SuSE installation (which surprised somewhat) and he wanted to have his original SuSE-setup back.
Hansen
-- Powered by SuSE 8.1pro - KDE 3.0.3 - KMail 1.4.3
Paul Benjamin wrote:
Maybe your right I made a different assumption because I know that Knoppix puts all it's config into memory unless you choose to install it to the hard drive. If it was still booting off the CD all his changes would have disappeared when the power went off. Maybe Terry Milnes can tell us what happened in more detail of it screwed up his SuSE install or go to the Knoppix forum if it is with his Knoppix install.
pben
On Tuesday 01 July 2003 10:25 am, Johannes Liedtke wrote:
On Tuesday 01 July 2003 16:26, Paul Benjamin wrote:
Knoppix is based on Debian so it doesn't have YaST2!
Oh, I thought Knoppix might've messed up his SuSE installation (which surprised somewhat) and he wanted to have his original SuSE-setup back.
Hansen
-- Powered by SuSE 8.1pro - KDE 3.0.3 - KMail 1.4.3
Here is what happened: Power went out while downloading a file to /tmp. Remembered that I have SuSE setup to delete /tmp on boot. Decided to use KNOPPIX as a rescue CD and move file from /tmp to /home/terry. DID NOT INSTALL KNOPPIX TO HDD. Upon reboot my prompt has changed to user@KNOPPIX> and when I check my hostname it says KNOPPIX. I have changed /etc/HOSTNAME back to IOS.local to no avail. Is there somewhere else that KNOPPIX might have changed my config? BTW I have been using SuSE since 6.2 days. I know my way around linux and SuSE in particular. I just have never seen a CD only linux change files on the HDD. NeoFax Terry Milnes
Odd, did you try Johannes Liedtke YaST2 procedure? If you run this at root does it change your host name? hostname --file /etc/HOSTNAME This sounds like someting out of the Twilight Zone. I used Knoppix a couple of times and nothing like this happened, not even to that evil Windows partition. On Tuesday 01 July 2003 06:37 pm, Terry Milnes wrote:
Here is what happened: Power went out while downloading a file to /tmp. Remembered that I have SuSE setup to delete /tmp on boot. Decided to use KNOPPIX as a rescue CD and move file from /tmp to /home/terry. DID NOT INSTALL KNOPPIX TO HDD. Upon reboot my prompt has changed to user@KNOPPIX> and when I check my hostname it says KNOPPIX. I have changed /etc/HOSTNAME back to IOS.local to no avail. Is there somewhere else that KNOPPIX might have changed my config?
BTW I have been using SuSE since 6.2 days. I know my way around linux and SuSE in particular. I just have never seen a CD only linux change files on the HDD.
NeoFax Terry Milnes
Odd, did you try Johannes Liedtke YaST2 procedure? If you run this at root does it change your host name?
hostname --file /etc/HOSTNAME
This sounds like something out of the Twilight Zone. I used Knoppix a couple of times and nothing like this happened, not even to that evil Windows partition.
On Tuesday 01 July 2003 06:37 pm, Terry Milnes wrote:
Here is what happened: Power went out while downloading a file to /tmp. Remembered that I have SuSE setup to delete /tmp on boot. Decided to use KNOPPIX as a rescue CD and move file from /tmp to /home/terry. DID NOT INSTALL KNOPPIX TO HDD. Upon reboot my prompt has changed to user@KNOPPIX> and when I check my hostname it says KNOPPIX. I have changed /etc/HOSTNAME back to IOS.local to no avail. Is there somewhere else that KNOPPIX might have changed my config?
BTW I have been using SuSE since 6.2 days. I know my way around linux and SuSE in particular. I just have never seen a CD only linux change files on the HDD.
NeoFax Terry Milnes
My HOSTNAME is setup via my Motorola SBG1000 router that uses DHCP. It says IOS Host Local Domain. Is there anywhere else that can be causing
Paul Benjamin wrote: this? Thanks so far! NeoFax
Ok I think I have it figured out, after playing around with my home LAN I think that I reproduced your problem. Normally SuSE doesn't send it's name to the DHCP sever in your router. So it just shows up as unknown, at least it does on mine. But apparently Knoppix sends it's name when it request a IP address. The router stuck the Knoppix name in it's host list in the DHCP server. You must have SuSE set up to "Change host name via DHCP" in the Yast2->Network Services->DNS and Host Name. So the next time SuSE requested an IP address from the router's DHCP sever it said "oh, I know that network card" and it gave you the same address that it gave you when you booted under Knoppix. Since SuSE didn't reset the host name when it requested the address the router gave you the name it had in it's host table associated with that IP address. SuSE says "oh, my sysop said use the name that the router gives me" so it changes it's host name to Knoppix. You are confused, I am confused, the only ones that aren't is the router and SuSE. So the fix is either change the host name in your router's DHCP table or reboot both SuSE and the router. Hey I learned something about routers anyway how about you? ;-) pben On Tuesday 01 July 2003 09:34 pm, Terry Milnes wrote:
My HOSTNAME is setup via my Motorola SBG1000 router that uses DHCP. It says IOS Host Local Domain. Is there anywhere else that can be causing this? Thanks so far!
NeoFax
Paul Benjamin wrote:
Ok I think I have it figured out, after playing around with my home LAN I think that I reproduced your problem. Normally SuSE doesn't send it's name to the DHCP sever in your router. So it just shows up as unknown, at least it does on mine. But apparently Knoppix sends it's name when it request a IP address. The router stuck the Knoppix name in it's host list in the DHCP server.
You must have SuSE set up to "Change host name via DHCP" in the Yast2->Network Services->DNS and Host Name. So the next time SuSE requested an IP address from the router's DHCP sever it said "oh, I know that network card" and it gave you the same address that it gave you when you booted under Knoppix. Since SuSE didn't reset the host name when it requested the address the router gave you the name it had in it's host table associated with that IP address.
SuSE says "oh, my sysop said use the name that the router gives me" so it changes it's host name to Knoppix. You are confused, I am confused, the only ones that aren't is the router and SuSE.
So the fix is either change the host name in your router's DHCP table or reboot both SuSE and the router. Hey I learned something about routers anyway how about you? ;-)
pben
On Tuesday 01 July 2003 09:34 pm, Terry Milnes wrote:
My HOSTNAME is setup via my Motorola SBG1000 router that uses DHCP. It says IOS Host Local Domain. Is there anywhere else that can be causing this? Thanks so far!
NeoFax
Thanks, worked like a charm! I appreciate all the help everyone has given me. So, I learned a bit about DHCP. That's weird, I thought DHCP only kept a table based on MAC Address and not also Hostname. I guess I need to read up on DHCP also. Thanks again! NeoFax
participants (3)
-
Johannes Liedtke
-
Paul Benjamin
-
Terry Milnes