Current time: 12-24-2024, 03:37 AM Hello There, Guest! (LoginRegister)


Post Reply 
[HowTo] fedora 7 full install script
Author Message
wb6vpm Offline
Junior Member
*

Posts: 80
Joined: Oct 2007
Reputation: 0
Post: #11
RE: [HowTo] fedora 7 full install script
here is the output (i broke it at the first vi run, actually by accident)


Attached File(s)
.txt  ispcpinstall.txt (Size: 61.66 KB / Downloads: 17)
(This post was last modified: 10-13-2007 04:53 AM by wb6vpm.)
10-13-2007 03:31 AM
Visit this user's website Find all posts by this user Quote this message in a reply
wb6vpm Offline
Junior Member
*

Posts: 80
Joined: Oct 2007
Reputation: 0
Post: #12
RE: [HowTo] fedora 7 full install script
a lot better, but still errors

see attachment (i know it is the same filename, but it is a zip of the second run, and not the same file)


Attached File(s)
.zip  ispcpinstall.zip (Size: 28.5 KB / Downloads: 10)
(This post was last modified: 10-13-2007 04:54 AM by wb6vpm.)
10-13-2007 04:49 AM
Visit this user's website Find all posts by this user Quote this message in a reply
wb6vpm Offline
Junior Member
*

Posts: 80
Joined: Oct 2007
Reputation: 0
Post: #13
RE: [HowTo] fedora 7 full install script
so, any ideas?
10-13-2007 03:24 PM
Visit this user's website Find all posts by this user Quote this message in a reply
graywolf Offline
Junior Member
*

Posts: 43
Joined: Sep 2007
Reputation: 1
Post: #14
RE: [HowTo] fedora 7 full install script
Ok had a quick look at the log
loks like cpan2rpm is failing to load Term::ReadPassword (which is required for the setup script) and courier-authlib-userdb-0.59.3-1.fc7.mf.i386.rpm courier-authlib-0.59.3-1.fc7.mf.i386.rpm are not installing
try this from the shell
Code:
cpan2rpm -i --no-sign http://search.cpan.org/CPAN/authors/id/P/PH/PHOENIX/Term-ReadPassword-0.07.tar.gz

then from a tmp dir
Code:
wget http://www.thatfleminggent.com/packages/fedora/7/i386/courier-authlib-0.59.3-1.fc7.mf.i386.rpm
wget http://www.thatfleminggent.com/packages/fedora/7/i386/courier-authlib-userdb-0.59.3-1.fc7.mf.i386.rpm
wget http://www.thatfleminggent.com/packages/fedora/7/i386/courier-imap-4.1.3-1.fc7.mf.i386.rpm
rpm -i courier-authlib-0.59.3-1.fc7.mf.i386.rpm
rpm -i courier-authlib-userdb-0.59.3-1.fc7.mf.i386.rpm
rpm -i courier-imap-4.1.3-1.fc7.mf.i386.rpm
10-15-2007 06:58 AM
Find all posts by this user Quote this message in a reply
wb6vpm Offline
Junior Member
*

Posts: 80
Joined: Oct 2007
Reputation: 0
Post: #15
RE: [HowTo] fedora 7 full install script
[root@www tmp]# wget http://www.thatfleminggent.com/packages/...f.i386.rpm
wget http://www.thatfleminggent.com/packages/...f.i386.rpm
--15:35:02-- http://www.thatfleminggent.com/packages/...f.i386.rpm
=> `courier-authlib-0.59.3-1.fc7.mf.i386.rpm'
Resolving http://www.thatfleminggent.com... wget http://www.thatfleminggent.com/packages/...f.i386.rpm
rpm -i courier-authlib-0.59.3-1.fc7.mf.i386.rpm
rpm -i courier-authlib-userdb-0.59.3-1.fc7.mf.i386.rpm
rpm -i courier-imap-4.1.3-1.fc7.mf.i386.rpm59.167.217.97
Connecting to http://www.thatfleminggent.com|59.167.217.97|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
15:35:02 ERROR 404: Not Found.

[root@www tmp]# wget http://www.thatfleminggent.com/packages/...f.i386.rpm
--15:35:02-- http://www.thatfleminggent.com/packages/...f.i386.rpm
=> `courier-authlib-userdb-0.59.3-1.fc7.mf.i386.rpm'
Resolving http://www.thatfleminggent.com... 59.167.217.97
Connecting to http://www.thatfleminggent.com|59.167.217.97|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
15:35:03 ERROR 404: Not Found.

