User Tools

Site Tools


cse:εργαστήρια:turnin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cse:εργαστήρια:turnin [2019/11/20 10:58]
emav
cse:εργαστήρια:turnin [2023/10/25 12:02] (current)
peppe
Line 1: Line 1:
-====== How to remotely turnin an assignment via your account at CSE.UOI.GR ======+====== Οδηγίες χρήσης Turnin μέσω του λογαριασμού του τμήματος ======
  
-===== 1. The turnin command =====+https://tinyurl.com/csuoiturnin 
 +---- 
 +===== 1. Η εντολή turnin =====
  
-The turnin command allows students to electronically submit their laboratory exercises and assignments via their account at laboratory workstations of the [[http://cse.uoi.gr|Computer Science and Engineering Department]].+Η εντολή turnin επιτρέπει στους φοιτητές να παραδώσουν ηλεκτρονικά τις εργαστηριακές τους ασκήσεις και εργασίες μέσω του [[cse:εργαστήρια:πρόσβαση|λογαριασμού πρόσβασης]] των εργαστηρίων του τμήματος [[http://cse.uoi.gr|Computer Science and Engineering Department]].
  
-==== 1.1 Syntax ====+==== 1.1 Σύνταξη====
  
-<code> +  turnin <assignment>@<class> <files-and-directories>
-turnin <assignment>@<class> <files-and-directories+
-</code>+
  
-e.g.+π.χ.
  
-<code> +  turnin assignment1@myy502 demo1.c demo2.java demo3.py
- turnin  assignment1@myy502   demo1.c  demo2.java  demo3.py +
-</code>+
  
-When someone executes the ''%%turnin%%'' commandthe files whose names are given as parametersare submitted.+Όταν κάποιος εκτελεί την εντολή ''%%turnin%%'', υποβάλλονται τα αρχεία των οποίων τα ονόματα δίνονται σα παράμετροι. \\ 
 +Οι συχνότεροι συμβολισμοί ονομάτων μαθημάτων είναι: **myy**//XXX//**mye**//XXX//, **ply**//XXX// και**ple**//XXX//.
  
-The most common class/course name formats are: **myy**//XXX//, **mye**//XXX//, **ply**//XXX// and **ple**//XXX//.+==== 1.2 Προσοχή!====
  
-==== 1.2 Important notes ====+  * Επιτρέπονται μόνο σχετικές διευθύνσεις ως παράμετροι και 
 +  * Το path δεν μπορεί να αρχίζει από slash ("/") ή ".."
  
-  Only relative paths are allowed to be given as parameters and +Για παράδειγμα, οι παρακάτω εντολές **ΔΕΝ** είναι αποδεκτές:
-  Paths should NOT begin with ''%%../%%''.+
  
-For example, the following commands are **NOT** valid:+  turnin assignment1@myy502 ../Desktop/demo1.c 
 +  turnin assignment1@myy502  /usr/home/staff/guests/gzachos/demo1.c
  
-<code> 
-turnin  assignment1@myy502   ../Desktop/demo1.c 
-turnin  assignment1@myy502   /usr/home/staff/guests/gzachos/demo1.c 
-</code> 
  
-===== 2. CSED related =====+===== 2. Σύνδεση σε εργαστηριακό υπολογιστή =====
  
-==== 2.1 Νetwork infrastructure ====+Για να κάνετε turnin από τον προσωπικό σας υπολογιστή, χρειάζεται πρώτα να συνδεθείτε στο ιδιωτικό δίκτυο των εργαστηρίων μέσω του gateway υπολογιστή [[cse:δίκτυο:υποδομή|Scylla]]. Μετά, πρέπει να συνδεθείτε σε υπολογιστή εργαστηρίου μέσω της εντολής ssh, καθώς η Scylla έχει περιορισμένη λειτουργικότητα και εντόλες όπως ''%%turnin%%'', ''%%vim%%'' κτλ. δεν μπορούν να εκτελεστούν πάνω της.\\ \\ 
 +Εάν τα αρχεία που θέλετε να κάνετε turnin δεν βρίσκονται στον εργαστηριακό λογαριασμό σας, τότε πρέπει να τα μεταφέρετε σε αυτό
  
-All undergraduate laboratory workstations located at PEP-I, PEP-II and PELS educational laboratories belong to ''%%10.7.4.0/24%%'' Local Area Network (LAN). This means that all machines connected to it are assigned an IP address bewtween ''%%10.7.4.1%%'' and ''%%10.7.4.254%%''.+==== 2.1 Linux Host ==== 
 +=== 2.1.1 SSH === 
 +Σύνταξη
  
-The ''%%10.7.4.0/24%%'' LAN is a private network and cannot be directly accessed from a machine not belonging in it (i.e. your personal computer located at your home). For this reason, a gateway computer which allows accessing this network from the internet exists. That gateway computer is Scylla (scylla.cs.uoi.gr).+  ssh   [<username>]@<server>
  
-{{cse:δίκτυο:turnin1.png?700|}} 
  
-==== 2.1 Laboratory workstations ====+Χρήση SSH\\ 
 +\\
  
-Available hostnames:+Η δημιουργία μιας SSH σύνδεσης σε ένα ενεργό workstation, πχ τον υπολογιστή dl380ws03, απαιτεί
  
-  * ''%%opti7020wsXX%%'' , //01 <= XX <= 25// +  * Δημιουργία SSH σύνδεσης στη Scylla και μετά  
-  * ''%%opti7010wsXX%%'' , //01 <= XX <= 03// +  * Δημιουργία SSH σύνδεσης στον dl380ws03
-  * ''%%hp6200wsXX%%'' , //01 <= XX <= 09// +
-  * ''%%hp6000wsXX%%'' , //01 <= XX <= 28, excluding XX = {05, 08-11, 19, 26}// +
-  * ''%%ultra20wsXX%%'' , //XX = {10, 17-19, 23-29, 31-32, 38-39}//+
  
-**Important note**: Workstations ''%%opti7020wsXX%%'' , //08 <= XX <= 13// are available 24/7/365. (Valid since March 1st, 2017)+Σε ένα **linux** host ανοίγετε το τερματικό και τρέχετε τις εντολές:\\ 
 +Σύνδεση με scylla.cse.uoi.gr 
 +  ssh <username>@scylla.cse.uoi.gr 
 +  (εισαγωγή password) 
 +Εύρεση διαθέσιμου υπολογιστή εργαστηρίου με χρήση της εντολής rupt 
 +  rupt 
 +Παράδειγμα εξόδου της παραπάνω εντολής: 
 +  dl380ws03 up 0 users 
 +  dl380ws04 up 0 users 
 +  dl380ws05 up 0 users 
 +  dl380ws06 up 0 users 
 +  dl380ws01 up 1 users 
 +  dl380ws02 up 1 users
  
-==== 2.2 Username convention ====+Επιλέγουμε κατά προτίμηση από την κορυφή της λίστας, υπολογιστή που έχει λιγότερους χρήστες, π.χ. dl380ws03 
 +  ssh dl380ws03
  
-Undergraduate student accounts created after 2012-2013 accademic year are of the following form:+=== 2.1.2 SFTP ===
  
-''%%cseYXXXX%%'' where //Y// is the last digit of the enrollment year at CSED and //XXXX// is the unique 4-digit student ID.+Σύνταξη
  
-Another common username form for older student accounts is:+  sftp   [<username>]@<server>
  
-''%%csYYXXXX%%'' where //YY// is the last **two** digits of the enrollment year and //XXXX// is the unique 4-digit student ID.+Χρήση SFTP\\ 
 +\\ 
 +  gzachos@iris:~$ sftp scylla.cs.uoi.gr 
 +  Connected to scylla.cs.uoi.gr. 
 +  sftp> pwd 
 +  Remote working directory: /usr/home/staff/guests/gzachos 
 +  sftp> lpwd 
 +  Local working directory: /home/gzachos 
 +  sftp> put ./Desktop/dlv1.c 
 +  Uploading dlv1.c to /usr/home/staff/guests/gzachos/dlv1.c                    100%  154     0.2KB/s   00:00 dlv1.
 +  sftp> bye 
 +  gzachos@iris:~$
  
 +Η εντολή ''%%put%%'' μεταφέρει το ''%%./Desktop/dlv1.c%%'' από τον προσωπικό υπολογιστή στο home directory @cse.uoi.gr. \\
 +Το πρόθημα ''%%l%%'' (lowercase ''%%L%%'') στην εντολή ''%%lpwd%%'' σημαίνει “local” και αυτή η εντολή εκτελείται στον local host (not remote - scylla). \\
 +Άλλες χρήσιμες εντολές είναι οι:  ''%%ls%%'', ''%%lls%%'', ''%%cd%%'', ''%%lcd%%'', ''%%get%%'', ''%%rm%%'', ''%%rmdir%%''.\\
 +Περισσότερες πληροφορίες :  [[https://linux.die.net/man/1/sftp|sftp(1) - Linux man page]].
  
-===== 3. Connecting to a laboratory machine =====+Επιπλέον, τόσο σε **linux** όσο και σε **windows** host μπορείτε να χρησιμοποιήσετε έναν SFTP client (ακολουθούν περισσότερες πληροφορίες)
  
-Scylla has a limited functionality and commands like ''%%turnin%%'', ''%%vim%%'' etc. cannot be executed on it. For this reason, submitting an assignment requires connecting to a laboratory computer. 
  
-==== 3.1 SSH ====+==== 2.2 Windows Host ==== 
 +Σε windows host είναι απαραίτητο να χρησιμοποιηθούν SSH και SFTP clients, για την σύνδεση στα εργαστήρια και μεταφορά αρχείων. Για να έχετε ένα πρότυπο, παρακάτω θα αναπτυχθούν οδηγίες για τον SSH client PuTTY και τον SFTP client Filezilla.
  
-=== 3.1.1 Syntax ===+=== 2.2.1 SSH Client PuTTY === 
 +Σε ένα **windows** host χρησιμοποιείτε SSH client όπως το [[http://the.earth.li/%7Esgtatham/putty/latest/x86/putty.exe|PuTTY]], για να φτιάξετε μια σύνδεση στη Scylla, και μετά τρέχετε την εντολή ''%%ssh dl380ws03%%''. Περισσότερες πληροφορίες: [[#file-using-putty-md|using-putty.md]].
  
-<code> +**Βήμα 1ο**\\ 
- ssh   [<user>]@<server> +Κατεβάστε και εγκαταστήστε το [[http://the.earth.li/%7Esgtatham/putty/latest/x86/putty.exe|PuTTY]].
-</code>+
  
-e.g.+**Βήμα 2ο**\\ 
 +Τρέξτε το PuTTY. 
 +Συμπληρώστε τα απαραίτητα πεδία(αυτά στα κόκκινα κουτιά) όπως απεικονίζονται και στην παρακάτω εικόνα, σιγουρευτείτε ότι έχετε διαλέξει την **SSH** επιλογήΠατήστε το κουμπί **Open** που είναι κάτω δεξιά στο παράθυρο.\\ 
 +[[https://camo.githubusercontent.com/d6beee5682a87ea0b9962c96cc1a26a5fa5b9d01/687474703a2f2f6373652e756f692e67722f253745677a6163686f732f636f75727365732f6373653230352f707574312e6a7067|{{cse:δίκτυο:turnin6.jpeg}}]]\\
  
-<code> +**Βήμα 3ο**\\ 
- ssh scylla.cs.uoi.gr +Εισάγετε το //username// & //password// σας και πατήστε “Enter”Προσοχή, **δεν** εμφανίζεται τίποτα όταν πληκτρολογείτε το password σαςΔεν μπορείτε να δείτε,δηλαδή, πόσους και ποιους χαρακτήρες έχετε πληκτρολογήσει.\\ 
- ssh cse97777@scylla.cs.uoi.gr +{{cse:δίκτυο:turnin7.jpeg}}
- ssh cs127777@scylla.cs.uoi.gr +
-</code>+
  
-=== 3.1.2 Example ===+**Βήμα 4ο**\\ 
 +Τώρα που έχετε συνδεθεί στη Scylla, πρέπει να δημιουργήσετε μια SSH σύνδεση στο ''%%dl380ws03%%'', τρέχοντας την εντολή ''%%ssh dl380ws03%%'' και να δώσετε ξανά το //username// και το //password// σας.\\ 
 +{{:cse:εργαστήρια:turnin8new.png?800|}}
  
-Creating an SSH connection to opti7020ws02 requires:+**Βήμα 4.1**\\ 
 +Την πρώτη φορά που θα κάνετε σύνδεση θα εμφανιστεί το μήνυμα: 
 +{{:cse:εργαστήρια:turnin9new.png?800|}}\\ 
 +Απλά πληκτρολοφήστε yes και τότε δώστε τα στοιχεία σας ξανά
  
-  Creating an SSH connection to Scylla and then +**Βήμα 4.2**\\ 
-  Creating an SSH connection to opti7020ws02+Αν είχατε συνδεθεί τελευταία φορά σε προηγούμενη εγκατάσταση των εργαστηρίων θα εμφανιστεί το μήνυμα: 
 +{{:cse:εργαστήρια:turnin12.png?800|}}
  
-On a **linux** host open a terminal and run:+Αφαιρέστε offending key με την εντολή: 
 +  ssh-keygen -R git.mywebsite.ir 
 +'Η την εντολή ''%%sed%%''. Σε αυτήν την περίπτωση: 
 +  sed –I ‘’ ‘7d’ ~/.ssh/known_hosts
  
-<code> +**Βήμα 5ο**\\ 
-ssh scylla.cs.uoi.gr -t 'ssh opti7020ws02+Μόλις συνδεθείτε στον ''%%dl380ws03%%'' θα δείτε το prompt παρακάτω:\\ 
-</code>+{{:cse:εργαστήρια:turnin10new.png?500|}}\\
  
-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 ''%%ssh opti7020ws02%%''For more help refer to: [[#file-using-putty-md|using-putty.md]].+=== 2.2.2 SFTP Client Filezilla === 
 +Τόσο σε **linux** όσο και σε **windows** host μπορείτε να χρησιμοποιήσετε έναν SFTP client όπως το  [[https://filezilla-project.org/download.php?type=client|Filezilla]]. Περισσότερες πληροφορίες: [[#file-using-filezilla-md|using-filezilla.md]].
  
-Now that you are connected on opti7020ws02 you can turnin your assignment or do whatever you want.+**Βήμα 1ο**\\ 
 +Κατεβάστε και εγκαταστήστε το [[https://filezilla-project.org/download.php?type=client|Filezilla]].
  
-===== 4. Testing turnin ===== +**Βήμα 2ο**\\ 
- +Τρέξτε το Filezilla. Συμπληρώστε τα απαραίτητα πεδία (πορτοκαλί κουτίόπως απεικονίζονται και στην παρακάτω εικόνα και πατήστε το “Quickconnect” κουμπί.\\
-For testing purposes you can try submitting one or more files to ''%%assignment1@gzachos%%''+
- +
-i.e. +
- +
-<code> +
-turnin  assignment1@gzachos  file.c  another-file.c +
-</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. +
- +
-===== 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://filezilla-project.org/download.php?type=client|Filezilla]]For more help refer to: [[#file-using-filezilla-md|using-filezilla.md]]. +
- +
-Additionally, on a **linux** host you can use the ''%%sftp%%'' command. +
- +
-==== 5.1 SFTP ==== +
- +
-=== 5.1.1 Syntax === +
- +
-<code> +
- sftp   [<user>]@<server> +
-</code> +
- +
-e.g. +
- +
-<code> +
- sftp scylla.cs.uoi.gr +
- sftp cse97777@scylla.cs.uoi.gr +
- sftp cs127777@scylla.cs.uoi.gr +
-</code> +
- +
-=== 5.1.2 Example === +
- +
-<code> +
-gzachos@iris:~$ sftp scylla.cs.uoi.gr +
-Connected to scylla.cs.uoi.gr. +
-sftp> pwd +
-Remote working directory: /usr/home/staff/guests/gzachos +
-sftp> lpwd +
-Local working directory: /home/gzachos +
-sftp> put ./Desktop/dlv1.c +
-Uploading dlv1.c to /usr/home/staff/guests/gzachos/dlv1.c                    100%  154     0.2KB/  00:00 +
-dlv1.c +
-sftp> bye +
-gzachos@iris:~$ +
-</code> +
- +
-The ''%%put%%'' command transfers ''%%./Desktop/dlv1.c%%'' from my personal computer to my home directory @cse.uoi.gr. +
- +
-A command prefix ''%%l%%'' (lowercase ''%%L%%''stands for "local" and that command takes effect on local host (not remote - scylla). +
- +
-Other useful commands: ''%%ls%%'', ''%%lls%%'', ''%%cd%%'', ''%%lcd%%'', ''%%get%%'', ''%%rm%%'', ''%%rmdir%%''+
- +
-For more information visit: [[https://linux.die.net/man/1/sftp|sftp(1) - Linux man page]]. +
- +
-====== Using Filezilla ====== +
- +
-Download and install [[https://filezilla-project.org/download.php?type=client|Filezilla]]. +
- +
-Run Filezilla. +
- +
-Complete the required fields (those inside the orange box) as shown in the picture below and press "Quickconnect" button.\\ +
-\\+
 [[https://camo.githubusercontent.com/a6023beebd60bb06da9ab7e3ce79749db13d8748/687474703a2f2f6373652e756f692e67722f253745677a6163686f732f636f75727365732f6373653230352f706963312e6a7067|{{cse:δίκτυο:turnin2.jpeg}}]]\\ [[https://camo.githubusercontent.com/a6023beebd60bb06da9ab7e3ce79749db13d8748/687474703a2f2f6373652e756f692e67722f253745677a6163686f732f636f75727365732f6373653230352f706963312e6a7067|{{cse:δίκτυο:turnin2.jpeg}}]]\\
  
- +**Βήμα 3ο**\\ 
-In the left section of the program window (orange box), you can see which files exist on local host (i.e. home computer). Now you have to locate the files you want to transfer. (for faster results you can edit the path)\\ +Στην αριστερή στήλη του παραθύρου του προγράμματος (πορτοκαλί κουτί), μπορείτε να δείτε ποια αρχεία υπάρχουν στον local host (π.χ. home computer). Τώρα πρέπει να βρείτε τα αρχεία προς μεταφορά. (για γρηγορότερα αποτελέσματα μπορείτε να βάλετε path)\\
-\\+
 [[https://camo.githubusercontent.com/7295a70ea5d8d7a56520d809fd6b10bf8936d94c/687474703a2f2f6373652e756f692e67722f253745677a6163686f732f636f75727365732f6373653230352f706963322e6a7067|{{cse:δίκτυο:turnin3.jpeg}}]]\\ [[https://camo.githubusercontent.com/7295a70ea5d8d7a56520d809fd6b10bf8936d94c/687474703a2f2f6373652e756f692e67722f253745677a6163686f732f636f75727365732f6373653230352f706963322e6a7067|{{cse:δίκτυο:turnin3.jpeg}}]]\\
  
- +**Βήμα 4ο**\\ 
-In the right section of the program windowyou can see the files in your CSE department accountChoose the directory where you want the files to be saved after transfer (e.g. ''%%~/Desktop%%'').\\ +Στην δεξιά στήλη του παραθύρου του προγράμματοςμπορείτε να δείτε τα αρχεία του εργαστηριακού λογαριασμού σαςΕπιλέξτε το directory όπου θέλετε να αποθηκεύσετε τα αρχεία μετά την μεταφορά (π.χ. ''%%~/Desktop%%'').\\
-\\+
 {{cse:δίκτυο:turnin4.jpeg}} {{cse:δίκτυο:turnin4.jpeg}}
  
-Drag and drop the files from the source folder (left sectionto the destination directory (right section).\\ +**Βήμα 5ο**\\ 
-\\+Σύρτε και αφήστε τα αρχεία από τον source folder (αριστερή στήληστο destination directory (δεξιά στήλη).\\
 {{cse:δίκτυο:turnin5.jpeg}} {{cse:δίκτυο:turnin5.jpeg}}
- 
-====== Using PuTTY ====== 
- 
-Run [[http://the.earth.li/%7Esgtatham/putty/latest/x86/putty.exe|PuTTY]]. 
- 
-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://camo.githubusercontent.com/d6beee5682a87ea0b9962c96cc1a26a5fa5b9d01/687474703a2f2f6373652e756f692e67722f253745677a6163686f732f636f75727365732f6373653230352f707574312e6a7067|{{cse:δίκτυο:turnin6.jpeg}}]]\\ 
- 
- 
-Enter your //username// & //password// and hit "Enter". Note that you will get **NO** feedback while entering your password. In other words, you will not be able to see what characters you type or how many they are.\\ 
-\\ 
-{{cse:δίκτυο:turnin7.jpeg}} 
- 
-Now that you are logged in on Scylla, create an SSH connection to ''%%opti7020ws02%%'' by running ''%%ssh opti7020ws02%%'' and provide once again your //username// and //password//.\\ 
-\\ 
-[[https://camo.githubusercontent.com/2ce8c06e32618421231d88ee0d23d387a597d558/687474703a2f2f6373652e756f692e67722f253745677a6163686f732f636f75727365732f6373653230352f707574332e706e67|{{cse:δίκτυο:turnin8.png}}]]\\ 
- 
- 
-Once connected to ''%%opti7020ws02%%'' you will see the prompt below:\\ 
-\\ 
-[[https://camo.githubusercontent.com/6ae097ab2127df7a0fa5b7ca1798e332e998f5f5/687474703a2f2f6373652e756f692e67722f253745677a6163686f732f636f75727365732f6373653230352f707574342e706e67|{{cse:δίκτυο:turnin9.png}}]]\\ 
  
  
-Created by [[https://github.com/gzachos|gzachos]]+[[http://cse.uoi.gr/~gzachos/turnin/students.html|Source material]] by [[https://github.com/gzachos|gzachos]]
cse/εργαστήρια/turnin.1574240284.txt.gz · Last modified: 2019/11/20 10:58 by emav