{{indexmenu_n>4}}
===== HW Submission =====
* Preliminaries:
* NoSQL server: **nosql.felk.cvut.cz**
* Login and password: sent by e-mail
* Tools:
* [[https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html|PuTTY]]
* [[https://winscp.net/|WinSCP]]
* VSCode and JetBrains IDE connections that do not work over SSHFS are **prohibited** due to extensive server usage. There is no documented way to install one shared instance of required tools on a server for all users.
* If you still want to use it, you need to mount NoSQL server file system to your PC and open your projects as if they were on your local file system.
* For VSCode there is an SSHFS extension:
* https://marketplace.visualstudio.com/items?itemName=Kelvin.vscode-sshfs
* For any other IDEs you can mount remote filesystem manually on Linux/MacOS:
* Install sshfs on your device
* Mount filesystem: sshfs $USERNAME@nosql.felk.cvut.cz:/home/$USERNAME /mnt/dbs2-server
* Open your project in your IDE under local path /mnt/dbs2-server/$PATH_TO_PROJECT
* When you are finished, you can unmount it sudo umount /mnt/dbs2-server
* For Windows, use any tool like SSHFS-Win (follow tool documentation):
* https://github.com/winfsp/sshfs-win
* Note: on Linux with GNOME/Ubuntu you can do this right from Files app:
* For latest GNOME 47 use "Networks" section at the top of the sidebar to add connection
* For older versions, use "Other" section at the bottom of the sidebar
* The address should be sftp://$USERNAME@nosql.felk.cvut.cz/
==== Submissions ====
* Submissions:
* Use ''sftp'' or ''WinSCP'' to upload your submission files to the NoSQL server
* Put these files into a directory ''~/assignments/name/'', where name is a name of a given homework
* I.e. ''hw2'', ''hw3'', ''hw4'', ''hw5'', ''hw6'', ''hw7'', ''hw8'' (case sensitive)
* Use ''ssh'' or ''PuTTY'' to open a remote shell connection to the NoSQL server
* Based on the instructions provided for a given homework assignment, verify that everything is working as expected
* Go to the ''~/assignments/'' directory and execute sudo submit_execute namewhere ''name'' is the name of the homework
* Wait for the confirmation of success. Otherwise, your homework is not considered to be submitted
* Should any complications appear, send your solution by e-mail to ''prokoyul@fel.cvut.cz''
* Just for your convenience, you can check the submitted files in the ''~/submissions/'' directory
* Upload to BRUTE the same script + a screenshot of its execution on the NoSQL server.
* Use the filename: username_number.pdf, where the number is the homework number.
* Once the homework is assessed, you will find points and comments in BRUTE
* Requirements:
* Respect the prescribed names of individual files to be submitted (case sensitive)
* Place all the files in the root directory of your submission
* Do not include shared libraries or files that are not requested
* I.e. do not submit files that were not explicitly requested
* Do not redirect or suppress both standard and error outputs in your shell scripts
* All your files must be syntactically correct and executable without errors