|
1 | 1 | # HPC Desktop |
2 | 2 |
|
3 | | -The HPC Desktop is a general desktop interface for Cheaha. It can run all software installed on Cheaha including those with graphical interfaces which can't be run from a base terminal. It has the same functionality as a standard Centos 7 desktop including a web browser for accessing the internet. The HPC Desktop is a standard tool used for pipeline and analysis development when creating scripts to use in batch jobs. Below, you can see an example of the basic available desktop. |
| 3 | +The HPC Desktop is a general desktop interface for Cheaha. It can run all software installed on Cheaha including those with graphical interfaces which can't be run from a base terminal. To launch the HPC Desktop app, please navigate to the "Interactive Apps" menu option and select "HPC Desktop". A job creation form will appear, allowing you to configure the options you require to run your HPC Desktop session. Below the form, you will find a checkbox if you would like to receive an email notification when your session starts, as well as a blue "Launch" button to initiate the session. |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | +It has the same functionality as a standard Centos 7 desktop including a web browser for accessing the internet. The HPC Desktop is a standard tool used for pipeline and analysis development when creating scripts to use in batch jobs. Below, you can see an example of the basic available desktop. |
4 | 8 |
|
5 | 9 |  |
6 | 10 |
|
| 11 | +## Using the Terminal |
| 12 | + |
| 13 | +The terminal (also known as the command line, unix shell or shell) allows users to interact with the system using text-based commands. The Terminal is commonly used in HPC environments like ours, for file management, module loading, job submission, and more. Common commands include navigating directories (`cd`), listing files (`ls`), moving or copying files (`mv`, `cp`), and checking your current working directory (`pwd`). |
| 14 | + |
| 15 | +We recommend the Software Carpentries tutorial for getting familiar with terminal and shell commands. You can find details about the terminal and other recommended tutorials in our [Training Resources](../../education/training_resources.md#the-carpentries) page. Additional information is available in our documentation on the [shell](../../workflow_solutions/shell.md). |
| 16 | + |
| 17 | +Below are examples of using appropriate commands within the terminal to; |
| 18 | + |
| 19 | +### Navigate Directories |
| 20 | + |
| 21 | +`cd /path/to/your/folder` - This will change the location within terminal, to the directory specified. |
| 22 | + |
| 23 | +`ls` - This will list all files found in the directory. |
| 24 | + |
| 25 | +`pwd` - This will return as an output the filepath of terminal's current location |
| 26 | + |
| 27 | +### Run Commands |
| 28 | + |
| 29 | +`module load Miniconda3` - This will load a module. |
| 30 | + |
| 31 | +`conda activate myenv` - This will activate an already created Conda environment. |
| 32 | + |
| 33 | +### File Management |
| 34 | + |
| 35 | +`touch script.sh` - This will create an empty file named "script.sh". |
| 36 | + |
| 37 | +`rm script.sh` - This will delete the referenced file. |
| 38 | + |
| 39 | +`nano script.sh` - This will allow you to open the referenced file using a text editor called "Nano". |
| 40 | + |
| 41 | +`vi scirpt.sh` - This will open the referenced file using another text editor called "Vim". |
| 42 | + |
| 43 | +### Clipboard Functions to Cut, Copy, and Paste |
| 44 | + |
| 45 | +You can also copy, cut and paste into a terminal on the HPC desktop job. To do this, please see our section [Copy-Paste Into HPC Desktop](./hpc_desktop.md#copy-paste-into-hpc-desktop). |
| 46 | + |
| 47 | +## Accessing the Terminal |
| 48 | + |
| 49 | +The Terminal is available within the HPC Desktop App on Cheaha, and can be accessed several ways; |
| 50 | + |
| 51 | +1. From the HPC Desktop, you can access the terminal by clicking on its icon. This will open the shell, by default you will see an output showing your home directory. |
| 52 | + |
| 53 | +  |
| 54 | + |
| 55 | +1. You can also open the terminal from within a directory/folder, by right-clicking on the directory/folder, and then selecting the "Open Terminal Here" menu option. This will open the terminal in that directory. |
| 56 | + |
| 57 | +  |
| 58 | + |
| 59 | +1. You can also access the terminal, by clicking on the "Applications" button in the top left corner of an open HPC Desktop Interactive session. From the list of applications, select the "Terminal Emulator" option, this will also open a terminal for you to use. |
| 60 | + |
| 61 | +  |
| 62 | + |
| 63 | +1. Alternatively, a terminal can also be accessed from the blue "Host" button on a created interactive job. This will open a terminal in the compute node for that job to run commands as needed. |
| 64 | + |
| 65 | +  |
| 66 | + |
7 | 67 | ## Copy-Paste Into HPC Desktop |
8 | 68 |
|
9 | | -The HPC Desktop app is run through [noVNC](https://novnc.com/info.html). This setup means it is not possible to conventially copy-paste text between the Desktop tab and other tabs or software on the host machine (i.e. a lab workstation or personal laptop). To copy-paste text, noVNC provides a control panel with a clipboard for passing text between the VNC session and the host machine. The control panel is available by clicking a tab on the far left of the screen, halfway down (see the red rectangle in the image below). |
| 69 | +The HPC Desktop app is run through [noVNC](https://novnc.com/info.html). This setup means it is not possible to conventionally copy-paste text between the Desktop tab and other tabs or software on the host machine (i.e. a lab workstation or personal laptop). To copy-paste text, noVNC provides a control panel with a clipboard for passing text between the VNC session and the host machine. The control panel is available by clicking a tab on the far left of the screen, halfway down (see the red rectangle in the image below). |
10 | 70 |
|
11 | 71 |  |
12 | 72 |
|
|
0 commit comments