Hi.



I've tried to set the hostname on my machine and I'm having no luck.



I su - to root did a hostname <coolhostnamehere> and rebooted and it came 
back with



userimage.xxx.xxx

as the hostname



I tried linuxconf (yuck) and that didn't work....



tried the mandrake network and  internet settings control panel - that 
didn't let me set the hostname, so I hit the wizzard button there and it
  ran through the network set up and at one point it asked for the Zerocinf 
hostname -I gave the hostname I wanted, and it did some stuff and
applied the changes, then at the settings page, the hostname was changed, 
but not to what I specified



it went from "userimage" to "msppc1210" (the name of the machine before I 
installed linux NO IDEA where it dug this up...  BIOS maybe?), then
when I quit the mandrake config tool and checked the command line (using 
hostname) and it was back to "userimage".... grrr  fired the mandrake
tool back up and it said "userimage" too!!!



/etc/network/



/etc/sysconfig/network has teh proper HOSTNAME and NETWORKING=yes (that's 
all this file contains.



so I started going though some files and I see this:







/etc/sysconfig/network-scripts/ifcfg-eth0:

DEVICE=eth0

BOOTPROTO=dhcp

ONBOOT=yes

NEEDHOSTNAME=yes





The NEEDHOSTNAME seems fishy to me...



can I comment out that line and restart netork?



OR



how do you set hostname without using GUI tools (that seem to bork the 
system up..)

  

_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list