exercises:2016_uzh_cmest:login
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
exercises:2016_uzh_cmest:first_simulation_run [2016/09/21 09:11] – [Part I: Login] tmueller | exercises:2016_uzh_cmest:login [2016/09/22 09:48] – tmueller | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | In this exercise you will learn how to run your first calculation. | + | In this exercise you will learn how to login and run commands on our infrastructure. |
===== Part I: Login ===== | ===== Part I: Login ===== | ||
Line 18: | Line 18: | ||
optionally you may want: | optionally you may want: | ||
- | * a file transfer tool to copy files from/to the server | + | * a file transfer tool to copy files from/to the server: |
- | * a plain text editor to edit input files if you are uncomfortable with using '' | + | * on Linux: put '' |
+ | * on Mac OS X/OSX/macOS Sierra: use [[https:// | ||
+ | * one Windows: use [[https:// | ||
+ | * a plain text editor to edit input files if you are uncomfortable with using '' | ||
- | <note important> | + | Use the instructions giving in the lecture/ |
+ | |||
+ | <note important> | ||
< | < | ||
$ passwd | $ passwd | ||
Line 33: | Line 38: | ||
Since there are numerous applications with different and possibly conflicting requirements, | Since there are numerous applications with different and possibly conflicting requirements, | ||
- | To load the CP2K module, use: | + | To list all available modules: |
< | < | ||
- | $ module | + | $ module |
</ | </ | ||
- | while | + | while using |
< | < | ||
- | $ module avail | ||
$ module list | $ module list | ||
</ | </ | ||
- | gives you the complete list of available modules, respectively | + | gives the list of loaded |
- | After loading | + | To load the CP2K module |
< | < | ||
- | $ cp2k.popt --version | + | $ module load cp2k/ |
</ | </ | ||
- | should give you the output | + | When you list the loaded modules again at this point (see command above), you will notice that the list has changed. |
+ | |||
+ | |||
+ | Now run the following command to verify that the CP2K executable is available: | ||
< | < | ||
- | CP2K version 4.0 (Development Version) | + | $ cp2k.sopt --help |
- | SVN source code revision svn:17408 | + | |
- | | + | |
</ | </ | ||
- | <note tip>The module loading is **not** persistent. You have to reload the modules every time you log back in. | + | Which should give you the output |
+ | < | ||
+ | | ||
+ | [-i] < | ||
+ | | ||
+ | [-o] < | ||
+ | | ||
- | </note> | + | |
- | ==== Running a simulation using CP2K ==== | + | The easiest way is cp2k.sopt < |
+ | The following options can be used: | ||
+ | |||
+ | -i < | ||
+ | argument, the -i flag is not needed | ||
+ | -o < | ||
+ | |||
+ | These switches skip the simulation, unless [-r|-run] is specified: | ||
+ | |||
+ | --check, -c : performs a syntax check of the < | ||
+ | --echo, -e : echos the < | ||
+ | The input is also checked, but only a failure is reported | ||
+ | --help, -h : writes this message | ||
+ | --html-manual | ||
+ | in the current directory. The file index.html is a good | ||
+ | starting point for browsing | ||
+ | --license | ||
+ | --mpi-mapping | ||
+ | --run, -r : forces a CP2K run regardless of other specified flags | ||
+ | --version, -v : prints the CP2K version and the SVN revision number | ||
+ | --xml : dumps the whole CP2K input structure as a XML file | ||
+ | xml2htm generates a HTML manual from this XML file | ||
+ | </ | ||
+ | |||
+ | Another program we need for visualization is [[http:// | ||
+ | |||
+ | Load the respective module (since there is only one version available, the shorthand '' | ||
+ | |||
+ | < | ||
+ | $ vmd | ||
+ | </ | ||
+ | |||
+ | Two new windows named '' | ||
+ | |||
+ | < | ||
+ | Info) VMD for LINUXAMD64, version 1.9.2 (December 29, 2014) | ||
+ | Info) http:// | ||
+ | Info) Email questions and bug reports to vmd@ks.uiuc.edu | ||
+ | Info) Please include this reference in published work using VMD: | ||
+ | Info) Humphrey, W., Dalke, A. and Schulten, K., `VMD - Visual | ||
+ | Info) Molecular Dynamics', | ||
+ | Info) ------------------------------------------------------------- | ||
+ | Info) Multithreading available, 32 CPUs detected. | ||
+ | Info) Free system memory: 256213MB (99%) | ||
+ | Warning) Detected a mismatch between CUDA runtime and GPU driver | ||
+ | Warning) Check to make sure that GPU drivers are up to date. | ||
+ | Info) No CUDA accelerator devices available. | ||
+ | Warning) Detected X11 ' | ||
+ | Warning) try disabling this X server option. | ||
+ | Warning) disable stereoscopic display when ' | ||
+ | libGL error: failed to load driver: swrast | ||
+ | libGL error: Try again with LIBGL_DEBUG=verbose for more details. | ||
+ | Info) OpenGL renderer: GeForce GTX 760 (192-bit)/ | ||
+ | Info) | ||
+ | Info) GLSL rendering mode is NOT available. | ||
+ | Info) | ||
+ | Info) Dynamically loaded 2 plugins in directory: | ||
+ | Info) / | ||
+ | vmd > | ||
+ | </ | ||
+ | |||
+ | If you only get the output on the server but not the 2 windows there is something wrong with your setup and you should check the lecture notes again. You can exit VMD by either closing the '' | ||
+ | |||
+ | < | ||
+ | vmd > quit | ||
+ | </ | ||
+ | |||
+ | <note tip>The module loading is **not** persistent. You have to reload the modules every time you log back in.</ | ||
+ | |||
+ | |||
+ | ===== Part III: Advanced account configuration ===== | ||
+ | |||
+ | ==== Make module loading persistent ==== | ||
+ | |||
+ | Upon login, the shell ('' | ||
+ | |||
+ | < | ||
+ | $ echo ' | ||
+ | </ | ||
+ | |||
+ | after that you can add and remove modules to be loaded at startup using '' | ||
+ | |||
+ | To add '' | ||
+ | |||
+ | < | ||
+ | $ module initadd vmd | ||
+ | $ module initadd cp2k/ | ||
+ | </ | ||
+ | |||
+ | to remove '' | ||
+ | |||
+ | < | ||
+ | $ module initrm vmd | ||
+ | </ | ||
+ | |||
+ | Alternatively you can of course simply edit '' | ||
+ | |||
+ | ==== Setup key-based authentication ==== | ||
+ | |||
+ | To avoid having to type the password every time you log in (and to increase the security), keys can be used for authentication instead. The following instructions are **for OSX and Linux**. | ||
+ | |||
+ | First generate a key-pair **on your local machine** using | ||
+ | |||
+ | < | ||
+ | $ ssh-keygen | ||
+ | </ | ||
+ | |||
+ | and accept the defaults proposed and do not set a password. | ||
+ | |||
+ | Upload the public key **from your local machine** to tcopt3: | ||
+ | |||
+ | < | ||
+ | $ scp ~/ | ||
+ | </ | ||
+ | |||
+ | Now login to '' | ||
+ | |||
+ | < | ||
+ | $ mkdir -p .ssh | ||
+ | $ chmod 0700 .ssh | ||
+ | $ mv id_rsa.pub .ssh/ | ||
+ | </ | ||
+ | |||
+ | When connecting to the server **from your local machine** now, use: | ||
+ | |||
+ | < | ||
+ | $ ssh -i ~/ | ||
+ | </ | ||
+ | |||
+ | ==== Simplify the login ==== | ||
+ | |||
+ | The following instructions apply **apply to OSX and Linux**. | ||
+ | |||
+ | **On your local machine** add the following part to the file '' | ||
+ | |||
+ | < | ||
+ | Host tcopt3 | ||
+ | HostName tcopt3.chem.uzh.ch | ||
+ | User studentXX | ||
+ | </ | ||
+ | |||
+ | after which you will be able to connect to '' | ||
+ | |||
+ | < | ||
+ | $ ssh tcopt3 | ||
+ | </ | ||
+ | |||
+ | If you have setup key-based authentication as shown above, augment the entry to the following instead, to always use key-based authentication without having to specify '' | ||
+ | |||
+ | < | ||
+ | Host tcopt3 | ||
+ | HostName tcopt3.chem.uzh.ch | ||
+ | User studentXX | ||
+ | IdentityFile ~/ | ||
+ | IdentitiesOnly yes | ||
+ | PreferredAuthentications publickey | ||
+ | </ |
exercises/2016_uzh_cmest/login.txt · Last modified: 2020/08/21 10:15 by 127.0.0.1