Terminal is a text-based interface allowing us to interact with the operating system. We can perform any task without using the graphical interface, that colorful desktop you usually see on the screen.
Different OS provides diffrerent name for terminal, you can find it with the following names:
There are 7 servers you can access in total. You can access all the HPC (High Performance Computing) server via the IP address 140.112.176.245
. With this address, you will connect to master
server by default. To access other servers, you need to specify which port you want to connect to.
SSH is a remote access protocal that allows you to connect any remote decive with terminal. The problem with this method is that it does not provide graphical interface like Desktop in Windows.
Machine | master | node01 | node02 | node03 | gpu01 | gpu02 | gpu03 |
---|---|---|---|---|---|---|---|
Port | - | 2022 | 2023 | 2024 | 2025 | 2026 | 2027 |
Machine | gpu04 |
---|---|
Port | 2030 |
To end the SSH connection, you can type exit
or use ctrl-D
or ctrl-C
You can connect to other server "from master" simply by typing down the server's name.
Please go to https://www.nomachine.com/download to download NoMachine for your local machine.
NoMachine app installed on your local machine is called NoMachine Client.
Open NoMachine app on your local machine, and click Add
Add connection:
master | node03 | gpu01 | gpu02 |
---|---|---|---|
4000 | 4002 | 4001 | 4003 |
Servers not listed in the above table do not have remote desktop access.
Log in with your account:
Create a virtual desktop:
Configure the resolution of the virtual desktop:
And then you are good to go:
To upload any file to the server via NoMachine, you can simply drag the desired files to NoMachine's window.
Click the upper-right corner:
Then you can configure the desktop:
Use passwd
command and enter the current password to change it.
Only change your password from "master"
There are several softwares you can launch on the terminal of the server.
Step 1: Run Jupyter server
Step 2: open this URL (often it's http://locolhost:8888/tree
) using Google Chrome
Then you can open the browser on your local machine, and type in the URL:http://localhost:8888
, you will be able to edit the notebook from your locak machine.
Conda is a package and environment manager that allows you to isolate the environments of different projects.
You can also use built-in venv
or thrid-party package virtualenv
to create virtual environments.
Please refer to https://python.land/virtual-environments/virtualenv
Your files might be visible to others. To prevent this, you need to set up access control. However, if your data isn't sensitive, you can choose to ignore this.
3 types of Permission: r
(read), w
(write), x
(execute)
For example a file's permission is -rw-rw-r--
, you can interpret it as:
-
(it will be d
if it's a directory)rw-
(you can read and write)rw-
(people in your group can read and write)r--
(people outside of your group can only read)rw-
can be translated into 110
, which is 6
in decimal value. So the permission of the example above can be represented as 660
.
If you want to set the permission as rwxr-x---
, you can simply type:
u
: you
o
: others
g
: users in your group
+
: add
-
: remove
=
: assign
You might want to share files and directories with your project members. For convenience, you can ask us to create a group for your project by submitting the application https://forms.gle/6Ro9YciS68czZi5E9
If you are the owner of a group, you can add/delete the group member at your own will:
For some package on python like Tensorflow, you can designate the GPU you want to run on.
=0, 1, 2
You might not want to transfer your file to the remote server everytime you modify your codes in your local machine. Therefore, directly editing the files on the remote server through VS code can be super convenient.
Install extension "Remote Development", "Remote - SSH" and "Remote Explorer"
Open a remote window
Connect to Host
Add new SSH host > Configure SSH Hosts
Choose which file you want to save the configuration(you can choose the first one that appears)
Edit the configuration
You can also connect to Rstudio directly using your local browser with the following URL:
• master: http://140.112.176.245:8787
• node01: http://140.112.176.245:8788
• gpu03: http://140.112.176.245:8789
• gpu02: http://140.112.176.245:8790