Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: gregswallow on November 26, 2004, 11:29:52 PM

Title: Version 3 of unofficial update script
Post by: gregswallow on November 26, 2004, 11:29:52 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
Title: Version 3 of unofficial update script
Post by: Tib on November 27, 2004, 01:15:46 PM
hello greg,

and I just updated my server last night :(

Now I'll have to do it again.

Great work guys.

Ohh yeh ... the last update worked fine on my slightly modified 6.0.1-01 install. Nothing broke ... nothing I have found yet anyway.

I'll try out the new setup soon.

Tib
Title: Version 3 of unofficial update script
Post by: jcoleman on November 27, 2004, 05:05:40 PM
Greg,

I fixed a small typo in the script in the wiki.  

In line 286 you had echo spelled "ehco".  Other than that, this thing is great!

Thanks for the fine work!

-jeff
Title: Version 3 of unofficial update script
Post by: stefan24 on November 29, 2004, 12:13:11 PM
Hi Greg!

I just found your update while testing my version of the script. I would not recommend the MySQL script from ergozd, until he fixes some errors (I will write him immediately).

I either would not use /root/plus, but leave all paths relative to the pwd.

I also added in my version
 - a ping check for existance of www.contribs.org,
 - a check for SME 6.0.1-01,
 - a question, if the optional contribs should be downloaded and installed
 -  and a optional e-mail to me, if there are download errors in the script (not stable until now)

I will put in the stable parts of my script ASAP.

But I like your download status bar. <g>

Stefan
Title: Update script for SME 6.0
Post by: stefan24 on November 29, 2004, 02:39:22 PM
Hi!

I created an update script for SME 6.0 (final) to a SME 6.0.1-01.

I will put this in the Update Script at
http://no.longer.valid/phpwiki/index.php?pagename=Latest%20version%20of%20update%20scripts
if someone with an existing SME 6.0 server will test it.
I compared the rpmlists of two SME servers, one from a SME 6.0 final, one from a SME 6.0.1-01 server.

I installed a plain new SME 6.0 final server und used this script. Afterwards it told me 6.0.1-01 everywhere and I found no difference between the RPM lists. Only on ssh login, I saw a "Welcome to Mitel Networks SME Server" instead of "Welcome to SME Server 6.0.1-01"

As always, no guarantee, that your SME server will works afterwards.

#!/bin/sh
echo "Checking SME version..."
rpm -qa > rpmlist
IS_SME600=cat rpmlist | grep -c e-smith-release-6.0-11
if [ $IS_SME600 -ne 1 ] ; then
echo "This update only supports SME 6.0 final - Exiting..."
exit 1
fi
mkdir 601update
cd 601update
wget -nc --tries=0 -a download.log http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/6.0.1/RPMS/e-smith-base-4.14.1-16.noarch.rpm
wget -nc --tries=0 -a download.log http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/6.0.1/RPMS/e-smith-email-4.14.0-07.noarch.rpm
wget -nc --tries=0 -a download.log http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/6.0.1/RPMS/e-smith-formmagick-1.2.2-02.noarch.rpm
wget -nc --tries=0 -a download.log http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/6.0.1/RPMS/e-smith-horde-1.10.0-02.noarch.rpm
wget -nc --tries=0 -a download.log http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/6.0.1/RPMS/e-smith-hosts-1.12.0-02.noarch.rpm
wget -nc --tries=0 -a download.log http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/6.0.1/RPMS/e-smith-ldap-4.10.0-03.noarch.rpm
wget -nc --tries=0 -a download.log http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/6.0.1/RPMS/e-smith-lib-1.14.0-10.noarch.rpm
wget -nc --tries=0 -a download.log http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/6.0.1/RPMS/e-smith-lib-Tai64n-1.14.0-08.noarch.rpm
wget -nc --tries=0 -a download.log http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/6.0.1/RPMS/e-smith-lilo-1.12.0-04.noarch.rpm
wget -nc --tries=0 -a download.log http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/6.0.1/RPMS/e-smith-LPRng-1.11.0-06ewf.noarch.rpm
wget -nc --tries=0 -a download.log http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/6.0.1/RPMS/e-smith-manager-1.10.0-02.noarch.rpm
wget -nc --tries=0 -a download.log http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/6.0.1/RPMS/e-smith-mysql-1.10.0-02.noarch.rpm
wget -nc --tries=0 -a download.log http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/6.0.1/RPMS/e-smith-release-6.0.1-01.noarch.rpm
wget -nc --tries=0 -a download.log http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/6.0.1/RPMS/e-smith-support-1.4.4-04.noarch.rpm
wget -nc --tries=0 -a download.log http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/6.0.1/RPMS/initscripts-6.67-1es25.i386.rpm
wget -nc --tries=0 -a download.log http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/6.0.1/RPMS/samba-2.2.8a-2cb.i386.rpm
wget -nc --tries=0 -a download.log http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/6.0.1/RPMS/samba-client-2.2.8a-2cb.i386.rpm
wget -nc --tries=0 -a download.log http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/6.0.1/RPMS/samba-common-2.2.8a-2cb.i386.rpm
rpm -Uvh *.rpm
cd ..
/sbin/e-smith/signal-event post-upgrade
echo "The server needs to reboot, press any key"
read answer
reboot

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

Please report any errors, so that I can update the
V3 update script on the documentation site.

Stefan
Title: smeplus errors
Post by: adam_w on November 29, 2004, 08:27:31 PM
Can anyone tell me why i get an output of the following when i try to run the smeplus script?

____________________________________________________
[root@***** scripts]# sh smeplus.sh
: command not found
: command not found
: command not found

If you'd like you can log the output of this script for review later:
Before typing 'sh smeplus.sh' type 'script smeplus.log'
...and after the script is complete type 'exit'

You can hit CTRL+C now if you want to stop and do that
...or press any key to continue

': not a valid identifier
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
Downloading files...Please be patient, 100MB? of downloads
[-----------------------]
: command not found
: command not found
: command not found
: command not found
: command not found
___________________________________________________

any help would be great!

Thanks in advance.[/u]
Title: Version 3 of unofficial update script
Post by: cydonia on November 29, 2004, 10:18:39 PM
Could i use this script on a 6.0.1 that is in use?

Any problems people have experienced to look out for?


I don't really have a testing server at the moment so i will have to deploy it onto my production one.
Title: Version 3 of unofficial update script
Post by: gregswallow on November 29, 2004, 11:05:39 PM
Quote from: "stefan24"
I created an update script for SME 6.0 (final) to a SME 6.0.1-01.

Could you make a new wiki page for that - just so the two don't get confused.

Quote from: "stefan24"
I either would not use /root/plus, but leave all paths relative to the pwd.

Why?  I don't understand what you mean.
Quote from: "stefan24"

I also added in my version
 - a ping check for existance of www.contribs.org,
 - a check for SME 6.0.1-01,
 - a question, if the optional contribs should be downloaded and installed
 -  and a optional e-mail to me, if there are download errors in the script (not stable until now)

Sounds cool - can you share the check for 6.0.1-01 code with us - or pop it into the Wiki page.  The email is cool - just don't make the emails go to me too :-P  I get enough!  I was going to put in an optional section - but I thought people can just comment out the parts they don't want, I just thought I'd leave it all so everyones contribs get tested together.
Quote from: "stefan24"

But I like your download status bar. <g>

Thanks :-)
Title: Re: smeplus errors
Post by: stefan24 on November 30, 2004, 08:29:04 AM
Quote from: "adam_w"
Can anyone tell me why i get an output of the following when i try to run the smeplus script?
____________________________________________________
[root@***** scripts]# sh smeplus.sh
: command not found
: command not found
: command not found
[...]


You transfered the script to the SME server with a Binary method, so that Windows CR/LF are used instead of the unix LF. Using a ASCII or Text method while transfering the script would solve that problem.

This problem is one point, where I would prefer a script (like the PHP, SpamFilter or AntiVirus scripts), which could be downloaded via wget directly on the server without the requirement to extract it from a client and move it to the SME server.
Title: Version 3 of unofficial update script
Post by: stefan24 on November 30, 2004, 09:06:05 AM
Quote
Quote
I created an update script for SME 6.0 (final) to a SME 6.0.1-01.

Could you make a new wiki page for that - just so the two don't get confused.


I intended to include my new script in your script, so that even users with SME 6.0 can update to the latest version. But maybe I just test for existance of SME 6.0 final and direct them to the new wiki page!?

Quote
Quote
I either would not use /root/plus, but leave all paths relative to the pwd.

Why?


I don't like to install the updates in /root/..., but in a directory /Install. So I could start the script in /Install and it will put all RPMs there (and leave them there) Furthermore I tested the download script from a Windows client, and after renaming it to .BAT, it downloaded all files when using relative paths.
Just for the case, the SME Server has no direct internet connection (rare case, I know) or someone wants to make a CD-ROM for updating customer's SME servers. But I know, that the other scripts (AV, SpamFilter, PHP, MySQL) require an online connection, too.

