Thanks for all the replies. Here is the summary and also additional question.
Since I don't have much time to put into this project, I want to make sure
a few things before I jump into JumpStart.
MY SETUP: Mostly solaris 2.5.1 on Sparc 5/20, Ultra-2, E3000
No name service.
QUESTION: How to set up locale/timezone in this non-name-service environ ?
ANOTHER QUESTION: Can I use Solaris 2.6 (which seems like have a good feature
"sysidcfg" file) as install server for installing Solaris2.5
client ?
SUMMARY FOR THE FIRST QUESTION:
******************************************************************
The following is excerpted from Casper Dik's autoinstall setups. I
haven't tested it, since I use NIS here.
>From: John DiMarco <jdd@cdf.toronto.edu>
>To: casper@fwi.uva.nl
>Subject: auto-install
>Date: Thu, 12 May 1994 11:20:24 -0400
For your information:
I noticed the discussion about auto-install and automating the
timezone/netmask
query on comp.unix.solaris. I don't run NIS, so can't completely satisfy
the auto-install process unless I modify the CD-rom image (copied to disk,
of course). Here's the (extremely minor) change I made to
solaris_2_3/export/exec/kvm/sparc.sun4c.Solaris_2.3/sbin/sysconfig
(a similar change needs to be made for each kernel architecture supported)
============================================================================
*** /tmp/T0a003oP Thu May 12 11:16:55 1994
--- sysconfig Wed May 11 20:11:23 1994
***************
*** 45,50 ****
--- 45,55 ----
echo " rpcbind\c"
/usr/sbin/rpcbind > /dev/console 2>&1
+ if [ -x /tmp/install_config/localconfig ]; then
+ echo " localconfig\c"
+ /tmp/install_config/localconfig > /dev/console 2>&1
+ fi
+
# Configure NIS or NIS+
echo " sysidnis\c"
/usr/sbin/sysidnis > /dev/console 2>&1
============================================================================
localconfig looks like this:
============================================================================
#!/bin/sh
# localconfig
# set up netmasks, timezone, and fix up .sysIDtool.state
STATE=/tmp/root/etc/.sysIDtool.state
echo 128.100.0.0 255.255.255.0 >/tmp/root/etc/inet/netmasks
echo 'TZ=Canada/Eastern' >/tmp/root/etc/default/init
ed $STATE >/dev/null <<end_of_edit
/Network has subnets/s/0/1/
/System previously configured/s/0/1
w
q
end_of_edit
============================================================================
All pretty simple and straightforward.
Regards,
John
-- John DiMarco jdd@cdf.toronto.edu Computing Disciplines Facility Systems Manager jdd@cdf.utoronto.ca University of Toronto EA201B,(416)978-1928Ronald Loftin E-mail: reloftin@mailbox.syr.edu Computing and Media Services Syracuse University Voice: 315-443-4103 Fax: 315-443-3817
******************************************************************
>From david@bae.uga.edu Wed Mar 25 13:41:54 1998 Date: Wed, 25 Mar 1998 15:08:44 -0500 From: David Thorburn-Gundlach <david@bae.uga.edu> To: Hong Zhang <zhangh@afmedia.com> Subject: Re: Non-NIS+/NIS Jumpstart question
Hong --
You didn't mention which version of Solaris you'll be installing. A 2.6 client can use a sysidcfg file in the jumpstart directory for its information (see attachment a below), but I had to patch sysconfig in the client boot sbin directory (see attachment b below) to accomplish a hands-off start under 2.5.1.
Have you read the "Automating Solaris Installations" book?
Enjoy :-)
:-D -- David Thorburn-Gundlach * It's easier to fight for one's principles (play) david@bae.uga.edu * than to live up to them. -- fortune cookie (work) david_thorburn-gundlach@groton.pfizer.com Helping out at Pfizer http://www.bae.uga.edu/other/david/
[ Part 2: "sysidcfg file" ]
system_locale=C timezone=US/Eastern timeserver=148.168.27.31 name_service=nis
[ Part 3: "diff output" ]
% diff sysconfig.orig-no-default-term sysconfig 35a36,51 > ### set terminal type to vt100 if not already set so that jumpstart > ### is completely automated (TERM *not* exported below 'cuz $TERM is > ### now non-zero) :-David T-G 97/11 > if [ -z "${TERM}" ] > then > TERM=vt100 > export TERM > fi > > ### set locale to C if not already set so that jumpstart is completely > ### automated (LANG *is* exported below) :-David T-G 97/12 > if [ -z "${LANG}" ] > then > LANG=C > fi > 184a201,213 > ### set timezone (for automatic jumpstart) :-David T-G 97/12 > ### [ripped out the SunSolve subnet.timezone code; it will never > ### be mounted at this point anyway (*duh*) :-David T-G 98/01] > echo " (timezone)\c" # added to skip interactive - :-D 97/12 > STATE=/tmp/root/etc/.sysIDtool.state > echo 'TZ=US/Eastern' >/tmp/root/etc/default/init > TZ=US/Eastern ; export TZ # set it for this jump, too :-D 98/03 > ed $STATE > /dev/null << END_OF_EDIT > /System previously configured/s/0/1 > w > END_OF_EDIT > ### end of timezone code... >
******************************************************************
>From Janet.Hoo@Ebay.Sun.COM Wed Mar 25 13:41:57 1998 Date: Wed, 25 Mar 1998 11:52:07 -0800 (PST) From: Janet Hoo <Janet.Hoo@Ebay.Sun.COM> To: zhangh@afmedia.com Subject: Re: Non-NIS+/NIS Jumpstart question
If you are using 2.6 you can use a file named sysidcfg. The file resides in your /export/config directory and you must have one file for each host that will jumpstart off you. Here is a sample file: system_locale=en_US timezone=US/Pacific timeserver=192.9.xxx.xxx (Usually the IP address of the server - to confirm time is correct) terminal=dtterm name_service=NONE root_passwd=xxx (server's encrypted passwd from shadow file - just cut and paste) network_interface='le0' {hostname=xx ip_address=xxxx netmask=255.255.255.0}
Hope this helps, Janet
PS don't forget to put timehost next to the server in the host file. Also EVERYTHING is case sensitive, make sure you use the right case, especially for locale!
> Date: Wed, 25 Mar 1998 10:41:53 -0800 (PST) > From: Hong Zhang <zhangh@afmedia.com> > To: sun-managers@ra.mcs.anl.gov > Subject: Non-NIS+/NIS Jumpstart question > MIME-Version: 1.0 > > > Sun Managers, > > I want to do No-Name service Jumpstart. Anyone did this ? When I set locale > in class file, it gives me error. How exactly the timezone/locale info pass > to the client (Which daemon) ? > > Thanks in advance for any info. > > HZ > ================================== > Hong Zhang zhangh@afmedia.com > ================================== >
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:34 CDT