1 of 26

Remote editing

Viet Pham

Linux System Administrator�High-Performance Computing Center

University of California, Riverside

2 of 26

Summary

  • How to login to the cluster
  • Filesystem
  • Basic Linux Navigation
  • Editing file
  • Remote editor

3 of 26

How to login

Mac OS X

Search for iterm or terminal then click the icon

Type “terminal”

Click Terminal icon

4 of 26

How to login (continued)

Windows

  1. Download Mobaxterm - https://download.mobatek.net/2122021051924233/MobaXterm_Portable_v21.2.zip
  2. Right click downloaded zip file and select “Extract All...”�Choose a place to extract and click “next”
  3. Double click MobaXterm_Personal.exe file
  4. Click “Start Local terminal”

5 of 26

Logging into the Cluster

  • Once a terminal is open:

Example:

ssh -X username@cluster.hpcc.ucr.edu

6 of 26

Filesystem: Paths

7 of 26

Filesystem: Paths

  • Symlink (dotted lines) - A shortcut to another directory or file
  • Mount (Local/Shared) - An entry point to a disk or storage device (ie. 'C:/' or Google Drive)

8 of 26

Filesystem: Paths

  • Case sensitive
    • All paths and commands are case sensitive, an uppercase letter is not the same as a lowercase letter.
  • Path Types
    • Absolute path - Full path from root to current working directory� /rhome/username/workshop_dir/
    • Relative path - Partial path or non-absolute path (current directory implied)� workshop_dir/

9 of 26

Basic Linux Navigation

  • Create an empty directory
    • mkdir workshop_dir
  • Create another directory inside of workshop_dir
    • mkdir workshop_dir/another_directory
  • Create an empty file
    • touch workshop_dir/empty_file
  • Listing file and folder inside of workshop_dir
    • ls workshop_dir

10 of 26

Basic Linux Navigation

  • Navigating to home directory
    • cd or cd ~ or cd /rhome/username
  • Navigate to a folder
    • cd workshop_dir
  • List file(s) and folder(s) in current directory
    • ls

11 of 26

Editing file

  • Simple editor
    • nano new_file
  • More advance editor
    • vim new_file

12 of 26

Remote editor

13 of 26

Remote Editor: Install plugin

1

2

3

4

14 of 26

Remote Editor: Create a quick login

1

2

15 of 26

Remote Editor: Create a quick login cont.

Replace the username with your own account username

16 of 26

Remote Editor: Save configuration

Save it to the very first one on the list.

17 of 26

Remote Editor: Quick login

18 of 26

Remote Editor: Quick Login cont.

19 of 26

Remote Editor: Quick Login cont.

20 of 26

Remote Editor: Quick Login cont.

Login with your password

21 of 26

Remote Editor: Opening a folder on the cluster

1

2

3 Make sure that it says /rhome/username

4

22 of 26

Remote Editor: Opening a folder on the cluster

Login with your password

23 of 26

Remote Editor: Opening a folder on the cluster

24 of 26

Remote Editor: Editing creating

To create new files

To create new folders

Click on file to edit it

Right click for other options including file/folder creation

25 of 26

Remote Editor: Running a bash terminal

1

2

26 of 26

Remote Editor: Running a bash terminal cont.

This is a terminal connected to the cluster

�You can use this to test your code/script after editing them right away