Installing deepOfix on debian squeeze¶
Presumption:
- If you are not logged in as root, if not login as root or type sudo bash or su root-
- 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
- mount the cdrom (it is assumed to be in /media/cdrom0/).
- 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
dpkg -i /media/cdrom0/deepofix/deepofix-packages/deepofix-archive-keyring_2007.12.31_all.deb
apt-cdrom -m add
- 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
- comment out any mirrors except the cdrom source of deepofix in /etc/apt/sources.list
- do
apt-get update
- type
export DEBIAN_FRONTEND="noninteractive"
- type
shadowconfig on
- type
apt-get install deepofix OR apt-get install deepofix-dovecot OR apt-get install deepofix-courier
- Enjoy your deepOfix after installation.
¶
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
dpkg -i /media/cdrom0/deepofix/deepofix-packages/deepofix-archive-keyring_2007.12.31_all.debapt-cdrom -m addif [[ `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
apt-get updateexport DEBIAN_FRONTEND="noninteractive"shadowconfig onapt-get install deepofix OR apt-get install deepofix-dovecot OR apt-get install deepofix-courier