Obsolete Releases > SME 8.x Contribs
Installing Contribs in sme without internet access
mealogav:
Hi Janet - thanks for persevering with me ...
--- Quote ---It may be easier to setup a test SME server at home where you have Internet access, & use that to download & install contribs
--- End quote ---
That's exactly what I was trying to do this weekend and follow your instructions from 18th March 2013 http://forums.contribs.org/index.php/topic,49707.msg248691.html#msg248691
However - what I've discovered over the weekend is that a new sme8 iso image download requires over 300 packages and 245 Mb to bring it up to date. Some of those are necessary to satisfy dependancies during the phpMyAdmin and mcrypt contribs install.
I downloaded the packages that I thought were needed, as advised by stephdl on 17 March, copied them to an iBay and installed from there.
smeserver-phpmyadmin-3.5.2.2-6.el5.sme.noarch.rpm
phpMyAdmin3-3.5.8.1-1.el5.noarch.rpm
php53-php-gettext-1.0.11-3.el5.noarch.rpm
php53-mcrypt-5.3.3-1.el5.i386.rpm
libmcrypt-2.5.8-4.el5.centos.i386.rpm
BUT - as the production server (and initially my home server), had never been updated from the 25 May 2012 version that is still the iso available for download, what this flagged up is that there are loads of other updates needed. Even though I did a localinstall, I Iassume the packages available locally were used, and yum tried to find other not available locally from the mirror sites.
I know there is no "magic" - and I am learning alot through this exercise (just not enough!).
I gave up on the local install on my home server and plugged the internet connection back in and let it update and install the contribs.
mcrypt seems to have installed ok (it shows in a phpinfo listing), but although it apparently installed ok phpMyAdmin isn't working yet. I can see evidence of it in apache config files - but I have to look into this a bit more.
So thanks for your help. I think some of the more sophisticated answers (that I don't yet understand) are the real answer for my situation - like creating a local repository ... see next post in answer to Stephano.
Gavin
mealogav:
Hi Stefano
--- Quote ---please re-read carefully this post:
http://forums.contribs.org/index.php/topic,49707.msg248693.html#msg248693
--- End quote ---
Reading carefully is not the problem - trust me I've read all the posts Very carefully. Understanding them is the problem.
For example :
--- Quote ---Setup a virtual copy of your SME server
--- End quote ---
What does this mean? Does it just mean a different copy of sme server on a computer with internet access? Or is there something significant in the "virtual" description? If it means set up a virtual server (eg VMWare) and create a new sme server virtual machine, well sorry but your average sme home user doesn't have that kind of facility available! However I think this could be just a server with internet access - right?
--- Quote ---Setup a yum local repository
--- End quote ---
If I understand this "How To" correctly, this is going to create a copy of the sme repository? ie it's going to download all packages to a local directory on the local server Right?
Then if I copy this to my server with no internet access and issue cd to the root directory of this repository (the ibay directory), when I issue yum localinstall commands it should find all the local packages - right?
I assume that I could expand this principle and if I omitt the appropriate "exclude" options from the rsync command used to create the repository then contribs will be downloaded and can be installed from this local repos - right?
Thanks - I do really appreciate the help. Gavin
mealogav:
I now have a "test" sme server that I can disconnect from the internet to develop this technique further.
I've follow the suggestion mmccarn made in forum post :
http://forums.contribs.org/index.php/topic,49707.msg248693.html#msg248693
to set up a local yum repository and install from there.
I've followed the instructions at http://wiki.contribs.org/Yum_local_repository
and I have the local repos in a repos ibay on my normal hoem server sme machine. That all seems to have worked well and I can browse to it at http://192.168.11.2/repos/ and follow the links to
http://192.168.11.2/repos/releases/8/smeupdates/i386/repoview/ and see a html page of packages.
(Because after it has updated I want to install phpMyAdmin on my server that has no internet access,
I removed some of the exclusions from the rsync command so I actually have
repos/releases/8/smeupdates
repos/releases/8/smeaddons
repos/releases/8/smeextras
repos/releases/8/contribs
about 1.5GB)
So far so good ...
So on my separate sme server (without internet access), I do a fresh sme8 install from the iso, then follow the instructions for the "client"
[root@dell files]# /sbin/e-smith/db yum_repositories setprop smeupdates status disabled
ok
I modified the repository set command to suit sme8 (the example is for 7 and seems to have a spurious smeserver directory that doesn't exist on the sme8 mirror that I downloaded from - http://distro.ibiblio.org/ )
from BaseURL 'http://<yourServersIP or FQDN>/repos/smeserver/releases/7/smeupdates/$basearch' \
to BaseURL 'http://192.168.11.2/repos/releases/8/smeupdates/$basearch' \
[root@dell files]# /sbin/e-smith/db yum_repositories set smeupdates-local repository \
> Name 'SME Server - updates (local)' \
> BaseURL 'http://192.168.11.2/repos/releases/8/smeupdates/$basearch' \
> EnableGroups yes \
> GPGCheck yes \
> Visible yes \
> status enabled
[root@dell files]# signal-event yum-modify
ok so far ... BUT
when I try the
yum clean all command I get the following message that repeats every 2 seconds ...:
Loaded plugins: fastestmirror, protect-packages, smeserver
Existing lock /var/run/yum.pid: another copy is running as pid 3700.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 13 M RSS ( 22 MB VSZ)
Started: Wed Jul 10 10:08:35 2013 - 01:06 ago
State : Sleeping, pid: 3700
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 13 M RSS ( 22 MB VSZ)
Started: Wed Jul 10 10:08:35 2013 - 01:08 ago
State : Sleeping, pid: 3700
I assume this is yum re-configuring?? If you wait (about 20 mins) and repeat the command it seems to work ...
[root@dell files]# yum clean all
Loaded plugins: fastestmirror, protect-packages, smeserver
Cleaning up Everything
Cleaning up list of fastest mirrors
[root@dell files]#
I assume that in server-manager when I go to the "Software Installer" page the updates should now be located from the repos on the
192.168.11.2 server? Is that correct?
What I get is the normal message saying that "Updates are available" but when I click to install them in the scroll list that would normally show packages to be updated is the message:
--- Quote ---Could not - retrieve
[Errno 4] - IO Error:
--- End quote ---
I've tried to check the setting of the $basearch variable by using "echo". It appears to be empty?? Is this a concern? I'm only guessing, but I expected this to contain the cpu architecture eg "i386"
--- Quote ---[root@dell files]# echo $basearch
[root@dell files]#
--- End quote ---
I'm sorry to be such a pain about this but I feel I'm very close now and just need a final nudge in the right direction.
Thanks for any further help. Gavin
mealogav:
Even though there was just an error showing instead of packages, I tried clicking "Install" to see what messages I got ...
--- Quote ---Loaded plugins: fastestmirror, protect-packages, smeserver
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=os error was
[Errno 4] IOError:
Error: Cannot find a valid baseurl for repo: base
yum update Could failed: 256
The system needs to be reconfigured after adding or removing software, or applying updates.
--- End quote ---
I think this suggests that it's not trying to use the local repos on the other (local to my house at least) machine? Any clues why?
As an alternative, now that I have a local copy of all the rpm files etc in the repository, if I simply copied them to, for example, an ibay on the sme server that doesn't have internet access, what command would I issue to get the server to update all of sme from those files?
I know that for contribs I would copy the necessary rpms to a directory, cd to that ddirectory and issue something like :
"yum localinstall smeserver-phpmyadmin3"
"signal-event post-upgrade;signal-event reboot"
But what would the yum command be to get it to update all of sme server?
Thanks.
TerryF:
Issue this from a command line
db yum_repositories show
It will list all your repos and where they are pointing to
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version