TP Unix - Treasure hunt : Différence entre versions

De Ensiwiki
Aller à : navigation, rechercher
(Starting point : step A1)
 
(4 révisions intermédiaires par 2 utilisateurs non affichées)
Ligne 6 : Ligne 6 :
 
Good for this step. If you've identified yourself correctly, you're in the wiki editing interface (otherwise, look on the top of the page).
 
Good for this step. If you've identified yourself correctly, you're in the wiki editing interface (otherwise, look on the top of the page).
  
We now leave EnsiWiki. The file ~moy/treasure-hunt.sh (on your machine at Ensimag) is an executable file. Execute it, and it will send to you an email which contain the instructions for the next step.
+
We now leave EnsiWiki for Chamilo. Chamilo is available from the homepage of the Intranet (http://intranet.ensimag.fr). Find the course "Ensimag 3MMUNIX Unix : introduction et programmation shell". Open the tool "Documents". One of the document in step A6 of the treasure hunt.
 
+
To execute this program, simply type in a shell the command: ~moy/treasure-hunt.sh
+
  
 
-->
 
-->
Ligne 15 : Ligne 13 :
 
To make sure you've understood all the important points of the booklet, and to make the introduction more playful, your teachers prepared a self-evaluation game in the form of a treasure hunt. The idea is simple: each step is a small manipulation which gives you access to the next step.
 
To make sure you've understood all the important points of the booklet, and to make the introduction more playful, your teachers prepared a self-evaluation game in the form of a treasure hunt. The idea is simple: each step is a small manipulation which gives you access to the next step.
  
Most steps are meant to be done from your usual machine in the Ensimag: preferably from individual workstations (PC), but should also work on <code>telesun</code>. Copies of these steps are on the machines <code>ensibm</code> and <code>ensisun</code>, at the same places.
+
Most steps are meant to be done from your usual machine in the Ensimag: preferably from individual workstations (PC), but also works on <code>pcserveur.ensimag.fr</code>.
  
 
Mutual help is encouraged, but please don't give the solution directly to your friends ...
 
Mutual help is encouraged, but please don't give the solution directly to your friends ...
Ligne 25 : Ligne 23 :
 
For now, it's really simple, just follow this link:
 
For now, it's really simple, just follow this link:
  
http://www-verimag.imag.fr/~moy/jeu-de-piste/step-A2.txt
+
http://lig-enseignement.imag.fr/jeu-de-piste/step-A2.txt
 +
 
 +
== Cheat to step B1 (trouble with computer account) ==
 +
 
 +
If you do not have yet your full computer account on the servers, you may start here. At the end of part A, you should receive an email similar to this one:
 +
 
 +
  Hello,
 +
 
 +
  This email has been sent to you by the script treasure-hunt.sh. It is
 +
  part of the Unix Treasure Hunt.
 +
 
 +
  The next step consists in executing a Python program (if you prefer C
 +
  or Ada, see below). The program is in the file step_b1.py in the
 +
  directory jeu-de-piste/ on the account of user jdpunix.
 +
 
 +
  You don't have permission to execute the command 'ls' in this
 +
  directory (you can try, but it won't work), but you can still retrieve
 +
  the file (you'll see later how to use the command chmod to get this
 +
  kind of permissions).
 +
 
 +
  Get this file, for example with
 +
 
 +
    cp the-file-to-get ~
 +
 
 +
  (~ means 'my home directory')
 +
 
 +
  Then come back to your home directory and execute the file using the
 +
  command:
 +
 
 +
    python3 step_b1.py
 +
 
 +
  The program will give you instructions to go to the next step.
 +
 
 +
  If you prefer Ada, an Ada program is located in the file step_b1.adb
 +
  in the directory jeu-de-piste/ on the account of user jdpunix.
 +
  Copy it to your own account and compile it using:
 +
 
 +
    gnatmake step_b1
 +
 
 +
  then execute it using
 +
 
 +
    ./step_b1
 +
 
 +
  If you prefer C language, a C version of the program is located in the
 +
  same directory, in a file named step_b1.c (to be compiled with gcc).
  
 
== Second part : step H1 ==
 
== Second part : step H1 ==
Ligne 31 : Ligne 73 :
 
Not available in english as of now, but you can start here:
 
Not available in english as of now, but you can start here:
  
http://www-verimag.imag.fr/~moy/jeu-de-piste/lasuite/etape-H1.txt
+
http://lig-enseignement.imag.fr/jeu-de-piste/lasuite/etape-H1.txt

Version actuelle en date du 6 août 2020 à 16:07

(Version française de ce jeu ici : TP Unix - Jeu de piste. Pour passer de la version française à la version anglaise, il suffit généralement de traduire « etape » en « step » dans les noms de fichiers et URLs)

To make sure you've understood all the important points of the booklet, and to make the introduction more playful, your teachers prepared a self-evaluation game in the form of a treasure hunt. The idea is simple: each step is a small manipulation which gives you access to the next step.

Most steps are meant to be done from your usual machine in the Ensimag: preferably from individual workstations (PC), but also works on pcserveur.ensimag.fr.

Mutual help is encouraged, but please don't give the solution directly to your friends ...

Ready? Let's go! Here's the first step:

Starting point : step A1

For now, it's really simple, just follow this link:

http://lig-enseignement.imag.fr/jeu-de-piste/step-A2.txt

Cheat to step B1 (trouble with computer account)

If you do not have yet your full computer account on the servers, you may start here. At the end of part A, you should receive an email similar to this one:

  Hello,
  
  This email has been sent to you by the script treasure-hunt.sh. It is
  part of the Unix Treasure Hunt.
  
  The next step consists in executing a Python program (if you prefer C
  or Ada, see below). The program is in the file step_b1.py in the
  directory jeu-de-piste/ on the account of user jdpunix.
  
  You don't have permission to execute the command 'ls' in this
  directory (you can try, but it won't work), but you can still retrieve
  the file (you'll see later how to use the command chmod to get this
  kind of permissions).
  
  Get this file, for example with
  
    cp the-file-to-get ~
  
  (~ means 'my home directory')
  
  Then come back to your home directory and execute the file using the
  command:
  
    python3 step_b1.py
  
  The program will give you instructions to go to the next step.
  
  If you prefer Ada, an Ada program is located in the file step_b1.adb
  in the directory jeu-de-piste/ on the account of user jdpunix.
  Copy it to your own account and compile it using:
  
    gnatmake step_b1
  
  then execute it using
  
    ./step_b1
  
  If you prefer C language, a C version of the program is located in the
  same directory, in a file named step_b1.c (to be compiled with gcc).

Second part : step H1

Not available in english as of now, but you can start here:

http://lig-enseignement.imag.fr/jeu-de-piste/lasuite/etape-H1.txt