How to set hostname?

How to set hostname?

Post by Jason Bon » Sun, 31 Dec 1899 09:00:00

I'm trying to set the hostname.  However, when I type:

hostname name1.name2

as root, it changes the name, but the KDE panel stops
responding.  When I kill it and restart it it says KFM crashed.
If I reboot, the hostname has returned to it's original
name before I changed it.  I also created the file
/etc/hostname (it didn't exist before) and put the one line
in it but when I rebooted I still got the old name before the change.
Any help would be greatly appreciated,



How to set hostname?

Post by Davi » Sun, 31 Dec 1899 09:00:00

/etc/hostname is only a one name file.

example:    charlie
not:      charlie.boy


1. My hostname will not set; dip error "must set HOSTNAME first"

I am trying to set up the NET-2 stuff to get a slip connection
going and have a couple questions.

Everything seems to have gone well, but when I get all the way
to using dip, and typing "mode SLIP", I get the error message
"must set HOSTNAME first".

Now, HOSTNAME is set in my environment, I have even exported it.
I have a file /etc/HOSTNAME with one line in it:

My hosts file looks like so:          boo            network               localhost

Running ifconfig gives me this:
          FLAGS: 0x0049 ( UP LOOPBACK RUNNING )

Anyone have an idea of what is going on?

2. Openssh and "AllowHosts"

3. /bin/hostname -S won't set hostname

4. back ground process

5. dip says 'set HOSTNAME', but it's set

6. Cisco 605 DSL

7. How to set hostname

8. Compact Flash Card

9. Menuedit: How to set hostname and display

10. Setting hostname ?

11. Setting hostname w/ DHCP

12. set hostname with dhcp?

13. DHCP and setting hostname