In HTML this time.

I'll try to pretty these up as time goes on.
Title: Step-By-Step Unattended Preperation Guide





This document is part of Unattended, a Windows deployment system. 

Step-By-Step Unattended Preparation Guide


Documentation:

1. What is Unattended http://unattended.sourceforge.net
2. Unattended OS Setup http://unattended.sourceforge.net/os.html
3. Unattended Application Setup http://unattended.sourceforge.net/apps.html
4. Customize Unattended for your site http://unattended.sourceforge.net/advanced.html
5. Install XYZ using Unattended http://unattended.sourceforge.net/installers.html

Requirements:

  DHCP server on your network
  Server capable of sharing files
  Cygwin is installed [ http://www.cygwin.com ]

How to read this document:

  $ is a command typed into the cygwin bash prompt
  c:\> is a command typed into the CMD prompt

Overview - What can unattended do after it is setup?

 

a. Install an OS from scratch, automated

 

I. Boot ‘clean’ and get on the network

  a. Boot using an Unattended Boot disk
  b. Load a network card driver<
  c. Obtain an IP via DHCP
  d. Map a drive z: to \\servername\sharename
 

II. Prepare the Disk

  a. Create a partition (optional)
  b. Format (optional)
 

III. Install Windows

  a. Run z:\dosbin\install.pl via Perl
 

b. Install Updates and Applications, automated

 

I. Map drive z: to \\servername\sharename

  a. authenticate using information written by the OS Setup portion>
  c:\netinst\ fillthisinformationin
 

II. Make a list of OS Updates and applications to install using todo.pl

  c:\netinst\ fillthisinformationin2
 

III. Install OS Updates and Applications

  z:\bin\todo.pl --go

1. Prepare the Unattended Server

 

a. Unattended

 

I. Download Unattended main distribution

  http://prdownloads.sourceforge.net/unattended/
  unattended-x.xx.tar.gz
 

b. Unzip the Unattended-x.xx.tar.gz file to c:\unattended

  *** WARNING - If you dont yet have cygwin installed you cannot use cygwin to extract the archive ***
  $ tar -xfz unattended-x.xx.tar.gz /cygdrive/c/unattended/
 

c. Setup the Unattended File Share

 

I. Create the SMB file share for unattended

  c:\> net share install=c:\unattended\unattended-x.xx\install
 

II. Decide what windows user will authenticate with the server when accessing the share.

  Keep in mind, you can authenticate with any username / password that has access
  a. Change the permissions on the files to allow the appropriate user to access it.
  c:\> set unattendeduser=guest
  c:\> cacls c:\unattended\unattended-x.xx /T /E /G:%unattendeduser%
  b. (optional) If you will be using the guest account then make sure it is enabled
  c:\> net user guest /ACTIVE:YES /DOMAIN
  c:\> cacls c:\unattended\unattended-x.xx /T /E /G:%unattendeduser%

 

2. Prepare the Unattended Boot Disk

 

a. DOS Boot Disk

 

I. Download Unattended DOS boot disk

  http://prdownloads.sourceforge.net/unattended/
  unattended-x.xx-dosboot.tar.gz
 

II. Unzip unattended-x.xx-dosboot.tar.gz to c:\unattended\

  *** WARNING - If you dont yet have cygwin installed you cannot use cygwin to extract the archive ***
  $ tar -xfz unattended-x.xx-dosboot.tar.gz /cygdrive/c/unattended/
 

III. Download djgpp and apps for DOS and extract them to c:\unattended\unattended-x.xx\install\djgpp

  ftp://ftp.delorie.com/pub/djgpp/current/v2/djdev203.zip
  ftp://ftp.delorie.com/pub/djgpp/current/v2misc/csdpmi5b.zip
  ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/perl561b.zip
  ftp://ftp.delorie.com/pub/djgpp/current/v2apps/pico396b.zip
 

IV. Creating the boot media

  Unattended's dos boot disk can be booted from CDROM, Floppy or PXE
  a. Bootable CD
  the cd image can be found under: \bootdisk\bootdisk.iso
  b. Bootable Floppy
  the floppy image can be found under: \bootdisk\images\*.imz
  c. PXE - "nothing but net"
  http://unattended.sourceforge.net/os.htm

 

 

b. Linux Boot Disk (Experimental)

 

I. Download Unattended Linux boot disk

  http://prdownloads.sourceforge.net/unattended/
  unattended-x.xx-linuxboot.tar.gz
 

II. Unzip unattended-x.xx-linuxboot.tar.gz to c:\unattended\

  *** WARNING - If you dont yet have cygwin installed you cannot use cygwin to extract the archive ***
  $ tar -xfz unattended-x.xx-linuxboot.tar.gz /cygdrive/c/unattended/
 

III. Creating the boot media

 

Unattended's linux boot disk can be booted from CDROM or PXE

  a. Bootable CD
  the cd image can be found under: \linuxboot\linuxboot.iso
  c. PXE - "nothing but net"
  http://unattended.sourceforge.net/os.htm

 

3. Prepare the Unattended OS Distribution Point

 

a. Copy OS's to the network share.

 

I. Copy Operating Systems to an appropriately named directory

  ex1. xcopy d:\ c:\unattended\unattended-x.xx\install\os\win2ksp4
  ex2. xcopy d:\ c:\unattended\unattended-x.xx\install\os\winxp
  ex3. xcopy d:\ c:\unattended\unattended-x.xx\install\os\winxpsp1
  note: install.pl knows what os is in the folder based on folder content not on the folder name


4. Unattended Updates and application dependencies

 

a. Download Updates and applications that can be grabbed automatically

 

I. Parse all the scripts located in /scripts for necessary files and download them

  ****************************************************************
  *** !!Warning ./prepare will by default download ~1000 MB from the Internet!! ***
  ****************************************************************
  $ cd /cygdrive/c/unattended/unattended-x.xx/install
  $ ./prepare
 

b. Determine what needs to be grabbed off of the original installation media

 

I. Parse all the scripts located in /scripts for necessary files and determine what is missing

  $ cd /cygdrive/c/unattended/unattended-x.xx/install
  $ ./check
 

II. Put the appropriate files where they need to go

 

II. Repeat step 5b until all Updates / Applications you need have no missing files

5. Test Unattended

 

a. Boot a workstation using your chosen boot method (DOS or linux)

  ***********************************************************
  *** !!Warning Unattended can and will destroy data on the workstation!! ***
  ***********************************************************
  follow the prompts
  create a partition
  format the hard drive
  choose what OS to install
  choose what application set to install
 

b. more documentation goes here

6. Customize Unattended (needs more information, incomplete)

 

a. Customize Unattended settings for your site according to the instructions from

  http://unattended.sourceforge.net/advanced.html
 

I. Change the dos boot disk to not ask so many questions

  a. Modify autoexec.bat on the DOS boot disk
  I. change the default UNC to \\yourservername\yoursharename
  c:\> notepad c:\unattended\unattended-x.xx\bootdisk\template\autoexec.bat
  SET Z_PATH=\\[YourServerName]\install
  II. change the default username and password
  SET Z_USER=[YourGuestAccount]
  SET Z_PASS=[YourGuestPassword]
  b. Prepare cygwin to rebuild the images
  I. Packages you will need to have:
  bash, make, gzip, grep, mktemp, sed, fileutils, textutils, perl
  run cygwin's setup.exe to install more packages. http://www.cygwin.com
  c. Rebuild the images
  I. Floppy images
  a. Rebuild the floppy images
  $ cd /cygdrive/c/unattended/unattended-x.xx/bootdisk
  $ make images
  b. Find the new floppy images
  $ cd /cygdrive/c/unattended/unattended-x.xx/bootdisk/images
  $ ls
  c. Make floppies
  http://www.winimage.com
  note: add cygwin command line way to make floppies
  II. CDROM image
  a. Rebuild the cdrom iso image
  $ cd /cygdrive/c/unattended/unattended-x.xx/bootdisk
  $ make iso
  b. Find the new cdrom iso image
  $ cd /cygdrive/c/unattended/unattended-x.xx/bootdisk/
  $ ls bootdisk.iso
  c. Burn the iso image to cdrom
  http://www.ahead.de (Nero)
  note: add cygwin command line way to burn cd using cdrecord
 

II. Change the config.pl script to not ask so many questions

 

III. Create a site specific unattended.txt in z:\site\

If you have any questions about Unattended or this document feel free to ask questions by joining the mailing list.

--------------------------------------------------------
Changelog
--------------------------------------------------------

3/19/2004 Rev 0.06
Converted to HTML
Fix Typos

3/19/2004 Rev 0.05
Added ./check to section 5. Unattended Updates and application dependencies
Renamed most sections to be more clear
clarified slightly what was server side and what was workstation side
starting to flesh out section 7. Customize Unattended
Cleanup and restructure section 1. Overview - What can unattended do after it is setup?\
Added http://unattended.sourceforge.net/installers.html to the documentation section

3/18/2004 Rev 0.04
After receiving comments from Sylvain
added section about ./prepare
added note to boot disk sections about making floppies/cdrom
added note about PXE booting
re-organize 2. Unattended Setup, made it more clear that guest was not a requirement
add cygwin as a requirement for installation, it makes life so much easier, and allows the ./prepare script to run
fix the unzip steps to use cygwin tar

3/17/2004 Rev 0.02
General Cleanup
Document restructured

3/13/2004 rev 0.01
Rough Draft - 1st revision
dos djgpp perl installation is still a work in progress

 

Title: Step-By-Step Unattended Preperation Guide
This document is part of Unattended, a Windows deployment system.

Installing Cygwin for Unattended Step-By-Step


Documentation:

1. What is Unattended http://unattended.sourceforge.net
2. Unattended OS Setup http://unattended.sourceforge.net/os.html
3. Unattended Application Setup http://unattended.sourceforge.net/apps.html
4. Customize Unattended for your site http://unattended.sourceforge.net/advanced.html
5. Install XYZ using Unattended http://unattended.sourceforge.net/installers.html

Why does Unattended need cygwin installed?

  Unattended does NOT require cygwin to be installed on the workstations at all. In fact the only dependancy unattended has on the workstation is ActivePerl. During the setup phase, on the unattended server machine it is highly recommended that you have cygwin installed. For the following reasons:
   
1) to rebuild the floppy images $ cd bootdisk
  $ make images
