Twitter Updates

    follow me on Twitter

    G-AVLN in front of her home

    G-AVLN in front of her home

    Mostly Unix and Linux topics. But flying might get a mention too.

    Tuesday, June 28, 2005

    hostname in Solaris 10

    I'm back working on Solaris 10 course. Finding it very difficult to get started properly, as the hardware keeps giving me grief. I reckon Solaris is where Linux was with the hardware some 4-5 years ago. Loads of drivers missing, the support list not complete or reliable, etc.

    Anyway, got it installed (after a fashion, USB not working, but well documented in http://docs.sun.com/app/docs/doc/817-0552/6mgbi4fgn?a=view).

    Next snag I hit was the lack of the hostname setting. I was installing the system using dhcp for the network card. However, the dhcp server does not dish out hostnames. Strangely Solaris doesn't provide an option at installation time, so the first time you boot the machine, hostname "unknown" is used. Unless you used dns, the /etc/hosts table is empty and no host to IP resolution takes place.
    Don't be tempted to run
    # hostname host-name
    command at the prompt. Two problems: 1 - the new hostname will be lost on reboot, 2 - the /etc/hosts file still needs to be updated.

    The workaround solution is:
    # echo yogi >/etc/nodename
    # sed '/PARAM_REQUEST_LIST/s/,12//' \ /etc/default/dhcpagent>/tmp/hname
    # mv /tmp/hname /etc/default/dhcpagent

    No comments:

    Blog Archive