WCE Triage Update

WCE Triage softawre update

This describes the steps to update the network server, USB stick and the installation laptops. Some of steps are the same.

Network server update

Updating requires an internet connection. If the machine has a wifi, it’s probably easier to use the wifi. By default, the wifi network tries wcetriage/thepasswordiswcetriage. You can use any wifi SSID/Password but it involves editing /etc/netplan/ files. It would be easier to temporary create a guest wifi network and use it. For the machine with more than 4 ethernet port, one of port is left for DHCP. For example, papa bear has 1 on-board ethernet and 4 ethernet on PCI-E card. On-board ehternet can be connected to LAN for internet connection. For baby bear, if you have a USB-to-Ethenet adapter, it would be easier, but then again, it would require to edit a netplan file.
1. Power up
2. Login as “triage”
3. Start terminal
4. make update
5. python3 -m wce_triage.setup.update_share
6. python3 -m wce_triage.setup.update_triage_ui
7. python3 -m wce_triage.setup.update_client

make update

In /home/triage, there is a Makefile. “make update” runs the “update” section of Makefile, which runs pip3 command to download the wce_triage package from test.pypi.org.

update_share

This syncs the latest disk image metadata (aka .disk_image_types.json) files in the “wce_triage” package to the wce’s directory under /usr/local/share as well as the nfs mounts for netboot clients.

update_triage_ui

This downloads the latest triage UI (React.JS app) from WCE’s google drive and deployes in the WCE’s triage-ui directory.

update_client

This copies “/usr/local/lib/python3.6/dist-packages” directory to the netboot clients.

Triage/USB stick update

Updating requires an internet connection. It is definitely easier to use a laptop with wifi, and the wifi is “wcetriage”.
1. Boot from the USB stick and choose “Update” option in the boot menu which is the 3rd option of boot entry.
2. If you fail to chose “update” mode, the machine boots and mounts USB stick with read-only so you cannot update.
3. Wait for the triage screen to show up
4. Hit ctrl-alt-F1 to switch to terminal
5. Login as “triage”
6. make update
7. python3 -m wce_triage.setup.update_share
8. python3 -m wce_triage.setup.update_triage_ui
Unlike installation server, no need for “update_client” as there is no netboot client.

Leave a Reply

Your email address will not be published. Required fields are marked *