exercises:2017_uzh_cmest:login
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| exercises:2017_uzh_cmest:login [2017/09/20 07:30] – created tmueller | exercises:2017_uzh_cmest:login [2020/08/21 10:15] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| ===== Part I: Login ===== | ===== Part I: Login ===== | ||
| - | As mentioned in the lecture, you absolutely need | + | ==== Required software ==== |
| - | * a X11-Server: | + | As mentioned |
| - | * on Linux: it is enough to be logged-in in a graphical environment (Unity, Gnome, KDE, ...) | + | |
| - | * on Mac OS X/OSX/macOS Sierra: | + | * on Linux: this can be one of programs |
| - | * on Microsoft Windows: you need [[http:// | + | * on Mac OS X/OSX/macOS Sierra: use the pre-installed Terminal application, |
| - | | + | * on Windows: use [[http:// |
| - | | + | |
| - | * on Mac OS X/OSX/macOS Sierra: use the X-Windows terminal from XQuartz | + | |
| - | * on Windows: use [[http:// | + | |
| optionally you may want: | optionally you may want: | ||
| + | * a X11-Server, to be able to start graphical applications on the server and have the output on your computer: | ||
| + | * 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 to install [[https:// | ||
| + | * on Microsoft Windows: you need to install [[http:// | ||
| * a file transfer tool to copy files from/to the server: | * a file transfer tool to copy files from/to the server: | ||
| * on Linux: put '' | * on Linux: put '' | ||
| Line 24: | Line 25: | ||
| * a plain text editor to edit input files if you are uncomfortable with using '' | * a plain text editor to edit input files if you are uncomfortable with using '' | ||
| - | Use the instructions giving | + | ==== Login using Linux ==== |
| + | |||
| + | * Connect to Internet (use VPN when not on the UZH network) | ||
| + | * Open a terminal (Konsole, xterm or similar) | ||
| + | * Connect to the server by entering the command: '' | ||
| + | |||
| + | |||
| + | ==== Login using macOS ==== | ||
| + | |||
| + | * Connect to Internet (use VPN when not on the UZH network) | ||
| + | * Open a X-Windows terminal | ||
| + | * Connect to the server by entering the command: | ||
| + | |||
| + | ==== Login using Windows ==== | ||
| + | |||
| + | First configure Putty (only required on the first run) as follows: | ||
| + | |||
| + | - Start the application PuTTY from the Windows menu (in the folder PuTTY) | ||
| + | - Fill in the //Host Name//: '' | ||
| + | - Set // | ||
| + | - Type '' | ||
| + | - In the Category tree on the left side, select // | ||
| + | - Select the tab '' | ||
| + | - Go to //Session// again and | ||
| + | - Choose '' | ||
| + | |||
| + | Then continue as follows to login: | ||
| + | |||
| + | * Connect to Internet (use VPN when not on the UZH network) | ||
| + | * Start Xming (optional, only required if you want to run graphical applications on the server) | ||
| + | * Start Putty | ||
| + | * Double click the session '' | ||
| + | * Enter (username and) password as requested | ||
| + | |||
| + | ==== First steps ==== | ||
| <note important> | <note important> | ||
| + | |||
| < | < | ||
| $ passwd | $ passwd | ||
| Line 161: | Line 197: | ||
| after that you can add and remove modules to be loaded at startup using '' | after that you can add and remove modules to be loaded at startup using '' | ||
| - | To add '' | + | To add '' |
| < | < | ||
| - | $ module initadd vmd | ||
| $ module initadd cp2k/ | $ module initadd cp2k/ | ||
| </ | </ | ||
| - | to remove '' | + | to remove '' |
| < | < | ||
| - | $ module initrm | + | $ module initrm |
| </ | </ | ||
| Line 178: | Line 213: | ||
| ==== Setup key-based authentication ==== | ==== Setup key-based authentication ==== | ||
| - | To avoid having to type the password every time you log in (and to increase the security), | + | To avoid having to type the password every time you log in (and to increase the security), |
| - | First generate a key-pair **on your local machine** | + | === Instructions for macOS and Linux === |
| + | |||
| + | First generate a key-pair **on your local machine** | ||
| < | < | ||
| Line 186: | Line 223: | ||
| </ | </ | ||
| - | and accept the defaults proposed and do not set a password. | + | and accept the defaults proposed and do no set a password. |
| Upload the public key **from your local machine** to tcopt3: | Upload the public key **from your local machine** to tcopt3: | ||
| Line 194: | Line 231: | ||
| </ | </ | ||
| - | Now login to '' | + | Now login to '' |
| < | < | ||
| Line 207: | Line 244: | ||
| $ ssh -i ~/ | $ ssh -i ~/ | ||
| </ | </ | ||
| + | |||
| + | === Instructions for Windows using PuTTY === | ||
| + | |||
| + | First login to the server as above and leave the terminal window open. | ||
| + | |||
| + | Then generate a key-pair **on your local machine** as follows: | ||
| + | |||
| + | - Start the application // | ||
| + | - Click on // | ||
| + | - Do not set a //Key passphrase// | ||
| + | - Click on //Save private key// and store the private key as '' | ||
| + | - On the server (in the //PuTTY// terminal window), run the following commands: | ||
| + | < | ||
| + | $ mkdir -p .ssh | ||
| + | $ chmod 0700 .ssh | ||
| + | $ nano -w .ssh/ | ||
| + | </ | ||
| + | - Now copy & paste the content in the field //Public key for pasting into OpenSSH authorized_keys file// from // | ||
| + | - Exit //nano// by using '' | ||
| + | - Enter '' | ||
| + | - Close the // | ||
| + | |||
| + | Reconfigure //PuTTY// to use the generate key: | ||
| + | |||
| + | - Restart //PuTTY// | ||
| + | - Select the //Session// '' | ||
| + | - Select // | ||
| + | - Use the // | ||
| + | - Go back to //Session// and click //Save//, then //Open// to login | ||
| + | - Now //PuTTY// should directly login (given that you have saved the username as well as described above) without asking for a password | ||
| ==== Simplify the login ==== | ==== Simplify the login ==== | ||
exercises/2017_uzh_cmest/login.1505892605.txt.gz · Last modified: (external edit)
