Abram B. Olson wrote:
> but sys-unconfig doesn't even ask you for a hostname if you chose dhcp.
>
> This seems like an area where solaris is using a server or workstation
> metaphore. They don't move around often but my laptop moves between my
> home and my work networks every day. And on the weekends it might also
> be on my brothers home network and a coffeeshop network or two.
>
> It makes smb file sharing a bit easier on a windows network if I can
> assign my machine a name too.
>   

Well, you don't have to change the hostname, you know.  The hostname
that the machine knows itself by is mostly independent of how it is
known on the network.  In fact, the idea that the machine has a name at
all is kinda of a funny artifact of history, IMO.  The TCP/IP stack
certainly doesn't care, it just uses DNS or NIS, or /etc/hosts.

(There may be some software out there that still looks at uname/hostname
for a machine's own name, but I think the vast majority of programs that
care about such things either use a separate configuration -- like
sendmail or apache -- or use reverse IP lookups to determine if a
suitable name exists.)

And yes, this stuff is right out of UNIX legacy, and isn't necessarily
well suited to mobile computing.

FWIW, I have a machine that I've carried around back and forth numerous
times, and I've never had a problem with it even though I don't let DHCP
change the hostname.  Even in hotel networks.   Again, most software
you're likely to use -- especially in a mobile environment where you
really don't want to use server functionality much -- simply doesn't
care about the uname.   Web browsers, mail clients, etc. all function
fine without changing the hostname.

    -- Garrett
>
> Abe
>
>
> On Fri, 2006-07-21 at 11:30, Garrett D'Amore wrote:
>   
>> Abram Olson wrote:
>>     
>>> ok so, I actually needed to get some work done so I dud sys-unconfig
>>> and everything seems to be working as expected now.
>>>
>>> So, what is the "correct" way to set a hostname so that nothing breaks?
>>>       
>> sys-unconfig. :-)
>>
>> Basically, hostnames shouldn't change very often.  There are a few files
>> that need to be updated in /etc/net/ as well.  The easiest way to make
>> sure you get them all is to sys-unconfig and reboot.
>>
>>     -- Garrett
>>     
>>> Abe
>>>
>>> On 7/21/06, Abram Olson <schwarzgerat at gmail.com> wrote:
>>>       
>>>> ok,
>>>>
>>>> in dmesg I see the following errors:
>>>>
>>>> sendmail errors "unable to qualify my own domain name (ekaterina) --
>>>> using short name"
>>>>
>>>> "/usr/dt/bin ttsession[1133]: [ID 161973 daemon.error] t_connect(): An
>>>> event requires attention"
>>>>
>>>> "automountd[ID 784820 daemon.error] server unknown not responding"
>>>> repeated 12 times.
>>>>
>>>>
>>>> In svcs -vx there aren't any SMF errors. There is an entry about the
>>>> LP print server not running and an error about inetmenu not running.
>>>>
>>>> In /var/dt/Xerrors I see three errors
>>>>
>>>> Unable to locate/open config file
>>>> Failed to load module fbdev (module does not exist, 0)
>>>> GARTInit: unable to open /dev/agpgart (no such file or directory)
>>>>
>>>> At this time I cannot log in to CDE as either root or my user.
>>>> Although I can log in to either account on the console.
>>>>
>>>>
>>>> Abe
>>>>
>>>> On 7/21/06, Luc I. Suryo <luc at suryo.com> wrote:
>>>>         
>>>>> Abram,
>>>>>
>>>>> are you using dhcp??? wonder it is screwing setting is so..
>>>>>
>>>>>
>>>>> try todo this
>>>>>
>>>>>         login command line (is an option of the gui login)
>>>>>
>>>>>         do a : dmesg  <- see if you see *ANY* error
>>>>>
>>>>>         do a : svcs -xv <- check for possible SMF issue
>>>>>
>>>>>         check the file  /var/dt/Xerrors
>>>>>
>>>>>         see if CDE works? is so then i could be an gnome
>>>>>         only problem
>>>>>
>>>>>
>>>>> - ls
>>>>>
>>>>>           
>>>>>> ok, so, this morning I can't login as either my user or root at the
>>>>>> graphical login prompt. If I choose console login I can log in as
>>>>>> either.
>>>>>>
>>>>>> I checked the contents of all the files that Luc listed in his post
>>>>>> and the host name was the same in all of them.
>>>>>>
>>>>>> I also deleted all of the gnome files in /tmp and /var/tmp that were
>>>>>> related to my user name.
>>>>>>
>>>>>> Still nothing.
>>>>>>
>>>>>>
>>>>>>
>>>>>> On 7/21/06, Eric Lowe <Eric.Lowe at sun.com> wrote:
>>>>>>             
>>>>>>> Abram Olson wrote:
>>>>>>>               
>>>>>>>> Now, after I changed the hostname, I cannot graphically log in
>>>>>>>>                 
>>>> to any
>>>>         
>>>>>>>> my user account. I can log in to the root account and I can
>>>>>>>>                 
>>>> log in to
>>>>         
>>>>>>>> a new account that was created after the name change. I've
>>>>>>>>                 
>>>> spent like
>>>>         
>>>>>>>> two hours looking on line, I've moved all the configuration
>>>>>>>>                 
>>>> files in
>>>>         
>>>>>>>> my home directory to a new directory (effectively making
>>>>>>>>                 
>>>> backups and
>>>>         
>>>>>>>> "deleting" them at the same time).
>>>>>>>>                 
>>>>>>> I've seen issues starting gnome after switching subnets or changing
>>>>>>> hostnames while still logged into gnome. Blowing away the temp
>>>>>>>               
>>>> files it
>>>>         
>>>> -- 
>>>> "Nothing is easier than to admit in words the truth of the universal
>>>> struggle for life, or more difficult -- at least I have found it so --
>>>> than constantly to bear this conclusion in mind. Yet unless it be
>>>> thoroughly engrained in the mind, I am convinced that the whole
>>>> economy of nature, with every fact on distribution, rarity, abundance,
>>>> extinction, and variation, will be dimly seen or quite misunderstood."
>>>> -- Charles Darwin "The Origin of Species"
>>>>
>>>>         
>>>       
>> -- 
>> Garrett D'Amore, Principal Software Engineer
>> Tadpole Computer / Computing Technologies Division,
>> General Dynamics C4 Systems
>> http://www.tadpolecomputer.com/
>> Phone: 951 325-2134  Fax: 951 325-2191
>>
>>     
>
> _______________________________________________
> laptop-discuss mailing list
> laptop-discuss at opensolaris.org
>   


-- 
Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
http://www.tadpolecomputer.com/
Phone: 951 325-2134  Fax: 951 325-2191


Reply via email to