This page describes how to set up a machine to run the current PacNW Regional Contest OS image (the "Contest OS"). The contest image consists of the Ubuntu Linux operating system and its tools and utilities, together with contest-specific software such as various IDEs and language compilers to be used for the Regional Contest. The Contest OS image is based on, and directly derived from, the ICPC World Finals OS image.
There are essentially two approaches which can be used to set up a machine to run the Contest OS. The first involves creating a bootable thumb drive ("chip") containing the Contest OS. Booting a machine from this chip will cause the machine to start running the Contest OS.
The second approach involves first creating a bootable thumb drive, and then copying the Contest OS from the thumb drive onto an internal drive of the machine. After doing this, booting the machine from the selected internal drive will cause the machine to start running the Contest OS. Note that this second approach (installing the Contest OS onto an internal drive) starts with first creating a bootable thumb drive.
The following sections describe both the above approaches: first, creating a bootable thumb drive containing the Contest OS, and then (if desired) copying the Contest OS onto an internal drive.
Note: if you are a contest administrator or staff member involved in managing multiple Contest OS machines (for example, setting up a laboratory to host multiple teams, or managing and updating the Contest OS configuration), you may be interested in additional information provided at Additional Information for Contest Administrators. Also, if you have trouble with the following instructions you may find the information on this Troubleshooting page to be helpful.
There are many tools which can be used to create a bootable chip from the downloaded compressed image file. One such tool for creating an image using a Windows system is Rufus (more information can be found here). Another tool is Balena Etcher, which we have tested under both MS Windows and MacOS. Both these tools will uncompress the image file automatically.
We have used both of the above tools successfully many times. However, you can use any tool you like as long as it can create an EFI bootable image from the compressed (or manually uncompressed) IMG file.
Be sure to see Additional Notes, below, for further information regarding constraints on USB chips.
sudo -i echo -n > /etc/machine-id
You now have a USB chip with the fully-configured Contest OS image on it; we call this the "Contest OS chip".
This section only applies if you want to install the Contest OS onto your machine's hard drive (e.g. disk or SSD). If you want to run the Contest OS directly from the Contest OS USB chip, skip this section and proceed to the next one.
When this finishes, you have installed the Contest OS on the selected internal ("destination") disk.
To run the contest image, boot a computer from either the bootable thumb drive Contest OS chip created above, or from the internal drive onto which you have installed the Contest OS. This will start the contest image; you can login to the OS using the username team and password contest. Logging in will will put you at the Linux desktop configured as it will be for team machines at the Regional Contest.
We've tried to make installing the Contest OS image as easy and as universally-compatible as possible. However, creating a single installation which can be easily installed on the literally thousands of machine hardware configurations which exist is a nearly impossible task; it's understandable that it might not go perfectly for you. If you are having problems with installing the Contest OS, this page contains a few notes which may be helpful.
Revised: Sat Nov 16 17:18:18 UTC 2024