-
Notifications
You must be signed in to change notification settings - Fork 48
Setting Up Sunfire
From this tutorial, you should be able to access the PE nodes via Sunfire via SSH.
Basic Requirements
-
You will need to have an SoC UNIX Account. If you do not have an SoC UNIX Account, please apply for it here
-
Once you have an SoC UNIX Account, you will need to enable access to the SoC Compute Cluster here
-
You will then need an
ssh
client. For Wndows Users, you should have set up Windows Subsystem for Linux. You can find the link here -
Alternatively, if you wish to have a Graphical User Interface (GUI), you can download either XShell with Xftp, PuTTY. Do note that only Windows Users are able to install XShell or PuTTY.
SSH into PE Nodes Using Terminal
The Following Insturctions can be done in both Windows and Mac Terminals.
- To SSH into the sunfire remote server, type in
ssh YOUR_UNIX_SIC_USERNAME@sunfire-r.comp.nus.edu.sg
. The Username should have be your SoC UNIX Account Usernane.
From there, you should be able to see this screen.
- To then access the pe-nodes when they are up, do the same thing. Type in
ssh plabXXXX@peYYY
where XXXX and YYY are your userid and hostname given to you by the account slip respectively.
NOTE: You do not need to ssh from sunfire if you are connected to NUS wifi. From your local computer, you should be able to directly ssh into your plab account!!!
-
Once done, you are able to access the files.
-
If you wish to exit, please type in the
exit
command. DO NOT close your terminal without exiting from the remote server.
SSH into PE Nodes Using Port Forwarding
Alternatively, You can use SSH Tunnels via Port Forwarding.
-
Local port forwarding means that a port of the SSH client (your machine) is forwarded to the SSH server (
sunfire.comp.nus.edu.sg
), which opens a connection to a preset destination server (e.g.pe107
). This method causes the host to seem as if it is hosted on a local port, e.g.localhost:PORT_NUMBER
. -
To use local port forwarding, execute the following command:
ssh -L PORT_NUMBER:peYYY.comp.nus.edu.sg:22 YOUR_UNIX_SIC_USERNAME@sunfire-r.comp.nus.edu.sg
where thePORT_NUMBER
has to be defined by you. (e.g: 2030) andpeYYY
is the hostname mentioned in your plab slip.
- Following which, you will need to to open a separate SSH connection from your machine to
localhost
at portPORT_NUMBER
which you defined earlier. THis can be done via the following command:
ssh plabXXXX@localhost -p PORT_NUMBER
whereplabXXXX
is the userid given to you in your plab slip andPORT_NUMBER
is the port number which you defined earlier.
Getting files from Remote Server to Local Server
-
For example, if you wish to retrieve files from sunfire to your local directory or vice versa, you can use the
scp
command. -
There are a few commands that you will need to learn to copy files. These can all be found here.
-
For example, I would wish to transfer
Test.java
from sunfire into my local directory:
I would need to use the following command: scp (YOUR_UNIX_SOC_USERNAME)@sunfire-r.comp.nus.edu.sg:Test.java /home/seanlowjk
- From here, you should be able to view it inside your local directory.
Peer Learning
Codecrunch Contributions
Piazza Contributions
Wiki Contributions
Guides
Setting Up Checkstyle
Setting Up Java
Setting Up MacVim
Setting Up Sunfire
Setting Up Unix For Mac
Setting Up Unix For Windows
Setting Up Vim
Setting up SSH Config
CS2030 Contents
Lecture 1 SummaryCompile-run vs Run-time Summary
Quick Guide To Abstraction
Generics and Variance of Types
Comparable vs Comparator
Summary of completable future
CS2030S Notes
ELI5 Optional.map vs Optional.flatMap
PECS Example Code
Java Collection Framework (Iterator)
Generic
Generic Type Parameter and Generic Wildcard
Calculator
Lambda-Expression
Single Abstract Method (SAM)
Method Reference
Functional Interfaces 2
Simple Usage of Sandbox
Associative-but-not-commutative
Higher Order function
Functional Programming
Calculator With Functor
Eager Evaluation VS Lazy Evaluation
Simple Usage of Lazy Evaluation
Lazy Evaluation for LazyList
Lazy Evaluation for BinaryTree
Stream
Parallel Stream
Optional
Simple Usage of Stream
Asynchronous Programming
Notes on CompletableFuture
Notes on CompletableFuture 2
Simple Usage of CompletableFuture
Mind Map
Exception Handling
Links
CS2030 Java Style Guide
CS2030 Javadoc Specification
JDK 11 Download Link
JDK 11 API Docs
Codecrunch
Piazza Forum