OpenVMS installation

  • download axpbox and build it for your platform
  • ask VSI for a license
  • download the zip file from their server
  • download the Layered Product CDs and other stuff from their server
  • download the opensource CD if you can find it
  • note that you can install openvms on Windows and copy the img file to Unix, this works fine
  • configure axpbox to create a new disk of at least 2GB possibly 5GB
  • On unix, enable pcap:
    • sudo setcap cap_net_raw,cap_net_bind_service=+eip ./axpbox
  • start axpbox, set to boot off the ISO
    • first time round manually enter “boot dqaX” where X is the ISO
    • But next time, type
      • set auto_action boot
      • set bootdef_dev dqa0
      • boot dqa0
      • to automatically boot in future
  • install OpenVMS with default options
    • set date/time
    • select install
    • select INITIALIZE
    • hardlinks yes
    • Don’t add PAKs now, do it later.
    • make sure you install TCPIP
    • continue from any errors
  • add license
    • boot from the main disk
    • on unix. create a folder “license”, copy the license file into it, renamed license.com
    • run genisoimage -V license -o license.iso license
    • add this as a disk to the es40.cfg file
    • mount /over=id dqa1 or whatever
    • copy dqa1:[000000]license.com;1 sys$login
    • set file/attribute=(rfm=stm) license.com;1
    • @license.com
    • reboot and licenses should be active
  • TCPIP config:
  • run @SYS$STARTUP:TCPIP$CONFIG.COM
  • core environment
    • set domain
    • set primary interface (manual config)
    • set routing to point to your router
    • set DNS resolver as appropriate
    • start TCPIP
  • configure any client or server processes you want
  • exit and test by pinging say google
  • To autostart TCPIP
    • edit : SYS$COMMON:[SYSMGR]SYSTARTUP_VMS.COM
    • find $! @SYS$STARTUP:TCPIP$STARTUP.COM and uncomment it by removing the !
  • mounting disks
    • to ignore label: mount /over=id dqb0
    • to use label, if known : mount dqb0 label logical_name
    • to mount for all users: mount/sys
    • eg mount/sys dqb1 AVMS842L2LP1 LP1
  • to mount permanently, add to systartup_vms.com
  • Remember though that if the label mismatches VMS will hang waiting for the “right” disk…
  • set term/vt102
  • set term/ins
  • both can be added to sys$login:login.com
  • add user
    • create/dir somedisk:[users]
    • assign somedisk:[users] sys$users
    • create/dir somedisk:[users.mark]
    • set def sys$system
    • r authorize
    • add mark/password=temp/owner=”Mark McIntyre”/dev=somedisk/dir=[users.mark]/uic=[200,201=/flag=nodisuser/priv=all
    • SET DIRECTORY/OWNER=MARK somedisk:[USERS.MARK]
    • logout and try logging in as new user
  • to “sudo” : set proc/priv=sysprv

To find kits to install

  • mount the disk
  • dir dqb0:[*.kit] /nohead /notrail
  • folders containing .A .B files are VMS save sets and can be installed with @sys$update:VMSINSTAL:
    • @sys$update:vmsinstal PASCAL LP2:[PASCAL.KIT]
  • pcsi$compressed files should be installed with PRODUCT:
    • product install fortran /source=lp2:[fort.kit]
  • zipexes can be run directly, but do it into a temp folder as it probably contains a saveset

Enabling ssh keys

  • create [SSH2] folder in your homedir
  • create file SSH2_CONFIG containing “AllowedAuthentications publickey, password”
  • create file AUTHORIZATION containing “KEY filename.pub”
  • on Linux. convert your key to IETF SECSH format using
    • ssh-keygen -e -f ~/.ssh/id_rsa
    • paste the resulting key into your keyfile
  • set file permissions with
    • SET FILE /PROTECTION=(S:WRED,O:WRED,G:RE,W:R) [.SSH2]filename.pub
  • more info here https://raymii.org/s/blog/SSH_public_key_authentication_on_OpenVMS.html
  • install other stuff
    • get zip from ftp.process.com
    • binary
    • passive on
    • get vms-freeware/unzip.alpha_exe
    • run unzip.alpha_exe
    • unzip :== $SYS$SYSROOT:[SYSMGR]unzip.alpha_exe
    • add that to the system login script
    • Other software can be found at ftp.digiater.nl/openvms/freeware/v80

To delete a directory

SET FILE/PROTECTION=O:RWED SSH.DIR;1