Skip to content
Snippets Groups Projects
Commit 97494fbf authored by Jean-Luc Parouty's avatar Jean-Luc Parouty
Browse files

Add a nice marketing header ;-)

Former-commit-id: b347e300
parent b4bbcba0
No related branches found
No related tags found
No related merge requests found
...@@ -3,5 +3,9 @@ ...@@ -3,5 +3,9 @@
__pycache__ __pycache__
*/__pycache__/* */__pycache__/*
run/ run/
data/ GTSRB/data
!/BHPD/data/BostonHousing.csv IMDB/data
MNIST/data
VAE/data
BHPD/data/*
!BHPD/data/BostonHousing.csv
source diff could not be displayed: it is too large. Options to address this: view the blob.
This diff is collapsed.
<div style="text-align: left">
<img src="../fidle/img/00-Fidle-header-01.svg" style="width:800px"/>
</div>
# How to - SSH for GRICAD
How to configure your SSH environment for friendly access to GRICAD in 6 steps.
## Step 1 - Generate yours ssh keys
If you don't already have SSH keys, create one with a nice password :
```
# ssh-keygen
```
## Step 2 - ssh-agent configuration
To avoid having to enter your ssh password all the time, we will use the ssh-agent service.
Try :
```
# ssh-add
```
If an error occurs, add this lines in your .bash_profile and restart your session :
```
pgrep ssh-agent >/dev/null || ssh-agent -s > ~/.ssh_agent
. ~/.ssh_agent
ssh-add -l >/dev/null || ssh-add
```
## Step 3 - Allow your access to the bastions
The password requested is your PERSEUS password.
\<login\> is your PERSEUS login
```
# ssh-copy-id <login>@rotule.imag.fr
```
and
```
# ssh-copy-id <login>@trinity.ujf-grenoble.fr
```
To verify, these two commands must now work :
```
# ssh <login>@rotule.imag.fr hostname
# ssh <login>@trinity.ujf-grenoble.fr hostname
```
## Step 4 - Configuring access through bastions
Modify (or create if it doesn't exist) your **.ssh/config** file, with :
```
ForwardAgent yes
Host *.ciment
User <login>
ProxyCommand ssh -q <login>@access-rr-ciment.imag.fr "nc -w 60 `basename %h .ciment` %p"
LocalForward 8888 f-dahu:<your uid>
LocalForward 6006 f-dahu:<your uid + 10000>
```
Where :
- \<login\> is your PERSEUS login
- \<your uid\> is your uid on rotule or trinity
- \<your uid + 10000\> is your uid + 10000 (if uid=6500, that makes 16500)
To get your uid, try : `# ssh <your login>@rotule.imag.fr id -u`
## Step 5 - Drink a coffee
You've earned it, but courage, it's almost over !
## Step 6 - Allow your access to the frontal
As before, the password requested is your PERSEUS password.
```
# ssh-copy-id f-dahu.ciment
```
**Fine !** Normalement, on peut maintenant accéder directement à la frontale - de manière sécurisée et simple, - sans ressaisir 18 fois son mot de passe :-)
**To check :**
```
# ssh f-dahu.ciment hostname
f-dahu
```
If that doesn't work, drink another coffee and check your steps...
---
<div style="text-align: left">
<img src="../fidle/img/00-Fidle-logo-01.svg" style="width:80px"/>
</div>
\ No newline at end of file
File moved
This diff is collapsed.
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140.2164 40.848"><title>00-Fidle-logo-01</title><g id="Calque_2" data-name="Calque 2"><g id="Calque_4" data-name="Calque 4"><path d="M46.1913,31.74a12.9222,12.9222,0,0,0,5.2755-1.77,6.4763,6.4763,0,0,1,2.3629-.9239,14.6364,14.6364,0,0,0-5.7616-16.4446,17.0565,17.0565,0,0,0-11.8732-2.0051c-4.1719.69-8.4957,3.8461-10.189,5.2622-1.0189.8536-13.1385,12.3424-18.1936,10.0527-3.42-1.5492,2.6862-7.1873-.1144-12.3393a.2236.2236,0,0,0-.373-.0248c-1.4257,1.9233-2.8193,4.2317-4.7179,3.1953-.8482-.4632-1.6116-1.9422-2.2-2.8775A.2216.2216,0,0,0,0,13.9917,23.35,23.35,0,0,0,5.87,28.2417a35.3776,35.3776,0,0,0,24.34,12.518c5.3439.5321,18.0193-1.1527,23.0835-10.2646a12.7681,12.7681,0,0,0-1.2217.6066,14.2177,14.2177,0,0,1-5.7629,1.9167c-.1761.0163-.3511.0236-.5261.0236a10.1733,10.1733,0,0,1-5.7446-2.303,1.0764,1.0764,0,1,1,.8227-1.0443c0,.0176-.0042.0339-.0054.0515C41.8966,30.5423,44.0669,31.9474,46.1913,31.74ZM30.0385,36.5091a19.6093,19.6093,0,0,1-4.6162.8385c-1.0425.0006-1.476-.2954-1.6824-.7392-.5431-1.1678,1.4136-2.8563,3.1493-4.0677a.6418.6418,0,1,1,.7343,1.0528,10.5781,10.5781,0,0,0-2.651,2.4368c.339.0732,1.44.12,4.733-.7616a.6422.6422,0,0,1,.333,1.24Zm14.87-15.6442a2.4512,2.4512,0,0,1,2.38,2.3617,1.6015,1.6015,0,1,0-1.4179,2.34,1.6573,1.6573,0,0,0,.2973-.03,2.28,2.28,0,0,1-1.2593.3875,2.5337,2.5337,0,0,1,0-5.06ZM36.6423,4.436A1.2835,1.2835,0,0,0,37.1466,6.18c.6211.342,1.9294-.402,2.7231.7071.4122.5763-.8627-2.6129-1.4839-2.9556A1.2827,1.2827,0,0,0,36.6423,4.436Zm6.5389.1374c-1.5995.9378-1.8961,4.8154-1.4838,4.2391a7.2989,7.2989,0,0,1,2.7231-1.9906,1.2837,1.2837,0,0,0-1.2393-2.2485ZM41.5587.2981c-.8179.9462-.2579,3.4-.1114,2.95a5.2169,5.2169,0,0,1,1.3174-1.8537A.8415.8415,0,0,0,42.7441.2054.8332.8332,0,0,0,41.5587.2981Z" style="fill:#e12229"/><path d="M65.6671,13.7493H77.3946V15.158H67.3223v9.4379h9.2271v1.4087H67.3223v11.481H65.6671Z" style="fill:#808285"/><path d="M83.5909,13.7493V37.4856H81.9356V13.7493Z" style="fill:#808285"/><path d="M89.3658,14.0662a39.0353,39.0353,0,0,1,6.0576-.4932c4.3316,0,7.607,1.1621,9.5791,3.24a11.2256,11.2256,0,0,1,2.958,8.2056,13.0738,13.0738,0,0,1-3.0991,9.0156c-2.1128,2.2891-5.67,3.6275-10.248,3.6275a50.7148,50.7148,0,0,1-5.2476-.2115Zm1.6553,22.0107a29.8576,29.8576,0,0,0,3.8388.1763c7.607,0,11.375-4.2617,11.375-11.1289.0352-6.022-3.31-10.1426-10.9174-10.1426a25.2377,25.2377,0,0,0-4.2964.352Z" style="fill:#808285"/><path d="M112.15,13.7493h1.6553V36.0769h10.6006v1.4087H112.15Z" style="fill:#808285"/><path d="M139.0894,25.6877h-9.5088V36.0769h10.6358v1.4087h-12.291V13.7493h11.7275V15.158H129.5806v9.1211h9.5088Z" style="fill:#808285"/></g></g></svg>
\ No newline at end of file
File moved
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# module pwk # module pwk
# ================================================================== # ==================================================================
# A simple module to host some common functions for practical work # A simple module to host some common functions for practical work
# pjluc 2020 # Jean-Luc Parouty 2020
import os import os
import glob import glob
...@@ -31,14 +31,14 @@ import matplotlib.pyplot as plt ...@@ -31,14 +31,14 @@ import matplotlib.pyplot as plt
from IPython.display import display,Markdown,HTML from IPython.display import display,Markdown,HTML
VERSION='0.2.8' VERSION='0.2.9'
# ------------------------------------------------------------- # -------------------------------------------------------------
# init_all # init_all
# ------------------------------------------------------------- # -------------------------------------------------------------
# #
def init(mplstyle='../fidle/custom.mplstyle', cssfile='../fidle/custom.css'): def init(mplstyle='../fidle/mplstyles/custom.mplstyle', cssfile='../fidle/css/custom.css'):
global VERSION global VERSION
# ---- matplotlib and css # ---- matplotlib and css
matplotlib.style.use(mplstyle) matplotlib.style.use(mplstyle)
...@@ -376,7 +376,7 @@ def hsize(num, suffix='o'): ...@@ -376,7 +376,7 @@ def hsize(num, suffix='o'):
def load_cssfile(cssfile): def load_cssfile(cssfile):
if cssfile is None: return if cssfile is None: return
styles = open("../fidle/custom.css", "r").read() styles = open(cssfile, "r").read()
display(HTML(styles)) display(HTML(styles))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment