exercises:2017_uzh_acpc2:login
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
exercises:2017_uzh_acpc2:login [2017/04/11 09:51] – jglan | exercises:2017_uzh_acpc2:login [2020/08/21 10:15] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
In this exercise you will learn how to login and run commands on our infrastructure. | In this exercise you will learn how to login and run commands on our infrastructure. | ||
- | ====== The bash terminal====== | + | |
+ | |||
+ | ===== Part I: Login ===== | ||
+ | |||
+ | As mentioned in the lecture, you absolutely need | ||
+ | |||
+ | * a X11-Server: | ||
+ | * on Linux: it is enough to be logged-in in a graphical environment (Unity, Gnome, KDE, ...) | ||
+ | * on Mac OS X/OSX/macOS Sierra: you need [[https:// | ||
+ | * on Microsoft Windows: you need [[http:// | ||
+ | * a terminal emulator: | ||
+ | * on Linux: this can be one of Konsole, Gnome Terminal, Terminal, XTerm, ... | ||
+ | * on Mac OS X/OSX/macOS Sierra: use the X-Windows terminal from XQuartz | ||
+ | * on Windows: use [[http:// | ||
+ | |||
+ | optionally you may want: | ||
+ | |||
+ | * a file transfer tool to copy files from/to the server: | ||
+ | * 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 '' | ||
+ | |||
+ | Use the instructions giving in the lecture/ | ||
+ | |||
+ | <note important> | ||
+ | < | ||
+ | $ passwd | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | |||
+ | <note important> | ||
+ | < | ||
+ | $ ssh -X username@tcopt3.chem.uzh.ch | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== The bash terminal===== | ||
Many tasks in the following weeks will need to be performed on the terminal (or ' | Many tasks in the following weeks will need to be performed on the terminal (or ' | ||
Line 17: | Line 56: | ||
ls # get list of files in the current directory | ls # get list of files in the current directory | ||
mkdir molsim | mkdir molsim | ||
+ | cd # change into your home directory | ||
cd molsim | cd molsim | ||
cd .. # go up one directory | cd .. # go up one directory | ||
pwd # print path to the current working directory | pwd # print path to the current working directory | ||
- | open . # opens current directory in Finder (Mac OS X) | + | |
</ | </ | ||
Line 26: | Line 66: | ||
<code bash> | <code bash> | ||
- | cd # change into your home directory | + | |
- | cp ~student10/ | + | cp ~student10/whatever.txt . # copy ' |
- | cd intro | + | scp your_username@remotehost.edu: |
+ | scp foobar.txt your_username@remotehost.edu:/ | ||
</ | </ | ||
Line 37: | Line 78: | ||
<code bash> | <code bash> | ||
- | nano myfile | ||
vim myfile | vim myfile | ||
+ | vi myfile | ||
</ | </ | ||
- | (on Mac OS X): In order to take a screen shot, hit '' | ||
- | |||
- | ===== Part I: Login ===== | ||
- | |||
- | As mentioned in the lecture, you absolutely need | ||
- | |||
- | * a X11-Server: | ||
- | * on Linux: it is enough to be logged-in in a graphical environment (Unity, Gnome, KDE, ...) | ||
- | * on Mac OS X/OSX/macOS Sierra: you need [[https:// | ||
- | * on Microsoft Windows: you need [[http:// | ||
- | * a terminal emulator: | ||
- | * on Linux: this can be one of Konsole, Gnome Terminal, Terminal, XTerm, ... | ||
- | * on Mac OS X/OSX/macOS Sierra: use the X-Windows terminal from XQuartz | ||
- | * on Windows: use [[http:// | ||
- | |||
- | optionally you may want: | ||
- | |||
- | * a file transfer tool to copy files from/to the server: | ||
- | * 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 '' | ||
- | |||
- | Use the instructions giving in the lecture/ | ||
- | |||
- | <note important> | ||
- | < | ||
- | $ passwd | ||
- | </ | ||
- | </ | ||
===== Part II: Loading and running a program ===== | ===== Part II: Loading and running a program ===== | ||
Line 141: | Line 152: | ||
--xml : dumps the whole CP2K input structure as a XML file | --xml : dumps the whole CP2K input structure as a XML file | ||
xml2htm generates a HTML manual from this XML file | xml2htm generates a HTML manual from this XML file | ||
+ | </ | ||
+ | |||
+ | Now you can run cp2k using: | ||
+ | < | ||
+ | $ cp2k.sopt -i cp2k.inp -o cp2k.out & | ||
</ | </ | ||
exercises/2017_uzh_acpc2/login.1491904306.txt.gz · Last modified: 2020/08/21 10:15 (external edit)