Difference between revisions of "Useful tools"

Line 12: Line 12:
  
 
=== With Mac or Linux ===
 
=== With Mac or Linux ===
 
+
Log in the unil network (https://reseau.unil.ch).
Just use open a terminal use the following command:
+
Then just use open a terminal use the following command:
  
 
$ ssh -X username@gertrud.unil.ch
 
$ ssh -X username@gertrud.unil.ch
  
where username is the username that was given to you by your assistant
+
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) ==
 
== How copy files from your windows computer to gertrud  (and vice-versa) ==

Revision as of 10:26, 9 March 2009

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. 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)

You can can install winscp.

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