Koozali.org: home of the SME Server

[Announce]: Update script for 6.0.1-01 for testing (v2)

Offline gregswallow

  • *
  • 651
  • +1/-0
[Announce]: Update script for 6.0.1-01 for testing (v2)
« on: September 27, 2004, 09:21:42 PM »
[ANNOUNCE] Update script for 6.0.1-01 for testing (v2)

By Greg Swallow (greg_at_skynetbc.com)


LATEST VERSION CAN BE FOUND HERE:
I made a Wiki Page with a copy of the 2 scripts and I am hoping others will help keep it up to date and add things if you'd like.  
It can be found here:
http://no.longer.valid/phpwiki/index.php/Latest%20version%20of%20update%20scripts



This is version 2 of this script - the original one is here:
http://forums.contribs.org/index.php?topic=24202.0

So here are the two scripts.  I'd suggest running the downloads.sh script twice.  The second time it should only take half a second as it won't download the files twice.  If you see any file not found errors, then maybe figure out another place to download that file from, as ***you really don't want to run the updates script if you are missing any files***.  Once you have all the files you can run the update script.  Everything installs cleanly for me, but I haven't tested this much.  

What's included: (Again, thanks to everyone who contributed to these!)
PHP 4.3.8
http://forums.contribs.org/index.php?topic=23270.0
http://forums.contribs.org/index.php?topic=23301.0

Phpmyadmin-2.6.0-10 (updated again)
http://forums.contribs.org/index.php?topic=23242.msg92492#msg92492

Zlib 1.2.1.1-4
Proftpd 1.2.10-es1
fetchmail 6.2.5-1
rsync 2.6.2-1
gnupg 1.2.4-0_19
openssh 3.9p1-1es1
openssl 0.96m-1es1
http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/

imp 3.2.5-01dm (and associated updates)
http://no.longer.valid/mylinks/singlelink.php?cid=117&lid=416

apache 1.3.31-5 (required compat-glibc, db4, python2.3)
mod_ssl 2.8.19-1
(no howto/contrib available - not extensivly tested)

mysql 4.0.21-0
http://forums.contribs.org/index.php?topic=23920.0

Spamfilter add-on panel
http://sme.swerts-knudsen.dk/howtos/howto_29.htm

AWStats 2.3.3-0 (added)
http://www.neddix.de/

Antivirus Panel (added)
http://sme.swerts-knudsen.com/howtos/howto_22.htm

Mail Blocking panel (added - replaces the double bounce deletion howto)
http://www.dungog.net/sme/files/index.php

Securemail (added)
http://www.pagefault.org/howto/securemail.shtml

RootKit Hunter (added)
http://mirror.contribs.org/smeserver/contribs/dthomas/smeserver/6.x/Contrib/rkhunter/

---------------------------------------------

Downloads.sh
(The wget commands should each be on one line - be careful when copying and pasting)
Moved script to wiki page here:
http://no.longer.valid/phpwiki/index.php/Latest%20version%20of%20update%20scripts

Updates.sh
(run this after you are sure you have all the downloads)
Moved script to wiki page here:
http://no.longer.valid/phpwiki/index.php/Latest%20version%20of%20update%20scripts

NOTE:  If you are having a problem with one of the updates this script installs, please try to find your answer from the author of the invdividual conrib.  Any suggestions to make this script work better though are welcomed.

As well if you have any suggestions of things to add, that would be great.  I'd love to hear about the things that you just need to have on every SMEserver you install.  

Greg

Offline cjensen

  • *
  • 133
  • +0/-0
    • http://acenet-tech.org
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #1 on: September 28, 2004, 02:04:48 AM »
Great script!!

One concern... is the owner of sme.swerts-knudsen.dk OK with the traffic he is likely to receive?

Also, his site is apparently down at present.  Is there another location of these files?  It would be nice to have them mirrored on ibiblio.org, (hint to sme.swerts-knudsen.dk).

Thanks again for the leg work in compiling this and the script to boot!!

Craig Jensen

Offline smeghead

  • *
  • 557
  • +0/-0
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #2 on: September 28, 2004, 04:13:11 AM »
Hi Greg

Quick question. what is your exact testing base for this?

Is it the contribs 6.0.1 or one of the custom builds floating around (Keane or Skav)?

TIA
..................

Offline wyron

  • *
  • 275
  • +0/-0
    • http://www.ideast.dk
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #3 on: September 28, 2004, 01:16:35 PM »
A word of caution regarding the MySQL update!
I tried to install it from the original contrib on a freshly installed 6.01-01, and lost mysql entirely (rpm -q mysql = package mysql not installed / rpm -Uvh mysql*et cetera = packages already installed).
After yet another fresh install I tried this script - with exactly the same result.
Btw. swerts-knudsen isn't down. He just got a new external ip-address this morning (Danish time), so DNS is perhaps a bit unstable through today.
Greetings
wyron
...

Offline gregswallow

  • *
  • 651
  • +1/-0
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #4 on: September 28, 2004, 06:42:21 PM »
wyron - check that in the mysql folder that you have all 4 files.  I would try doing just that upgrade and see what errors you are getting.  If you are still having any problems, I would suggest posting a message to the forum thread where that particular contrib was announced.

smeghead - I have only tried it with the 6.01-01 release.  And only installing it on a fresh install - not as an upgrade.  If you have some of these or other addons, I wouldn't run the script, rather do one thing at a time as needed.

cjensen - Perhaps here: http://www.ibiblio.org/pub/Linux/distributions/smeserver/contribs/swerts-knudsen/ - But it seemed like other site is more updated.  He has a PayPal donate button on his site (seems to be working now), which I'm sure he would appreciate people using if they have found his contributions useful, and to help with the bandwith - http://sme.swerts-knudsen.com/.
 
My idea was to link to the authors site so you will always have the latest rpms, and know where to find updated ones, or help with problems.  I think that is better than downloading all the files and uploading them to one server.

Offline cjensen

  • *
  • 133
  • +0/-0
    • http://acenet-tech.org
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #5 on: September 28, 2004, 08:37:22 PM »
Mysql issues...

Make sure this section:
---------------------------------------
chkconfig --levels 2345 mysql on
mv /etc/rc.d/init.d/mysql /etc/rc.d/init.d/mysqld
rm /etc/rc.d/rc7.d/S90mysqld
ln -s /etc/rc.d/init.d/mysqld /etc/rc.d/rc7.d/S90mysqld
/sbin/e-smith/config setprop mysqld LocalNetworkingOnly no
/sbin/e-smith/expand-template /root/.my.cnf
ln -s /usr/sbin/mysqld /usr/libexec/
service mysqld restart
/usr/bin/mysql_fix_privilege_tables
cd ..
-----------------------------------
...copies into your script on a separate line for each command.  My issue was with this not being the case.  Running them each separatly after fixed my issue.

For securemail:
If you get a failed deps message...
install these first:
e-smith-smtp-authentication-6.0.1-02dc.noarch.rpm \
e-smith-ssl-imap-6.0.1-02dc.noarch.rpm \
e-smith-ssl-mailfront-6.0.1-02dc.noarch.rpm \
e-smith-ssl-popd-6.0.1-02dc.noarch.rpm...
Then install:
e-smith-securemail-6.0.1-01dc.noarch.rpm

All of the above are deps of the last.

Script works great though!!  Great option for updates.  I have always loved Jesper's scripts as well.

Craig Jensen

Offline jdanvers

  • **
  • 53
  • +0/-0
    • http://www.bikeguy.myip.org
***** UPDATE REQ'd TO SCRIPT *****
« Reply #6 on: September 29, 2004, 04:55:17 AM »
:idea:  Guys...  see below    :idea:
++++++++++++++++++++++++++++++++++++++