[root@www tmp]# wget http://www.thatfleminggent.com/packages/...f.i386.rpm
--15:35:03-- http://www.thatfleminggent.com/packages/...f.i386.rpm
=> `courier-imap-4.1.3-1.fc7.mf.i386.rpm'
Resolving http://www.thatfleminggent.com... 59.167.217.97
Connecting to http://www.thatfleminggent.com|59.167.217.97|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 382,291 (373K) [application/x-rpm]

100%[====================================>] 382,291 93.32K/s ETA 00:00

15:35:07 (93.13 KB/s) - `courier-imap-4.1.3-1.fc7.mf.i386.rpm' saved [382291/382291]

[root@www tmp]# rpm -i courier-authlib-0.59.3-1.fc7.mf.i386.rpm
error: open of courier-authlib-0.59.3-1.fc7.mf.i386.rpm failed: No such file or directory
[root@www tmp]# rpm -i courier-authlib-userdb-0.59.3-1.fc7.mf.i386.rpm
error: open of courier-authlib-userdb-0.59.3-1.fc7.mf.i386.rpm failed: No such file or directory
[root@www tmp]# rpm -i courier-imap-4.1.3-1.fc7.mf.i386.rpm
warning: courier-imap-4.1.3-1.fc7.mf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 536ceb2a
error: Failed dependencies:
libcourierauth.so.0 is needed by courier-imap-4.1.3-1.fc7.mf.i386
libcourierauthsasl.so.0 is needed by courier-imap-4.1.3-1.fc7.mf.i386
[root@www tmp]#
10-15-2007 08:35 AM
Visit this user's website Find all posts by this user Quote this message in a reply
wb6vpm Offline
Junior Member
*

Posts: 80
Joined: Oct 2007
Reputation: 0
Post: #16
RE: [HowTo] fedora 7 full install script
btw the isntall worked (for the password)
10-15-2007 08:37 AM
Visit this user's website Find all posts by this user Quote this message in a reply
graywolf Offline
Junior Member
*

Posts: 43
Joined: Sep 2007
Reputation: 1
Post: #17
RE: [HowTo] fedora 7 full install script
Sorry forgot to update the links for the rpm

Code:
wget http://www.thatfleminggent.com/packages/fedora/7/i386/courier-authlib-0.60.1-1.fc7.mf.i386.rpm
wget http://www.thatfleminggent.com/packages/fedora/7/i386/courier-authlib-userdb-0.60.1-1.fc7.mf.i386.rpm
rpm -i courier-authlib-0.60.1-1.fc7.mf.i386.rpm
rpm -i courier-authlib-userdb-0.60.1-1.fc7.mf.i386.rpm
10-15-2007 11:22 AM
Find all posts by this user Quote this message in a reply
wb6vpm Offline
Junior Member
*

Posts: 80
Joined: Oct 2007
Reputation: 0
Post: #18
RE: [HowTo] fedora 7 full install script
ok, tomorrow i am gonna dump the OS, start over, and will update the full script with the updates, and do it tomrorow!
10-15-2007 11:25 AM
Visit this user's website Find all posts by this user Quote this message in a reply
graywolf Offline
Junior Member
*

Posts: 43
Joined: Sep 2007
Reputation: 1
Post: #19
RE: [HowTo] fedora 7 full install script
shouldnt need to dump the os but if you dont install any extra packages if its gona be a isp-control server (deselect office packages on install)
10-15-2007 11:28 AM
Find all posts by this user Quote this message in a reply
graywolf Offline
Junior Member
*

Posts: 43
Joined: Sep 2007
Reputation: 1
Post: #20
RE: [HowTo] fedora 7 full install script
heres the updated script

Code:
#!/bin/bash

# Fedora Core 7 ISP Control Installer
# Version 1.2.0


ISPCP_TRUNK_FILE=ispcp-omega-trunk-20071014.tar.gz
ISPCP_DOWNLOAD_LOC=http://www.isp-control.net/downloads/snapshots/
ISPCP_TMP_PATH=/tmp/ispcp_install

echo \************************************
echo \* Fedora Core 7 ISP Control Installer
echo \* ${ISPCP_TRUNK_FILE}
echo \* Author: graywolf
echo \* Version: 1.2.1            
echo \************************************
echo

######################################
echo Creating Folders and copying files