Quote

can you share the check for 6.0.1-01 code with us - or pop it into the Wiki page.


OK.
Title: Version 3 of unofficial update script
Post by: gregswallow on November 30, 2004, 06:37:12 PM
Quote from: "stefan24"
I intended to include my new script in your script, so that even users with SME 6.0 can update to the latest version. But maybe I just test for existance of SME 6.0 final and direct them to the new wiki page!?


Oh, I didn't understand that's what you wanted to do - sounds good (to include it), but do you think there will be problems if people have a modified 6.0 server and they use this script?  Go for it, but I think if you do that you should put a warning to back up first, or backup and restore onto a test server and try the upgrade on that first.
Title: Version 3 of unofficial update script
Post by: stefan24 on December 01, 2004, 10:12:15 AM
Quote from: "gregswallow"
do you think there will be problems if people have a modified 6.0 server and they use this script?


Sure, could be, but I think there are many 6.00 / 6.01 installations which has not been modified in any way.

Look at my new message screen in the wiki. We could add a suggestion for backing up the data before the update.

I just don't know, if the server has to be rebooted after updating from 6.0 to 6.01. I'll try that later.

BTW: Don't install a SME 6.0 final, if SME 6.01 is already installed on the hard disk. Anaconda will stop with errors.
Title: Version 3 of unofficial update script
Post by: kohne on December 01, 2004, 02:44:14 PM
I did not test the latest greates all-integrated script yet, but I have some issues with the earlier scripts:

This e-smith server is used as gateway for another mailserver (mercury on Novell). This works great, as all mail is filtered for virusses en spam before it reaches the Novell server.

However, there are some issues in this scenario:

