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:58] emav |
cse:εργαστήρια:turnin [2024/10/31 20:02] (current) charilaoschatz [1. Η εντολή turnin] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | ===== 1. The turnin | + | https:// |
+ | ---- | ||
+ | ===== 1. Η εντολή | ||
- | The turnin | + | Η εντολή |
- | ==== 1.1 Syntax | + | ==== 1.1 Σύνταξη==== |
- | < | + | |
- | turnin < | + | |
- | </code> | + | |
- | e.g. | + | π.χ. |
- | < | + | |
- | turnin | + | |
- | </ | + | |
- | 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 | ||
- | turnin | ||
- | </ | ||
- | ===== 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 '' | + | ==== 2.1 Linux Host ==== |
+ | === 2.1.1 SSH === | ||
+ | Σύνταξη | ||
- | The '' | + | ssh |
- | {{cse: | ||
- | ==== 2.1 Laboratory workstations ==== | + | Χρήση SSH\\ |
+ | \\ | ||
- | Available hostnames: | + | Η δημιουργία μιας SSH σύνδεσης σε ένα ενεργό workstation, |
- | * '' | + | * Δημιουργία SSH σύνδεσης στη Scylla και μετά |
- | * '' | + | * Δημιουργία SSH σύνδεσης στον dl380ws03 |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | **Important note**: Workstations '' | + | Σε ένα |
+ | Σύνδεση με scylla.cse.uoi.gr | ||
+ | ssh <username> | ||
+ | | ||
+ | Εύρεση διαθέσιμου υπολογιστή εργαστηρίου με χρήση της εντολής rupt | ||
+ | rupt | ||
+ | Παράδειγμα εξόδου της παραπάνω εντολής: | ||
+ | dl380ws03 up 0 users | ||
+ | dl380ws04 up 0 users | ||
+ | dl380ws05 up 0 users | ||
+ | dl380ws01 up 1 users | ||
+ | dl380ws02 up 1 users | ||
- | ==== 2.2 Username convention ==== | + | Επιλέγουμε κατά προτίμηση από την κορυφή της λίστας, |
+ | ssh dl380ws03 | ||
- | Undergraduate student accounts created after 2012-2013 accademic year are of the following form: | + | === 2.1.2 SFTP === |
- | '' | + | Σύνταξη |
- | Another common | + | sftp [<username> |
- | '' | + | Χρήση SFTP\\ |
+ | \\ | ||
+ | gzachos@iris: | ||
+ | Connected to scylla.cs.uoi.gr. | ||
+ | sftp> pwd | ||
+ | Remote working directory: | ||
+ | sftp> lpwd | ||
+ | Local working directory: | ||
+ | sftp> put ./ | ||
+ | Uploading dlv1.c to / | ||
+ | sftp> bye | ||
+ | gzachos@iris: | ||
+ | Η εντολή '' | ||
+ | Το πρόθημα '' | ||
+ | Άλλες χρήσιμες εντολές είναι οι: '' | ||
+ | Περισσότερες πληροφορίες : [[https:// | ||
- | ===== 3. Connecting to a laboratory machine ===== | + | Επιπλέον, |
- | Scylla has a limited functionality and commands like '' | ||
- | ==== 3.1 SSH ==== | + | ==== 2.2 Windows Host ==== |
+ | Σε windows host είναι απαραίτητο να χρησιμοποιηθούν SSH και SFTP clients, για την σύνδεση στα εργαστήρια και μεταφορά αρχείων. Για να έχετε ένα πρότυπο, | ||
- | === 3.1.1 Syntax | + | === 2.2.1 SSH Client PuTTY === |
+ | Σε ένα **windows** host χρησιμοποιείτε SSH client όπως το [[http:// | ||
- | < | + | **Βήμα 1ο**\\ |
- | ssh [< | + | Κατεβάστε και εγκαταστήστε το [[http:// |
- | </code> | + | |
- | e.g. | + | **Βήμα 2ο**\\ |
+ | Τρέξτε το PuTTY. | ||
+ | Συμπληρώστε τα απαραίτητα πεδία(αυτά στα κόκκινα κουτιά) όπως απεικονίζονται και στην παρακάτω εικόνα, | ||
+ | [[https:// | ||
- | < | + | **Βήμα 3ο**\\ |
- | ssh scylla.cs.uoi.gr | + | Εισάγετε το // |
- | ssh cse97777@scylla.cs.uoi.gr | + | {{cse: |
- | ssh cs127777@scylla.cs.uoi.gr | + | |
- | </ | + | |
- | === 3.1.2 Example === | + | **Βήμα 4ο**\\ |
+ | Τώρα που έχετε συνδεθεί στη Scylla, πρέπει να δημιουργήσετε μια SSH σύνδεση στο '' | ||
+ | {{: | ||
- | Creating an SSH connection to opti7020ws02 requires: | + | **Βήμα 4.1**\\ |
+ | Την πρώτη φορά που θα κάνετε σύνδεση θα εμφανιστεί το μήνυμα: | ||
+ | {{: | ||
+ | Απλά πληκτρολοφήστε yes και τότε δώστε τα στοιχεία σας ξανά | ||
- | | + | **Βήμα 4.2**\\ |
- | | + | Αν είχατε συνδεθεί τελευταία φορά σε προηγούμενη εγκατάσταση των εργαστηρίων θα εμφανιστεί το μήνυμα: |
+ | {{: | ||
- | On a **linux** host open a terminal and run: | + | Αφαιρέστε offending key με την εντολή: |
+ | ssh-keygen -R git.mywebsite.ir | ||
+ | 'Η την εντολή '' | ||
+ | sed –I ‘’ ‘7d’ ~/ | ||
- | < | + | **Βήμα 5ο**\\ |
- | ssh scylla.cs.uoi.gr -t 'ssh opti7020ws02' | + | Μόλις συνδεθείτε στον |
- | </ | + | {{: |
- | On a **windows** host use an SSH client | + | === 2.2.2 SFTP Client Filezilla === |
+ | Τόσο σε **linux** όσο και σε **windows** host μπορείτε να χρησιμοποιήσετε έναν SFTP client | ||
- | Now that you are connected on opti7020ws02 you can turnin your assignment or do whatever you want. | + | **Βήμα 1ο**\\ |
+ | Κατεβάστε και εγκαταστήστε το [[https:// | ||
- | ===== 4. Testing turnin ===== | + | **Βήμα 2ο**\\ |
- | + | Τρέξτε το Filezilla. | |
- | For testing purposes you can try submitting one or more files to '' | + | |
- | + | ||
- | i.e. | + | |
- | + | ||
- | < | + | |
- | turnin | + | |
- | </ | + | |
- | + | ||
- | **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. | + | |
- | + | ||
- | ===== 5. Transferring files to your account @cse.uoi.gr ===== | + | |
- | + | ||
- | 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. | + | |
- | + | ||
- | On both a **linux** and a **windows** host you can use an SFTP client like [[https:// | + | |
- | + | ||
- | Additionally, | + | |
- | + | ||
- | ==== 5.1 SFTP ==== | + | |
- | + | ||
- | === 5.1.1 Syntax === | + | |
- | + | ||
- | < | + | |
- | | + | |
- | </ | + | |
- | + | ||
- | e.g. | + | |
- | + | ||
- | < | + | |
- | sftp scylla.cs.uoi.gr | + | |
- | sftp cse97777@scylla.cs.uoi.gr | + | |
- | sftp cs127777@scylla.cs.uoi.gr | + | |
- | </ | + | |
- | + | ||
- | === 5.1.2 Example === | + | |
- | + | ||
- | < | + | |
- | 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 (those inside the orange box) as shown in the picture below and press "Quickconnect" button.\\ | + | |
- | \\ | + | |
[[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:// |