==== Graphical User Interface ====
This page shows how to connect to the ''gui.hpc.unipr.it'' server using Remote Desktop Protocol (RDP).
=== Microsoft Windows (client) ===
Install the [[https://wiki.asi.unipr.it/dokuwiki/doku.php?id=guide_utente:internet:guida_vpn|FortiClient VPN]].
Activate the VPN connection:
{{ :calcoloscientifico:userguide:gui:vpn-connect.png?nolink |}}
VPN connection activated:
{{ :calcoloscientifico:userguide:gui:vpn-connected.png?nolink |}}
Connect to the gui.hpc.unipr.it server:
{{ :calcoloscientifico:userguide:gui:rdp-connect.jpg?nolink |}}
Insert username and password:
{{ :calcoloscientifico:userguide:gui:rdp-login.jpg?nolink |}}
Here is the GNOME Desktop with a solid color background:
{{ :calcoloscientifico:userguide:gui:gnome-desktop.png?direct&200 |}}
Press the right button and select "Open Terminal":
{{ :calcoloscientifico:userguide:gui:gnome-open-terminal.jpg?nolink |}}
To disconnect from the "Remote Desktop", press the shutdown button (top right) then on the username and finally on "Log Out":
{{ :calcoloscientifico:userguide:gui:rdp-logout.jpg?nolink |}}
Confirm with "Log Out":
{{ :calcoloscientifico:userguide:gui:rdp-logout-confirmation.jpg?nolink |}}
=== Linux (client) ===
Install the [[https://wiki.asi.unipr.it/dokuwiki/doku.php?id=guide_utente:internet:guida_vpn|FortiClient VPN]].
(You can try **openfortivpn** otherwise)
Install an X11 Remote Desktop Protocol (RDP) client like ''xfreerdp'' which is part of the [[http://www.freerdp.com|FreeRDP]] project.
Activate the VPN connection.
Connect to the ''gui.hpc.unipr.it'' server:
xfreerdp \
/u: \
/size:1440x900 \
/v:gui.hpc.unipr.it \
/port:3389 \
/clipboard \
/gdi:hw \
/bpp:24 \
/fonts \
/cert-ignore
Replace with your username.
Customize the /size option argument or use /f (fullscreen mode).
=== MacOS (client) ===
Install the [[https://wiki.asi.unipr.it/dokuwiki/doku.php?id=guide_utente:internet:guida_vpn|FortiClient VPN]].
Install one of the following remote desktop clients
* [[https://apps.apple.com/it/app/microsoft-remote-desktop/id1295203466|Microsoft Remote Desktop for Mac]]
* [[https://www.freerdp.com|FreeRDP]]
to connect to the ''gui.hpc.unipr.it'' server.
==== X11 forwarding ====
Press the right button and select "Open Terminal".
Optionally, set the Italian keyboard layout using the X Keyboard Extension:
setxkbmap it
For testing purposes start the graphical program ''xeyes'':
srun \
--job-name=xeyes \
--partition=vrt \
--qos=vrt \
--time=0-00:30:00 \
--x11 \
--pty \
xeyes
Start ''(X-Window) CRYstalline Structures and DENsities'' ([[calcoloscientifico:userguide:xcrysden|XCrySDen]]):
srun \
--job-name=xcrysden \
--nodes=1 \
--ntasks-per-node=1 \
--cpus-per-task=4 \
--mem=10G \
--partition=cpu \
--qos=cpu \
--time=0-01:00:00 \
--x11 \
--pty \
bash -c 'module load apptainer xcrysden && xcrysden'