HP-UX 10.xx/11.xx Installation from scratch


Prerequisites

An HP-UX 11.xx System will take about 2.6 GB, with paging space thus a 4 GB disk will be needed.
An HP-UX 10.xx System will take about 2.0 GB, including Instant Information, thus a 4 GB disk is recommended.

Base system

  1. Cycle power, press ESC to enable admin menu, insert Install CD and
     
    boot P3       # for C8000: boot path, selected via console menu 
    boot scsi.3   # for older models: assume CD-ROM with ID=3 
    
    accept defaults for installation. Skip network configuration for later. For 10.20 systems, VUE may be selected as GUI, if desired. On prompt, take the chance to adapt filesystem sizes, e.g.:
  2. If necessary, adapt filesystems now (note that the logical volume names may vary from system to system), example:
     
    shutdown                        # single user mode, root login 
    umount /usr   
    lvextend -L 128 /dev/vg00/lvol4 # /tmp 128MB 
    extendfs /dev/vg00/lvol4  
    lvextend -L 768 /dev/vg00/lvol7 # /usr 768MB 
    extendfs /dev/vg00/lvol7  
    lvextend -L 128 /dev/vg00/lvol5 # /home 500MB, if local user filesystems 
    extendfs /dev/vg00/lvol5  
    lvextend -L 896 /dev/vg00/lvol6 # /opt 896MB, if local dynatext 
    extendfs /dev/vg00/lvol6  
    init 4                          # back to multi user mode  
    
  3. Install Workstation & Networking ACE, DCE, VUE English (10.20,11.00)
  4. Patches ("Quality Pack") from support Plus CD:
     
    mount -r /dev/dsk/c0t3d0 /cdrom # CD-ROM at SCSI ID=3 
    swinstall -i 
    
    when prompted select select (mark) install to proceed.
    Be patient, may take hours !
Occasionally, the install process might leave some filesets unconfigured. This will lead to fatal SAM internal errors whenever SAM is called. Cure: configure manually via command line:
swconfig \*
Note the backslash. Ensure that /etc/fstab is clean, i.e. does not contain references to non-existing devices.

Additional Software (CD)

Some basic customizations

  1. In /etc/inetd.conf disable all unnecessary services. If the machine should offer boot services, bootps and tftp must be enabled.
  2.  
    chmod o-x /usr/bin/ypcat 
    
  3. IP name and name resolution
    If not yet set, change hostname with
    /etc/set_parms hostname
    and set IP address with
    /etc/set_parms ip_address
    If necessary, change LAN config with SAM
    Use
    /etc/set_parms addl_netwrk
    to specify network mask (255.255.255.0) and Gateway address (192.168.1.1).
  4. For name resolution the file /etc/resolv.conf should look like
  5. /etc/nsswitch.conf
    is needed to steer name resolution. An entry like
     
    hosts: files[NOTFOUND=continue UNAVAIL=continue] dns [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue] nis   
    
    specifies name resolution in the order /etc/hosts, DNS nameserver, NIS. (leave out the nis entry if NIS won't be active). More information with
     
    man switch 
    
  6. For machines not resolving via an external name server, some important host addresses may be additionally stored in /etc/hosts, e.g.:
     
    127.0.0.1       localhost       loopback 
    192.168.1.1     vigor 
    192.168.1.42    rs6kf 
    

Additional local software

Check the software list for stuff to be preferrably installed locally on the system disk. Appropriate PATH and MANPATH entries should be made in central startup scripts, e.g. /opt/bin/.profile.

Software installation on NFS-mounted filesystems: modify /var/adm/sw/defaults to contain the lines

 
swconfig.write_remote_files  = true 
swcopy.write_remote_files    = true 
swinstall.write_remote_files = true 
swpackage.write_remote_files = true 
swremove.write_remote_files  = true 
swinstall.enforce_dependencies=false 
A complete list of options can be found in /usr/lib/sw/sys.defaults

What's next ?

After installation you will need to customize your system.
Last update: 8-Apr-2008, M.Kraemer