Before you start: install TurboShell
Install TurboShell to run the lesson programs on your NAS. This free package from our App Center repository has the yabasic interpreter, the Free Pascal compiler, Bash 5 and text editors. You install it once.
What you need
- A QNAP NAS with a 64-bit Intel or AMD processor (x86_64) and QTS or QuTS hero 6.0 or newer. TurboShell has no build for ARM models.
- An administrator account on the NAS.
- A computer with an SSH client. macOS and Linux have the
sshcommand in their terminal. Windows 10 and 11 have it as the OpenSSH Client feature: ifssh -Vends with "not recognized", add that feature in Windows settings.
1. Add the repository to App Center
Open App Center on the NAS and go to App Center › ⚙ Settings › App Repository › Add. The gear is in App Center's title bar, top right.
Type the name NASutils, paste this address and press Add:
https://nasutils.net/repo.xmlYou add the repository once. App Center then shows TurboShell's updates beside the updates of your other apps.
2. Install TurboShell
Press the refresh arrow in App Center's bar. NASutils appears in the left column. Open it, find TurboShell and press Install.
TurboShell's own page on nasutils.net lists every program it adds: TurboShell.
3. Turn on SSH
Go to Control Panel › Network & File Services › Telnet / SSH, turn on Allow SSH connection and press Apply.
4. Sign in and check
On your computer, open a terminal and sign in with an administrator account of the NAS. Put that account's name in place of USER and your NAS's address in place of 192.0.2.10:
ssh USER@192.0.2.10If a menu called Console Management appears, type Q and confirm with Y to get to the shell.
Type these three commands. Each one prints its version, and Bash says 5:
yabasic -version
fpc -iV
bash --versionWhere to write the programs
Keep your programs in a shared folder, for example /share/Public/lessons. QTS rebuilds the home folder of the admin account, /root, at each restart, so files kept there are lost.
mkdir -p /share/Public/lessons
cd /share/Public/lessons
micro hello.yabmicro is an editor with the usual keys: Ctrl+S saves, Ctrl+Q closes.
Go
In the Go lessons you compile each program for Linux and your NAS's processor, on a computer with Go or in Bucket & Code. You copy the one file it makes to the NAS and run it there; the NAS needs no Go. The Go course gives the commands.
What to try first
TurboShell command examples: 21 commands to type right after the install, from finding files to a backup with restic.