Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: nodch on March 24, 2004, 10:38:25 AM

Title: Update SMEserver remotely
Post by: nodch on March 24, 2004, 10:38:25 AM
Is there any way to update a smeserver remotely.
I have one running at an external site and am not able to get there for a few reasons.
Is there any chance to update such a server without using the update function ob the ISO disk?
I am running 5.5 and would like to update to the contribs build.

Thanks in advance for your answers.
Title: Update SMEserver remotely
Post by: chris burnat on March 24, 2004, 11:01:01 AM
Assuming you can acccess the server-manager (you will have to allow your IP address in remote access under remote network - have to be done on site), you could (i) create an ibay called update (ii) arrange to access this ibay with ftp or preferably sftp for yourself (iii) move updated rpms into this ibay  (iv) enable administrative command over ssh under in remote access (v) log as root via ssh (if using windows, try putty) (vi) bingo, you are on the command line, navigate to your update ibay, rpm -Uvh *rpm and so on.  Cheers, chris.
Title: Update SMEserver remotely
Post by: Anonymous on March 24, 2004, 11:04:56 AM
Is there - on any of the mirrors - a directory with all the updated RPMS?
Do you expect problems doing it that way? If have access to that box via ssh and could do it, I just try to assure that I will have a real 6.0.1 after that update

Thanks for your help
Title: Update SMEserver remotely
Post by: nodch on March 24, 2004, 11:40:43 AM
sorry forgot to log in with my user name
Title: Update SMEserver remotely
Post by: chris burnat on March 24, 2004, 11:41:46 AM
Yes, well... I am rather green at this game, and I find it difficult to  all relevant rpms on this site under downloads, I think they are on iblio....  But they can be found, and I am sure someone will point you (and I) in the right direction.  As for proceeding with a rather large upgrade program on a remote box which is presumably on line, I would prefer first to test this process on a non-production box - see how it pans out, then think about upgrading the remote box...  If the remote box has been customised, I would be doubly careful.  Hope it helps. chris
Title: Update SMEserver remotely
Post by: nodch on March 24, 2004, 11:43:39 AM
Thanks for that, hoepfully someone will help us out of this one.
Title: Update SMEserver remotely
Post by: chris burnat on March 24, 2004, 12:32:20 PM
Hello again, I found this:

For updates bringing you 'up to standard', take a look at the changelog text here:
 http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/development/changelog.txt

RPMS are at:
http://www.ibiblio.org/pub/Linux/distributions/smeserver/releases/development/RPMS/

cheers

chris.
Title: Update SMEserver remotely
Post by: nodch on March 24, 2004, 04:47:34 PM
ok so grabbing all those RPMS and doing a rpm -Uvh --force --nodeps "should" work ?
Title: Update SMEserver remotely
Post by: Anonymous on March 24, 2004, 07:49:00 PM
It might be wise to setup a test server on your own local network first and try to update that using ssh to prove it all works OK.

If OK then you can do it to the live remote server.

Regs
Ray
Title: Update SMEserver remotely
Post by: nodch on March 24, 2004, 08:21:06 PM
Ok, so could I say -  it should work this way?

I am asking this because I have to kill another server to get a testing box. This already is a testing system but you know...
Title: Update SMEserver remotely
Post by: jok11n on March 25, 2004, 06:56:49 AM
Quote from: "nodch"
Ok, so could I say -  it should work this way?

I am asking this because I have to kill another server to get a testing box. This already is a testing system but you know...


I would suggest not doing it, upgrading from 5.5 to 6.0 is known to have issues even when doing it locally, it has been suggested that upgrading to 5.6 first and then to 6.0 works but I have not seen this to be the case. On the occasion that I have attempted to go from 5.5 to 6.0 I ended up with a non bootable system. I have only seen details of network installs, I haven't seen anyone mention network upgrades, If you do manage to get it to work on your test server I would be interested in hearing about it, but I must say I would be surprised if you get it to work.
Title: Update SMEserver remotely
Post by: PeterG on March 25, 2004, 04:04:39 PM
There have been a couple of thread touching on this

Don't update directly from 5.5 to 6.0

the path is 5.6 to 5.6 then 6.0

There were some BIG changes in 5.6 and the update scripts in 5.6 managed this correcly but they are not as good in 6.0 as has been show in the previous post

As for doing it remotely....let us know how you get on.

Please do let us know how you get on as it is valuable information for the community.


PeterG.
Title: Update SMEserver remotely
Post by: whistler on March 26, 2004, 05:30:27 PM
Right now I am in the middle of updating SME6.0.unsupported with rpms starting from 18.12.03 found at the SME6.0.1 RPM folder and update folder at the ftp.ibiblio.org

anaconda-7.3-7es116.i386.rpm
anaconda-runtime-7.3-7es116.i386.rpm
e-smith-base-4.14.1-16.noarch.rpm
e-smith-email-4.14.0-07.noarch.rpm
e-smith-formmagick-1.2.2-02.noarch.rpm
e-smith-horde-1.10.0-02.noarch.rpm
e-smith-hosts-1.12.0-02.noarch.rpm
e-smith-ldap-4.10.0-03.noarch.rpm
e-smith-lib-1.14.0-10.noarch.rpm
e-smith-lib-Tai64n-1.14.0-08.noarch.rpm
e-smith-lilo-1.12.0-04.noarch.rpm
e-smith-LPRng-1.11.0-06ewf.noarch.rpm
e-smith-manager-1.10.0-02.noarch.rpm
e-smith-mysql-1.10.0-02.noarch.rpm
e-smith-release-6.0.1-01.noarch.rpm
e-smith-support-1.4.4-04.noarch.rpm
headers (folder with all files)
initscripts-6.67-1es26.i386.rpm
samba-2.2.8a-2cb.i386.rpm
samba-client-2.2.8a-2cb.i386.rpm
samba-common-2.2.8a-2cb.i386.rpm
samba-swat-2.2.8a-2cb.i386.rpm
TRANS.TBL (maybe useful?)

While connected over PPTP VPN,
I logged in with Putty (SSH2) as root and while in the folder where the rpms are located, gave a command
rpm -Uvh --force --nodeps *rpm

It reported something about smb.conf.rpmnew but otherwise no errors.

Now I am doing just for case a reboot to see wheter it works after the reboot.

Maybe I will update the bootloader too ;-)

Then I am going to update MySQL as guided in the Howto area, then I will update PHP and look wether Apache needs to be updated too.

Now I hope that the server will boot up correctly with VPN and SSH (enabled only for local network) access. Otherwise I have to go to the site.

If there is something else I should do, please let me know.
Maybe better would have been:
rpm -Uvh --replacefiles --nodeps *.rpm

OK, I will do
/sbin/e-smith/signal-event post-upgrade
lilo -v
/sbin/e-smith/signal-event reboot

Update:
Everything seems to be working, at least VPN and SSH are fine.
Unfortunately messages contains some errors regarding  formmagic :-?
http://forums.contribs.org/index.php?topic=21535.msg85138#msg85138