Setting up a local mirror for enterprise license of Lineox Enterprise Linux updates
Setting up the server
Lineox has made four scripts packaged in lel3enterprise-1.2.1-1.noarch.rpm
(source rpm).
After installing it, you should edit the scripts and add the user name and password you got from Lineox.
You should also edit other variables to suit your setup. All the variables are located
at the start of the files and they are commented like in the acsync script excerpt below.
#!/bin/sh
#Variables, change these to suit your setup.
#
#Where to download
DESTDIR=/var/www/html/aclel
#Download CD images
DOCD=1
#Download DVD image
DODVD=0
#Username you got from Lineox
USER=
#Password you got from Lineox
export RSYNC_PASSWORD=
#There should be no need to change anything below this line.
If you don't edit them, you will get email to you root user account instructing you to edit them.
if [ "$USER" = "" ]
then
echo This script is not configured. Edit file /etc/cronjobs/acsync
echo and add username and password.
exit 0
fi
All the scripts will be installed to /etc/cronjobs directory and links to them will be created to
/etc/cron.daily directory. Having a separate /etc/cronjobs directory avoids the situation
where cron runs backup files created automatically by editors.
If you don't want /etc/cronjobs/acsync, /etc/cronjobs/lel4updates, /etc/cronjobs/lel3updates, and /etc/cronjobs/lel21updates to be run
each night, you can move the links for example to /etc/cron.weekly or remove them
and add a suitable line to your /etc/crontab file.
When acsync script is run the first time, it will take quite long time to complete.
After that, rsync transfers only the changed parts of the disk images and it runs much
faster.
Setting up web server restrictions
If your web server is behind a firewall and can be accessed only from machines
with a paid license, you don't have to set up access restrictions. If however your web
server is accessible from outside your organization, you should add lines like below
to your /etc/httpd/conf/httpd.conf:
<Directory "/var/www/html/lel4updates">
Order deny,allow
Allow from .example.com
Deny from all
</Directory>
<Directory "/var/www/html/lel3updates">
Order deny,allow
Allow from .example.com
Deny from all
</Directory>
<Directory "/var/www/html/lel21updates">
Order deny,allow
Allow from .example.com
Deny from all
</Directory>
<Directory "/var/www/html/aclel">
Order deny,allow
Allow from .example.com
Deny from all
</Directory>
Change the directories and the domain name to suit your setup. You can also
use IP address based restrictions to avoid name server queries. See the Apache manual
if you need more instructions about setting up restrictions.
After you have made the changes, restart Apache with command:
/etc/rc.d/init.d/httpd restart
Setting up the clients
All you need to do is to edit the /etc/apt/sources.list file and
add lines similar to the ones below and comment out the ones you don't need:
rpm http://yourrepository.domain.ex/ lel3updates/i386 updates
rpm-src http://yourrepository.domain.ex/ lel3updates/SRPMS updates
#rpm http://yourrepository.domain.ex/ lel21updates/i386 updates
#rpm-src http://yourrepository.domain.ex/ lel21updates/SRPMS updates
|