GUI Programs: Difference between revisions
No edit summary |
No edit summary |
||
Line 146: | Line 146: | ||
</div> | </div> | ||
</div> | </div> | ||
=Application Scaling= | |||
Xpra applications can encounter scaling issues for may reasons given the complexity of different connections. If your GUI application's fonts look small, large, or distorted, here are a couple of options that might be helpful. | |||
==Desktop Scaling== | |||
You can enable desktop scaling on your client by adding a parameter to your local client command. This command is "desktop-scaling=" and can be set to: on, off, auto, or a fixed value. | |||
;Example: | |||
Start a MATLAB GUI session: | |||
<pre> | |||
$launch_matlab_gui | |||
</pre> | |||
From the output copy the client command to your local machine and add the desktop scaling parameter: | |||
<pre> | |||
$xpra attach ssh:$USER@i21a-s3.rc.ufl.edu:11764 --desktop-scaling=on | |||
</pre> | |||
==DPI== | |||
In order to help with font scaling issues, you can pass this parameter to your local installation by adding the dpi= option to your connection command. This forces a particular DPI to be used if it is supported by both server and client. | |||
;Example: | |||
Start a MATLAB GUI session: | |||
<pre> | |||
$launch_matlab_gui | |||
</pre> | |||
From the output copy the client command to your local machine and add the desktop scaling parameter: | |||
<pre> | |||
$xpra attach ssh:$USER@i21a-s3.rc.ufl.edu:11764 --dpi=96 | |||
</pre> |
Revision as of 14:21, 13 October 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 is not as easy as simply running them locally. We try to make the process as smooth as possible. However, we welcome and will listen to feedback. The most difficult part is making sure a remotely running program can be displayed on your local computer as if it were running there and making the interface sufficiently responsive, so you could do your work. We accomplish this task with Xpra software - an open-source multi-platform persistent remote display server and client for forwarding applications and desktop screens. You can read the original basic usage documentation and the full Xpra manual if necessary.
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.
- Simple applications
If you want to run a simple application in which the environment module name matches the name of the program you want to run it's just as simple as launching a preset application
module load gui launch_gui_session -e <application>
For example
launch_gui_session -e molden
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 the session list for jdoe to remove stale sessions List of active Xpra sessions for jdoe: Session: i111a-s222.rc.ufl.edu:3713 Job ID: 123456, Name: RStudio Client command: xpra attach ssh:jdoe@i111a-s222.rc.ufl.edu:3713 or (downloaded script): ./xpra attach ssh:jdoe@i111a-s222.rc.ufl.edu:3713
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 that section.
Connecting from outside of UF campus via VPN
Connecting from Linux
Connecting from MacOS X
Connecting from Microsoft Windows
Application Scaling
Xpra applications can encounter scaling issues for may reasons given the complexity of different connections. If your GUI application's fonts look small, large, or distorted, here are a couple of options that might be helpful.
Desktop Scaling
You can enable desktop scaling on your client by adding a parameter to your local client command. This command is "desktop-scaling=" and can be set to: on, off, auto, or a fixed value.
- Example
Start a MATLAB GUI session:
$launch_matlab_gui
From the output copy the client command to your local machine and add the desktop scaling parameter:
$xpra attach ssh:$USER@i21a-s3.rc.ufl.edu:11764 --desktop-scaling=on
DPI
In order to help with font scaling issues, you can pass this parameter to your local installation by adding the dpi= option to your connection command. This forces a particular DPI to be used if it is supported by both server and client.
- Example
Start a MATLAB GUI session:
$launch_matlab_gui
From the output copy the client command to your local machine and add the desktop scaling parameter:
$xpra attach ssh:$USER@i21a-s3.rc.ufl.edu:11764 --dpi=96