Adding a Startup Script

You can add a startup script to install additional software in your environment, download content files, or anything else you'd like.

Startup scripts must complete in under 60 seconds and run from the /tmp directory. They're run as nt-user, but you have sudo access!

To add or modify your startup script, click the settings icon in the left side menu and scroll to the "Startup Script" section:

Startup Script settings

Each script is executed with Bash. Keep in mind that your script will run each time the content loads, which may slow down content loading times.

If you're trying to install software using the startup script and running into issues, just let us know! We can add that software to the stack for you.

When a startup script is run, it will save three files to the starting directory (/home/nt-user/workspace by default):

  • .startup.stdout: The STDOUT from running the script (saved if there is any)

  • .startup.stderr: The STDERR from running the script (saved if there is any)

  • .startup.status: The status from running the script (saved if non-zero)

These files will be hidden from users by default because of the beginning of the file name.

Your startup script will run after any course-wide startup script.