Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Sco Unix

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-03-2008, 02:45 PM
Nico Kadel-Garcia
 
Posts: n/a
Default How to change your hostname in SCO OpenServer 5.0.6

So, it may seem obvious to the knowledgeable, but a little knowledge
is a dangerous thing. And I'd like to write a note about the booby
traps to warn others.

* Select your new hostname. It can only have up to 8 characters, and
should avoid punctuation, especially periodsy, and should be entirely
lowercase to follow the published DNS standards.
* Get your new hostname ready in your local DNS and, if necessary, /
etc/hosts tables on other machines.
* Back up a copy of /etc/hosts and /etc/default/tcp, so you can back
out your changes if needed.
* Announce downtime for the host: you're going to need a reboot to
make sure everything's perfect.
* Back up your machine and take any network services offline.
* Kiss your X sessions on the machine goodbye. This includes remote X
terminals and the "scologin" window at your normal login screen.
* Go to a *non-X-displayed* shell prompt. This is because changing the
host name in the middle of the X sessions can seriously screw up the X
session.
* Hit Ctrl-Alt-F1 from the console to get a pure text screen.
* Log in as root, or su to be root.
* Run the command "netconfig". Note that this non-X based session is
considerably more powerful than the X based GUI!!!
* Set the new hostname in netconfig. Make sure that the rest of your
settings are correct as well.
* Allow netconfig to rebuild your kernel and make the new kernel the
default. (In my opinion, OpenServer is way, way, way too eager to
rebuild kernels!)
* Check that /etc/hosts and /etc/default/tcp and the command
"hostname" now all say what you expect.
* Reboot
* Test servics.

The bit about using the text-mode netconfig is critical. You might get
away with one change, but then if you change it back from an X based
session, you get screwed up.

Also note that /etc/hosts on SCO OpenServre 5.0.x uses a non-standard
format for /etc/hosts: most operating systems use this, for good
reasons having to do with reverse hostname lookups

192.168.0.1 hostname.domain.com hostname

SCO does this, which went out of style 15 years ago, and is
unfortunately reset as the standard every time you touch the netconfig
or other GUI's. It also makes Kerberos compilation impossible without
modifying the Kerbreos source code.

192.168.0.1 hostname hostname.domain.com

Also, the output of `uname -m` and the `hostname` command don't
match, unlike every other OS I've dealt with in the last 15 years.
`uname -m` publishes the un-qualified "hostname" word, while the
command `hostname` published "hostname.domain.com". This will drive
you *nuts* if you're used to more contemporary behavior and trying to
check your work.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-03-2008, 02:45 PM
N. Yaakov Ziskind
 
Posts: n/a
Default Re: How to change your hostname in SCO OpenServer 5.0.6

Nico Kadel-Garcia wrote (on Fri, Mar 28, 2008 at 01:39:27AM -0700):
> So, it may seem obvious to the knowledgeable, but a little knowledge
> is a dangerous thing. And I'd like to write a note about the booby
> traps to warn others.


instead of all this, why not 'uname -S' ?

--
_________________________________________
Nachman Yaakov Ziskind, FSPA, LLM awacs@ziskind.us
Attorney and Counselor-at-Law http://ziskind.us
Economic Group Pension Services http://egps.com
Actuaries and Employee Benefit Consultants
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-03-2008, 02:45 PM
Brian K. White
 
Posts: n/a
Default Re: How to change your hostname in SCO OpenServer 5.0.6


----- Original Message -----
From: "N. Yaakov Ziskind" <awacs@ziskind.us>
Newsgroups: comp.unix.sco.misc
To: <distro@jpr.com>
Sent: Friday, March 28, 2008 3:15 PM
Subject: Re: How to change your hostname in SCO OpenServer 5.0.6


> Nico Kadel-Garcia wrote (on Fri, Mar 28, 2008 at 01:39:27AM -0700):
>> So, it may seem obvious to the knowledgeable, but a little knowledge
>> is a dangerous thing. And I'd like to write a note about the booby
>> traps to warn others.

>
> instead of all this, why not 'uname -S' ?


Actually there are several possible gotchas to look out for. Most of them don't apply to most people, but they exist and each admin should at least look over the list once so that they will recognize when to pay extra attention later on some box where some of them would apply.

Jeff Leibermann compiled a pretty exhaustive checklist several years ago that covers both ip and name change issues.

http://aplawrence.com/Jeffl/new_name.html

Brian K. White brian@aljex.com http://www.myspace.com/KEYofR
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx Linux SCO FreeBSD #callahans Satriani Filk!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:04 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145