2) to rebuild the dos cdrom image, bootdisk.iso $ cd bootdisk
  $ make iso
3) to parse the /scripts directory and download files from the internet $ cd install
  $ ./prepare
4) to parse the /scripts directory and tell you what is missing $ cd install
  $ ./check
   

Required Packages:

Cygwin Defaults http://www.cygwin.com
Unzip  
Perl  
Mtools Must be compiled from source code as of (3/2004)
Wget  

How to read this document:

  $ is a command typed into the cygwin bash prompt

1. Download Cygwin:

  http://www.cygwin.com
  setup.exe

2. Install Cygwin:

  Run setup.exe
  Install cygwin accepting all the defaults.
  When selecting packages click the view button until it reads FULL and enable these additional packages
  unzip
  perl
  wget

3. Compile mtools:

  Start a cygwin bash prompt
  Start -> Programs -> Cygwin -> Cygwin Bash Shell
  $ wget ftp://www.tux.org/pub/knaff/mtools/mtools-3.9.9.zip
  optionally you can browse to ftp://www.tux.org/pub/knaff/mtools
  and download the appropriate mtools source zip by hand
  $ unzip mtools-3.9.9.zip
  $ cd mtools-3.9.9
  $ ./configure
  $ make

3. Install mtools:

  $ make install

4. (optional) remove mtools source code:

  note: be careful with the following commands. rm is unforgiving
   
  $ cd ..
  $ rm ./mtools-3.9.9.zip
  $ rm -rf ./mtools-3.9.9

 

 

 

Reply via email to