I just built a new box from scratch - 6.01-01 (or whatever the contribs.org version number is...  lol! ) - anyway - fresh install.  I'm updating / adding on right now via this script (nice piece of work too!) and just want to let everyone know that the myphpadmin download will fail.  It is trying to fetch phpmyadmin-2.6.0-8 - the file that is at the contibuters space (nightspirit) is 2.6.0-9 - ~NINE~.  That will have to be change in the updates script as well.

I didn't catch any other "404's" - there may have been some but I didn't have my putty sroll buffer set big enough - I definately caught this one though.  just thought I'd pass it on...   :-D

-=- jd -=-
-=- jd -=-

Offline jdanvers

  • **
  • 53
  • +0/-0
    • http://www.bikeguy.myip.org
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #7 on: September 29, 2004, 05:45:52 AM »
:-?    :-?
Greg / Wyron...

I am experiencing the exact same thing that he (Wyron) has experienced - brand new install - mysql is dead - as in non-existent.   :cry:

Ummmm ...  any suggestions on how to resolve this???  I have all four files per the download script:
MySQL-client-4.0.21-0.i386.rpm
MySQL-devel-4.0.21-0.i386.rpm
MySQL-server-4.0.21-0.i386.rpm
MySQL-shared-compat-4.0.21-0.i386.rpm

... the rpm db appears to be wacked.  I just tried (for the hell of it) rpm -e MSQL*.rpm ---> those four files (after repeated rpm -qa | grep sql and being told that mysql is installed).  Guess what rpm -e MYSQL*.rpm got me - RPM-client, -devel, server, etc...  not installed!  Arghh....  lol (shaking head)

I'm doing a rpm --rebuilddb right now...

I'll post later... its getting late and I might have to just fall back, punt, and put the old box back up for the time being.

-=- jd -=-
-=- jd -=-

Offline wyron

  • *
  • 275
  • +0/-0
    • http://www.ideast.dk
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #8 on: September 29, 2004, 08:20:48 AM »
Well, the situation has changed a bit at my house.
The rpm's are still not registered ('rpm -qa | grep mysql' turns out only e-smith-mysql and phpmyadmin), but mysql is working anyway.
I once more did the post-upgrade commands mentioned in the original contrib howto, and since then phpmyadmin can access the databases.
Horde/Imp is working as well since webmail is suddenly accessible.
I'm confused (at a rather low level) ???
Greetings
wyron
...

Offline edb

  • *
  • 546
  • +0/-0
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #9 on: September 29, 2004, 03:48:45 PM »
After upgrade Horde has no users?
How long is the "/sbin/e-smith/signal-event post-upgrade" command suppose to take? I find that it just sits with a blinking prompt forever? Can anyone point me in the right direction. Thanks for your help

Ps: Otherwise I think that the upgrade script is of tremendous assistance to all SME users. Thanks for all your hard work ...

Ed
......

Offline gregswallow

  • *
  • 651
  • +1/-0
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #10 on: September 29, 2004, 06:03:00 PM »
Quote from: "wyron"
The rpm's are still not registered ('rpm -qa | grep mysql' turns out only e-smith-mysql and phpmyadmin), but mysql is working anyway.


Try :

rpm -qa | grep MySQL

Capitalization is everything.

I think it's best for anyone having problems with the MySQL part of the updates is to try the update manually on a clean install as described here (or just check that when you copy and paste the script it is the same as this) - http://forums.contribs.org/index.php?topic=23920.0 - all I have done is copy these instructions into the script.

Greg

Offline smeghead

  • *
  • 557
  • +0/-0
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #11 on: September 29, 2004, 06:14:43 PM »
.. jst ran the update on a reasonably modified SME 6.0 box and found probs with the MySQL component; the table update routine failed.

I back tracked step by step and concluded that the MySQL 4 installed partially failed so I reinstalled the rpms with --nodeps and ran each of the additional commands manually one by one - they all worked fine.

HTH
..................

Offline edb

  • *
  • 546
  • +0/-0
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #12 on: September 29, 2004, 06:22:38 PM »
Thanks Greg that fixed my issue.  :-)

Ed
......

Offline gregswallow

  • *
  • 651
  • +1/-0
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #13 on: September 29, 2004, 07:33:23 PM »
I am testing a few things right now that I will probably add:

Lets you control the access of ftp users:
http://www.dungog.net/sme/files/dungog-proftpd-chroot-0.1-5.noarch.rpm

Allows webmail users to change their password: (be careful with this - see contribs.org link first - and notes on page 2 for another solution)
http://no.longer.valid/mylinks/singlelink.php?cid=89&lid=426
http://www.ibiblio.org/pub/Linux/distributions/smeserver/contribs/dmusty/SME6.0/webmail/passwd/

Newer version of Awstats:
http://sme.swerts-knudsen.com/howtos/howto_7.htm

Fetchmail for users pop3 accounts:
http://forums.contribs.org/index.php?topic=22814.0

Backup2Ws - (for >2GB backups)
http://mirror.contribs.org/smeserver/contribs/dmay/smeserver/6.x/beta/backup2ws/

Enable HTML webmail:
http://sme.swerts-knudsen.com/howtos/howto_3.htm

Also noticed there is a PHP 4.3.9 install script announced in the forums.
http://forums.contribs.org/index.php?topic=24305.0


Just wondering if anyone has any suggestions of things to add to the script...  What else do you guys install on your servers???

Greg

kirkf

