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)
- Select the expert type install
- Select custom install
- Create /boot of 128MB (ext3 - primary)
- Create swap partition of equal to memory
- Create / of 16384MB minimum (ext3 -
primary)
- Leave rest of disks space free for later allocation (one primary
partition should be free)
- Select Grub as default boot loader
- Configure networking (do not use DHCP), set the hostname
- Set firewall to lowest security level (no firewall)
- Configure system clock to your desired setting (System clock
should use UTC)
- Do not configure any network user directories ( go with default
setting )
- Install all packages
- Select yes to create a boot disk and insert a blank floppy (not
compulsory)
- Select your desired video card
- Select your desired monitor
- Optionally test X configuration
- Select "text" type login
- Exit from installer
- DO NOT apply any software updates from Red Hat
2. Volume Configuration
- Create LVM volumes using fdisk on the available disk space
(create extended partition and subpartition with partition type 0x8e
(LVM))
- pvcreate as many new physical partitions as necessary (pvcreate /dev/sda5; pvcreate /dev/sda6;
pvcreate /dev/sda7; ...)
- 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)
- Configure system date using ntpdate
time.nist.gov
- Sync hardware clock using
hwclock -w
- On first boot, log in and delete the following packages:
- Squirrelmail
- php-imap
- php-ldap
- php-dbg-server
- php-manual
- php-mysql
- php-odbc
- php-pgsql
- php-dbg-client
- php-snmp
- php
- webalizer
- glibc-utils
- mrtg
- nut-cgi
- gnuplot
- octave
- amanda-server
- gd-devel
- gd-progs
- gd
- Next install/update the patched binary RPMs in the
'packages/i386' directory using rpm
-Uvh --oldpackage *.rpm
- Type in authconfig --kickstart
--openfiler (if you get "bad argument ...." error, retract steps)
- groupadd -g 94 openfiler
- useradd -u 94 -g 94 -d /opt/openfiler/ -s
/opt/openfiler/bin/ofsetup -c "Openfiler Administrator" openfiler
- echo "openfiler:password" |
/usr/sbin/chpasswd
- Copy the contents of 'openfiler' directory to /opt using cp -a openfiler /opt/
- chown -R openfiler:openfiler /opt/openfiler
- chmod g+r /etc/shadow
- chgrp openfiler /etc/shadow
- echo "/opt/openfiler/bin/ofsetup" >>
/etc/shells
- echo "openfiler ALL =
NOPASSWD: ALL" >> /etc/sudoers
- cp /opt/openfiler/src/openfiler.init
/etc/init.d/openfiler
- 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.)
- chkconfig smb off
- chkconfig nfs off
- chkconfig atalk off
- chkconfig portmap on
- chkconfig --add openfiler
- chkconfig openfiler on
- chkconfig postgresql on
- cp -f /opt/openfiler/src/smb.conf-default
/etc/samba/smb.conf
- exportfs -r
- cd /opt/openfiler/etc/httpd
- ln -s /etc/httpd/build
- mkdir logs
- ln -s /etc/httpd/modules
- mkdir run
- mkdir -p /opt/openfiler/var/lock/subsys
- cp -f /opt/openfiler/src/php.ini
/etc/php.ini
- cp -f /opt/openfiler/src/openfiler.pam
/etc/pam.d/openfiler
- cp
/opt/openfiler/src/pg_hba.conf /var/lib/pgsql/data/pg_hba.conf
- service postgresql start
- su -
postgres -c "createdb openfiler"
- 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
- 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
- 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.