Wiki source code of 02 - How to login to Maxwell and start RecoGUI
Version 11.1 by greving on 2021-10-26 11:23
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | = {{id name="00-HowtologintoMaxwell-ShortVersion:"/}}**Short Version: ** = | ||
| 2 | |||
| 3 | Terminal: | ||
| 4 | |||
| 5 | (% class="code" %) | ||
| 6 | ((( | ||
| 7 | salloc ~-~-partition=psx ~-~-nodes=1 –-time=06:00:00 | ||
| 8 | \\(if you need gpu: (% class="bash plain" %){{code language="none"}}--constraint=P100{{/code}}(%%) ) | ||
| 9 | \\ssh max-bla123 | ||
| 10 | \\module load anaconda | ||
| 11 | \\source activate ~~/envs/tomopy | ||
| 12 | \\spyder& | ||
| 13 | ))) | ||
| 14 | |||
| 15 | \\ | ||
| 16 | |||
| 17 | \\ | ||
| 18 | |||
| 19 | {{code linenumbers="true" collapse="true"}} | ||
| 20 | salloc --partition=psx --nodes=1 –-time=06:00:00 | ||
| 21 | |||
| 22 | ssh max-bla123 | ||
| 23 | |||
| 24 | module load anaconda | ||
| 25 | |||
| 26 | source activate ~/envs/tomopy | ||
| 27 | |||
| 28 | spyder& | ||
| 29 | {{/code}} | ||
| 30 | |||
| 31 | \\ | ||
| 32 | |||
| 33 | Spyder: | ||
| 34 | |||
| 35 | Open RecoGUI, | ||
| 36 | |||
| 37 | (Right click on tab: "Set console working directory") (to be removed) | ||
| 38 | |||
| 39 | Green Arrow to start program | ||
| 40 | |||
| 41 | \\ | ||
| 42 | |||
| 43 | = {{id name="00-HowtologintoMaxwell-LongVersion:"/}}**Long Version: ** = | ||
| 44 | |||
| 45 | \\ | ||
| 46 | |||
| 47 | **Login to max-nova**: E.g. from browser [[https:~~/~~/max-nova.desy.de:3443/>>url:https://max-nova.desy.de:3443/auth/ssh||shape="rect"]] | ||
| 48 | |||
| 49 | \\ | ||
| 50 | |||
| 51 | Click on "**Launch Session**" and "**XFCE**" Icon | ||
| 52 | |||
| 53 | [[image:attach:image2021-4-27_13-55-52.png||height="250"]] | ||
| 54 | |||
| 55 | \\ | ||
| 56 | |||
| 57 | **Open a Terminal**, e.g. from the icon at the bottom of your desktop. You can also open it via right click → "Open Terminal here" directly on your desktop or from any folder. | ||
| 58 | |||
| 59 | [[image:attach:image2021-4-27_13-58-35.png||height="250"]] | ||
| 60 | |||
| 61 | \\ | ||
| 62 | |||
| 63 | Now you can **allocate a node** for yourself, so you will have enough memory and power for your reconstruction. | ||
| 64 | |||
| 65 | (% class="code" %) | ||
| 66 | ((( | ||
| 67 | salloc ~-~-partition=psx ~-~-nodes=1 ~-~-time=06:00:00 | ||
| 68 | ))) | ||
| 69 | |||
| 70 | \\ | ||
| 71 | |||
| 72 | You will get a node for 6 hours, you can also choose longer or shorter times. | ||
| 73 | |||
| 74 | It can take some time before you get a node, then it will tell you which node is reserved for you. (Example: max-exfl069) | ||
| 75 | |||
| 76 | \\ | ||
| 77 | |||
| 78 | Now you can **login via ssh** on this node: | ||
| 79 | |||
| 80 | (% class="code" %) | ||
| 81 | ((( | ||
| 82 | ssh max-exfl069 | ||
| 83 | ))) | ||
| 84 | |||
| 85 | Enter your password. | ||
| 86 | |||
| 87 | \\ | ||
| 88 | |||
| 89 | EXAMPLE: | ||
| 90 | |||
| 91 | [[image:attach:image2021-4-27_13-52-11.png||height="125"]] | ||
| 92 | |||
| 93 | Hint: Please use partition=psx, if you use =all, the connection might close while you are working if someone with higher priority needs the node you are working on. | ||
| 94 | |||
| 95 | \\ | ||
| 96 | |||
| 97 | Now you are on a different node [[image:http://confluence.desy.de/s/de_DE/7901/4635873c8e185dc5df37b4e2487dfbef570b5e2c/_/images/icons/emoticons/smile.svg||title="(Lächeln)" border="0" class="emoticon emoticon-smile"]]. | ||
| 98 | |||
| 99 | \\ | ||
| 100 | |||
| 101 | You first have to **load the anaconda module:** | ||
| 102 | |||
| 103 | (% class="code" %) | ||
| 104 | ((( | ||
| 105 | module load anaconda/3 | ||
| 106 | \\ | ||
| 107 | ))) | ||
| 108 | |||
| 109 | and **activate your virtual environment**, depending on where you installed it: | ||
| 110 | |||
| 111 | (% class="code" %) | ||
| 112 | ((( | ||
| 113 | source activate ~~/envs/tomopy | ||
| 114 | ))) | ||
| 115 | |||
| 116 | \\ | ||
| 117 | |||
| 118 | ~~/ takes you back to your home directory. In this case, the environment "tomopy" was installed in the home directory in the folder "envs". | ||
| 119 | |||
| 120 | \\ | ||
| 121 | |||
| 122 | now you can **start spyder**: | ||
| 123 | |||
| 124 | (% class="code" %) | ||
| 125 | ((( | ||
| 126 | spyder& | ||
| 127 | ))) | ||
| 128 | |||
| 129 | \\ | ||
| 130 | |||
| 131 | EXAMPLE: (virtual environment in "envs/p36" | ||
| 132 | |||
| 133 | [[image:attach:image2021-4-27_13-53-35.png||height="71"]] | ||
| 134 | |||
| 135 | \\ | ||
| 136 | |||
| 137 | You can also start another terminal e.g. if you want to look at your data / reconstructions in fiji. | ||
| 138 | |||
| 139 | \\ | ||
| 140 | |||
| 141 | Hint: You can check your partition via | ||
| 142 | |||
| 143 | (% class="code" %) | ||
| 144 | ((( | ||
| 145 | my-partitions | ||
| 146 | ))) | ||
| 147 | |||
| 148 | You should have access to psx. | ||
| 149 | |||
| 150 | [[image:attach:image2021-5-4_10-28-14.png]] | ||
| 151 | |||
| 152 | \\ | ||
| 153 | |||
| 154 | For further information also check: | ||
| 155 | |||
| 156 | [[doc:IS.Maxwell.WebHome]] | ||
| 157 | |||
| 158 | \\ | ||
| 159 | |||
| 160 | \\ |