Networking :: Host name?



How does one change the host name. I guess the default is 'box'?
sudo echo "NewHostName" > /etc/hostname
I think there's a boot code 'host='

So when you start DSL you would type (or have grub or lilo enter)

DSL host=myHostname

The Wiki Page has a nice writeup under DSL Booting.....Cheat Codes

Neither method seems to work for a Hard Drive install.

In my situation, I booted the CD with
dsl dma host=MyHostName noscsi nopcmcia nousb noagp noapm nomce noddc nofirewire nfs toram vga=normal

At this point, the machine identified itself as MyHostName, as I would hope. [1]

I then immediately did a:
rt-clk>Apps>Tools>Install to Hard Drive

upon reboot, it had forgotten all my boot options, so it was back to being box.

vi /boot/grub/menu.lst to add host=MyHostName (as well as the other options)

reboot with new boot line - hostname is still box (though it seems that it caught the other boot options - dma, nousb, etc)

rm -f /etc/hostname
echo "MyHostName" > /etc/hostname

reboot

machine still identifies itself as box [2]

[1] interestingly, nfs does not seem to be started by this - ps aux shows none of the required daemons (e.g. portmap) to be running.

[2] also tried
echo MyHostName > /etc/hostname
(no quotes) - didn't make any difference

also modified /etc/hosts, replacing box with MyHostName - didn't help

  • where do I get a *complete* listing of cheatcodes? The one listed by the wiki does not contain the nofirewire option, but it is quite evident that dsl actually acts upon it.

    [**] what is mce? what is ddc?

    Try editing /etc/init.d/knoppix-autoconfig the line
    hostname=box

    Next Page...
    original here.