GUI Programs: Difference between revisions
Line 144: | Line 144: | ||
==Special Cases (GUI Scaling, Font Issues, etc)== | ==Special Cases (GUI Scaling, Font Issues, etc)== | ||
See the [[GUI_Programs_Special_Cases|Special Cases page for GUI Programs]] if you run a program or a local system that requires special care compared to the normal usage. | See the [[GUI_Programs_Special_Cases|Special Cases page for GUI Programs]] if you run a program or a local system that requires special care compared to the normal usage. Some examples of special cases include desktop scaling and DPI issues. |
Revision as of 15:34, 2 November 2016
You can run GUI Programs on HiPerGator, but running such applications on a remote server within a supercomputer and displaying them on your local client computer as if it were running there and making the interface sufficiently responsive is not as easy as simply running them locally. To accomplish this task we use Xpra software - an open-source multi-platform persistent remote display server and client for forwarding applications and desktop screens. Full information on Xpra can be found in its basic usage documentation and the Xpra manual. Below we show the parts of Xpra documentation relevant to its function of running GUI Programs on HiPerGator.
Install Xpra Software on the Client Computer
Since Xpra is required on both ends of the connection you will have to have it installed on your local computer. Xpra client installation depends on the operating system running on your local machine and may require assistance of a system administrator if you do not have the authority to install new software. Once Xpra is installed on your client computer feel free to skip this step. Installation instructions are specific to the operating system running on your local computer:
Start a GUI session on HiPerGator
Single command, no job script
There are two classes of applications that can be started with just one command from the gui environment module and do not require you to provide a job script.
- Preset applications
To list applications presets load the gui module and run launch_gui_session -l
module load gui launch_gui_session -l
To launch a pre-approved application:
- Load the gui module if not already loaded
module load gui
- Launch the application
launch_<application>_gui
For example:
launch_mzmine_gui
or
launch_rstudio_gui
See a full example on the RSTudio Help Page. For MATLAB options, please see the MATLAB Help Page.
- Simple applications
If you want to run a simple application in which either the environment module name matches the name of the program you want to run or you've already loaded the environment module and know the name of the executable then the process is about as simple as launching a preset application
Load the application environment module if its name is different from the executable name
module load <application>/<version>
Launch the executable in a GUI session
module load gui launch_gui_session -e <application>
For example
launch_gui_session -e molden
or
module load gaussian gui launch_gui_session gv
Provided Job Script
If you need to pass custom arguments to the application, load pre-requisite environment modules and so on you can provide a simple script (linux format text file) with the required commands as an argument to launch_gui_session.
Manual launch
Of course, if you prefer to talk directly to SLURM you can write a full job script complete with resource requirements, job name, output file, etc in the #SBATCH section you can submit the script to SLURM manually.
List GUI Sessions
If you performed a manual launch or used the '-w' argument to the automated launcher command you'll have to manually check on your gui job. Check the job status with 'squeue -u $USER'. When the job starts you have to list the available xpra sessions using xpra_list_sessions command in the gui module. This command will refresh the Xpra session list and provide a convenient list of live Xpra sessions as well as client commands that can be copied and pasted into a terminal on the client machine.
- Example
$ module load gui $ xpra_list_sessions
Output:
Refreshing Xpra session list for jdoe. This could take a while..... List of active Xpra sessions for jdoe: Session: i21a-s33.rc.ufl.edu:9626 for RStudio job 2852284 Client command: xpra attach ssh:jdoe@i21a-s33.rc.ufl.edu:9626
See the respective application pages for details and sample job scripts.
Connect From a Client Computer
Click [expand] on the right side of a section to open a section specific to the operating system you are running on your local computer.
Connecting from outside of UF campus
The servers in SLURM gui partition are accessible only within the UF campus network. If you are working off campus, you will need to use the VPN to connect to the UF campus network using AnyConnect VPN or similar software. Please see: https://vpn.ufl.edu for additional information.
Connecting from Linux
Connecting from MacOS X
Connecting from Microsoft Windows
Special Cases (GUI Scaling, Font Issues, etc)
See the Special Cases page for GUI Programs if you run a program or a local system that requires special care compared to the normal usage. Some examples of special cases include desktop scaling and DPI issues.