Difference between revisions of "Useful tools"

Line 34: Line 34:
 
=== With windows ===
 
=== With windows ===
  
If you have windows you can install [http://www.chiark.greenend.org.uk/~sgtatham/putty/ putty] and [http://x.cygwin.com/ cygwin], and follow [http://www.cs.dartmouth.edu/~bmeister/putty-cygwin-tutorial.pdf these instructions]. The only difference is that you need to connect with your own login (that your superviser gave you) and the host is gertrud.unil.ch (and not the dartmouth thing). Also in page 13 of the manual, it tells you to modifiy a file in C:\cygwin\usr\X11R6\bin. In our case, the file to edit was actually in C:\cygwin\bin. The installation is quite heavy and takes about 40 minutes, so do it when you have some time.
+
* Installer [XMing http://sourceforge.net/projects/xming/files/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe/download] avec la configuration proposée par défaut.
 
+
* Télécharger [Putty http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html] (ne nécessite pas d'installation)
Once the installation is completed, you can connect to gertrud with X forwarding as explained in the instructions. Do not forget to log in the unil network( https://reseau.unil.ch ) before. Then just type
+
* Connectez-vous au réseau sécurisé de l'unil (https://reseau.unil.ch)
 
+
* Lancez Xming, puis lancez Putty. Configurez une nouvelle session dans Putty avec les paramètres suivants:
$ matlab &
+
** Session > Host name : gertrud.unil.ch  (ou shoshana.unil.ch)
 
+
** Connection > SSH > X11 : cliquez sur "Enable X11 forwarding"
and matlab will start with the graphical interface.
+
** Session > Saved Sessions : donnez un nom à votre session (p.ex gertrud), puis cliquez sur save. Comme ça, les prochaines fois, vous n'aurez qu'à faire "Load gertrud".
 +
** Ne modifiez pas d'autres paramètres dans Putty.
 +
** Au bas de la fenêtre, cliquez sur Open. Un terminal s'ouvre, en vous demandant votre username, puis votre password. Ensuite, vous êtes connecté au serveur.
 +
** Pour lancer matlab, tapez dans le terminal : matlab &
  
 
=== With Mac or Linux ===
 
=== With Mac or Linux ===

Revision as of 14:10, 8 March 2010

Some tips how to get matlab working for students of the Course: "Solving Biological Problems that require Math"

Comment utiliser matlab depuis les ordinateurs du Bugnon 27

Utiliser the X-Win32 programm: Démarrer -> X-Win32->X-Config.

1. Créer une nouvelle session en cliquant sur le bouton "Manuel".

2. Choisir ssh comme mode de connexion

3. Choisir un nom de session (p.ex. session1)

4. Hôte: gertrud.unil.ch

5. Connexion: votre login (donné par votre assistant)

6. Commande xterm

7. mot de passe votre mot de passe (donné par votre assistant)

8. Cliquer sur enregistrer

9. Selectionner cette session (session1)

10. Cliquer sur "Lancer" un terminal apparaît

11. taper "matlab &" dans le terminal. Matlab apparaît

Si on vous demande une license, il faut aller dans Démarrer -> X-Win32->LicenseX-Win32.txt et y suivre les instructions


How to use matlab from home

With windows

  • Installer [XMing http://sourceforge.net/projects/xming/files/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe/download] avec la configuration proposée par défaut.
  • Télécharger [Putty http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html] (ne nécessite pas d'installation)
  • Connectez-vous au réseau sécurisé de l'unil (https://reseau.unil.ch)
  • Lancez Xming, puis lancez Putty. Configurez une nouvelle session dans Putty avec les paramètres suivants:
    • Session > Host name : gertrud.unil.ch (ou shoshana.unil.ch)
    • Connection > SSH > X11 : cliquez sur "Enable X11 forwarding"
    • Session > Saved Sessions : donnez un nom à votre session (p.ex gertrud), puis cliquez sur save. Comme ça, les prochaines fois, vous n'aurez qu'à faire "Load gertrud".
    • Ne modifiez pas d'autres paramètres dans Putty.
    • Au bas de la fenêtre, cliquez sur Open. Un terminal s'ouvre, en vous demandant votre username, puis votre password. Ensuite, vous êtes connecté au serveur.
    • Pour lancer matlab, tapez dans le terminal : matlab &

With Mac or Linux

Log in the unil network (https://reseau.unil.ch). Then just use open a terminal use the following command:

$ ssh -X username@gertrud.unil.ch

where username is the username that was given to you by your assistant.

How copy files from your windows computer to gertrud (and vice-versa)

From Windows

You can can install winscp and use that program.


From linux or Mac

Open a terminal and use the follwing command

$ scp filename username@gertrud.unil.ch:./mydir

where username is your username and mydir is the name of the existing repository on gertrud where you want to put the file. Use the -R option to copy a whole directory.

Vice versa:

$ scp username@gertrud.unil.ch:./mydir/filename my_local_dir/

where my_local_dir is the name of the existing local repository where you want to put the file.

Quelques commandes linux utiles

Sous linux comme sous windows, les fichiers sont organisée selon une hierarchie. Le sommet (ou la racine) de cette hierarchie est le fichier ~username où username et votre username. Il est préférable de ne pas mettre d'espace dans vos noms de fichiers et de répertoires.

  • changer le mot de passe:

$ passwd

  • créer un répertoire:

$ mkdir nom_rep

où "nom_rep" est le nom du répertoire

  • effacer un ficher:

$ rm nom_fichier

où "nom_fichier" est le nom du fichier à effacer

  • renommer un ficher:

$ mv ancien_nom nouveau_nom

où "ancien_nom" est le nom du fichier à renommer "nouveau_nom" et le nom à donner

  • lister le contenu du répertoire courant:

$ ls

  • lister le contenu d'un sous-répertoire du répertoire courant:

$ ls sous_rep

où "sous_rep" est le nom du sous-répertoire

  • se déplacer dans un sous-répertoire du répertoire courant:

$ cd sous_rep

où "sous_rep" est le nom su sous-répertoire

  • se déplacer dans un sur-répertoire du répertoire courant (monter dans la hiérarchie des répertoire):

$ cd ..

  • aller au sommet de sa hierarchie

$ cd

  • voir dans quel répertoire on se trouve:

$ pwd