User Tools

Site Tools


exercises:2021_uzh_acpc2:login

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
exercises:2021_uzh_acpc2:login [2021/04/13 11:02] – external edit 127.0.0.1exercises:2021_uzh_acpc2:login [2021/04/13 13:23] (current) – Use proper notes mrossmannek
Line 9: Line 9:
 As mentioned in the lecture, you absolutely need a //terminal emulator//: As mentioned in the lecture, you absolutely need a //terminal emulator//:
  
-  * on Linux: this can be one of programs Konsole, Gnome Terminal, Terminal, XTerm, ..+  * on Linux: this can be one of the commonly encountered programsKonsole, Gnome Terminal, Terminal, XTerm, etc
-  * on Mac OS X/OSX/macOS Sierra: use the pre-installed Terminal application, [[https://www.iterm2.com/|iTerm2]] or the X-Windows terminal from XQuartz (see instructions below) +  * on Mac OS/OSX: use the pre-installed Terminal application, [[https://www.iterm2.com/|iTerm2]] or the X-Windows terminal from XQuartz (see instructions below) 
-  * on Windows: use [[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html|Putty]]+  * on Windows 10: use the Command Prompt (on older versions: use [[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html|Putty]])
  
-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:+  * a X11-Server, to be able to start graphical applications on the server and display the output on your computer:
     * on Linux: it is enough to be logged-in in a graphical environment (Unity, Gnome, KDE, ...)     * 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://www.xquartz.org/|XQuartz]]+    * on Mac OS/OSX: you need to install [[https://www.xquartz.org/|XQuartz]]
     * on Microsoft Windows: you need to install [[https://sourceforge.net/projects/vcxsrv/files/latest/download|VcXsrv]]     * on Microsoft Windows: you need to install [[https://sourceforge.net/projects/vcxsrv/files/latest/download|VcXsrv]]
   * a file transfer tool to copy files from/to the server:   * a file transfer tool to copy files from/to the server:
Line 23: Line 23:
     * on Mac OS X/OSX/macOS Sierra: use [[https://cyberduck.io/|Cyberduck]]     * on Mac OS X/OSX/macOS Sierra: use [[https://cyberduck.io/|Cyberduck]]
     * one Windows: use [[https://winscp.net/|WinSCP]] or [[https://cyberduck.io/|Cyberduck]]     * one Windows: use [[https://winscp.net/|WinSCP]] or [[https://cyberduck.io/|Cyberduck]]
 +    * //Note//: on all systems you can also use ''scp'' to copy files from/to the server via the command line
   * a plain text editor to edit input files if you are uncomfortable with using ''vim'', ''nano'' or ''emacs'' via SSH. Please note: It is important that your editor supports Unix line endings. If in doubt, use one of the mentioned editors on the server, or an advanced plain text editor like [[https://atom.io/|Atom]] (plus the [[https://atom.io/packages/line-ending-selector-unix|line-ending-selector-unix]] plugin) or [[https://notepad-plus-plus.org/|Notepad++]] on your local machine.   * a plain text editor to edit input files if you are uncomfortable with using ''vim'', ''nano'' or ''emacs'' via SSH. Please note: It is important that your editor supports Unix line endings. If in doubt, use one of the mentioned editors on the server, or an advanced plain text editor like [[https://atom.io/|Atom]] (plus the [[https://atom.io/packages/line-ending-selector-unix|line-ending-selector-unix]] plugin) or [[https://notepad-plus-plus.org/|Notepad++]] on your local machine.
  
 ==== Login using Linux ==== ==== Login using Linux ====
  
-  * Connect to Internet (use VPN when not on the UZH network)+  * Connect to the Internet (use the VPN when not on the UZH network)
   * Open a terminal (Konsole, xterm or similar)   * Open a terminal (Konsole, xterm or similar)
-  * Connect to the server by entering the command: ''ssh -X studentXX@tcopt2.chem.uzh.ch''+  * Connect to the server by entering the command: ''ssh -X -C studentXX@tcopt7.chem.uzh.ch''
  
  
 ==== Login using macOS ==== ==== Login using macOS ====
  
-  * Connect to Internet (use VPN when not on the UZH network)+  * Connect to the Internet (use the VPN when not on the UZH network)
   * Open a X-Windows terminal in the X11 application if you want to run graphical applications on the server, otherwise use the pre-installed //Terminal// application or an alternative like //iTerm2//   * Open a X-Windows terminal in the X11 application if you want to run graphical applications on the server, otherwise use the pre-installed //Terminal// application or an alternative like //iTerm2//
-  * Connect to the server by entering the command: ''ssh -X studentXX@tcopt2.chem.uzh.ch''+  * Connect to the server by entering the command: ''ssh -X -C studentXX@tcopt7.chem.uzh.ch''
  
 ==== Login using Windows with SSH (Windows 10 and later) ==== ==== Login using Windows with SSH (Windows 10 and later) ====
  
-  * Connect to Internet (use VPN when not in the UZH network)+  * Connect to the Internet (use the VPN when not on the UZH network)
   * Start VcXsrv (optional, only required if you want to run graphical applications on the server)   * Start VcXsrv (optional, only required if you want to run graphical applications on the server)
   * Start the Powershell console   * Start the Powershell console
-  * Type the command ''ssh studentXY@tcopt2.chem.uzh.ch'' +  * Connect to the server by entering the command''ssh studentXY@tcopt7.chem.uzh.ch''
-  * Enter (username and) password as requested+
  
 ==== Login using Windows with Putty ==== ==== Login using Windows with Putty ====
 +
 +<note tip>If you have Windows 10, please follow the instructions above, instead!</note>
  
 First configure Putty (only required on the first run) as follows: First configure Putty (only required on the first run) as follows:
  
   - Start the application PuTTY from the Windows menu (in the folder PuTTY)   - Start the application PuTTY from the Windows menu (in the folder PuTTY)
-  - Fill in the //Host Name//: ''tcopt2.chem.uzh.ch''+  - Fill in the //Host Name//: ''tcopt7.chem.uzh.ch''
   - Set //Connection type// to ''SSH''   - Set //Connection type// to ''SSH''
-  - Type ''tcopt2'' as the name of the session below Saved Sessions and save the settings a first time+  - Type ''tcopt7'' as the name of the session below Saved Sessions and save the settings a first time
   - In the Category tree on the left side, select //Connection > Data// and enter the username you have been given in the lecture in the field //Auto-login username//   - In the Category tree on the left side, select //Connection > Data// and enter the username you have been given in the lecture in the field //Auto-login username//
   - Select the tab ''Connection > SSH > X11'' from the ''Category'' list and enable the option ''Enable X11 Forwarding''   - Select the tab ''Connection > SSH > X11'' from the ''Category'' list and enable the option ''Enable X11 Forwarding''
Line 61: Line 63:
 Then continue as follows to login: Then continue as follows to login:
  
-  * Connect to Internet (use VPN when not on the UZH network)+  * Connect to the Internet (use the VPN when not on the UZH network)
   * Start VcXsrv (optional, only required if you want to run graphical applications on the server)   * Start VcXsrv (optional, only required if you want to run graphical applications on the server)
   * Start Putty   * Start Putty
-  * Double click the session ''tcopt2'' to start the connection+  * Double click the session ''tcopt7'' to start the connection
   * Enter (username and) password as requested   * Enter (username and) password as requested
  
Line 84: Line 86:
 To avoid having to type the password every time you log in (and to increase the security), a public-private key pair can be used for authentication instead.  To avoid having to type the password every time you log in (and to increase the security), a public-private key pair can be used for authentication instead. 
  
-=== Instructions for macOS and Linux ===+=== Instructions for Linux, macOS and Windows 10 === 
 + 
 +<note important>On Windows 10 you must use Windows-paths and **not** POSIX paths like shown below.</note>
  
 First generate a key-pair **on your local machine** by running the following in a terminal/shell: First generate a key-pair **on your local machine** by running the following in a terminal/shell:
Line 94: Line 98:
 and accept the defaults proposed and do no set a password. and accept the defaults proposed and do no set a password.
  
-Upload the public key **from your local machine** to tcopt2:+Upload the public key **from your local machine** to tcopt7:
  
 <code> <code>
-$ scp ~/.ssh/id_rsa.pub studentXX@tcopt2.chem.uzh.ch:~/+$ scp ~/.ssh/id_rsa.pub studentXX@tcopt7.chem.uzh.ch:~/
 </code> </code>
  
-Now login to ''tcopt2.chem.uzh.ch'' and move the uploaded public key to the right place and set the access permissions correct:+Now login to ''tcopt7.chem.uzh.ch'' and move the uploaded public key to the right place and set the access permissions correct:
  
 <code> <code>
Line 111: Line 115:
  
 <code> <code>
-$ ssh -i ~/.ssh/id_rsa studentXX@tcopt2.chem.uzh.ch+$ ssh -i ~/.ssh/id_rsa studentXX@tcopt7.chem.uzh.ch
 </code> </code>
  
 === Instructions for Windows using PuTTY === === Instructions for Windows using PuTTY ===
 +
 +<note tip>If you have Windows 10, please follow the instructions above, instead!</note>
  
 First login to the server as above and leave the terminal window open. First login to the server as above and leave the terminal window open.
Line 138: Line 144:
  
   - Restart //PuTTY//   - Restart //PuTTY//
-  - Select the //Session// ''tcopt2'' and press //Load//+  - Select the //Session// ''tcopt7'' and press //Load//
   - Select //Connection > SSH > Auth//   - Select //Connection > SSH > Auth//
   - Use the //Browse...// button in //Authentication parameters// to selected the ''condensed_matter.ppk'' you generated earlier   - Use the //Browse...// button in //Authentication parameters// to selected the ''condensed_matter.ppk'' you generated earlier
Line 146: Line 152:
 ==== Simplify the login ==== ==== Simplify the login ====
  
-The following instructions **apply to OSX and Linux**.+<note important>The following instructions apply **only** to Linux and macOS.</note>
  
 **On your local machine** add the following part to the file ''.ssh/config'' in your home directory: **On your local machine** add the following part to the file ''.ssh/config'' in your home directory:
  
 <code> <code>
-Host tcopt2 +Host tcopt7 
-  HostName tcopt2.chem.uzh.ch+  HostName tcopt7.chem.uzh.ch
   User studentXX   User studentXX
 </code> </code>
  
-after which you will be able to connect to ''tcopt2'' simply by using+after which you will be able to connect to ''tcopt7'' simply by using
  
 <code> <code>
-$ ssh tcopt2+$ ssh tcopt7
 </code> </code>
  
Line 165: Line 171:
  
 <code> <code>
-Host tcopt2 +Host tcopt7 
-  HostName tcopt2.chem.uzh.ch+  HostName tcopt7.chem.uzh.ch
   User studentXX   User studentXX
   IdentityFile ~/.ssh/id_rsa   IdentityFile ~/.ssh/id_rsa
exercises/2021_uzh_acpc2/login.1618311776.txt.gz · Last modified: 2021/04/13 11:02 by 127.0.0.1