-mailblocking is blocking all users not known as local. Which is in this case about everybody, because the userlist (100+) and their aliasses are only maintained on the Novell server, not on e-smith. I had to adjust the mail-blocking rules for that. (And I screwed up, so for a day the server was misused by some bloke from taiwan as open relay  :-(
-the spamfilter does tag the mail, but does not get rid of it. This also relies on local users, with procmail.

Just to take into consideration.

P
Title: Version 3 of unofficial update script
Post by: compdoc on December 03, 2004, 02:45:56 AM
adam_w, are you editing the script (copy/pasting, etc) in windows, then uploading to the SME server? If so, that’s causing the problem.

Its tricky converting text back and forth sometimes. There are linefeeds and hidden text that screws it up. Id recommend first creating the file using pico while SSH’d into SME.

After the file is created properly, you can then open and edit the files with notepad or wordpad correctly thru SSH.

You may have to try a few ways to get it right...
Title: Version 3 of unofficial update script
Post by: compdoc on December 03, 2004, 03:19:23 PM
On running the script, I get several warnings:

warning: user duke does not exist - using root

Which brings up the point - some contribs have reports that are emailed to root, which in SME at least, does not have a mailbox. Any easy way to correct this?


Also, there is a warning to change the password for MySQL:

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h entrance password 'new-password'


The first command is accepted, the second command is not:

/usr/bin/mysqladmin: connect to server at 'servername' failed
error: 'Host 'servername.domain.com' is not allowed to connect to this MySQL server'

(I've changed the server & domain name to protect the innocent) Is this a big problem if the first password was changed? Or should I get the 2nd command to work?
Title: Version 3 of unofficial update script
Post by: gregswallow on December 03, 2004, 06:14:42 PM
You should not have changed the password - it is not necessary

Do this to reset the password:

Code: [Select]
/etc/rc.d/init.d/mysqld stop
/etc/e-smith/events/actions/conf-mysql-password
/etc/rc.d/init.d/mysqld start
Title: Version 3 of unofficial update script
Post by: gregswallow on December 03, 2004, 06:17:55 PM
Quote from: "compdoc"
Id recommend first creating the file using pico while SSH’d into SME.

On windows you should be fine copying and pasting into either wordpad or notepad and saving the file, and just upload it somewhere they tou can download it from your new SME server.

And it has been said before, but maybe needs to again, that since this updates SSH, you can't run this while logged in with SSH.
Title: Version 3 of unofficial update script
Post by: compdoc on December 03, 2004, 06:37:21 PM
Actually, the errors described by adam_w occur from using wordpad - its happened to me several times. I've found that pasting into notepad, saving the file to the desktop, transferring via ssh, opening then saving with pico, produces a perfect file.

And yikes - I have always used SSH to install these scripts. Does this mean SSH isnt updated correctly or at all? I've never seen this mentioned in the thread.

Be nice if the instructions and tips were included at the beginning of the http://no.longer.valid/phpwiki/index.php?pagename=Latest%20version%20of%20update%20scripts page.

Even including the command to run the script would be a nice touch - if its been a while since Ive used sh, I have to look it up online. And the tip about not having to change the mysql password, since it clearly tells you do to so during the install, would be cool...
Title: Version 3 of unofficial update script
Post by: gregswallow on December 03, 2004, 08:21:13 PM
Quote from: "compdoc"
Be nice if the instructions and tips were included at the beginning of the http://no.longer.valid/phpwiki/index.php?pagename=Latest%20version%20of%20update%20scripts page.

Feel free to add those tips to the Wiki page - anyone can do it :-)

I never had a problem with wordpad - but I did note that if you edit the file with pico, when you change something it sometimes mysteriously adds a line break on a ling line of text.
Title: FTP transfer
Post by: adam_w on December 04, 2004, 06:41:52 AM
Thanks for the quick advice stefan24 and compdoc!  I made the file in notepad and transfered via FTP and it worked great!  has anyone noticed slow keyboard response on the SME server after the update??   Thanks again!  Hats off to all the contribs!
Title: Version 3 of unofficial update script
Post by: smeghead on December 04, 2004, 07:31:05 AM
Check out http://www.crimsoneditor.com

Its a free/donation based programming editor that can save in Unix/Linux mode by default.

I use it for all my SME scripting and it is excellent for the job.

Highly recommended.
Title: Version 3 of unofficial update script
Post by: stefan24 on December 08, 2004, 03:48:19 PM
Greg!

You reapplied this part:

Code: [Select]
#reminder to log script output (dont erase this - useful for debugging any problems)
[...]


although I already put it in my "welcome screen":

Code: [Select]
echo "If you like you can log the output of this script  "
[...]


In your code, everyone, who is pressing any key too fast will dismiss this information, while I request to press an "Y" to proceed.

Please remove your part again, if you agree with me <g>
Title: Version 3 of unofficial update script
Post by: stefan24 on December 08, 2004, 03:57:09 PM
I made a shell script which extracts the smeplus.sh script from the wiki page to my webserver (once every night, with an archive of other versions. later maybe only upon changes)

Now you just can get the latest script directly from your SME server with

wget http://sme.braunstein.de/update/smeplus.sh
Install it as before with "sh smeplus.sh"

Test it and enjoy the new convenience!
Title: Problem with script
Post by: ElFroggio on December 11, 2004, 07:17:08 PM
For the last week, I get an error message when verifying that all the downloads are done:

5 packages were not downloaded.

Then it aborts. I have used the "script smeplus.log", it does not show which packages are not downloaded.

Am I the only one that this happens to?

Any suggestion?
Title: Version 3 of unofficial update script
Post by: renet on December 11, 2004, 08:18:27 PM
Read the log file /root/plus/plus.log

change this part in the script.

#download securemail
mkdir -p /root/plus/securemail
cd /root/plus/securemail
wget -nc -nd -S http://www.pagefault.org/download/rpms/RPMS/noarch/e-smith-ssl-mailfront-6.0.1-02dc.noarch.rpm -a /root/plus/plus.log
wget -nc -nd -S http://www.pagefault.org/download/rpms/RPMS/noarch/e-smith-smtp-authentication-6.0.1-01dc.noarch.rpm -a /root/plus/plus.log
wget -nc -nd -S http://www.pagefault.org/code/e-smith/securemail/6.0/e-smith-ssl-imap-6.0.1-02dc.noarch.rpm -a /root/plus/plus.log
wget -nc -nd -S http://www.pagefault.org/download/rpms/RPMS/noarch/e-smith-ssl-mailfront-6.0.1-02dc.noarch.rpm -a /root/plus/plus.log
wget -nc -nd -S http://www.pagefault.org/code/e-smith/securemail/6.0/e-smith-ssl-popd-6.0.1-02dc.noarch.rpm -a /root/plus/plus.log
cd /root/plus
echo -n "."
Title: Version 3 of unofficial update script
Post by: stefan24 on December 11, 2004, 08:53:56 PM
Hi!

This does not work either! Damien seems to have changed the download possibilities of the securemail contribs via WGET. The files *are* there.

I have written an imail to him to solve this problem together with him. In the meantime just delete the securemail contrib lines twice in the script (once for download, second when installing them) or download them via a browser and copy them to the appropriate subdirectory.
Afterwards just start the script once again.

Stay tuned for a final solution...
Title: Version 3 of unofficial update script
Post by: elmarconi on December 12, 2004, 04:05:35 PM
Quote from: "stefan24"
Hi!

This does not work either! Damien seems to have changed the download possibilities of the securemail contribs via WGET. The files *are* there.

Stay tuned for a final solution...


He seems to dislike direct linking...

Using another user agent string for wget does the trick:

wget -nc -nd -S -U SMEupdater http://blahblahblah...
Title: Version 3 of unofficial update script
Post by: stefan24 on December 13, 2004, 07:43:15 AM
Hi!

Quote
He seems to dislike direct linking...
Using another user agent string for wget does the trick


I tried that, too, just to check, where the errror comes from, but that's no solution!

I have mailed Damien to get a solution, that can be included in the SMEplus script.

In the meantime just follow my workaround.
Better, I will remark the lines in the script now.
Title: Version 3 of unofficial update script
Post by: elmarconi on December 13, 2004, 11:31:56 AM
Quote from: "stefan24"
Hi!

I tried that, too, just to check, where the errror comes from, but that's no solution!



I agree, he will have some reason not to allow direct linking with wget, so using another user agent is not the way to go.
Title: Version 3 of unofficial update script
Post by: mbachmann on December 14, 2004, 01:10:16 PM
I added a note on the script page: saco-mitel-isoqlog-0.1-05.noarch.rpm is not recent. Latest is: saco-mitel-isoqlog-0.1-09.noarch.rpm. I will not change the script. File is not on contribs.org, find it here: http://www.saco-support.de/sme/saco-mitel-isoqlog/
Title: Version 3 of unofficial update script
Post by: gregswallow on December 15, 2004, 09:25:48 PM
Quote from: "stefan24"
I have written an imail to him to solve this problem together with him. In the meantime just delete the securemail contrib lines twice in the script (once for download, second when installing them) or download them via a browser and copy them to the appropriate subdirectory.
Afterwards just start the script once again.

Stay tuned for a final solution...

I can understand this - he should get credit for his work - and people should know that they are using his bandwith.  I don't think we should use tricks to undermine his method of not allowing the download unless he gives permission.  

Maybe suggest to him that for the purposes of this script we could create a notice that pops up inside the script, saying something like:

"You are about to download and install Securemail - created by Damian Curtain and the download is provided by www.pagefault.org - Please see his website for more information: http://www.pagefault.org/howto/securemail.shtml - Please support him and thank him if you find his contribution useful"
Title: Version 3 of unofficial update script
Post by: stefan24 on December 15, 2004, 09:38:00 PM
Hi everybody!

The solution about the Securemail Contribs was much easier than expected. It was not Damien who changed the behaviour of his web server, but his provider for all of the sites he is hosting. Damien said, that we indeed could fake the browser type to get the files again, but I wanted to confirm, that he does not get problems with his provider, when we do so.
I hope, I will get a confirmation mail from Damien within the next 1-2 days, so I will re-remark  :-D the Securemail Contribs then.

Still stay tuned.
Title: Version 3 of unofficial update script
Post by: smeghead on December 16, 2004, 02:56:38 AM
.. I tried with:

-U "Internet Explorer"

and this works, so I have updated the script with this change and re-enabled the option

HTH
Title: Version 3 of unofficial update script
Post by: stefan24 on December 16, 2004, 08:53:30 AM
Quote from: "smeghead"
... so I have updated the script with this change and re-enabled the option
HTH


NO, that helps NOT! I wrote im my last posting, that I want to wait until I get the final confirmation from Damien!!

And I would have used "SMEupdate" instead of "Internet Explorer".
Title: Version 3 of unofficial update script
Post by: stefan24 on December 17, 2004, 04:23:36 PM
Hi!

So, now I added a german information. Could someone else edit the script and complete the french translation (and maybe add other langauges like spanish)?

I have done an online check (ping to www.contribs.org), make contrib install optional, and let the user send an error mail to me, if there are errors while downloading.
(I only get the plus.log with this mail and the root e-mail address, no other informations. )

The only problem could be a not yet working e-mail configuation, while updating with the script.
Title: Version 3 of unofficial update script
Post by: gregswallow on December 17, 2004, 07:08:27 PM
Nice work Stefan.  It seems lots of people have been checking out the update script.  http://no.longer.valid/phpwiki/index.php?pagename=Latest%20version%20of%20update%20scripts is the 23rd (out of 968!) most visited page on contribs.org :-) - see http://no.longer.valid/phpwiki/index.php?pagename=MostPopular

Regarding what features we should add next...I was thinking about installing yum and creating a repository just for systems updated with this script.  There is a yum contrib here - http://mirror.contribs.org/smeserver/contribs/dmay/smeserver/6.x/beta/yum/

I made a howto on a wiki page here a month ago with a sort of extreme/experimental upgrade for SME6 - http://no.longer.valid/phpwiki/index.php?pagename=LatestRedHat7.3RPMsUpdate  That was a bit extreme - lots of stuff broke - but it is a guide maybe for a scripted install of yum and some other updates.  I think we could use yum to add some more updates (maybe just updates from fedoralegacy) - it is pretty automated for upgrading the kernel for one thing.
Title: Version 3 of unofficial update script
Post by: cydonia on December 19, 2004, 08:50:41 AM
Huge thanks to gregswallow and all who contributed to smeplus!

Its fantastic, installed perfectly without a glitch, no post upgrade problems at all.

Wonderful.
Thanks for creating this great script.
Title: Version 3 of unofficial update script
Post by: compdoc on December 20, 2004, 05:25:19 AM
There's slight problem with script. I'm changing these lines:

#download Antivirus script
cd /root/plus
wget -nc -nd -S http://mirror.contribs.org/smeserver/contribs/swerts-knudsen/SpamFilter/antivirus_install.sh -a /root/plus/plus.log
echo -n "."

#download Spamfilter script
cd /root/plus
wget -nc -nd -S http://wiki.contribs.org/downloads/SpamFilter/spamfilter_install.sh -a /root/plus/plus.log
echo -n "."


To this:

#download Antivirus script
cd /root/plus
wget -nc -nd -S http://mirror.contribs.org/smeserver/contribs/swerts-knudsen/AntiVirus/antivirus_install.sh -a /root/plus/plus.log
echo -n "."

#download Spamfilter script
cd /root/plus
wget -nc -nd -S http://mirror.contribs.org/smeserver/contribs/swerts-knudsen/SpamFilter/spamfilter_install.sh -a /root/plus/plus.log
echo -n "."


Hopefully, the swerts-knudsen version of the spamfilter was what you were going for...
Title: Version 3 of unofficial update script
Post by: girkers on December 20, 2004, 11:25:17 AM
Thanks compdoc for that I found too that these two contribs did not d/l but after applying your fix they did.

The only question I am left with is where the hell do I find the PHP admin panel.

Just by the by I applied this update to the Custom ISO with a few other things that I had loaded but it worked fine, sure I got a couple of messages about rpms already being installed, but apart from that all good.
Title: Version 3 of unofficial update script
Post by: mbachmann on December 20, 2004, 03:42:30 PM
I've found the advanced workgroup contrib from James Prize extremely useful:

e-smith-advworkgroup-0.3-4.noarch.rpm at /pub/Linux/distributions/smeserver/contribs/jprice/beta/e-smith-advworkgroup. I've tested it against Samba 2.2.8a and 3.0.7-1sme.
Code: [Select]

[root@horus root]# rpm -qi e-smith-advworkgroup
Name: e-smith-advworkgroup
Relocations: (not relocateable)
Version: 0.3
Vendor: James Price, Graeme Fleming
Release: 4
Build Date: Sun 07 Sep 2003 11:36:32 PM CEST
Build Host: es55.testdomain.com
Group: e-smith/addon
Source RPM: e-smith-advworkgroup-0.3-4.src.rpm
Size: 91920
License: GPL
Packager: James Price
Summary: Advanced Workgroup configuration
Description: e-smith addon server-manager panel to control additional Samba configuration settings
Title: Version 3 of unofficial update script
Post by: mophilly on December 20, 2004, 04:11:10 PM
Quote from: "girkers"
The only question I am left with is where the hell do I find the PHP admin panel.


Simply enter the URL to your domain and append it with "phpMyAdmin". E.g...
Code: [Select]
https:www.yourdomain.com/phpMyAdmin

Use your SME admin name and password to log on.
Title: Version 3 of unofficial update script
Post by: compdoc on December 20, 2004, 06:34:19 PM
Another bug?

when I first ran the script, it ran fine until it hit the spam and virus scanner problems mentioned above. But after fixing the script, and running again, I got the following error:

[root@entrance root]# sh smeplus.sh
: command not found
'meplus.sh: line 5: syntax error near unexpected token in
'meplus.sh: line 5: case "$start" in


I got it to work by removing the quotes from around "$start" on line 5.

Is this the correct thing to do? does this need correction in the script? its odd it ran fine the first time thru...
Title: Version 3 of unofficial update script
Post by: soprom on December 20, 2004, 07:40:18 PM
Cyrus-imap users should keep away from this script. It changes something in the authentification which is incompatible with the cyrus-imap server. The server will not work and you'll be done.
Title: Version 3 of unofficial update script
Post by: gregswallow on December 20, 2004, 08:54:14 PM
The antivirus script on contribs.org is not as up to date as the one on swerts-knudsen.com (nov 13 versus Nov 23 - and there are differences in the text).  Both the antivirus and the spamassassin scripts download rpm's from contribs.org though first, so I think it would be allright if we change the links for the scripts back to swerts-knudsen.com.
Title: Version 3 of unofficial update script
Post by: girkers on December 21, 2004, 03:10:35 AM
I tried the PHP admin thing, but I get "Document contains no data" message.

I also got an error about mysql not being able to find the script when I rang the update.  So until I can get to my PHPAdmin page, I can't tell was version of MySQL I am running.

Please help  :-?
Title: Version 3 of unofficial update script
Post by: smeghead on December 21, 2004, 03:35:06 AM
I changed the script to point to contribs cos when I last used it (a coupla dayas ago) there was a version mismatch between the script from swerts-knudsen and the files on contribs.

I figured it would be more relaible (tho poss less up to date) to get the script and files from the same place; the scripts point to contribs as the primary d/l location.

HTH
Title: Version 3 of unofficial update script
Post by: gregswallow on December 21, 2004, 11:06:43 PM
Quote from: "girkers"
I tried the PHP admin thing, but I get "Document contains no data" message.
...
Please help  :-?


Mophilly was on the right track - but watch your capitalization - https://www.example.com/phpmyadmin - that should work - /phpMyAdmin doesn't.
Title: Cyrus
Post by: soprom on December 22, 2004, 12:58:41 AM
When I applied the script, I lost the Cyrus-imap addon. So, following gregswallow's advice, I excluded updating apache (because of db4 - cyrus is depending on db3)

I've downloaded everything and applied the script manually, checking for cyrus to work correctly between each step. Since I did not reboot after each step, the test might not be good.

I skipped apache because of db4 and I also skipped
securemail because e-smith-imap is needed by e-smith-ssl-imap.

It resulted with a no go! Trying to login:
cyradm -user cyrus localhost
IMAP Password:  <<-- same pw as before upgrade
Login failed: authentication failure at /usr/lib/perl5/site_perl/5.6.1/i386-linux/Cyrus/IMAP/Admin.pm line 114
cyradm: cannot authenticate to server with  as cyrus

Maybe the double-bounce kit is the problem...

For more information, here's an overview of the installation of the cyrus-imap server:
Quote
rpm -e e-smith-imap
rpm -e devecot
/sbin/e-smith/config setprop imap status disabled
/sbin/e-smith/config setprop popd status disabled
cyrus-imapd-2.1.12-9.i386.rpm
cyrus-imapd-devel-2.1.12-9.i386.rpm
cyrus-imapd-utils-2.1.12-9.i386.rpm
cyrus-sasl-2.1.12-2.i386.rpm
cyrus-sasl-devel-2.1.12-2.i386.rpm
cyrus-sasl-gssapi-2.1.12-2.i386.rpm
cyrus-sasl-md5-2.1.12-2.i386.rpm
cyrus-sasl-ntlm-2.1.12-2.i386.rpm
cyrus-sasl-plain-2.1.12-2.i386.rpm
db3x-3.2.9-4.i386.rpm
perl-Cyrus-2.1.12-9.i386.rpm
Title: Version 3 of unofficial update script
Post by: girkers on December 22, 2004, 02:17:39 AM
Thanks Greg, but alas poor Yorick it does not work.  I think there may be an issue with my SSL not being turned on, but I do not where to turn.

 :hammer: for going off topic, sorry.
Title: Re: Cyrus
Post by: gregswallow on December 22, 2004, 02:59:33 AM
Quote from: "soprom"
Maybe the double-bounce kit is the problem...

I think you are on the right track.  You'll have to do the updates one by one and see what is causing the problem.  I think only the mysql update requires a reboot, the rest you should be able to see the effect right away.
Title: Version 3 of unofficial update script
Post by: soprom on December 22, 2004, 05:32:54 PM
I tried the script without the double-bounce part and the cyrus-imap is still broken. Too bad. I guess the package for cyrus wont survive the coming versions of the SME. It's a good thing this script was available. I can know focus on an other distro if I want a cyrus server. The Kolab2 seems to be most interesting.
Title: Version 3 of unofficial update script
Post by: gregswallow on December 22, 2004, 10:08:37 PM
I changed the script to integrate the mysql and php updates - a couple links in those scripts were dead.  It is better this way so now we have error checking for the downloads of those rpms.  Also updated the links to mysql 4.0.22 rpms.

:-)
Title: Version 3 of unofficial update script
Post by: Henk on December 25, 2004, 09:11:30 AM
After updating apache to 1.3.33 on SME 6.01.01 using the rpm's from the update script, my webserver suddenly went down after a couple of days.

Some more people (from a dutch site, minddigger.com) also updated apache to 1.3.33 and have troubles with it. The apache 1.3.33 rpm's from norlug seem to be unstable (at least on SME). Some people cannot access the servermanager anymore and have to restart https-admin before it works again.

Anyone else having problems with the apache update?
Title: Version 3 of unofficial update script
Post by: gregswallow on December 25, 2004, 10:38:56 PM
I did notice having to run:
Code: [Select]
service httpd-admin restart
...to access the server manager.

I just have that update installed on a test server, but really havent tested it too much.  The 1.3.31 or 32 version from norlug I have on another server though, and is working fine.

Maybe we should switch to using the apache rpms from fedoralegacy - eg.:
http://download.fedoralegacy.org/redhat/7.3/updates/i386/apache-1.3.27-6.legacy.i386.rpm

That one is dated Nov. 17th.   I don't know if it is as up to date as 1.3.33, the only notes about it I found are: http://fedoralegacy.org/updates/RH7.3/2004-12-03_FLSA_2004_2148__Updated_httpd__apache_and_mod_ssl_packages_fix_security_issues.html
Title: Version 3 of unofficial update script
Post by: koopmann on December 27, 2004, 12:48:06 PM
I upgradede with the script on a fresh SME601. After that I made a restore created on my former SME600 to restore users etc. Now I daily get the error from cron:
Cron <root@serv> /etc/clamscan
LibClamAV Warning: Unsupported multipart format knowbot' - report to bugs@clamav.net
LibClamAV Warning: Unsupported multipart format knowbot' - report to bugs@clamav.net
LibClamAV Warning: Unsupported multipart format knowbot' - report to bugs@clamav.net
LibClamAV Warning: Multipart MIME message contains no boundaries
LibClamAV Warning: messageFindArgument: no '=' sign found in MIME header
LibClamAV Warning: Multipart MIME message contains no boundaries
LibClamAV Warning: Unknown encoding type "plain" - report to bugs@clamav.net
LibClamAV Warning: Unknown encoding type "plain" - report to bugs@clamav.net
LibClamAV Warning: Ignoring empty field in " charset="
LibClamAV Warning: Ignoring empty field in " charset="
LibClamAV Warning: Unsupported multipart format knowbot' - report to bugs@clamav.net
LibClamAV Warning: Unsupported multipart format knowbot' - report to bugs@clamav.net.

Has anybody any idea to fix this.

Birger Koopmann
Title: Version 3 of unofficial update script
Post by: gregswallow on December 27, 2004, 07:30:51 PM
Quote from: "koopmann"
I upgradede with the script on a fresh SME601. After that I made a restore created on my former SME600 to restore users etc. Now I daily get the error from cron:
Cron <root@serv> /etc/clamscan
LibClamAV Warning: Unsupported multipart format knowbot' - report to bugs@clamav.net


Regarding the error:
http://www.google.ca/search?hl=en&q=Unsupported+multipart+format+%60knowbot%27+&btnG=Google+Search&meta=
...(try the 2nd url...it seems to be a bug in clamav .80 that is fixed in the upcoming .81 already.

The CLAMAV script is from:
http://sme.swerts-knudsen.com/howtos/howto_22.htm#Revision_History
...keep an eye on his page for an upgrade - you can run the script (antivirus_install.sh) again when he has .81 and that should fix your error.
Title: Version 3 of unofficial update script
Post by: Lum-chan on December 30, 2004, 01:21:31 PM
Hmm after installing this my FetchMail won't distribute mail to the local users anymore. Worked fine before.
What went wrong?

Is there something I overlooked?
Title: Version 3 of unofficial update script
Post by: gregswallow on December 30, 2004, 09:40:58 PM
Quote from: "Lum-chan"
Is there something I overlooked?

Yes - the warnings:
Code: [Select]
   echo '| This script is *no* official update and intended only for fresh     |'
    echo '| installations of SME 6.0.1-01 but *may* work with modified          |'
    echo '| SME 6.01 installations, too.                                        |'
    echo '|                                                                     |'
    echo '| No express or implied warranties are provided and its usage is at   |'
    echo '| your own risk.    


But seriously, take a look at http://www.schirrms.net/sme/SMEFetchMail.php for information on the Fetchmail contributions that this script installs.  That would likely be what broke your existing setup.  Check the server-manager if all your old settings are still there.  Maybe provide some more information if you would like some more help.
Title: Version 3 of unofficial update script
Post by: Lum-chan on December 30, 2004, 11:01:27 PM
Quote from: "gregswallow"

Yes - the warnings:
Code: [Select]
   echo '| This script is *no* official update and intended only for fresh     |'
    echo '| installations of SME 6.0.1-01 but *may* work with modified          |'
    echo '| SME 6.01 installations, too.                                        |'
    echo '|                                                                     |'
    echo '| No express or implied warranties are provided and its usage is at   |'
    echo '| your own risk.    


But seriously, take a look at http://www.schirrms.net/sme/SMEFetchMail.php for information on the Fetchmail contributions that this script installs.  That would likely be what broke your existing setup.  Check the server-manager if all your old settings are still there.  Maybe provide some more information if you would like some more help.


Ah oke, But that was quite the contrib which was installed and running before I applied the smeplus.sh script.
Maybe that's what went wrong. In the mean time I have re-installed a fresh copy of SME and check the scripts for contribs I want and install them manually.

Thanks for the advise!

I learned at least one thing or actually two: Always make a backup and learn to read the warnings :D

BTW: Oh well... I'm just starting with SME and have to get used to SME... Used Freesco before so this is quite new to me.
Title: Version 3 of unofficial update script
Post by: Denbert on December 30, 2004, 11:05:56 PM
Hi there,

I’ve used the smeplus.sh script to update my server, at I love all the new contribs in the server-manager.

After the reboot my server still says SME Server 6.0-04 in the server-manager

I this correct, or did I made any mistake?

There where NO errors written during the update, the script ran like a charm :-)

Cheers
Title: Worked fine without additional contribs
Post by: MSmith on December 31, 2004, 04:34:04 PM
Just weighing in ... this script did everything it was supposed to do, this first time I've run it.  I chose for this particular installation NOT to install the additional contribs and everything ran perfectly.  Many thanks!
Title: Version 3 of unofficial update script
Post by: arnoldob on December 31, 2004, 04:53:53 PM
Anyone notice e-mail breakage after running the update script, then doing a backup2ws 911 restore? I ran the upgrade on a fresh SME 6.01 install, then did the 911 restore job. I can logon the admin e-mail, but the other users have their logon rejected. Maybe that has something to do with the fact they were restored from backup but admin was of course already there.

I also notice SSH access went away, although it still shows enabled in the server-mananger remote access settings. Perhaps this is related since the securemail add-on is enabled and both are using SSL to logon?

I can't dig into logs right now because I can't access the box remotely <sigh>. Perhaps a more selective restore would be helpful, but which directories need to be included or left out? This is my home SME box I use for testing, so I can play around with things. I just wanted to know if others had similar problems and if any of the community's best and brightest had any suggestions.

Thanks
Title: Version 3 of unofficial update script
Post by: arnoldob on January 01, 2005, 09:54:08 PM
Well, I did another clean install and grabbed the update script from http://sme.braunstein.de/update/smeplus.sh
I have nothing else installed, it's a completely clean box. I get this when running the script:
[root@server root]# wget http://sme.braunstein.de/update/smeplus.sh
[root@server root]# sh smeplus.sh
smeplus.sh: line 43: syntax error near unexpected token |''
smeplus.sh: line 43:     echo '|                                                                     |''
[root@server root]#

I looked at line 43:
Code: [Select]
   echo '|              |'                                                            

It appears to be just a blank line in the French disclaimer. I deleted the entire line and the script worked. Someone might want to take a look at that.
Title: Broken Https
Post by: colwyn on January 02, 2005, 04:53:42 AM
Since installing the latest update script I am unable to remotly connect to my sme server via https.

The host on the remote network is in my allowed management networks and I can connect to the sme server via html (not server manager).

The only problem this causes me is not being able to use https for webmail or twiggi since I tunnel port 980 into ssh for server manager.

Thanks in advance..

Colwyn - Happy New Year and Happy for SME !!!!
Title: Version 3 of unofficial update script
Post by: mutmut on January 02, 2005, 06:27:30 PM
hello guys and happy new year for all !

Quote from: "arnoldob"

smeplus.sh: line 43: syntax error near unexpected token |''
smeplus.sh: line 43:     echo '|                                                                     |''
[root@server root]#

I looked at line 43:
Code: [Select]
   echo '|              |'                                                            
 
It appears to be just a blank line in the French disclaimer. I deleted the entire line and the script worked. Someone might want to take a look at that.


In fact, it's seems to be a problem of ' in the french translation due to our vocabulary.
So here is the modified translation with (AltGr+7 azerty) instead of '(key 4 in azerty), and with some minor modifications :
Code: [Select]
"f" | "F")
    lang="fr"
    #clear screen
    clear
    echo '/=====================================================================\'
    echo '| Ce script va télécharger des mises à jour pour votre SME 6.01 dans  |'
    echo '|  /root/plus/, installez-les et venez y ajouter quelques contribs.   |'
    echo '|                                                                     |'
    echo '| Ce script est une mise à jour *non* officielle et nest prévue que  |'
    echo '| pour des nouvelles installations de SME 6.0.1-01 mais *peut*        |'
    echo '| fonctionner avec des installations SME 6.01 déjà modifiées.         |'
    echo '|                                                                     |'
    echo '| Aucune garantie nest fournie et vous utilisez ce script à vos      |'
    echo '| propres risques.                                                    |'
    echo '|                                                                     |'
    echo '| Si vous acceptez ce qui est dit ci-dessus appuyez sur "y" pour      |'
    echo '| continuer sinon appuyez sur "n" ou "Enter" pour arrêter ce script.  |'
    echo '|                                                                     |'
    echo '| Si vous le souhaitez vous pouvez enregistrer les messages du script:|'
    echo '| Avant dentrer "sh smeplus.sh" tapez "script smeplus.log" ...       |'
    echo '| A la fin de lexécution de ce script tapez "exit"                   |'
    echo '|                                                                     |'
    echo '| press "d" for german informations, and "e" for english informations.|'
    echo '\=====================================================================/'
 ;;


