Installing deepOfix on debian squeeze

Presumption:
  1. If you are not logged in as root, if not login as root or type sudo bash or su root-
  2. You have access to deepofix CDROM and it is either in the CDROM tray or you can mount the CDROM image on loopback.

Steps to install deepOfix on debian squeeze
  1. mount the cdrom (it is assumed to be in /media/cdrom0/).
  2. Add the following code snippet from the bash shell
            APT_FILE="/etc/apt/apt.conf" 
            if [ ! -f  $APT_FILE ]
            then   
                    echo "Acquire::cdrom::AutoDetect \"false\";" >> $APT_FILE
    
            else   
                    # see if the line exists in file, if it does replace
                    if [ `grep "Acquire::cdrom::AutoDetect .*" $APT_FILE | wc -l` -ge 1 ]
                    then   
                            sed -i 's/Acquire::cdrom::AutoDetect.*/Acquire::cdrom::AutoDetect "false";/' $APT_FILE
                    else
                    ## the file exists but line does not, so append to file
                            echo "Acquire::cdrom::AutoDetect \"false\";" >> $APT_FILE
                    fi
            fi
    
  3. dpkg -i /media/cdrom0/deepofix/deepofix-packages/deepofix-archive-keyring_2007.12.31_all.deb
  4. apt-cdrom -m add
  5. see if /bin/sh points to /bin/dash and make it point to /bin/bash
     if [[ `ls -l /bin/sh | cut -d " " -f 11 ` == "dash" || `ls -l /bin/sh | cut -d " " -f 11 ` == "/bin/dash" ]]; then rm /bin/sh;ln -s /bin/bash /bin/sh;echo "ALERT: replaced /bin/dash with /bin/bash as the symbolic link from /bin/sh"; fi
    
  6. comment out any mirrors except the cdrom source of deepofix in /etc/apt/sources.list
  7. do apt-get update
  8. type export DEBIAN_FRONTEND="noninteractive"
  9. type shadowconfig on
  10. type apt-get install deepofix OR apt-get install deepofix-dovecot OR apt-get install deepofix-courier
  11. Enjoy your deepOfix after installation.

Also available in: HTML TXT