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.

  1. 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 wget utility:

    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:

    1. You can download a special version of wget here (author's page here). This also has a script, MIRROR.BAT, which will execute the above-mentioned command line.
    2. 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.
    3. Extract the .zip file you just downloaded into (for example) E:\
    4. Run the MIRROR.BAT file by double-clicking on it.
    5. Wait for the process to complete.

  2. 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/...

  3. 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.

  4. 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
  5. Replace the URLs http://...... with the URLs you determined in step 2.

  6. If you need to set a Web proxy server, uncomment the option lines and edit as appropriate.

  7. Save the file.

  8. Issue upgrade local, or upgrade name if you used a different profile name in step 3. Wait for the packages to be installed.

  9. Reboot the DCM to complete the upgrade.

Content and images © 2009 Güralp Systems unless otherwise stated. Comments to the webmaster.