hope it has helped, it worked for me.
Title: Version 3 of unofficial update script
Post by: arnoldob on January 02, 2005, 10:35:09 PM
Very quick work, Thank You  :-D
Title: Version 3 of unofficial update script
Post by: gregswallow on January 03, 2005, 12:32:13 AM
arnoldb, mutmut,

Unless I'm mistaken, you guys haven't edited the wiki page with the mistakes you just found and fixed - please do so :-)  Better to edit the wiki page and put a note or a comment why you made a change.  Thanks!
Title: Re: Broken Https
Post by: gregswallow on January 03, 2005, 01:03:28 AM
Quote from: "colwyn"
...since I tunnel port 980 into ssh for server manager.

I'm pretty sure you can't tunnel with SSH2, which is what the updates restrict you to (no SSH1 anymore).  I think you'll have to log in with putty and add your IP to the remote access list and then you can use server-manager remotely via https://example.com/server-manager
Title: Version 3 of unofficial update script
Post by: brownfox on January 03, 2005, 02:36:18 PM
Quote from: "Lum-chan"
Hmm after installing this my FetchMail won't distribute mail to the local users anymore.


This is the same problem i had.
I traced it back to the dungog mailblocking.

Go to the admin pannel from mailblocking and allow (for test) from: *@* and to *@* (mailblocking is now disabled).

