Step 5.5 · Ubuntu

Check everything, and report

One command that tests every tool from steps 2 to 5 and reports the result to your teacher. Run it once you have finished step 5.

Run this

$ curl -fsSL https://aikaryashala.com/system_setup/scripts/report_completion.sh | bash

It asks for your name and roll number, then sends them along with the result. Nothing is installed and nothing on your machine is changed.

What it checks

It does not simply look for the commands. A command can exist and still be unable to do its job — so it makes each one actually work:

StepWhat it does
2 Looks for all 15 core commands, then has jq validate a JSON file
3 Compiles a C program with clang, runs it, and stops it at a breakpoint in lldb
4 Runs a Python script and checks it produced the right answer
5 Compiles with javac, runs with java, and has jshell evaluate an expression

What gets reported

If every test passes, your status is sent as:

Completed

If something does not work, the status says what — so your teacher can see exactly where you are stuck without having to ask:

Failed: step3 clang cannot compile, step5 jshell not working
A failure is still worth reporting

The script sends your result either way. You do not need a perfect setup before reporting — a report saying what is broken is more useful than no report at all. Fix the step, run this again, and the newer report will say Completed.

Exactly what is sent

Four things, and nothing else:

No files, no contents of your home directory, nothing about your machine beyond which of the four checks passed. The script is plain text — read it before you run it.

If a check fails

Re-run the step it names, then run this again.

$ curl -fsSL https://aikaryashala.com/system_setup/scripts/install_cmds.sh | bash
$ curl -fsSL https://aikaryashala.com/system_setup/scripts/install_c.sh | bash
$ curl -fsSL https://aikaryashala.com/system_setup/scripts/install_py.sh | bash
$ curl -fsSL https://aikaryashala.com/system_setup/scripts/install_java.sh | bash
“command not found” straight after installing

Your shell remembers where commands were. Load the new settings and try again:

$ source ~/.bashrc

Seeing the result without sending it

To run all the checks and see what would be reported, without sending anything:

$ curl -fsSL https://aikaryashala.com/system_setup/scripts/report_completion.sh | DRY_RUN=1 bash