[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #14 on: September 30, 2004, 08:18:06 AM »
Hi.  Looks like a great script.  I usually install:

clam/amavis
pattern matching
rblsmtp
securemail
rkhunter
ssh/ssl updates

I have one concern about your proposed additions:

Quote
Allows webmail users to change their password:
http://www.ibiblio.org/pub/Linux/distributions/smeserver/contribs/dmusty/SME6.0/webmail/passwd/


This contrib is not ready for widespread distribution just yet.  It seems to work with fresh installs, but completely breaks upgraded systems.  Details are here:


http://no.longer.valid/mylinks/singlelink.php?cid=89&lid=426

Kirk[/quote]

Mark_S

[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #15 on: September 30, 2004, 11:03:30 AM »
If your MYSQL is broke, it could be because of what mrjhb3 said about the mysqld restart in the thread for the original script.

Try this. All it's doing is forcing the RPM's and then starting MYSQL instead of restarting, before it updates the tables. It fixed MYSQL for my installation.

A few errors pop up, but it does say these errors can be ignored.

Quote
#!/bin/sh

cd mysql
service mysqld stop
rpm -e --nodeps --force mysql mysql-server
rpm -e --force mysql-devel
rpm -e --force mysqlclient9
rpm -Uvh --force MySQL-*.rpm
chkconfig --levels 2345 mysql on
mv /etc/rc.d/init.d/mysql /etc/rc.d/init.d/mysqld
rm /etc/rc.d/rc7.d/S90mysqld
ln -s /etc/rc.d/init.d/mysqld /etc/rc.d/rc7.d/S90mysqld
/sbin/e-smith/config setprop mysqld LocalNetworkingOnly no
/sbin/e-smith/expand-template /root/.my.cnf
ln -s /usr/sbin/mysqld /usr/libexec/
service mysqld start
/usr/bin/mysql_fix_privilege_tables
cd ..


phpmyadmin didn't work after this, but I don't know if it failed when I first ran the update script.

Quote
cd phpmyadmin
rpm -Uvh --force *.rpm
cd ..


Fixed it and now everythings working again.

Awesome update script. Saved loads of time, nice one greg.

Mark.

Offline gregswallow

  • *
  • 651
  • +1/-0
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #16 on: September 30, 2004, 11:38:08 PM »
Quote from: "kirkf"
I have one concern about your proposed additions:

Quote
Allows webmail users to change their password:
http://www.ibiblio.org/pub/Linux/distributions/smeserver/contribs/dmusty/SME6.0/webmail/passwd/


This contrib is not ready for widespread distribution just yet.  It seems to work with fresh installs, but completely breaks upgraded systems.  Details are here:


http://no.longer.valid/mylinks/singlelink.php?cid=89&lid=426

Kirk
[/quote]

You are right.  It broke mine too :(  I fixed it by forcing the re-install of the original passwd rpm.  I emailed the author and will try to figure out a solution....but in the meantime I figured out one other way to let users change their passwords:

Code: [Select]
usermod -s /usr/bin/passwd username

Then the users can log in with SSH (eg. Putty) and only have access to change their password.  It's pretty good it won't let them choose too easy of a password, you just have to run that command for each user.  [/code]

Mumm-Ra

[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #17 on: October 01, 2004, 01:33:26 AM »
Just ran the script.
Ran into a few problems around the mysql install.
I think the problem is the line -
rm /etc/rc.d/rc7.d/S90mysqld
when this line runs it prompts 'do you want to delete this file'.
when you select Y it seems to miss this last 6 lines of the mysql section.
Changing this to rm-rf /etc/rc.d/rc7.d/S90mysqld does the trick.

Great script though!

Mumm-Ra

[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #18 on: October 01, 2004, 01:39:11 AM »
darn, :hammer: buggered up my ssh access though.
When I try to ssh into the server it just keeps prompting for my password.
The server-manager/webmail/phpmyadmin all work though.
I know I am getting my password right as I changed it to something really easy that even I couldn't type wrong.
Still no luck.

This was a new install & I didn't install the password rpm.

Any ideas?

Offline gregswallow

  • *
  • 651
  • +1/-0
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #19 on: October 01, 2004, 02:55:37 AM »
Quote from: "Mumm-Ra"
buggered up my ssh access though.


Not sure, but maybe try the latest version of Putty.  I had an older copy on a computer here (I forget what version) that didnt want to work with the new ssh rpms installed.  

And just double check you have ssh enabled and 'command line access' and 'standard passwords' enabled in the server manager's remote access panel.

Offline gregswallow

  • *
  • 651
  • +1/-0
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #20 on: October 01, 2004, 02:59:19 AM »
Quote from: "Mumm-Ra"
I think the problem is the line -
rm /etc/rc.d/rc7.d/S90mysqld
when this line runs it prompts 'do you want to delete this file'.
when you select Y it seems to miss this last 6 lines of the mysql section.
Changing this to rm-rf /etc/rc.d/rc7.d/S90mysqld does the trick.


Good catch - I think you are right.  I have updated the script with 'rm -rf' and 'mv -f' in the MySQL section so that should fix it.  It's weird, I never had that problem...  

Did you run the scripts while logged in with SSH?  I didn't.  That may explain your SSH problem.  I have always ran it locally, since part of it updates SSH.  I guess if you needed to run it remotely, take out the SSH update section and do that when you have local access.

Mumm-Ra

[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #21 on: October 01, 2004, 10:50:03 AM »
Thanks,
Ran from server console and everything works.
Perfect

mbachmann

[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #22 on: October 01, 2004, 01:11:22 PM »
isoqlog and cups.

Offline jdanvers

  • **
  • 53
  • +0/-0
    • http://www.bikeguy.myip.org
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #23 on: October 02, 2004, 07:11:01 PM »
Greg:  Do you gave a web site, ftp, ssh, etc...  (whatever) where the very latest, greatest, updated version of the script's can be dnld'd from?  I have read through this thread and have noted that a few posters caught a typo or two that you missed, subsequently replied to and said that you have added/fixed to the script.  Then there is you're own post stating that you are, (or have?) going to be adding other, or different, new stuff to the script.

Is the original script(s) in this thread what is being updated?  Or, going back to my original question, do you have them available someplece where we could grab them?  The latter would be outstanding - perhaps you could post a wget sort of thing to some address where you could make what you feel are "ready" versions of the script (kinks worked out, typo's corrected - MYSQL, etc... ) and then we, as server fans and users could simply grab the latest variant of the script(s) and run 'em.  ;)

Also - from reading through this thread - I now know to run 'em from the console vs. an ssh session...  ;)

Thanks!

-=- jd -=-
-=- jd -=-

Mumm-Ra

[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #24 on: October 02, 2004, 07:42:48 PM »
JD,

glad to know I'm not only educating myself :lol:

A wget link to the file would be perfect.  No more cut & paste

Offline jdanvers

  • **
  • 53
  • +0/-0
    • http://www.bikeguy.myip.org
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #25 on: October 03, 2004, 02:30:05 AM »
Hey all...

I'm up and running on my new server.   :-D   Many thanks to Greg (I answered my own question BTW @previous post).  Greg - the script works very well as long as everyone who uses it does ~exactly~ as you suggest.  ( run dnld 2x <or more>, ensure no files get missed, then run the update script - after adjusting for any weirdness from the dnld... )

Anyway - good to go.   :pint:

... now I have to start another thread 'cause I have a question.  <grin>

-=- jd -=-
-=- jd -=-

tgraham

[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #26 on: October 03, 2004, 04:16:08 PM »
Great script,

The only problem I had was a possible typo:

downloads.sh:
>mkdir phpmyadmin
>cd phpmyadmin
>wget -nc --tries=0 >http://mirror.contribs.org/smeserver/contribs/nightspirit/e-smith-phpmyadmin/e-smith-phpmyadmin-2.6.0-9.noarch.rpm
>cd ..

updates.sh:
>cd phpmyadmin
>rpm -Uvh phpmyadmin-2.6.0-9.noarch.rpm
>cd ..

Should this be e-smith-phpmyadmin-2.6.0-9.noarch.rpm?

A local site where we could download the latest greatest script would be great.

Terry Graham

Offline gregswallow

  • *
  • 651
  • +1/-0
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #27 on: October 04, 2004, 12:31:43 AM »
Quote from: "tgraham"
Should this be e-smith-phpmyadmin-2.6.0-9.noarch.rpm?


Yup - oops, but now the author has updated to a .10 version.  I have just put the scripts onto a wiki page so anyone can update it.

Here it is:
http://no.longer.valid/phpwiki/index.php/Latest%20version%20of%20update%20scripts

Now anyone can update it and fix typos or dead links.  And if you want, even add a few features to it.  

Greg

Offline wyron

  • *
  • 275
  • +0/-0
    • http://www.ideast.dk
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #28 on: October 04, 2004, 06:38:29 PM »
.. and how about: http://mysql.mirrored.ca/Downloads/MySQL-4.0/MySQL-shared-compat-4.0.21-0.i386.rpm
Methinks that 'cygnal' is missing in that line ?
Greetings
wyron
...

Offline cjensen

  • *
  • 133
  • +0/-0
    • http://acenet-tech.org
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #29 on: October 04, 2004, 08:02:57 PM »
Howdy,

Actually that is the correct link for that package :-)

Craig Jensen

Offline wyron

  • *
  • 275
  • +0/-0
    • http://www.ideast.dk
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #30 on: October 04, 2004, 08:42:57 PM »
Quote from: "cjensen"
Howdy,
Actually that is the correct link for that package :-)
Craig Jensen


It isn't, though !
I had a couple of failures retreiving, until I began to wonder why the 'logon' failed for that file, when others from the same site went a treat.
I put in the missing 'cygnal', and hey presto - you know the rest.
Greetings
wyron
...

Offline gregswallow

  • *
  • 651
  • +1/-0
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #31 on: October 04, 2004, 08:58:45 PM »
wyron - feel free to update the script - it is located here now so you or anyone can do it:
http://no.longer.valid/phpwiki/index.php/Latest%20version%20of%20update%20scripts

If you want to add anything you can do that too :)

Offline wyron

  • *
  • 275
  • +0/-0
    • http://www.ideast.dk
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #32 on: October 04, 2004, 10:10:36 PM »
Quote from: "gregswallow"
wyron - feel free to update the script - it is located here now so you or anyone can do it:
http://no.longer.valid/phpwiki/index.php/Latest%20version%20of%20update%20scripts
If you want to add anything you can do that too :)

Sorry - but no - I already tried that.
My credentials aren't good enough, it seems.

But they're great scripts for all that !!
With a bit of work afterwards (eg. manual install of MySQL-shared-compat....) you'll be up and running in no time, compared to the time-consuming process of learning about, finding, (w)getting and installing/updating the packages one by one.
And as an added benefit, if you made it all from an updates ibay, created for the occasion, you also have some documentation at hand later on, when you've forgotten all about your tweaks.
At last a word of caution (for newbies, mainly) !
It's been mentioned before, but I'll press the point:
Don't do this on a production server !
Do this only on fresh installs, where down-time isn't a critical issue, for there is work to be done after running the scripts, as several of us have experienced.
Read through this thread and the threads belonging to the original contribs before panicking, when something doesn't work right out of the box.
I, for instance, had no mysql, hence no webmail or phpmyadmin, before settling down to get my hands dirty.
Greetings
wyron
...

Offline gregswallow

  • *
  • 651
  • +1/-0
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #33 on: October 04, 2004, 11:03:59 PM »
Quote from: "wyron"
My credentials aren't good enough, it seems.


I don't know why that would be.  Maybe something with cookies or your web browser.  I never had a problem editing other pages, just had to be logged in.   Maybe someone else has a suggestion??  What error does it give you when you click on the edit link at the bottom of the page?

(I updated it by the way)

Offline cjensen

  • *
  • 133
  • +0/-0
    • http://acenet-tech.org
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #34 on: October 04, 2004, 11:56:39 PM »
Your permissions for the script seem to be correct.  I had the same issue initially in getting to edit.  I had to try logging in again after clicking pageinfo and it let me in.  Something fishy with the wiki...

BTW, the link to the MySQL-shared-compat-4.0.21-0.i386.rpm works with wget, yet it works as well in the script when editted as has been suggested.

Craig Jensen

Offline wyron

  • *
  • 275
  • +0/-0
    • http://www.ideast.dk
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #35 on: October 05, 2004, 09:11:16 AM »
Quote from: "cjensen"
Your permissions for the script seem to be correct.  I had the same issue initially in getting to edit.  I had to try logging in again after clicking pageinfo and it let me in.  Something fishy with the wiki... Craig Jensen

I see . .
Problem solved (but someone beat me to it).
Might I suggest that the mysql-update be removed from the scripts and put in its own ?
The script runs so fast you might not catch important error messages, and after all it is a major change in a central part of your system.
Greetings
wyron
...

Offline gregswallow

  • *
  • 651
  • +1/-0
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #36 on: October 05, 2004, 07:12:50 PM »
Quote from: "wyron"
Might I suggest that the mysql-update be removed from the scripts and put in its own ?
The script runs so fast you might not catch important error messages, and after all it is a major change in a central part of your system.


Maybe someone could add a bit of if/else logic to the script - eg - "would you like to update MySql? - Press Y/N"

I think maybe a better thing to do is add a feature in the script that verifies you have all the files downloaded and refuses to continue if you don't.  That way the two scripts could be combined into one.

And maybe add a warning at the start of the script so that when it's run it says something like - 'only continue if you are installing this on a fresh install of 6.0.1-01 - and be sure to run the script locally, not through ssh - press enter to continue or to cancel hit ctrl-c'.

Offline Denbert

  • *
  • 156
  • +0/-0
    • hegnstoften.net
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #37 on: October 05, 2004, 08:12:17 PM »
Hi there,

I downloaded and ran the latest scripts, and now I'm drowning in SPAM - Before i had Jesper Knudsen's contrib installed - This new upgrade script calls files from Jeser Knudsen's site - any chance that it's som old files from his site? Or do i need to make some changes in the standard settings?

Any how, the script ran perfect and everything runs nice (except the spam situation)... Nice calandar feature in the horde webmail :-)
/ Denbert
"Success is not final, failure is not fatal: it is the courage to continue that counts" - Sir Winston Churchill

bobk

[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #38 on: October 12, 2004, 02:24:04 AM »
gregswallow,

SME 6.0.1-01
ClamAv 0.65-6 installed
Banner Filter 1.21 installed
Pattern Matching (G. Rowell) installed
(e-smith-email-4.14.0-07gr1.noarch.rpm  e-smith-mailfront-1.5.0-13.noarch.rpm  mailfront-0.91-3es.i386.rpm)
RBL activated

I used you script 'spamfilter_install.sh' to install SpamAssassin but received an error at the end "ERROR: You cannot set a config record without a type." Below is the entire script output the only error I see is at the very end.
Code: [Select]
[root@mabit01 installed]# sh spamfilter_install.sh
========================================================
= SpamFilter Installation Script                       =
=                                                      =
= This script will install SpamAssassin, SpamFilter    =
= server-manager module as well as DCC and             =
= Razor2. It also ensure that you on an dayly basis    =
= check for new SA updates. This script will only work =
= on SME 6.0.x                                         =
=                                                      =
= This script will enable procmail for all users and   =
= thereby filter spam to a junkmail folder. If you are =
= forewarding emails then you will need to change the  =
= settings back after installation                     =
=                                                      =
= No express or implied warranties are provided and its=
= usage is at your own risk.                           =
=                                                      =
= If you feel confortable with the above then press    =
= enter if not pres Ctrl+C to abort the installation   =
= script.                                              =
=                                                      =
========================================================
Downloading RPMs from http://mirror.contribs.org/smeserver/contribs/swerts-knudsen/SpamFilter
Checking for existing installations.... Please wait!
Installing SpamFilter on SME 6.0.....
--07:11:22--  http://mirror.contribs.org/smeserver/contribs/swerts-knudsen/SpamFilter/perl-DateManip-5.40-15.i386.rpm
           => perl-DateManip-5.40-15.i386.rpm'
Resolving www.contribs.org... done.
Connecting to www.contribs.org[69.9.12.50]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 129,366 [application/octet-stream]

100%[==================================================================================================================>] 129,366       41.54K/s    ETA 00:00

07:11:26 (41.54 KB/s) - perl-DateManip-5.40-15.i386.rpm' saved [129366/129366]

--07:11:26--  http://mirror.contribs.org/smeserver/contribs/swerts-knudsen/SpamFilter/perl-Parse-Syslog-1.03-8.noarch.rpm
           => perl-Parse-Syslog-1.03-8.noarch.rpm'
Resolving www.contribs.org... done.
Connecting to www.contribs.org[69.9.12.50]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11,602 [application/octet-stream]

100%[==================================================================================================================>] 11,602        17.14K/s    ETA 00:00

07:11:27 (17.14 KB/s) - perl-Parse-Syslog-1.03-8.noarch.rpm' saved [11602/11602]

--07:11:27--  http://mirror.contribs.org/smeserver/contribs/swerts-knudsen/SpamFilter/perl-Storable-2.11-1.0.rh7.dag.i386.rpm
           => perl-Storable-2.11-1.0.rh7.dag.i386.rpm'
Resolving www.contribs.org... done.
Connecting to www.contribs.org[69.9.12.50]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 52,220 [application/octet-stream]

100%[==================================================================================================================>] 52,220        11.16K/s    ETA 00:00

07:11:33 (11.16 KB/s) - perl-Storable-2.11-1.0.rh7.dag.i386.rpm' saved [52220/52220]

Preparing...                ########################################### [100%]
   1:perl-DateManip         ########################################### [ 33%]
   2:perl-Parse-Syslog      ########################################### [ 66%]
   3:perl-Storable          ########################################### [100%]
--07:11:41--  http://mirror.contribs.org/smeserver/contribs/swerts-knudsen/SpamFilter/perl-Mail-SpamAssassin-3.0.0-1.i386.rpm
           => perl-Mail-SpamAssassin-3.0.0-1.i386.rpm'
Resolving www.contribs.org... done.
Connecting to www.contribs.org[69.9.12.50]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 557,162 [application/octet-stream]

100%[==================================================================================================================>] 557,162       39.65K/s    ETA 00:00

07:11:55 (39.65 KB/s) - perl-Mail-SpamAssassin-3.0.0-1.i386.rpm' saved [557162/557162]

--07:11:55--  http://mirror.contribs.org/smeserver/contribs/swerts-knudsen/SpamFilter/spamassassin-tools-3.0.0-1.i386.rpm
           => spamassassin-tools-3.0.0-1.i386.rpm'
Resolving www.contribs.org... done.
Connecting to www.contribs.org[69.9.12.50]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 92,370 [application/octet-stream]

100%[==================================================================================================================>] 92,370        40.27K/s    ETA 00:00

07:11:58 (40.27 KB/s) - spamassassin-tools-3.0.0-1.i386.rpm' saved [92370/92370]

--07:11:58--  http://mirror.contribs.org/smeserver/contribs/swerts-knudsen/SpamFilter/spamassassin-3.0.0-1.i386.rpm
           => spamassassin-3.0.0-1.i386.rpm'
Resolving www.contribs.org... done.
Connecting to www.contribs.org[69.9.12.50]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 225,645 [application/octet-stream]

100%[==================================================================================================================>] 225,645       46.95K/s    ETA 00:00

07:12:04 (46.95 KB/s) - spamassassin-3.0.0-1.i386.rpm' saved [225645/225645]

Preparing...                ########################################### [100%]
   1:perl-Mail-SpamAssassin ########################################### [ 33%]
   2:spamassassin           ########################################### [ 66%]

   3:spamassassin-tools     ########################################### [100%]
--07:12:18--  http://mirror.contribs.org/smeserver/contribs/swerts-knudsen/SpamFilter/dcc-dccproc-1.2.50-1.i386.rpm
           => dcc-dccproc-1.2.50-1.i386.rpm'
Resolving www.contribs.org... done.
Connecting to www.contribs.org[69.9.12.50]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 513,743 [application/octet-stream]

100%[==================================================================================================================>] 513,743       50.34K/s    ETA 00:00

07:12:28 (50.34 KB/s) - dcc-dccproc-1.2.50-1.i386.rpm' saved [513743/513743]

--07:12:28--  http://mirror.contribs.org/smeserver/contribs/swerts-knudsen/SpamFilter/perl-razor-agents-2.61-1.noarch.rpm
           => perl-razor-agents-2.61-1.noarch.rpm'
Resolving www.contribs.org... done.
Connecting to www.contribs.org[69.9.12.50]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 141,068 [application/octet-stream]

100%[==================================================================================================================>] 141,068       43.54K/s    ETA 00:00

07:12:32 (43.54 KB/s) - perl-razor-agents-2.61-1.noarch.rpm' saved [141068/141068]

--07:12:32--  http://mirror.contribs.org/smeserver/contribs/swerts-knudsen/SpamFilter/e-smith-USA-0.3.0-1.noarch.rpm
           => e-smith-USA-0.3.0-1.noarch.rpm'
Resolving www.contribs.org... done.
Connecting to www.contribs.org[69.9.12.50]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7,593 [application/octet-stream]

100%[==================================================================================================================>] 7,593         18.54K/s    ETA 00:00

07:12:33 (18.54 KB/s) - e-smith-USA-0.3.0-1.noarch.rpm' saved [7593/7593]

Preparing...                ########################################### [100%]
   1:dcc-dccproc            ########################################### [ 33%]

   2:e-smith-USA            ########################################### [ 66%]

   3:perl-razor-agents      ########################################### [100%]
Creating symlink razor-client <== /usr/bin/razor-check
Creating symlink razor-client <== /usr/bin/razor-report
Creating symlink razor-client <== /usr/bin/razor-revoke
Creating symlink razor-client <== /usr/bin/razor-admin
Discovering Razor2 servers please wait...
NOTE: If it takes more than 1 minute then read the SpamAssassin FAQ on sme.swert

Retrieving http://mirror.contribs.org/smeserver/contribs/swerts-knudsen/SpamFilter/sme-spamfi
Preparing...                ########################################### [100%]
   1:sme-spamfilter         ########################################### [100%]
Stopping crond: [   OK   ]
Starting crond: [   OK   ]


Migrating old RBL Lists to SpamFilter....

--07:13:11--  http://mirror.contribs.org/smeserver/contribs/swerts-knudsen/SpamFilter/migrate
           => migrate_rbl.sed'
Resolving www.contribs.org... done.
Connecting to www.contribs.org[69.9.12.50]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 65 [text/plain]

100%[===========================================================================

07:13:11 (63.48 KB/s) - migrate_rbl.sed' saved [65/65]

RBLs migrated - |sbl-xbl.spamhaus.org||whois.rfc-ignorant.org||dnsbl.njabl.org||
ERROR: You cannot set a config record without a type.
Installation of SpamFilter complete.
[root@mabit01 installed]#


The spam filter SM Panel returns the following error:
Quote
Spam Filter Settings
Software error:
Can't call method "props" on an undefined value at /etc/e-smith/web/panels/manager/cgi-bin/spamfilter line 206.


Line 206 reads:
Code: [Select]
my %sa_conf = $dbh_sa->get('conf.global')->props;

I tried a "post-upgrade" and "reboot" but this did not help. Any ideas how to correct this.

TIA
Bob

Offline gregswallow

  • *
  • 651
  • +1/-0
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #39 on: October 12, 2004, 10:05:45 PM »
bobk - This is not meant for upgrading systems already in use, just as an update to a fresh 6.0.1-01 install.  The spamfilter contrib is not mine... Info is here: http://sme.swerts-knudsen.com/howtos/howto_22.htm  Try to find help there perhaps.

Offline nefkho

  • ****
  • 183
  • +0/-0
    • http://www.cagothonglines.com
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #40 on: October 19, 2004, 03:43:29 AM »
hi, i got this error message when i update my fresh install box, any one can help me please.

Oct 19 09:31:26 fsci-gateway httpd: PHP Warning:  Unknown(): open_basedir restriction in effect. File(/home/e-smith/files/ibays/Primary/html/index.php) is not within the allowed path(s): (/) in Unknown on line 0
Oct 19 09:31:26 fsci-gateway httpd: PHP Warning:  Unknown(/home/e-smith/files/ibays/Primary/html/index.php): failed to open stream: Operation not permitted in Unknown on line 0
Oct 19 09:31:26 fsci-gateway httpd: PHP Warning:  (null)(): Failed opening '/home/e-smith/files/ibays/Primary/html/index.php' for inclusion (include_path='.:/usr/share/pear') in Unknown on line 0
--------

my primary wont display php page anymore. please help.
Nef Kho  :-) .........

Offline edb

  • *
  • 546
  • +0/-0
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #41 on: October 21, 2004, 08:52:12 PM »
Sounds like you must have changed something in your PHP configuration. I would just try to reinstall PHP again. Sounds like a magicquotes issue ...
......

easy

[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #42 on: October 29, 2004, 01:16:53 PM »
Quote from: "edb"
Thanks Greg that fixed my issue.  :-)

Ed



What fixed this??? I'm having the same problems and I don't know how to fix it.

I'm in a big need of help!


easy

easy

[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #43 on: October 29, 2004, 01:28:30 PM »
Quote from: "edb"
Thanks Greg that fixed my issue.  :-)

Ed



I really, really would like to know what fixed this issue. I'm heaving the same problems..... Please help me :-(

easy

Offline brianr

  • *
  • 988
  • +2/-0
the update wiki
« Reply #44 on: November 04, 2004, 10:17:57 AM »
the move seems to have lost the update document wiki (i have notified the powers that be), can some one point me to a copy of it please, or perhaps email it to me?

Thanks

Brian
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline gregswallow

  • *
  • 651
  • +1/-0

Offline nefkho

  • ****
  • 183
  • +0/-0
    • http://www.cagothonglines.com
install imp give error
« Reply #46 on: November 05, 2004, 01:39:45 AM »
hi, i tried to install the imp and i got error on my webmail "A fatal error has occurred:
'kronolith' is not configured in the Horde Registry.
[line 753 of /home/httpd/html/horde/lib/Registry.php]"

any one can help me fixed this problem?
Nef Kho  :-) .........

Offline gregswallow

  • *
  • 651
  • +1/-0
Re: install imp give error
« Reply #47 on: November 05, 2004, 03:03:42 AM »
Quote from: "nefkho"
hi, i tried to install the imp and i got error on my webmail "A fatal error has occurred:
'kronolith' is not configured in the Horde Registry.
[line 753 of /home/httpd/html/horde/lib/Registry.php]"

any one can help me fixed this problem?


Are you sure all the files downloaded correctly?  I am betting you are missing either e-smith-kronolith or kronolith.

It is very important that you check all the files downloaded before running the update script, and also very important that you don't do this on anything but a fresh install.  Rather than trying to fix it, just re-install and try the scripts again with all the files downloaded first.

Offline nefkho

  • ****
  • 183
  • +0/-0
    • http://www.cagothonglines.com
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #48 on: November 05, 2004, 08:33:09 AM »
hi, i have 2 kronolith files below:

e-smith-imp-1.10.0-04dm.noarch.rpm    
* kronolith-1.1.2-1es.noarch.rpm
* e-smith-kronolith-0.8.1-02.noarch.rpm  
mnemo-1.1.2-1es.noarch.rpm
e-smith-mnemo-0.8.0-04.noarch.rpm      
nag-1.1.1-1es.noarch.rpm
e-smith-nag-0.8.0-05.noarch.rpm        
horde-2.2.5-1dm.noarch.rpm            
imp-3.2.5-01dm.noarch.rpm              
turba-1.2.2-1es00.noarch.rpm

above are the files that i have downlaoded and install.
Nef Kho  :-) .........

Offline nefkho

  • ****
  • 183
  • +0/-0
    • http://www.cagothonglines.com
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #49 on: November 05, 2004, 08:38:00 AM »
hi i got it now, i have installed it by rpm -Uvh *.rpm well it did not install all the files so i did a individual file install and its working now.

thanks  :-D
Nef Kho  :-) .........

Offline smeghead

  • *
  • 557
  • +0/-0
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #50 on: November 07, 2004, 05:20:10 PM »
Hi all

I have rejigged the scripts somewhat to add some basic error trapping on the downloads, updated some of the Apache rpms to the ones currently on the ftp site, and added some extra updates from the SME devel dir.  I have also included the last SME build of Samba 2.2.8a & some extra tools I use all the time.

The download script now give package progress through the download process & generates a log file that is tested for errors (some errors are not logged so check it to be safe).  The script also checks to see if the file is on your HDD so if the d/l aborted then it will pick up from where it left off.

The update script has been modified to suit the changes to the download script.

If some people can test this for me (works for me on my test box - custom iso load of 6.0.1-01) then if acceptaable the wiki can be updated:

http://no.longer.valid/phpwiki/index.php?pagename=Latest%20version%20of%20update%20scripts

Here tis, enjoy :-)

download.sh

#!/bin/sh

mkdir /root/work
cd /root/work

echo " Getting Clamav, Spamassassin & PHP Install Scripts"

wget -nc -nd -S --tries=0 --output-file=/root/work/download.log http://sme.swerts-knudsen.dk/downloads/SpamFilter/spamfilter_install.sh

wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/PHP/php4.3.8-upgrade.sh

wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://sme.swerts-knudsen.dk/downloads/AntiVirus/antivirus_install.sh

echo "Done .."
echo ""

echo "Getting Updates"
echo ""

echo "General Updates & Tools .."
mkdir /root/work/updates
cd /root/work/updates
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/development/RPMS/e-smith-mysql-1.10.0-02.noarch.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/development/RPMS/e-smith-horde-1.10.0-02.noarch.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/development/RPMS/e-smith-LPRng-1.11.0-06ewf.noarch.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://www.ibiblio.org/pub/Linux/distributions/smeserver/updates/6.0.1/RPMS/initscripts-6.67-1es26.i386.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/zlib-1.2.1.1-4.i386.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://www.dungog.net/sme/files/601updates/zlib-devel-1.2.1.1-4.i386.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/proftpd-1.2.10-es1.i386.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/fetchmail-6.2.5-1.i386.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/Rsync/rsync-2.6.2-1.noarch.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/GnuPG/gnupg-1.2.4-0_19.rh7.3.at.i386.rpm

wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://sme.swerts-knudsen.dk/downloads/e-smith-lazy_admin_tools-0.9.0-1.noarch.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://mirror.contribs.org/smeserver/contribs/erantrua/e-smith/5.6/stable/windows-update/perl-Net-Telnet-3.03-1.i386.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://mirror.contribs.org/smeserver/contribs/erantrua/e-smith/5.6/stable/windows-update/perl-TimeDate-1.16-1.i386.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://mirror.contribs.org/smeserver/contribs/erantrua/e-smith/5.6/stable/windows-update/sme-cache-windows-1.0-3.noarch.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://mirror.contribs.org/smeserver/contribs/star/mitel/contrib/e-smith-service-control/5.5/e-smith-service-control-1.1.0-06.noarch.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://www.activeservice.co.uk/sme/contribs/sme-dhcp-dns-0.9-rc1.noarch.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://www.developit.fr/FichePratique/SMEServer/perl-Net-Ping-2.24-1.i386.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://www.developit.fr/FichePratique/SMEServer/wol-0.6.0-3.i386.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://www.developit.fr/FichePratique/SMEServer/e-smith-dhcpmanager-1.4-6.noarch.rpm

cd ..
echo "Done .."
echo ""

echo "Samba 2.2.8a .."
mkdir /root/work/samba
cd /root/work/samba
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/development/RPMS/samba-common-2.2.8a-2cb.i386.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/development/RPMS/samba-2.2.8a-2cb.i386.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/development/RPMS/samba-client-2.2.8a-2cb.i386.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/development/RPMS/samba-swat-2.2.8a-2cb.i386.rpm
echo "Done .."
echo ""

echo "SSH .."
mkdir /root/work/ssh
cd /root/work/ssh
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/OpenSSH/openssh-3.9p1-1es1.i386.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/OpenSSH/openssh-clients-3.9p1-1es1.i386.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/OpenSSH/openssh-server-3.9p1-1es1.i386.rpm
cd ..
echo "Done .."
echo ""

echo "SSL .."
mkdir /root/work/ssl
cd /root/work/ssl
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/OpenSSL/openssl-0.9.6m-1es1.i386.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/OpenSSL/openssl-devel-0.9.6m-1es1.i386.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/OpenSSL/openssl-perl-0.9.6m-1es1.i386.rpm
cd ..
echo "Done .."
echo ""

echo "Webmail .."
mkdir /root/work/webmail
cd /root/work/webmail
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/WebMail/e-smith-imp-1.10.0-04dm.noarch.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/WebMail/e-smith-kronolith-0.8.1-02.noarch.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/WebMail/e-smith-mnemo-0.8.0-04.noarch.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/WebMail/e-smith-nag-0.8.0-05.noarch.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/WebMail/horde-2.2.5-1dm.noarch.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/WebMail/imp-3.2.5-01dm.noarch.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/WebMail/kronolith-1.1.2-1es.noarch.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/WebMail/mnemo-1.1.2-1es.noarch.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/WebMail/nag-1.1.1-1es.noarch.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/WebMail/turba-1.2.2-1es00.noarch.rpm
cd ..
echo "Done .."
echo ""

cd /root

echo "Apache .."
wget http://norlug.org/NORLUG_RPM_key.asc
gpg --import NORLUG_RPM_key.asc
gpg --import NORLUG_RPM_key.asc
rm -f NORLUG_RPM_key.asc

mkdir /root/work/apache
cd /root/work/apache

wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://mirrors.kernel.org/redhat/redhat/linux/7.3/en/os/i386/RedHat/RPMS/compat-glibc-6.2-2.1.3.2.i386.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://mirror.datapipe.net/norlug/redhat-7.3/RPMS/db4-4.0.14-4.norlug.i386.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://mirror.datapipe.net/norlug/redhat-7.3/RPMS/python2.3-2.3.4-2.norlug.i386.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://mirror.datapipe.net/norlug/redhat-7.3/RPMS/mod_ssl-2.8.22-1.norlug.i386.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://mirror.datapipe.net/norlug/redhat-7.3/RPMS/apache-1.3.33-2.norlug.i386.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://mirror.datapipe.net/norlug/redhat-7.3/RPMS/apache-devel-1.3.33-2.norlug.i386.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://mirror.datapipe.net/norlug/redhat-7.3/RPMS/apache-manual-1.3.33-2.norlug.i386.rpm
cd ..
echo "Done .."
echo ""

echo "MYSQL .."
mkdir /root/work/mysql
cd /root/work/mysql
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://mysql.mirror.cygnal.ca/Downloads/MySQL-4.0/MySQL-server-4.0.21-0.i386.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://mysql.mirror.cygnal.ca/Downloads/MySQL-4.0/MySQL-client-4.0.21-0.i386.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://mysql.mirror.cygnal.ca/Downloads/MySQL-4.0/MySQL-devel-4.0.21-0.i386.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://mysql.mirror.cygnal.ca/Downloads/MySQL-4.0/MySQL-shared-compat-4.0.21-0.i386.rpm
cd ..
echo "Done .."
echo ""

echo "Securemail .."
mkdir /root/work/securemail
cd /root/work/securemail
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://www.pagefault.org/code/e-smith/securemail/6.0/e-smith-securemail-6.0.1-01dc.noarch.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://www.pagefault.org/code/e-smith/securemail/6.0/e-smith-smtp-authentication-6.0.1-02dc.noarch.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://www.pagefault.org/code/e-smith/securemail/6.0/e-smith-ssl-imap-6.0.1-02dc.noarch.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://www.pagefault.org/code/e-smith/securemail/6.0/e-smith-ssl-mailfront-6.0.1-02dc.noarch.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://www.pagefault.org/code/e-smith/securemail/6.0/e-smith-ssl-popd-6.0.1-02dc.noarch.rpm
cd ..
echo "Done .."
echo ""

echo "Awstats .."
mkdir /root/work/awstats
cd /root/work/awstats
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://nx.dyndns.info/packages/RPMS/awstats/awstats-sme-server-2.3.3-0.noarch.rpm
cd ..
echo "Done .."
echo ""

echo "PHPmyadmin .."
mkdir /root/work/phpmyadmin
cd /root/work/phpmyadmin
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://mirror.contribs.org/smeserver/contribs/nightspirit/e-smith-phpmyadmin/e-smith-phpmyadmin-2.6.0-11.noarch.rpm
cd ..
echo "Done .."
echo ""

echo "Dungog Utils .."
mkdir /root/work/dungog
cd /root/work/dungog
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://www.dungog.net/sme/files/dungog-mailblocking-1.0-3.noarch.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://www.dungog.net/sme/files/sme-server-update-system-1.0-1.noarch.rpm
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://www.dungog.net/sme/files/dungog-proftpd-chroot-0.1-5.noarch.rpm

cd ..
echo "Done .."
echo ""

echo "Rootkit Hunter .."
mkdir /root/work/rkhunter
cd /root/work/rkhunter
wget -nc -nd -S --tries=0 --append-output=/root/work/download.log http://www.ibiblio.org/pub/Linux/distributions/smeserver/contribs/dthomas/smeserver/6.x/Contrib/rkhunter/smeserver-rkhunter-1.1.8-1.noarch.rpm
cd ..
echo "Done .."
echo ""

cd /root/work

echo "Updates Download Complete"
echo ""
echo "Now verifying download process completed with no errors"

IS_ERROR=pic /root/work/download.log | grep -c ERROR

if [ $IS_ERROR -eq 1 ]
then
echo "Some updates failed to download, please review the /root/work/download.log file for details"
else
echo "Downloads completed successfully.  Please run the Update.sh script to install these updates"
fi


update.sh

#!/bin/sh

cd /root/work

chmod +x *.sh

sh spamfilter_install.sh

sh antivirus_install.sh

sh php4.3.8-upgrade.sh

cd /root/work

cd ssh
rpm -Uvh *.rpm
cd ..

cd ssl
rpm -Uvh *.rpm
cd ..

cd webmail
rpm -Uvh e-smith-imp-1.10.0-04dm.noarch.rpm
rpm -Uvh imp-3.2.5-01dm.noarch.rpm
rpm -Uvh horde-2.2.5-1dm.noarch.rpm
rpm -Uvh turba-1.2.2-1es00.noarch.rpm
rpm -Uvh kronolith-1.1.2-1es.noarch.rpm
rpm -Uvh mnemo-1.1.2-1es.noarch.rpm
rpm -Uvh nag-1.1.1-1es.noarch.rpm
rpm -Uvh e-smith-kronolith-0.8.1-02.noarch.rpm
rpm -Uvh e-smith-mnemo-0.8.0-04.noarch.rpm
rpm -Uvh e-smith-nag-0.8.0-05.noarch.rpm
/sbin/e-smith/signal-event post-upgrade
cd ..

cd phpmyadmin
rpm -Uvh e-smith-phpmyadmin-2.6.0-11.noarch.rpm
cd ..

cd awstats
rpm -ivh awstats-sme-server-2.3.3-0.noarch.rpm
cd ..

cd apache
rpm -Uvh compat-glibc-6.2-2.1.3.2.i386.rpm
rpm -Uvh db4-4.0.14-4.norlug.i386.rpm
rpm -Uvh python2.3-2.3.4-2.norlug.i386.rpm
rpm -Uvh apache-*.rpm
rpm -Uvh mod_ssl-2.8.21-1.norlug.i386.rpm
cd ..

cd mysql
service mysqld stop
rpm -e --nodeps mysql mysql-server
rpm -e mysql-devel
rpm -e mysqlclient9
rpm -Uvh MySQL-*.rpm
chkconfig --levels 2345 mysql on
mv -f /etc/rc.d/init.d/mysql /etc/rc.d/init.d/mysqld
rm -rf /etc/rc.d/rc7.d/S90mysqld
ln -s /etc/rc.d/init.d/mysqld /etc/rc.d/rc7.d/S90mysqld
/sbin/e-smith/config setprop mysqld LocalNetworkingOnly no
/sbin/e-smith/expand-template /root/.my.cnf
ln -s /usr/sbin/mysqld /usr/libexec/
service mysqld restart
/usr/bin/mysql_fix_privilege_tables
cd ..

cd updates
rpm -Uvh *.rpm
cd ..

cd samba
rpm -Uvh *.rpm
cd ..

cd securemail
rpm -ihv e-smith-securemail-6.0.1-01dc.noarch.rpm \
e-smith-smtp-authentication-6.0.1-02dc.noarch.rpm \
e-smith-ssl-imap-6.0.1-02dc.noarch.rpm \
e-smith-ssl-mailfront-6.0.1-02dc.noarch.rpm \
e-smith-ssl-popd-6.0.1-02dc.noarch.rpm
cd ..

cd dungog
rpm -Uvh *.rpm
cd ..

cd rkhunter
rpm -ivh smeserver-rkhunter-1.1.8-1.noarch.rpm
cd ..

echo "The server needs to reboot, press any key"
read answer
reboot
..................

Offline gregswallow

  • *
  • 651
  • +1/-0
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #51 on: November 09, 2004, 01:18:50 AM »
I don't have time to try it at the moment, but if it works for you, go ahead and paste all that into the wiki page.

My only suggestion would be now that you have added error checking to the download script, combine the two scripts into one - I guess replacing:
Code: [Select]
echo "Downloads completed successfully. Please run the Update.sh script to install these updates"
...with the content of the update script.

Super job!

Offline compdoc

  • ****
  • 211
  • +0/-0
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #52 on: November 09, 2004, 01:55:23 PM »
Many thanks to Greg Swallow for this script. It used to take me hours to install these packages by hand.

Now I can get a new server up and running in no time, and with everything (almost) that I need running on it.

Now if only someone could automate the installation of lm_sensors and sysmon.  ;-)