it worked fine for me.
Title: Version 3 of unofficial update script
Post by: mutmut on January 04, 2005, 01:05:39 AM
gregswallow,
I agree with you for editing the wiki.
But when I tried to do so, and entered my nick and pwd, something was wrong.
That's why I've put the modifications here.
I don't know what's happened for editing the first time , but now I can :-)
perhap's my fingers were too big

mutmut
Title: Version 3 of unofficial update script
Post by: gregswallow on January 04, 2005, 03:05:53 AM
Quote from: "brownfox"
Quote from: "Lum-chan"
Hmm after installing this my FetchMail won't distribute mail to the local users anymore.


This is the same problem i had.
I traced it back to the dungog mailblocking.

Go to the admin pannel from mailblocking and allow (for test) from: *@* and to *@* (mailblocking is now disabled).

it worked fine for me.


I am going to comment out dungog-mailblocking in the script and put a note about this.  I had problems with it as well and ended up removing it.
Title: Version 3 of unofficial update script
Post by: gregswallow on January 04, 2005, 03:20:14 AM
Quote from: "mutmut"
...for editing the wiki.
But when I tried to do so, and entered my nick and pwd, something was wrong.

You have to first log in to the main site and then you can edit the wiki.  It is normal that your username and password don't work on that page that pops up if you try to edit a wiki page and are not already logged in.
Title: Version 3 of unofficial update script
Post by: brianr on January 04, 2005, 10:31:46 AM
I have just built a 6.01 plus the update, and i am unable to VPN into it (from Win/XP), whereas I was always able to do so for systems without the update.

