This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
cse:εργαστήρια:turnin [2019/11/20 10:59] emav |
cse:εργαστήρια:turnin [2022/05/06 04:43] (current) liaverg |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | ===== 1. The turnin | + | https:// |
+ | ---- | ||
+ | ===== 1. Η εντολή | ||
- | The turnin | + | Η εντολή |
- | ==== 1.1 Syntax | + | ==== 1.1 Σύνταξη==== |
- | < | + | |
- | turnin < | + | |
- | </code> | + | |
- | e.g. | + | π.χ. |
- | < | + | |
- | turnin assignment1@myy502 demo1.c demo2.java demo3.py | + | |
- | </ | + | |
- | When someone executes the '' | + | Όταν κάποιος εκτελεί την εντολή |
+ | Οι συχνότεροι συμβολισμοί ονομάτων μαθημάτων είναι: **myy**// | ||
- | The most common class/ | + | ==== 1.2 Προσοχή!==== |
- | ==== 1.2 Important notes ==== | + | * Επιτρέπονται μόνο σχετικές διευθύνσεις ως παράμετροι και |
+ | * Το path δεν μπορεί να αρχίζει από slash ("/" | ||
- | | + | Για παράδειγμα, |
- | | + | |
- | For example, the following commands are **NOT** valid: | + | turnin assignment1@myy502 ../ |
+ | turnin assignment1@myy502 | ||
- | < | ||
- | turnin assignment1@myy502 ../ | ||
- | turnin assignment1@myy502 | ||
- | </ | ||
- | ===== 2. CSED related | + | ===== 2. Σύνδεση σε εργαστηριακό υπολογιστή |
- | ==== 2.1 Νetwork infrastructure ==== | + | Για να κάνετε turnin από τον προσωπικό σας υπολογιστή, χρειάζεται πρώτα να συνδεθείτε στο ιδιωτικό δίκτυο των εργαστηρίων μέσω του |
- | + | Εάν τα αρχεία που θέλετε να κάνετε turnin δεν βρίσκονται στον εργαστηριακό λογαριασμό σας, τότε πρέπει να τα μεταφέρετε σε αυτό. | |
- | All undergraduate laboratory workstations located at PEP-I, PEP-II and PELS educational laboratories belong to '' | + | |
- | + | ||
- | The '' | + | |
- | + | ||
- | {{cse: | + | |
- | + | ||
- | ==== 2.1 Laboratory workstations ==== | + | |
- | + | ||
- | Available hostnames: | + | |
- | + | ||
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | + | ||
- | **Important note**: Workstations '' | + | |
- | + | ||
- | ==== 2.2 Username convention ==== | + | |
- | + | ||
- | Undergraduate student accounts created after 2012-2013 accademic year are of the following form: | + | |
- | + | ||
- | '' | + | |
- | + | ||
- | Another common username form for older student accounts is: | + | |
- | + | ||
- | '' | + | |
- | + | ||
- | + | ||
- | ===== 3. Connecting to a laboratory machine ===== | + | |
- | + | ||
- | Scylla | + | |
+ | ====== 3. Linux Host ====== | ||
==== 3.1 SSH ==== | ==== 3.1 SSH ==== | ||
+ | === 3.1.1 Σύνταξη === | ||
- | === 3.1.1 Syntax === | + | ssh |
- | < | ||
- | | ||
- | </ | ||
- | e.g. | + | === 3.1.2 Χρήση SSH=== |
- | < | + | Η δημιουργία μιας SSH σύνδεσης σε ένα ενεργό workstation, |
- | ssh scylla.cs.uoi.gr | + | |
- | ssh cse97777@scylla.cs.uoi.gr | + | |
- | ssh cs127777@scylla.cs.uoi.gr | + | |
- | </ | + | |
- | === 3.1.2 Example === | + | * Δημιουργία SSH σύνδεσης στη Scylla και μετά |
+ | * Δημιουργία SSH σύνδεσης στον opti3060ws09 | ||
- | Creating an SSH connection to opti7020ws02 requires: | + | Σε ένα **linux** host ανοίγετε το τερματικό και τρέχετε την εντολή: |
- | | + | |
- | * Creating an SSH connection to opti7020ws02 | + | |
- | On a **linux** host open a terminal and run: | + | Διαφορετικά, |
+ | ssh username@scylla.cs.uoi.gr | ||
+ | (εισαγωγή password) | ||
+ | ssh opti3060ws09 | ||
+ | ==== 3.2 SFTP ==== | ||
+ | === 3.2.1 Σύνταξη === | ||
- | <code> | + | sftp [<username>]@<server> |
- | ssh scylla.cs.uoi.gr -t 'ssh opti7020ws02' | + | |
- | </code> | + | |
- | On a **windows** host use an SSH client like [[http://the.earth.li/%7Esgtatham/putty/latest/x86/putty.exe|PuTTY]] to establish a connection to Scylla and then run '' | + | === 3.2.2 Χρήση SFTP=== |
+ | gzachos@iris: | ||
+ | Connected to scylla.cs.uoi.gr. | ||
+ | sftp> pwd | ||
+ | Remote working directory: /usr/home/ | ||
+ | sftp> lpwd | ||
+ | Local working directory: / | ||
+ | sftp> put ./ | ||
+ | Uploading dlv1.c to /usr/home/staff/guests/gzachos/ | ||
+ | sftp> bye | ||
+ | gzachos@iris: | ||
- | Now that you are connected on opti7020ws02 you can turnin your assignment or do whatever you want. | + | Η εντολή '' |
+ | Το πρόθημα '' | ||
+ | Άλλες χρήσιμες εντολές είναι οι: '' | ||
+ | Περισσότερες πληροφορίες : [[https:// | ||
- | ===== 4. Testing turnin ===== | + | Επιπλέον, |
- | For testing purposes you can try submitting one or more files to '' | ||
- | i.e. | + | ====== 4. Windows Host ====== |
+ | Σε windows host είναι απαραίτητο να χρησιμοποιηθούν SSH και SFTP clients, για την σύνδεση στα εργαστήρια και μεταφορά αρχείων. Για να έχετε ένα πρότυπο, | ||
- | < | + | ===== SSH Client PuTTY ===== |
- | turnin | + | Σε ένα **windows** host χρησιμοποιείτε SSH client όπως το [[http:// |
- | </code> | + | |
- | **Important note**: An instructor can override default turnin options and unexpected behaviors may be encountered while submitting an assignment. Some of the options available to an instructor is allowing or not the submission of binary files (i.e. PDF) or controlling the maximum number of turnins allowed. | + | **Βήμα 1ο**\\ |
+ | Κατεβάστε και εγκαταστήστε το [[http://the.earth.li/ | ||
- | ===== 5. Transferring files to your account @cse.uoi.gr ===== | + | **Βήμα 2ο**\\ |
+ | Τρέξτε το PuTTY. | ||
+ | Συμπληρώστε τα απαραίτητα πεδία(αυτά στα κόκκινα κουτιά) όπως απεικονίζονται και στην παρακάτω εικόνα, | ||
+ | [[https:// | ||
- | In case the files you want to submit are not located in your account at the CSE department, you have to transfer them in it. | + | **Βήμα 3ο**\\ |
+ | Εισάγετε το // | ||
+ | {{cse: | ||
- | On both a **linux** and a **windows** host you can use an SFTP client like [[https://filezilla-project.org/download.php?type=client|Filezilla]]. For more help refer to: [[# | + | **Βήμα 4ο**\\ |
+ | Τώρα που έχετε συνδεθεί στη Scylla, πρέπει να δημιουργήσετε μια SSH σύνδεση στο '' | ||
+ | {{: | ||
- | Additionally, | + | **Βήμα 4.1**\\ |
+ | Την πρώτη φορά που θα κάνετε σύνδεση θα εμφανιστεί το μήνυμα: | ||
+ | {{: | ||
+ | Απλά πληκτρολοφήστε yes και τότε δώστε τα στοιχεία σας ξανά | ||
- | ==== 5.1 SFTP ==== | + | **Βήμα 4.2**\\ |
+ | Αν είχατε συνδεθεί τελευταία φορά σε προηγούμενη εγκατάσταση των εργαστηρίων θα εμφανιστεί το μήνυμα: | ||
+ | {{: | ||
- | === 5.1.1 Syntax === | + | Αφαιρέστε offending key με την εντολή: |
+ | ssh-keygen -R git.mywebsite.ir | ||
+ | 'Η την εντολή '' | ||
+ | sed –I ‘’ ‘7d’ ~/ | ||
- | < | + | **Βήμα 5ο**\\ |
- | sftp | + | Μόλις συνδεθείτε στον '' |
- | </ | + | {{: |
- | e.g. | + | ===== SFTP Client Filezilla ===== |
+ | Τόσο σε **linux** όσο και σε **windows** host μπορείτε να χρησιμοποιήσετε έναν SFTP client όπως το [[https:// | ||
- | < | + | **Βήμα 1ο**\\ |
- | sftp scylla.cs.uoi.gr | + | Κατεβάστε και εγκαταστήστε το [[https:// |
- | sftp cse97777@scylla.cs.uoi.gr | + | |
- | sftp cs127777@scylla.cs.uoi.gr | + | |
- | </ | + | |
- | === 5.1.2 Example === | + | **Βήμα |
- | + | Τρέξτε το Filezilla. | |
- | < | + | |
- | gzachos@iris: | + | |
- | Connected to scylla.cs.uoi.gr. | + | |
- | sftp> pwd | + | |
- | Remote working directory: / | + | |
- | sftp> lpwd | + | |
- | Local working directory: / | + | |
- | sftp> put ./ | + | |
- | Uploading dlv1.c to / | + | |
- | dlv1.c | + | |
- | sftp> bye | + | |
- | gzachos@iris: | + | |
- | </ | + | |
- | + | ||
- | The '' | + | |
- | + | ||
- | A command prefix '' | + | |
- | + | ||
- | Other useful commands: '' | + | |
- | + | ||
- | For more information visit: [[https:// | + | |
- | + | ||
- | ====== Using Filezilla | + | |
- | + | ||
- | Download and install [[https:// | + | |
- | + | ||
- | Run Filezilla. | + | |
- | + | ||
- | Complete the required fields | + | |
- | \\ | + | |
[[https:// | [[https:// | ||
- | + | **Βήμα 3ο**\\ | |
- | In the left section of the program window | + | Στην αριστερή στήλη του παραθύρου του προγράμματος |
- | \\ | + | |
[[https:// | [[https:// | ||
- | + | **Βήμα 4ο**\\ | |
- | In the right section of the program window, you can see the files in your CSE department account. Choose the directory | + | Στην δεξιά στήλη του παραθύρου του προγράμματος, μπορείτε να δείτε τα αρχεία του εργαστηριακού λογαριασμού σας. Επιλέξτε το directory |
- | \\ | + | |
{{cse: | {{cse: | ||
- | Drag and drop the files from the source folder (left section) to the destination directory (right section).\\ | + | **Βήμα 5ο**\\ |
- | \\ | + | Σύρτε και αφήστε τα αρχεία από τον |
{{cse: | {{cse: | ||
- | |||
- | ====== Using PuTTY ====== | ||
- | |||
- | Run [[http:// | ||
- | |||
- | Complete the required fields (those inside the red boxes) like shown in the picture below, making sure the **SSH** option is selected. Press **Open** button at the bottom right of the window.\\ | ||
- | \\ | ||
- | [[https:// | ||
- | |||
- | |||
- | Enter your // | ||
- | \\ | ||
- | {{cse: | ||
- | |||
- | Now that you are logged in on Scylla, create an SSH connection to '' | ||
- | \\ | ||
- | [[https:// | ||
- | |||
- | |||
- | Once connected to '' | ||
- | \\ | ||
- | [[https:// | ||
- | Created | + | [[http:// |