Useful tools

Revision as of 16:10, 13 March 2009 by Micha (talk | contribs)

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

If you have windows you can install putty and cygwin, and follow 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.

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

$ matlab &

and matlab will start with the graphical interface.

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