Travail a distance

Un article de Informaticiens département des sciences de la Terre et l'atmosphère
Version depuis le 30 d'avril 2020 à 14:50 par Michel (Discuter | changes)
Aller à: navigation, charcher
A Venir / Work in progress

VPN

A Venir / Work in progress

Accès aux sites web internes de l'UQÀM à partir de votre machine à l'extérieur

Recette pour "power users", à utiliser avec précaution

1 - établir un canal "proxy"

ssh -D 8888 votre_compte@hoppy.sca.uqam.ca

2 - créer un profil d'usager supplémentaire (avec proxy) dans le fureteur de votre machine(firefox/chrome/brave/safari/...)

proxy de type socks5
port 8888 
hôte localhost 
pour firefox/linux http://armnlib.uqam.ca/images/proxy.png

3 - redémarrer votre fureteur en utilisant le profil d'usager avec proxy créé à l'étape 2

quelques références

https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Multiple_profiles
https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles
https://unixblogger.com/proxy-over-ssh-on-windows-mac-or-linux

N.B. 8888 n'est qu'un exemple et peut être remplacé par tout numéro de "port" valide supérieur à 1024. Ce port doit évidemment être libre (non utilisé par un autre logiciel)

(supplément d' information et images à venir)

SSH

access to UQAM through the hoppy gateway system
ssh client configuration
A Venir / Work in progress

Matlab à distance

The fastest way to execute a Matlab script is to not open any windows:

1) Write the Matlab script either on the UQAM servers with 'vi' or 'vim', or, if you are not comfortable with these, you can also write the script on your local computer and copy it on the servers to execute it there.

2) Execute Matlab script without opening any windows
a) Make sure your Matlab script does not open any windows. Add for example ('visible','off') to the 'figure' command:

   a=1:4;
   f = figure('visible','off');
   plot(a)
   saveas(f,'newout','fig')


b) Run your Matlab script without opening any windows.
Assuming your Matlab script is called 'mplot.m', execute:

   matlab -nodesktop -nosplash -nojvm -r "mplot;quit;"

You need to omit the '.m' extension of your script in the call!

If you have any problems/corrections/suggestions, please, send me an email: winger.katja@uqam.ca

python à distance

nature

The fastest way to execute a Python script is to not open any windows:

1) Write the Python script either on the UQAM servers with 'vi' or 'vim', or, if you are not comfortable with these, you can also write the script on your local computer and copy it on the servers to execute it there.

2) Execute Python script with

   python scriptname

Jupyter (python) à distance

A Venir / Work in progress

Spyder (python) à distance

A Venir / Work in progress
condamné à être lent et pénible!!!