Koozali.org: home of the SME Server

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

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