Difference between revisions of "Getting started"

From mn.kjemi.vaspwiki
Jump to: navigation, search
m
m
Line 30: Line 30:
 
=Login=
 
=Login=
 
==ssh==
 
==ssh==
ssh can be used to login to cluster using a terminal app on UNIX, macOS or Windows Subsystem for Linux
+
ssh can be used to login using a terminal app on UNIX, macOS or Windows Subsystem for Linux
  
 
<code> ssh <username>@saga.sigma2.no </code>
 
<code> ssh <username>@saga.sigma2.no </code>
Line 67: Line 67:
 
==UNIX commands==
 
==UNIX commands==
 
Use TAB to autocomplete commands, paths and filenames.
 
Use TAB to autocomplete commands, paths and filenames.
 +
 +
 +
 +
{| class="wikitable"
 +
!Command
 +
!Descrription
 +
|-
 +
|<code> ls </code>
 +
|List files and directories in current directory
 +
|-
 +
|<code> mkdir <directoryname> </code>
 +
|Make a directory
 +
|-
 +
|<code> cd <directoryname></code>
 +
|Change path to another directory
 +
|-
 +
|<code> pwd </code>
 +
|Display current path
 +
|-
 +
|<code> cd .. </code>
 +
|Change path to parent directory
 +
|-
 +
|<code>  cp <path>/<filename> . </code>
 +
|Copy file to current directory
 +
|-
 +
|<code> cp <filename> <directoryname> </code>
 +
|Copy file to another directory
 +
|-
 +
|<code> mv <filename> <path> </code>
 +
|Move file to another directory
 +
|-
 +
|<code> mv <filename> <newfilename> </code>
 +
|Change the name of a file
 +
|-
 +
|<code> cp -r  <directory> <path> </code>
 +
|Copy directory to new location
 +
|-
 +
|<code> rm <filename> </code>
 +
|Delete file
 +
|-
 +
|<code> rm -r <directoryname> </code>
 +
Delete directory and its contents
 +
|-
 +
|<code> man <command> </code>
 +
|View the manual for any command
 +
|}
  
 
=Home directory and project folder=
 
=Home directory and project folder=

Revision as of 20:39, 25 September 2021

User acess

Go to www.metacenter.no > User Login (Passwords) > 1. Request a user account > HPC

Fill in the form and choose the appropriate project. It is recommended to use your UiO username.

The project manager can give you access to the VASP license through the VASP portal and thereafter informing sigma2@uninett.no to give your user the necessary group affiliations (xvasp and vasp5).

Project Manager Group Resources
NN4604K Jonathan M. Polfus Electrochemistry Saga
NN9136K Lasse Vines LENS Saga
NN9180K Clas Persson Structure Physics Saga

Login

ssh

ssh can be used to login using a terminal app on UNIX, macOS or Windows Subsystem for Linux

ssh <username>@saga.sigma2.no

Hostnames and usernames can be defined by creating or editing the file ~/.ssh/config .

This can be done using the text editor vim

vim ~/.ssh/config

Press i to insert text

Host saga
   HostName = saga.sigma2.no
   user <username>

Press escape to exit insert mode, and then :wq to 'write' and 'quit'.

Login is then simplified

ssh saga

Copy files from cluster to current folder (.)

scp saga:<path>/<filename> .

Copy files to the home directory on the cluster

scp <filename> saga:

PuTTY and WinSCP

PuTTY is an ssh client for Windows that can be downloaded from www.putty.org.

WinSCP is an scp client for Windows that can be downloaded from winscp.net.

UNIX commands

Use TAB to autocomplete commands, paths and filenames.


Command Descrription
ls List files and directories in current directory
mkdir <directoryname> Make a directory
cd <directoryname> Change path to another directory
pwd Display current path
cd .. Change path to parent directory
cp <path>/<filename> . Copy file to current directory
cp <filename> <directoryname> Copy file to another directory
mv <filename> <path> Move file to another directory
mv <filename> <newfilename> Change the name of a file
cp -r <directory> <path> Copy directory to new location
rm <filename> Delete file
rm -r <directoryname>

Delete directory and its contents

man <command> View the manual for any command

Home directory and project folder

Aliases

Define shortcuts to commands in your

Jobscript

Bash scripting