mkdir ${ISPCP_TMP_PATH}
mkdir ${ISPCP_TMP_PATH}/updates
cp -R ./* ${ISPCP_TMP_PATH}
cd ${ISPCP_TMP_PATH}


######################################
echo Extracting and configuring ISPCP

cd ${ISPCP_TMP_PATH}
wget -O ispcp-omega-1.0.0-trunk.tar.gz  ${ISPCP_DOWNLOAD_LOC}${ISPCP_TRUNK_FILE}
tar -xf ispcp-omega-1.0.0-trunk.tar.gz
mv ${ISPCP_TMP_PATH}/web/svn/nightly ${ISPCP_TMP_PATH}/ispcp-omega-1.0.0-trunk
rm -Rf web

cd ispcp-omega-1.0.0-trunk

#install Required updates
yum -y install `cat ./docs/Fedora/fedora-packages`

#trunk fix
yum -y install caching-nameserver

cpan2rpm -i --no-sign http://search.cpan.org/CPAN/authors/id/P/PH/PHOENIX/Term-ReadPassword-0.07.tar.gz

wget -P ${ISPCP_TMP_PATH}/updates http://hany.sk/mirror/fedora/releases/7/Everything/i386/os/Fedora/perl-Net-LibIDN-0.09-3.fc7.i386.rpm
rpm -i ${ISPCP_TMP_PATH}/updates/perl-Net-LibIDN-0.09-3.fc7.i386.rpm

clear
######################################
echo Installing Courier


wget -P ${ISPCP_TMP_PATH}/updates http://www.thatfleminggent.com/packages/fedora/7/i386/courier-authlib-0.60.1-1.fc7.mf.i386.rpm
wget -P ${ISPCP_TMP_PATH}/updates http://www.thatfleminggent.com/packages/fedora/7/i386/courier-authlib-userdb-0.60.1-1.fc7.mf.i386.rpm
wget -P ${ISPCP_TMP_PATH}/updates http://www.thatfleminggent.com/packages/fedora/7/i386/courier-imap-4.1.3-1.fc7.mf.i386.rpm

rpm -i ${ISPCP_TMP_PATH}/updates/courier-authlib-0.60.1-1.fc7.mf.i386.rpm
rpm -i ${ISPCP_TMP_PATH}/updates/courier-authlib-userdb-0.60.1-1.fc7.mf.i386.rpm
rpm -i ${ISPCP_TMP_PATH}/updates/courier-imap-4.1.3-1.fc7.mf.i386.rpm

# Create  group and user with 3000 UID so VHCS2 doesnt cause conflicts User  
groupadd courier -g 3000
useradd -u 3000 -c 'Courier Mail Server' -d /dev/null -g courier -s /bin/false courier


clear
######################################
echo Installing ISPCP

cd ${ISPCP_TMP_PATH}/ispcp-omega-1.0.0-trunk
make -f Makefile.fedora install

cp -RLf /tmp/ispcp-1.0.0/* /


clear
######################################
echo Performing General Fixes.....

# BIND setup
mv /var/named/data /var/named/data2
ln -s /var/named/chroot/var/named/data /var/named/data

# Fixing missed mkdir in make error
mkdir /var/www/scoreboards

# HTTPD
echo 'include vhosts/*.conf' >> /etc/httpd/conf/httpd.conf

# Courier User database
touch /etc/sasldb2
mkdir -p /var/spool/postfix/etc
cp /etc/sasldb2 /var/spool/postfix/etc/sasldb2
cp -f /etc/init.d/courier-authlib /etc/init.d/courier-authdaemon

cp -f /etc/ispcp/bind/named.conf /var/named/chroot/etc/named-ispcp.conf
echo 'include "/etc/named-ispcp.conf";' >> /var/named/chroot/etc/named.conf

#Trunk Fixes (daemon's and ispcp.conf)
cp -RLf ${ISPCP_TMP_PATH}/trunk_fixes/* /

######################################
echo Starting mysql daemon

service mysqld restart


clear
######################################
echo Prep work done entering ISPCP setup
cd /var/www/ispcp/engine/setup
perl /var/www/ispcp/engine/setup/ispcp-setup

clear
######################################
echo Removing config files

rm -R ${ISPCP_TMP_PATH}

clear
######################################
echo fixing permissons

chmod 777 /var/www/ispcp/gui/phptmp
chown apache:apache /var/www/ispcp/gui/tools/webmail/data

######################################
echo Setting Startup services
chkconfig --add ispcp_daemon
chkconfig --add spamassassin
chkconfig --add posfix

chkconfig ispcp_daemon on
chkconfig spamassassin on
chkconfig postfix on
chkconfig httpd on
chkconfig mysqld on
chkconfig named on
chkconfig proftpd on

chkconfig sendmail off

######################################
echo re-starting required services
service httpd restart    
service ispcp_daemon restart
service named restart
service proftpd restart
service spamassassin restart
service sendmail stop
service postfix restart


######################################
echo removing tmp files
rm -R /tmp/ispcp-1.0.0

clear
######################################
echo \*************************
echo
echo Change:
echo myhostname = \<servername\>
echo mydomain = \<domain\>
echo
read -n 1 -p 'Press any key to continue ......'

vi /etc/postfix/main.cf


service postfix reload
10-15-2007 11:30 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)