Anyone else got the same problem?

I've checked that all ports are forwarded to the server (external webmail is working).
 
Any ideas where to look?
Title: Version 3 of unofficial update script
Post by: gregswallow on January 04, 2005, 06:28:03 PM
Quote from: "brianr"
I have just built a 6.01 plus the update, and i am unable to VPN into it...Any ideas where to look?

Silly question, but VPN (PPTP) is disabled by default - You changed the value in the Remote Access section of server-manager to something other than 0 already?
Title: Version 3 of unofficial update script
Post by: brianr on January 04, 2005, 08:58:21 PM
Yes, I have it set to 1

Actually looks as though it might be the router - I checked the Firmware version today and it is very old, so I will upgrade it first, and then see if it works.
Title: quick question
Post by: sfg on January 05, 2005, 09:35:58 AM
I'm a bit 'thick' on this so please don't rip me to shreds.
 
Q. - Is it possible to build all this into a single .iso?
Title: Re: quick question
Post by: gregswallow on January 05, 2005, 06:40:20 PM
Quote from: "sfg"
Q. - Is it possible to build all this into a single .iso?

You could download the script and all the files you want and put them on a CD, to save having to download them if each time if you are going to do it more than once.  Don't say the script isn't easy enough for you :-P
Title: spamassassin not active
Post by: speedracer on January 15, 2005, 12:30:29 AM
I just installed a test box and I notice that spamassassin is not active even when under the control panel "Enable Spam Filter: Yes" --> save/restart.

I have uninstalled spamassassin and reinistalled via smeplus.sh (great job!) script and from swerts website but spamassassin seems to be not active at all - ie email is not scanned for spam.

I have checked to see if perhaps promail is not active for the users but it is - any suggestions?
Title: Re: spamassassin not active
Post by: speedracer on January 15, 2005, 12:49:44 AM
Quote from: "speedracer"
I just installed a test box and I notice that spamassassin is not active even when under the control panel "Enable Spam Filter: Yes" --> save/restart.

I have uninstalled spamassassin and reinistalled via smeplus.sh (great job!) script and from swerts website but spamassassin seems to be not active at all - ie email is not scanned for spam.

I have checked to see if perhaps promail is not active for the users but it is - any suggestions?


Cancel that thought. Reinistalled a fresh copy and spamassassin is active....
Title: Problem with SSH-login
Post by: aarfing on January 16, 2005, 03:27:48 PM
Hey guys,

I'm quite a newbie, so bare with me  :-)

I ran the script on an upgraded 6.01-01, and during this process it said something about problems with dependencies on OPENSSH and OPENSSL, but the script just kept running.

Afterwords, I rebooted the server and my website and the Server Manager worked just fine. But now I can't log on with SSH - actually it connects to the server and asks for the password (tried as both root and admin), but it says "Access denied" no matter what.

My first thought was to get in there and try to upgrade OPENSSH and OPENSSL manually, but as it seems I can't do it through SSH, I'm a little puzzled on how to do it - if that is what needs to be done.

I hope you can help.

UPDATE
It seems this guy had the same problem http://forums.contribs.org/index.php?topic=25531.0,
but now my question is: how do I get console access without SSH? I have a monitor and keyboard attached to my server, but I can't seem to exit the Server console and get a normal console access.

UPDATE 2
It took the most of a day, but I finally got OPENSSH fixed by using the script in the previous update and by accessing the console with a simple "alt-f2" in the Server console.

With SSH-access it will now be a breeze to fix OPENSSL  :-D

Persistance is a bliss!  8-)
Title: More Info
Post by: Syntholis on January 16, 2005, 07:06:17 PM
Obviously, I'm a bigger newbie... :)

I have the same problem with a server that I build last night...

So you are saying, I should be able to login from the console, successfully?

And, can you tell me exactly what you did to fix ssh, and also for ssl when you fix it?

Thanks sooooooooo much, I was planning on having to rebuild it today instead...
Title: Version 3 of unofficial update script
Post by: aarfing on January 16, 2005, 07:27:13 PM
Yeah, this is what I did:

I attached a monitor and keyboard to the physical server and pressed "alt-F2" in the Server Console (the screen that appears when the server is finished booting) switching it to a normal bash.

Then I wrote:
# wget http://egerards.com/sme_ssh_fix/ssh_fix.sh
# sh ssh_fix.sh

And the script installed the new version of openSSH (although it wasn't able to remove the old ones first due to some sort of dependencies)

And then I rebooted.

Afterwards, I was able to use SSH again :)
Title: phpMyAdmin - 403 Forbidden
Post by: aarfing on January 16, 2005, 08:58:22 PM
Hi there,

I ran the script, and things seem to be working, except for one thing. When trying to access phpMyAdmin, I get:

"403 Forbidden" - "You don't have permission to access /phpmyadmin/ on this server."

My error-log says: "client denied by server configuration: /opt/phpMyAdmin"

My guess is that httpd.conf somehow didn't get updated with the proper permissions to access "/opt/phpMyAdmin" - but this is just a newbee-guess.

Is this a known bug? Any suggestions how to fix this?
Title: Thanx
Post by: Syntholis on January 17, 2005, 05:24:53 PM
Hopefully, I'll get to try that today... concerned with the phpmyadmin going away, since I run these servers remotely... but I'll gladly give it a shot.
Title: Version 3 of unofficial update script
Post by: gregswallow on January 19, 2005, 05:15:12 AM
To anyone thinking of installing the 6.5beta1 update with the CD over top of a server updated with the update script here - probably you will have major problems, and you might want to revert to the original versions of any packages that are are newer than what's included in the 6.5 update.  Probably better would be to install the updated rpms manually, rather than update with the CD.

I think we should create a new version of the update script based on the new 6.5 install.  I think we can remove the apache update, as there have been a few problems with it I think.
Title: Version 3 of unofficial update script
Post by: alexsmithmcp on January 23, 2005, 03:21:43 PM
worked perfectly without a single hitch - great work :D (6.0.1-01 Clean Instll)
Title: broken link need?
Post by: blockbuster on January 24, 2005, 11:57:08 PM
Following link has been changed and there for not all apache modules are downloaded:

was
http://ftp://ftp.pbone.net/mirror/norlug/redhat-7.3/RPMS/

is
http://ftp://ftp.pbone.net/mirror/norlug.org/norlug/redhat-7.3/RPMS
Title: Problem downloading from the script
Post by: ElFroggio on February 08, 2005, 11:02:23 PM
I always get 7 errors when I try doing the download.

Files not found when doing the download of the php update.

Is there any special trick for downloading them?

Any help will be appreciated

Thanks
Title: Version 3 of unofficial update script
Post by: Tib on February 09, 2005, 01:49:05 AM
Hello ElFroggio,

Thats because the updates have been updated to 4.3.10-3 :)

I've fixed up the links ... but I haven't tested out the update yet ... will do tonight.

Regards,

Tib
Title: Version 3 of unofficial update script
Post by: funkusmunkus on February 16, 2005, 07:04:13 AM
there's a link that needs fixing, and I'm not sure how to fix it, when i tried to edit the wiki it asked for a userid and password, it didn't accept mine, not sure where i went wrong.

anyway the link is for clamAV it should point to http://sme.swerts-knudsen.dk/downloads/AntiVirus/antivirus_install.sh

cheers
Title: Version 3 of unofficial update script
Post by: smeghead on February 16, 2005, 07:55:41 AM
A/V pointer updated
Title: Version 3 of unofficial update script
Post by: dhardy on February 16, 2005, 09:09:04 AM
oooh, that all happened very quickly ;-)

I downloaded the script, ran it, it failed on the AV, then there is a bug in the error 'mail to maintainer routine', it says something like 'missing ]' so I 've just looked at the wiki and - not knowing really what I'm doing - think this *may* be the error:

"if [ "$errormail" = "y"] ; then"

Should this be .....

"if [ "$errormail" = "y" ]; then"

?

I hacked  my copy to get the AV script from Jesper direct and then came back to post this error and found you speedy buggers had fixed the original prob with the script. Damn thats good. And its only 8am here so I'm still in my pajamas!
Title: Version 3 of unofficial update script
Post by: dhardy on February 17, 2005, 03:16:18 PM
Hi guys (again)...

I've just searched the forums for a solution to a problem with yi.org dynamic dns and found this post:

http://forums.contribs.org/index.php?topic=24163.msg97496#msg97496