Very cool, dude...

aussie

making a 'replacement' sme6.01 box
« Reply #53 on: November 10, 2004, 11:22:09 AM »
Hi greg! It looks like youve done the forums proud with your excellent work!

I have a 6.01 box split across 2 drives that I need to get back to one: so a REPLACEMENT seems in order!
(I can build it on a new driev and still ge tto the old one too!)
I am hoping you can take a moment to set me on the right track to do it smoothly!...

1. Maybe Ive missed something but for the life of me I cannot find the lastest sme:
is it the Mar04 6.01-01 plus the update4? or is there a 6.01-04 around?

2a. Do i simply use your script or is that on top of a 'fresh basic 6.01-01' install,?

2b. I think I should start that basic install from the re-installation floppy created (to keep settings)

3. all I really need is sme6.0, clamav, mondo (gee THAT rocks!) and www-blocking for some IPs

4. am i lost, if so I should read what??
(links to documents that result from searches seem to be broken, although forum entries work)

thanks in GREAT anticipation, Robert

mbachmann

[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #54 on: November 12, 2004, 11:40:46 AM »
1. http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/6.0.1/iso/ is the current version. Some developers have "more current" versions but you should not care.

2a use the script on whatever sme you like.

3. you can comment out entries in the script, the packages then will not be installed.

4. You can try Nietzsche ;-)

