Derek Jennings wrote:
On Friday 03 December 2004 08:43, Vegard Lundby Rekaa wrote:
Re: [newbie] Changing hostname
Actually the statement he needs is NEEDHOSTNAME=no
derek
--
www.jennings.homelinux.net
http://twiki.mdklinuxfaq.org
You were quite right Derek. It was NEEDHOSTNAME wich was ment to be configured...
But then again, opening the /etc/hosts file I see this line:
127.0.0.1 localhost
Where am I going wrong?
Thanks, Vegard
Your mistake is in deleting that line. It is essential.
If you want to set your hostname you must do it by setting the line HOSTNAME= in /etc/sysconfig/network, or by GUI in MandrakeControlCentre>Network>InternetAccess restart networking with 'service network restart' or by using the GUI in MandrakeControlCentre>System>Services for the new hostname to take effect.
derek
Try
127.0.0.1 <Your preferred hostname here> localhost
eg. mine reads:
127.0.0.1 localhost.localdomain localhost 127.0.0.1 Snapafun.localdomain localhost 127.0.0.1 www.snapafun.con Snapafun 127.0.0.1 www.snapafun.con localhost
Now that's somewhat overkill and needs a clean up but it works.
My prompt looks like so:
[EMAIL PROTECTED] frank]$
for my home directory.
From here you can start playing with your network stuff.
eg.
[EMAIL PROTECTED] etc]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=dhcp NETMASK=255.255.255.0 ONBOOT=yes MII_NOT_SUPPORTED=no WIRELESS_ENC_KEY="" DHCP_HOSTNAME=SnapafunFrank NEEDHOSTNAME=yes
Er... mine seems to say 'YES' to NEEDHOSTNAME but that might not be what you require.
-- Regards
SnapafunFrank
Big or small, a challenge requires the same commitment to resolve.
Registered Linux User # 324213
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________