Its a link to Charlie Brady's updated rpm for yi.org dynamic dns.

Any chance that could get included? Currently a fresh install with the update script run is unable to use yi.org without either a manual edit or this update.

Cheers,

David.
Title: just tried to use update script
Post by: stiperstones on April 24, 2005, 06:35:13 PM
i have just tried to use the update script and have come up against an error.
The /plus/plus.log indicates that the norlug rpm's are not downloading.
When i go to this site http://norlug.org/?op=rpms and look at this it says at this point you need to do this if using wget
Quote
If you are having issues downloading files;
Downloading files with CLI tools:
Many folks attempt to download our RPMs using CLI tools (such as CURL and wget), and fail. This is due to the fact that the URL needs to be contained in quotes (because of special characters in the URL). If you neglect to put the URL in quotes, the download will fail.



Not quite sure what it means any help appreciated.

Thanks alan
Title: Version 3 of unofficial update script
Post by: smeghead on April 24, 2005, 07:04:02 PM
Script updated with quotes for norlug downloads - tested the wget command with the quotes and it works fine.

HTH
Title: Thanks
Post by: stiperstones on April 24, 2005, 09:18:45 PM
Thanks smeghead

alan
Title: Version 3 of unofficial update script
Post by: stefan24 on May 03, 2005, 04:48:15 PM
Hi!

I changed Twiggi to Twig in the script. The latter is updated more often now and does not require any configuration in the web panel. Just install it and start http://servername_or_ip/twig/.
Title: Update script
Post by: specsd on June 08, 2005, 03:26:53 PM
Built a new 6.0.1 box - updates ran beautifully - Thanks!  8-)
One question - there used to be the ability to designate a user account to receive all the admin mail - I don't see this anymore.  Did I just miss it, or has the panel been changed during the updates?  :roll:

Suggested contrib to add to the script - webshare from I think it was Daryl's site?
I get a lot of use out of that one - others might too!
Title: Re: Update script
Post by: Garfield on June 08, 2005, 03:34:16 PM
Quote from: "specsd"
One question - there used to be the ability to designate a user account to receive all the admin mail - I don't see this anymore.  Did I just miss it, or has the panel been changed during the updates?  :roll:

It's still there where it was: under "Configuration" there's an entry called "E-mail"  ;-)
Title: Re: Update script
Post by: specsd on June 09, 2005, 01:05:52 PM
Quote from: "Garfield"
It's still there where it was: under "Configuration" there's an entry called "E-mail"  ;-)


<sigh>  Thanks - Guess I'm finally losing it after all these years.  :oops:
Title: help!!
Post by: irule on July 12, 2005, 06:09:05 PM
I installed the update script today on my 6.0.1 server-gateway, with some packages installed.
and it broke my mail!!

mail coming in is refused, and mail going out get an smtp-server error.

everything else seems to work.....

I disabled the virus scan and spam filter, and deleted everything in the rbl list.

rebooted several times, but no succes.....
Title: What Errors
Post by: ltc6netspec on July 15, 2005, 03:59:26 PM
Please list what errors you are getting.

 :-)
Title: Kronolith errors ? what do they mean ? how do i fix ?
Post by: KaiNeR on July 16, 2005, 03:23:37 PM
ever since i ran the install_horde30.sh i recieved these errors

