Upgrading CMG-DCM units from local mirror
If you only have access to a local network, you can keep a local mirror of the software repository and have your DCMs use this for upgrading.
-
Make a copy of all the files in the directory http://www.guralp.net/cmgdcm/feeds, including all subdirectories, and put it in a suitable location on your Web server.
To download under Linux or any other unix-like system, use the
wgetutility:cd /path/where/removable/disk/is/mounted wget -np -nH -m http://www.guralp.net/cmgdcm/feeds/
If you have previously used this command to download packages into a directory, issuing it again in the same directory will only download files which have changed.Instructions for Windows:
- You can download a special version of
wgethere (author's page here). This also has a script,MIRROR.BAT, which will execute the above-mentioned command line. - Make sure that you can see the removable drive on the computer. For this example, we assume it is drive E:, but it could be anywhere.
- Extract the .zip file you just downloaded into (for example)
E:\ - Run the
MIRROR.BATfile by double-clicking on it. - Wait for the process to complete.
- You can download a special version of
-
Find out the URLs of the directories cmgdcm/feeds/familiar/familiar-0.7.2-base-pruned/armv4l and cmgdcm/feeds/gsl/gsl-1/armv4l on the local server. For example, they might be
http://dcm-mirror.example/cmgdcm/feeds/... -
On the DCM, copy the profile /etc/ipkg.conf to /etc/ipkg-local.conf, or ipkg-name.conf where name is a meaningful name for the new profile.
-
Use vi or nano to edit the new file. Look for the lines:
src base http://212.69.37.6/www.guralp.net/cmgdcm/feeds/familiar/familiar-0.7.2-base-pruned/armv4l src gsl-1 http://212.69.37.6/www.guralp.net/cmgdcm/feeds/gsl/gsl-1/armv4l
-
Replace the URLs http://...... with the URLs you determined in step 2.
-
If you need to set a Web proxy server, uncomment the option lines and edit as appropriate.
-
Save the file.
Issue upgrade local, or upgrade name if you used a different profile name in step 3. Wait for the packages to be installed.
Reboot the DCM to complete the upgrade.
