Openfiler installation instructions

Openfiler requires Red Hat Linux 8.0. Other releases are incompatible. You may find this release's ISO images on various mirrors.

1. Red Hat Linux 8.0 GUI Installation (other releases are incompatible)

  1. Select the expert type install
  2. Select custom install
  3. Create /boot of 128MB (ext3 - primary)
  4. Create swap partition of equal to memory
  5. Create / of 16384MB minimum (ext3 - primary)
  6. Leave rest of disks space free for later allocation (one primary partition should be free)
  7. Select Grub as default boot loader
  8. Configure networking (do not use DHCP), set the hostname
  9. Set firewall to lowest security level (no firewall)
  10. Configure system clock to your desired setting (System clock should use UTC)
  11. Do not configure any network user directories ( go with default setting )
  12. Install all packages
  13. Select yes to create a boot disk and insert a blank floppy (not compulsory)
  14. Select your desired video card
  15. Select your desired monitor
  16. Optionally test X configuration
  17. Select "text" type login
  18. Exit from installer
  19. DO NOT apply any software updates from Red Hat

2. Volume Configuration

  1. Create LVM volumes using fdisk on the available disk space (create extended partition and subpartition with partition type 0x8e (LVM))
  2. pvcreate as many new physical partitions as necessary  (pvcreate /dev/sda5; pvcreate /dev/sda6; pvcreate /dev/sda7; ...)
  3. vgcreate the 'openfiler' volume group with all the pvcreate'd physical volumes (vgcreate openfiler /dev/sda5 /dev/sda6 /dev/sda7)

3. Openfiler Software Installation

(We can script these steps, but we are spending our time packaging OF to be used as a distribution, so that at that time you don't have to do any of this at all)
  1. Configure system date using ntpdate time.nist.gov
  2. Sync hardware clock using hwclock -w
  3. On first boot, log in and delete the following packages:
  1. Next install/update the patched binary RPMs in the 'packages/i386' directory using rpm -Uvh --oldpackage *.rpm
  2. Type in authconfig --kickstart --openfiler (if you get "bad argument ...." error, retract steps)
  3. groupadd -g 94 openfiler
  4. useradd -u 94 -g 94 -d /opt/openfiler/ -s /opt/openfiler/bin/ofsetup -c "Openfiler Administrator" openfiler
  5. echo "openfiler:password" | /usr/sbin/chpasswd
  6. Copy the contents of 'openfiler' directory to /opt using cp -a openfiler /opt/
  7. chown -R openfiler:openfiler /opt/openfiler
  8. chmod g+r /etc/shadow
  9. chgrp openfiler /etc/shadow
  10. echo "/opt/openfiler/bin/ofsetup" >> /etc/shells
  11. echo "openfiler   ALL = NOPASSWD:   ALL" >> /etc/sudoers
  12. cp /opt/openfiler/src/openfiler.init /etc/init.d/openfiler
  13. Run /opt/openfiler/src/create-certs.sh and answer questions at its prompts. (You will be prompted among the various prompts twice with the Common Name field. First time, answer with a name for your certificate authority.. something like 'My Company CA' would do. Second time, answer with the DNS name of the server host.)
  14. chkconfig smb off
  15. chkconfig nfs off
  16. chkconfig atalk off
  17. chkconfig portmap on
  18. chkconfig --add openfiler
  19. chkconfig openfiler on
  20. chkconfig postgresql on
  21. cp -f /opt/openfiler/src/smb.conf-default /etc/samba/smb.conf
  22. exportfs -r
  23. cd /opt/openfiler/etc/httpd
  24. ln -s /etc/httpd/build
  25. mkdir logs
  26. ln -s /etc/httpd/modules
  27. mkdir run
  28. mkdir -p /opt/openfiler/var/lock/subsys
  29. cp -f /opt/openfiler/src/php.ini /etc/php.ini
  30. cp -f /opt/openfiler/src/openfiler.pam /etc/pam.d/openfiler
  31. cp /opt/openfiler/src/pg_hba.conf /var/lib/pgsql/data/pg_hba.conf
  32. service postgresql start
  33. su - postgres -c "createdb openfiler"
  34. Import stats database schema and some live stats to initialize the tables with which we will clean later:
    zcat /opt/openfiler/src/openfiler.psql.gz | psql -U postgres openfiler
  35. Install pam_auth (This step will be packaged in the next release with the distribution.) - A module for PHP. To do this:
    tar xvfz packages/tar/pam_auth-0.3.1.tar.gz
    cd pam_auth
    phpize
    ./configure
    gmake
    gmake install
    cd ..
    rm -rf pam_auth
  36. service openfiler start

Done. Now visit https://servername:445/ (port 445 on the server using the HTTPS protocol). Login with 'openfiler' as the username and 'password' as the password. You can change the password in the 'Accounts' section.