Jul 16 13:25:01 p31000 HORDE[4467]: [kronolith] DB Error: no such table: SELECT vfs_data FROM horde_vfs WHERE vfs_path = '.horde/scheduler' AND vfs_name = 'horde_scheduler_kronolith' [nativecode=1146 ** Table 'horde.horde_vfs' doesn't exist] [on line 109 of "/home/httpd/html/horde/lib/Horde/Scheduler.php"]
Jul 16 13:25:01 p31000 HORDE[4467]: [kronolith] DB Error: no such table: SELECT vfs_id FROM horde_vfs WHERE vfs_path  = '.horde/scheduler' AND vfs_name = 'horde_scheduler_kronolith' [nativecode=1146 ** Table 'horde.horde_vfs' doesn't exist] [on line 73 of "/home/httpd/html/horde/lib/Horde/Scheduler.php"]

how do i stop them, i ressolve this matter,

Thanks
Anyhelp will be greatly appreciated
Title: Re: Kronolith errors ? what do they mean ? how do i fix ?
Post by: mrjhb3 on July 18, 2005, 06:57:23 AM
Quote from: "KaiNeR"
ever since i ran the install_horde30.sh i recieved these errors

Jul 16 13:25:01 p31000 HORDE[4467]: [kronolith] DB Error: no such table: SELECT vfs_data FROM horde_vfs WHERE vfs_path = '.horde/scheduler' AND vfs_name = 'horde_scheduler_kronolith' [nativecode=1146 ** Table 'horde.horde_vfs' doesn't exist] [on line 109 of "/home/httpd/html/horde/lib/Horde/Scheduler.php"]
Jul 16 13:25:01 p31000 HORDE[4467]: [kronolith] DB Error: no such table: SELECT vfs_id FROM horde_vfs WHERE vfs_path  = '.horde/scheduler' AND vfs_name = 'horde_scheduler_kronolith' [nativecode=1146 ** Table 'horde.horde_vfs' doesn't exist] [on line 73 of "/home/httpd/html/horde/lib/Horde/Scheduler.php"]

how do i stop them, i ressolve this matter,

Thanks
Anyhelp will be greatly appreciated


What version did you run this on?  It appears that your horde tables were not upgrade correctly, or you changed your VFS settings within the horde configuration.

JB
Title: Mail Traffic up 1800% since running update script
Post by: Neririn on July 18, 2005, 07:58:06 PM
On a server which usually gets < 50 emails a day, my spamfilter reports that Saturday and SUnday a total of 44000+ ham emails or 1800 1/hr.  Friday I ran the update script.  It could be coincidence, but I am wondering if something that was installed freaked out my machine.  I know after the update, the server did not come back on the first reboot.

/var/log/maillog is full of this
Jul 15 19:35:42 kobe spamd[2859]: connection from localhost [127.0.0.1] at port 34400
Jul 15 19:35:42 kobe spamd[2859]: info: setuid to qmailq succeeded
Jul 15 19:35:42 kobe spamd[2859]: processing message (unknown) for qmailq:404.
Jul 15 19:35:43 kobe spamd[2859]: clean message (-5.9/5.0) for qmailq:404 in 1.0 seconds, 1159 bytes.
Jul 15 19:35:43 kobe spamd[2859]: result: . -5 - ALL_TRUSTED,AWL,BAYES_00,NO_REAL_NAME scantime=1.0,siz$
Jul 15 19:35:46 kobe spamd[2858]: connection from localhost [127.0.0.1] at port 34404
Jul 15 19:35:46 kobe spamd[2858]: info: setuid to qmailq succeeded
Jul 15 19:35:46 kobe spamd[2858]: processing message (unknown) for qmailq:404.
Jul 15 19:35:47 kobe spamd[2858]: clean message (-5.9/5.0) for qmailq:404 in 1.1 seconds, 1159 bytes.
Jul 15 19:35:47 kobe spamd[2858]: result: . -5 - ALL_TRUSTED,AWL,BAYES_00,NO_REAL_NAME scantime=1.1,siz$


Has anyone else seen this? There are no vast ammounts of email in the mailboxes, just this spamfilter report.  Any suggestions will be greatly appreciated.

Neru
Title: Re: Kronolith errors ? what do they mean ? how do i fix ?
Post by: KaiNeR on July 18, 2005, 08:09:45 PM
Quote from: "mrjhb3"
Quote from: "KaiNeR"
ever since i ran the install_horde30.sh i recieved these errors

Jul 16 13:25:01 p31000 HORDE[4467]: [kronolith] DB Error: no such table: SELECT vfs_data FROM horde_vfs WHERE vfs_path = '.horde/scheduler' AND vfs_name = 'horde_scheduler_kronolith' [nativecode=1146 ** Table 'horde.horde_vfs' doesn't exist] [on line 109 of "/home/httpd/html/horde/lib/Horde/Scheduler.php"]
Jul 16 13:25:01 p31000 HORDE[4467]: [kronolith] DB Error: no such table: SELECT vfs_id FROM horde_vfs WHERE vfs_path  = '.horde/scheduler' AND vfs_name = 'horde_scheduler_kronolith' [nativecode=1146 ** Table 'horde.horde_vfs' doesn't exist] [on line 73 of "/home/httpd/html/horde/lib/Horde/Scheduler.php"]

how do i stop them, i ressolve this matter,

Thanks
Anyhelp will be greatly appreciated


What version did you run this on?  It appears that your horde tables were not upgrade correctly, or you changed your VFS settings within the horde configuration.

JB


i'm running a heavily modded SME 6.0.1 i've had to install squirrel mail temporily untill i can get horde working again, at the moment if i go to login to horde i just get a blank white screen.  :-?
Title: Version 3 of unofficial update script
Post by: wallyrp on July 28, 2005, 09:39:43 PM
Good Afternoon,

I hate to sound dumb here but my system is behind a proxy server. The SME box will not download anything from the web. It resolves all the names. When I lynx to a website, it states that it cannot open the page. I set the proxy server in the setup when setting up the server. Any ideas?

-- Doh, looked through the forums and found the answer. Ran the script and it failed to download three files. I didn't get the names as I was under a time crunch.
Title: Version 3 of unofficial update script
Post by: KaiNeR on July 28, 2005, 09:46:46 PM
what the heck does these message mean ??

#>tail /var/log/messages :
Jul 28 20:20:42 p31000 kernel: denylog:IN=eth1 OUT=
MAC=00:10:5a:d7:42:0a:00:0a:42:69:00:54:08:00 SRC=61.235.154.110 DST=213.105.20.22
LEN=345 TOS=0x00 PREC=0x00 TTL=35 ID=0 DF PROTO=UDP SPT=32873 DPT=1027 LEN=325
Jul 28 20:24:53 p31000 kernel: denylog:IN=eth1 OUT=
MAC=00:10:5a:d7:42:0a:00:0a:42:69:00:54:08:00 SRC=61.235.154.108 DST=213.105.20.22
LEN=345 TOS=0x00 PREC=0x00 TTL=35 ID=0 DF PROTO=UDP SPT=33802 DPT=1026 LEN=325
Jul 28 20:26:02 p31000 kernel: denylog:IN=eth1 OUT=
MAC=00:10:5a:d7:42:0a:00:0a:42:69:00:54:08:00 SRC=61.152.158.122 DST=213.105.20.22
LEN=506 TOS=0x00 PREC=0x00 TTL=41 ID=0 DF PROTO=UDP SPT=32782 DPT=1026 LEN=486
Jul 28 20:26:02 p31000 kernel: denylog:IN=eth1 OUT=
MAC=00:10:5a:d7:42:0a:00:0a:42:69:00:54:08:00 SRC=61.152.158.122 DST=213.105.20.22
LEN=506 TOS=0x00 PREC=0x00 TTL=41 ID=0 DF PROTO=UDP SPT=32782 DPT=1027 LEN=486
Jul 28 20:27:48 p31000 kernel: denylog:IN=eth1 OUT=
MAC=00:10:5a:d7:42:0a:00:0a:42:69:00:54:08:00 SRC=218.83.155.175 DST=213.105.20.22
LEN=334 TOS=0x00 PREC=0x00 TTL=42 ID=0 DF PROTO=UDP SPT=33629 DPT=1026 LEN=314
Jul 28 20:28:53 p31000 kernel: denylog:IN=eth1 OUT=
MAC=00:10:5a:d7:42:0a:00:0a:42:69:00:54:08:00 SRC=83.149.102.2 DST=213.105.20.22
LEN=42 TOS=0x00 PREC=0x00 TTL=53 ID=17611 DF PROTO=UDP SPT=4246 DPT=4666 LEN=22
Jul 28 20:30:38 p31000 kernel: denylog:IN=eth1 OUT=
MAC=00:10:5a:d7:42:0a:00:0a:42:69:00:54:08:00 SRC=218.92.11.36 DST=213.105.20.22
LEN=508 TOS=0x00 PREC=0x00 TTL=41 ID=0 DF PROTO=UDP SPT=33053 DPT=1026 LEN=488
Jul 28 20:30:38 p31000 kernel: denylog:IN=eth1 OUT=
MAC=00:10:5a:d7:42:0a:00:0a:42:69:00:54:08:00 SRC=218.92.11.36 DST=213.105.20.22
LEN=508 TOS=0x00 PREC=0x00 TTL=41 ID=0 DF PROTO=UDP SPT=33053 DPT=1027 LEN=488
Jul 28 20:34:31 p31000 kernel: denylog:IN=eth1 OUT=
MAC=00:10:5a:d7:42:0a:00:0a:42:69:00:54:08:00 SRC=61.152.158.122 DST=213.105.20.22
LEN=506 TOS=0x00 PREC=0x00 TTL=41 ID=0 DF PROTO=UDP SPT=32782 DPT=1026 LEN=486
Jul 28 20:34:31 p31000 kernel: denylog:IN=eth1 OUT=
MAC=00:10:5a:d7:42:0a:00:0a:42:69:00:54:08:00 SRC=61.152.158.122 DST=213.105.20.22
LEN=506 TOS=0x00 PREC=0x00 TTL=41 ID=0 DF PROTO=UDP SPT=32782 DPT=1027 LEN=486

i'm getting about 100 of these mails in my inbox everyday ? any help is greatly appreciated

i'm just not sure if its someone trying to hack me or performing some sort of attack on my SME server
thanks
Title: Version 3 of unofficial update script
Post by: cege72 on July 31, 2005, 10:36:50 PM
hi

when using french install of SME-Server, WGET "speak" french too :)

So, I think this line must customised for french lang :

Code: [Select]
IS_ERROR=pic /root/plus/plus.log | grep -c ERROR

to

Code: [Select]
IS_ERROR=pic /root/plus/plus.log | grep -c ERREUR

no ?

this is a example :

Code: [Select]
[root@sme plus]#wget http://www.dungog.net/sme/files/dungog-proftpd-chroot-0.1-6.noarch.rpm -a /root/plus/plus.log

--22:42:25--  http://www.dungog.net/sme/files/dungog-proftpd-chroot-0.1-6.noarch.rpm
           => dungog-proftpd-chroot-0.1-6.noarch.rpm'
Résolution de www.dungog.net... complété.
Connexion vers www.dungog.net[66.98.254.30]:80...connecté.
requête HTTP transmise, en attente de la réponse...
 1 HTTP/1.1 404 Not Found
 2 Date: Sun, 31 Jul 2005 20:42:20 GMT
 3 Server: Apache
 4 X-Powered-By: PHP/4.3.2
 5 Connection: close
 6 Content-Type: text/html
22:42:26 ERREUR 404: Not Found.


and this way we can translate

Quote
All files were downloaded successfully, cross your fingers, take a deep breath
...and if you dare press any key to continue


to

Quote
Tous les fichiers ont été téléchargés avec succès, croisez vos doigts, prennez une profonde respiration... et si vous osez appuyez sur une touche pour continuer



i'll be back for give you more help, or translation :)
Title: Version 3 of unofficial update script
Post by: RobF on August 11, 2005, 05:34:47 AM
An uninformed question. I upgraded using version 2 of this script. Everything working well. What happens if I now run version 3 of the script? Should I expect some problems?
Title: Re: Kronolith errors ? what do they mean ? how do i fix ?
Post by: xjuliox on January 26, 2006, 11:33:31 PM
Quote from: "mrjhb3"
Quote from: "KaiNeR"
ever since i ran the install_horde30.sh i recieved these errors

Jul 16 13:25:01 p31000 HORDE[4467]: [kronolith] DB Error: no such table: SELECT vfs_data FROM horde_vfs WHERE vfs_path = '.horde/scheduler' AND vfs_name = 'horde_scheduler_kronolith' [nativecode=1146 ** Table 'horde.horde_vfs' doesn't exist] [on line 109 of "/home/httpd/html/horde/lib/Horde/Scheduler.php"]
Jul 16 13:25:01 p31000 HORDE[4467]: [kronolith] DB Error: no such table: SELECT vfs_id FROM horde_vfs WHERE vfs_path  = '.horde/scheduler' AND vfs_name = 'horde_scheduler_kronolith' [nativecode=1146 ** Table 'horde.horde_vfs' doesn't exist] [on line 73 of "/home/httpd/html/horde/lib/Horde/Scheduler.php"]

how do i stop them, i ressolve this matter,

Thanks
Anyhelp will be greatly appreciated


What version did you run this on?  It appears that your horde tables were not upgrade correctly, or you changed your VFS settings within the horde configuration.

JB


I ran the install_horde30.sh i recieved the same error
I have the same problem , how can I do to upgrade my horde tables , where I can get a copy of this tables for SME Server 6.5

The error is :
HORDE[22284]: [kronolith] DB Error: no such table: SELECT vfs_id FROM horde_vfs WHERE vfs_path  = '.horde/scheduler' AND vfs_name = 'horde_scheduler_kronolith' [nativecode=1146 ** Table 'horde.horde_vfs' doesn't exist] [on line 78 of "/home/httpd/html/horde/lib/Horde/Scheduler.php"]

Thanks
PD : Sorry for my languaje I´m spanish
Title: Version 3 of unofficial update script
Post by: mrjhb3 on January 27, 2006, 06:45:02 AM
Search the script for all the lines that have scripts/sql in them.  Beginning with the fourth hit (using the script with comments on December 19th), you will see what directory the upgrade scripts are in.  You should be able to cd into those directories and run the appropriate script.  In your case, maybe all you have to update is Kronolith.

HTH,

JB