Get Update Files

Get Update Files

The first step is to get the component files onto at least one computer in the classroom using the tl-comp-pull command.

You can pull updates from two sources:

  • The Internet (Bastion): The main TechLit update server.
  • A Local Computer (LAN): Another computer in the same room that already has the files.

Note

The examples in this guide use the curriculum component, but these commands work for any component. Simply replace curriculum with the name of the component you wish to pull (e.g., desktop, admin, control).


Method 1: From the Internet (Bastion)

Use this method when you have an internet connection. You only need to do this on one computer to download the updates for the entire classroom.

1. Check Internet Connection

Ensure you can connect to the TechLit update server.

ping bastion.techlitafrica.org

2. Find the Latest Version (Optional)

You can check the latest available version of a component before pulling.

# Check for the 'control' component, for example
tl-comp-latest control http://bastion.techlitafrica.org

3. Pull the Component

Execute the pull command to download the component. If the connection is interrupted, you can safely rerun the command to resume the download.

Tip

The command’s final argument is the source. For the bastion, use http://bastion.techlitafrica.org (or the shorthand http://bastion).

# Pull a standard component (e.g., curriculum)
tl-comp-pull curriculum http://bastion

# The desktop component requires a specific version
tl-comp-pull desktop http://bastion 23.3.0

4. Verify the Download

Check that the component was downloaded successfully.

# Check the locally available version of 'curriculum'
tl-comp-latest curriculum

Method 2: From a Local Computer (LAN)

Use this method to copy updates from another computer on the same network, which avoids multiple internet downloads.

The computer you are pulling from is the “source” machine, and the computer you are pulling to is the “destination” machine.

1. Identify the Source Machine

You will need the hostname or IP address of the source computer. For example, tl-1234.

2. Verify Connection

From the destination machine, make sure you can connect to the source machine.

ping tl-1234.local  # Replace with the source hostname

3. Pull the Component

From the destination machine, run the pull command. The final argument is the source. For a local computer, use its hostname.

# Pull the 'curriculum' component from host 'tl-1234'
tl-comp-pull curriculum tl-1234.local

4. Verify the Download

Check that the component was copied successfully to the destination machine.

tl-comp-latest curriculum

Getting Components from a USB

You can also use a USB drive to update components on a local machine. To do this, launch the Manage Components tool and select “Update Components (from USB)”. ts (from USB)".