Offline charlien

  • ***
  • 88
  • +0/-0
    • http://www.rn-computing.com
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #55 on: November 15, 2004, 06:32:39 PM »
I get "directory not found" when I run this line:
wget -nc --tries=0 ftp://ftp.pbone.net/mirror/norlug.org/redhat-7.3/RPMS/db4-4.0.14-4.norlug.i386.rpm

I can't see a redhat-7.3 directory either. Is it gone?
...

ergozd

[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #56 on: November 15, 2004, 08:07:46 PM »
Chipster "re-furhished" his website(-s)...

Try

wget -nc --tries=0  http://mirror.datapipe.net/norlug/redhat-7.3/RPMS/db4-4.0.14-4.norlug.i386.rpm

Best rgds, Ergin

Offline stefan24

  • ****
  • 483
  • +0/-0
    • www.sme-server.de
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #57 on: November 17, 2004, 03:40:08 PM »
Quote from: "ergozd"
wget -nc --tries=0  http://mirror.datapipe.net/norlug/redhat-7.3/RPMS/db4-4.0.14-4.norlug.i386.rpm
Best rgds, Ergin


OK, I changed this in the wiki script now.
(beside linking to the newer Apache RPMs)

What about using your PHP 4.3.9 update instead of the 4.38 update? Any reason, why we should stay at 4.3.8?

And I would prefer splitting the updates of already  installed apps like PHP, OpenSSH, Apache and the installation of new contribs.

Stefan

ryan

[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #58 on: November 17, 2004, 05:18:41 PM »
Hello all,

I like to let things brew a bit before jumping in....Things are looking very good in this forum.  I am impressed with the progress.  Good job and thank you for your efforts!

I have a Dell PE600 available for testing...I want to make this Dell a clone of my current 6.0.1-01 production server.  The end goal is to have my cloned (test) production server upgraded and fully functional.  Anyone tried this yet or have any suggestions?  If I am jumping the gun here, please say so...no rush to begin testing.  

ryan

Offline gregswallow

  • *
  • 651
  • +1/-0
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #59 on: November 17, 2004, 11:54:14 PM »
Quote from: "stefan24"
And I would prefer splitting the updates of already  installed apps like PHP, OpenSSH, Apache and the installation of new contribs.


Best to leave the script as-is - that way you could just comment out the parts you dont want to install/upgrade.  Or if you want to (and have some spare time), add some if/else logic to the script to let the user press y/n to install each section.  Or even better, make the script detect what is installed and do the appropriate action.  You could see some examples in this script: http://mirror.contribs.org/smeserver/contribs/ergozd/scripts/MySQL-4_0_21.sh - which could replace the current MySQL download/install on the wiki page btw.

Greg

Offline stefan24

  • ****
  • 483
  • +0/-0
    • www.sme-server.de
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #60 on: November 18, 2004, 03:59:54 PM »
Hi Greg,

Quote

... add some if/else logic to the script to let the user press y/n to install each section.  Or even better, make the script detect what is installed and do the appropriate action.  


I'll try that.

Quote
You could see some examples in this script: http://mirror.contribs.org/smeserver/contribs/ergozd/scripts/MySQL-4_0_21.sh - which could replace the current MySQL download/install on the wiki page btw.


I found also the PHP 4.3.9 update script from Ergin. I think this one could be used, too!?

Stefan

Offline gregswallow

  • *
  • 651
  • +1/-0
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #61 on: November 18, 2004, 08:37:54 PM »
Quote from: "stefan24"

I found also the PHP 4.3.9 update script from Ergin. I think this one could be used, too!?


Give it a try :) And if it works please update the wiki page with any changes after you test it out yourself.  There were also some good suggestions by smeghead (download verification, etc) and me (combining the 2 scripts into one) on page 3 of this thread that haven't got put into the wiki page yet.  Maybe give those a try as well.

Greg

Offline bushinc

  • **
  • 62
  • +0/-0
    • http://www.bushinc.com
www.dungog.net files unavailable
« Reply #62 on: November 18, 2004, 09:09:20 PM »
Anyone have an alternate download location for dungog-mailblocking-1.0-3
...


Offline bushinc

  • **
  • 62
  • +0/-0
    • http://www.bushinc.com
[Announce]: Update script for 6.0.1-01 for testing (v2)
« Reply #64 on: November 22, 2004, 02:31:16 AM »
Thanks.  I waited and noticed dungog.net came back up.

Steve
...

Offline gregswallow

  • *
  • 651
  • +1/-0
NEW VERSION
« Reply #65 on: November 26, 2004, 11:20:46 PM »
I just put up a completely updated version on the Wiki page, it has the error checking for downloads thanks to help from smeghead, and I changed a few of the contribs around a bit.  It works better than the previous version, and the error checking stops you from continuing if there is a dead/changed link.  

Thanks to everyone who kept the other version up to date, and please continue with this new version.

Wiki Page:
http://no.longer.valid/phpwiki/index.php?pagename=Latest%20version%20of%20update%20scripts

Greg Swallow

PS - I started a new forum post since this one is getting a little long...any comments about the new version lets discuss it here:
http://forums.contribs.org/index.php?topic=24972.0