CentOS 4.4 (64-bit) Installation Script
This is for use with The Perfect Setup - CentOS 4.4 (64-bit)
(with minor changes can be made to work for 32-bit)
Use at your own risk ;)
* don't forget to modify STEP 9 to your own mysql password
* also in STEP 9 - don't forget to change server1.example.com to your own url
this script uses gedit, so if you are installing in a situation where this program is not present, you should edit the script to use vi, or comment out those lines/remove them and do it manually.
one other thing i should mention is the guide says to install ncftp & php-xml via yum, but for whatever reason yum says it can't find those 2 packages....
Updated Feb. 16th, 2007
I added ALLSTEPS to the script, which would do all the steps, (except for ISPConfig, Bastille, & Artwork).
I also changed the ftp locations of the srpm files for the redhat artwork, since redhat servers seem to give wget some trouble during the download. (as per calande's situation below)...
Wow! It seems you put a lot of work into this script. :)
Be careful! I ran this script and all my icons disappeared. Worse, I don't have any cursor anymore. So to click it's very difficult. I can see where I am only because things get highlighted when I move my invisible mouse :(
you must be speaking of the ARTWORK, which was "optional"
most likely what happened was WGET never retrieved the SRPMS from the redhat servers....
this actually happened to me so much that i put my own files up, and had my own private script i ran instead of that one.
in a perfect world my script would work fine, but perhaps the redhat servers don't like people downloading their artwork?
at any rate.... you can easily fix your problem by either reinstalling the standard centos artwork packages.... or by running a modified script... such as the one below.
*note that the only difference is where the SRPMS are downloaded from...
sorry that you ran into problems.... but hey at least they weren't related to the actual ISPCONFIG portion.... :) i threw the artwork stuff on there as a bonus...
*note that this script will work... NOW... but i might be moving my server soon, and at which point you'd have to download the files from somewhere else....
the easiest thing for you might be to just download the files manually, and comment out the parts in the script where WGET is used....
Thanks, now running this script, I get:
+ exit 0
error: package redhat-artwork-0.120.1-1.2E.centos4.4.i386 is not installed
error: package firstboot-1.3.39-5.centos4.noarch is not installed
error: open of RPMS/i386/redhat-artwork-0.120.1-1.2E.i386.rpm failed: No such fi le or directory
error: Failed dependencies:
redhat-artwork is needed by firstboot-1.3.39-5.noarch
are you by any chance running the 32-bit version of centos?
if i were you... at this point, here is what i would do....
run all of these lines (just to be sure everything is removed)(you will most definatly see errors here, but they should be along the lines of... package does not exist)
rpm -e --nodeps redhat-logos-1.1.26-1.centos4.4
rpm -e --nodeps redhat-artwork-0.120.1-1.2E.centos4.4.x86_64
rpm -e --nodeps redhat-artwork-0.120.1-1.2E.centos4.4.i386
rpm -e --nodeps firstboot-1.3.39-5.centos4.noarch
rpm -e --nodeps redhat-logos-1.1.26-1.src.rpm
rpm -e --nodeps redhat-artwork-0.120.1-1.2E.src.rpm
rpm -e --nodeps firstboot-1.3.39-5.src.rpm
then edit your yum.conf
remove the following line (assuming it is present)
exclude=redhat-artwork* redhat-logos* firstboot*
yum update -y
that should restore all of the original centos artwork.... which would be a good place to get back to, seeing as your having a lot of problems.
if you attempt the redhat artwork again i would not use my script, but run through each command seperatly and check for errors
as another precaution, i would browse to the folder /usr/src/redhat...
do not delete any of the folders: BUILD, RPMS, SOURCES, SPECS, SRPMS.... but you should make sure all of those folders are empty to avoid any conflicts...
make sure you have all the deps:
yum install gtk+-devel gdk-pixbuf-devel gtk2-devel qt-devel kdebase-devel icon-slicer arts-devel -y
Really watch for errors on the following 3 lines... if it doesn't finish, cancel and be sure to delete the unfinished file, or the new one will be named differently with a .1 or something on the end... just be sure they are named the same as my lines indicate, or edit the lines to match your filename....
once you know those files are downloaded properly.... then extract them
rpm -i --force --nosignature redhat-logos-1.1.26-1.src.rpm
rpm -i --force --nosignature redhat-artwork-0.120.1-1.2E.src.rpm
rpm -i --force --nosignature firstboot-1.3.39-5.src.rpm
then we build the rpms
rpmbuild -ba SPECS/redhat-logos.spec
rpmbuild -ba --nodeps SPECS/redhat-artwork.spec
rpmbuild -ba SPECS/firstboot.spec
rpm -i RPMS/noarch/redhat-logos-1.1.26-1.noarch.rpm
rpm -i RPMS/x86_64/redhat-artwork-0.120.1-1.2E.x86_64.rpm
hopefully you are in fact running the 64-bit version, but if not use the following line (sans #)
# rpm -i RPMS/i386/redhat-artwork-0.120.1-1.2E.i386.rpm
rpm -i RPMS/noarch/firstboot-1.3.39-5.noarch.rpm
the rest of these lines just clean up the files leftover from the above... i would not run these until you are sure your artwork is working correctly...
rm -f /tmp/redhat-logos-1.1.26-1.src.rpm
rm -f /tmp/redhat-artwork-0.120.1-1.2E.src.rpm
rm -f /tmp/firstboot-1.3.39-5.src.rpm
rm -fdr /usr/src/redhat/BUILD/firstboot*
rm -fdr /usr/src/redhat/BUILD/redhat*
rm -fdr /usr/src/redhat/RPMS/noarch
rm -fdr /usr/src/redhat/RPMS/x86_64
rm -fdr /usr/src/redhat/RPMS/i386
rm -f /usr/src/redhat/SOURCES/*
rm -f /usr/src/redhat/SPECS/*
rm -f /usr/src/redhat/SRPMS/*
this next few lines, imports a yum.conf with the following line added (which we removed above)
exclude=redhat-artwork* redhat-logos* firstboot*
otherwise... every time yum is run, your artwork would default to the centos.
rm -f /etc/yum.conf
chmod 644 /etc/yum.conf
chown root:root /etc/yum.conf
i hope that works for you....
This would be quite usefull for all stable disto servers-ispconfig install. i can manually install on both centos 4.4 and edgy in just under 20 min. This script would cut the install time by so much. I can't wait for the Ubuntu Server 32bit script. ;)
sorry bro, i don't use debian (or ubuntu) anymore, so i'll probably just stick to centos scripts. it would be pretty easy to modify this script to use apt-get though....feel free to post a modified version of my script if you want to do that.
For the record, I haven't been able to restore my icons and cursors. I'll wait for Centos 5 to reinstall everything.
well... when i was writing this script, and testing etc... the same thing happened to my icons & cursors... and it was easily fixed by installing the centos artwork rpm packages as described above.
i guess i should have left that part of the script out, because this is all taking away from what the script was actually intended for, and that's to get ispconfig installed. guess it won't matter in a few days/weeks when centos 5 is released.
|All times are GMT +2. The time now is 06:24.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.