From 037adb8aad81d8d3e2428720d6c2e13cf9174874 Mon Sep 17 00:00:00 2001 From: ebner Date: Thu, 8 Jan 2026 18:27:27 +0100 Subject: [PATCH] move nomachine documentation --- .../nx_nomachine/administration.md | 356 ++++++++++ .../baramundi_assign_install_job.png | 3 + .../admin-guide/nx_nomachine/configuration.md | 4 +- .../admin-guide/nx_nomachine/design.md | 34 + .../admin-guide/nx_nomachine/index.md | 45 ++ .../overview_nomachine-proxy.drawio.svg | 262 +++++++ .../nx_nomachine/overview_rem-acc.drawio.svg | 656 ++++++++++++++++++ .../remote_management_windows.png | 3 + .../nx_nomachine/troubleshooting.md | 2 +- .../admin-guide/nx_nomachine/usecases.md | 85 +++ 10 files changed, 1447 insertions(+), 3 deletions(-) create mode 100644 docs/services/admin-guide/nx_nomachine/administration.md create mode 100644 docs/services/admin-guide/nx_nomachine/baramundi_assign_install_job.png create mode 100644 docs/services/admin-guide/nx_nomachine/design.md create mode 100644 docs/services/admin-guide/nx_nomachine/index.md create mode 100644 docs/services/admin-guide/nx_nomachine/overview_nomachine-proxy.drawio.svg create mode 100644 docs/services/admin-guide/nx_nomachine/overview_rem-acc.drawio.svg create mode 100644 docs/services/admin-guide/nx_nomachine/remote_management_windows.png create mode 100644 docs/services/admin-guide/nx_nomachine/usecases.md diff --git a/docs/services/admin-guide/nx_nomachine/administration.md b/docs/services/admin-guide/nx_nomachine/administration.md new file mode 100644 index 00000000..7d4e0190 --- /dev/null +++ b/docs/services/admin-guide/nx_nomachine/administration.md @@ -0,0 +1,356 @@ +# NoMachine - Administration + +__NOTE:__ All nx.psi.ch related administration and debugging instructions are located at https://gitea.psi.ch/nomachine/nomachine_ansible + + + +# Good to Know + +- All nx related central servers are within this hiera class: https://gitea.psi.ch/puppet/data-lx +- /etc/NX/nxserver and /usr/NX/bin/nxserver is the same (one should be link to another). The standard place is /usr/NX/bin/nxserver. + +# Useful Commands + +Status of the nx processes: +```bash +/etc/NX/nxserver --status +``` + + +Manually restart nxserver (without systemd): +```bash +/etc/NX/nxserver --restart +``` + +Enable and disabling debugging on certain processes: + +```bash +# Get debug level of the different processes +/etc/NX/nxserver --debug +NX> 900 Debug mode for server is: disabled +NX> 900 Debug mode for node is: disabled +NX> 500 ERROR: Cannot retrieve debug mode for: webplayer. +NX> 500 ERROR: Key WebSessionLogLevel does not exist in /usr/NX/etc/server.cfg. +NX> 900 Debug mode for agent is: disabled + +# enable debug mode +/etc/NX/nxserver --debug --enable daemon +/etc/NX/nxserver --debug --enable server +/etc/NX/nxserver --debug --enable node + +# disable debug mode +/etc/NX/nxserver --debug --disable daemon +/etc/NX/nxserver --debug --disable server +/etc/NX/nxserver --debug --disable node +``` + +Manually rotate logs (e.g. to send the logs to nomachine): +``` +/etc/NX/nxserver --logrotate +``` + +Show disconnected sessions: +``` +nxserver --history | grep Disconnected +``` + + +## References +NoMachine8 Installation and Configuration Guide Enterprise Desktop: https://kb.nomachine.com/DT07S00246 + + +# Useful Commands (nx.psi.ch) + +The nxserver logs are located in: +``` +tail -f /usr/NX/var/log/nxserver.log +``` + + +Show status of nxserver +``` +systemctl status nxserver +``` + + +Restart nxserver +``` +nxserver --restart +# or (if you want to be on the safe side) +systemctl start nxserver +``` + + +List all license states on nx.psi.ch: +``` +nxserver --subscriptionlist --all +``` + + +Show all configured nodes: +``` +nxserver --nodelist --extended +``` + + +Get detailed info about a specific node +``` +nxserver --nodeinfo 67301fd0-fc51-4ca0-a512-53916da8fab7 +# or +nxserver --nodeinfo pc10603.psi.ch:4000 +``` + + +Get access rules: +``` +# all rules +nxserver --rulelist + +# rules for a specific user +### IMPORTANT ### If access for a user is granted through some group, the nxserver command will not show this !!!! +nxserver --rulelist --user ebner +# or +nxserver --rulelist | grep ebner + +# rules for a group +nxserver --rulelist --group unx-MXgroup +``` + + +Get all users: +``` +nxserver --userlist +``` + + +List all active sessions: +``` +nxserver --list + +# List all active session of that user +nxserver --list +``` + + +Send announcement (works only on proxy - not yet verified): +``` +nxserver --broadcast "BLA\nBLA" +``` + + +Send message to an individual session (not yet verified): +``` +nxserver --message ID "message\nnew line" +``` + + +Update node name: +``` +nxserver --nodeedit pc14742.psi.ch --node-name pc14742.psi.ch +``` + + +Push configuration changes to the other node (nx.psi.ch) +``` +nxserver --clusterupdate +# this tells you that you need a cluster-restart to apply the changes to both nodes - usually Dima does not restart +``` + +Session list on nx-proxy +``` +[root@nx-proxy-1 ~]# nxserver --list | wc -l +128 +``` + +Unique user sessions: +``` +[root@nx-proxy-1 ~]# nxserver --list | awk '{print $2}' | sort | uniq | wc -l +94 +``` + + + +# Installation + +## Linux +### Packages + +The NoMachine Linux RPMs are located in the following repository: https://repos.psi.ch/rhel8/latest/nxserver/ + +__THERE IS A .htaccess file in there that restricts the access to this repo to only the listed nodes !!!!__ (also see: https://gitea.psi.ch/nomachine/nomachine_licenses) + +NoMachine only releases RPM for current version (older ones are removed!). + + +Packages in this repository are manually downloaded from the NoMachine.com webside and the yum repository is manually created via the `createrepo .` command. + +When downloading the packages make sure to check the MD5 sum! + +### Installation + +To deploy NoMachine on a machine following Hiera settings need to be applied. + +Enable nomachine: +```yaml +base::enable_nomachine: true +``` + +Set version and profile (profile is the name of the nomachine product that should be used on that machine): +```yaml +nomachine::version: '8.4.2-1' +nomachine::profile: 'enterprise-terminal-server-cluster' +``` + +Specify the license: +```yaml +nomachine::license::: + +# an old way to specify the license wasL +nomachine::license::server::: +nomachine::license::node::: +``` + +The `` is the simple hostname _without_ the domain name psi.ch. +The effective license String is the encrypted, assigned license for that particular machine. More details about the license management can be found here: https://gitea.psi.ch/nomachine/nomachine_licenses + + +Example: +```yaml +nomachine::license::lx-nx-dmz-01: > + ENC[PKCS7 MIIEvQYJKoZIhvcNAQcDoIIErjCCBKoCAQAxggEhMIIBHQIBAD + AFMAACAQEwDQYJKoZIhvcNAQEBBQAEggEAJdz2nVg63VHY97d4+8ai8EQnjB +``` + + +If more people should be able to login via NX than that can login via ssh following parameter needs to be specified: + +```yaml +aaa::nx_users: [] +``` + +There are two more dictionary variables to modify/adapt the server/node configuration of a machine. This can be done by `nomachine::params::server` and `nomachine::params::node`. The exact keys supported within the dict need to be checked here: https://gitea.psi.ch/puppet/puppet/-/blob/preprod/code/modules/profile/manifests/nomachine/config.pp + +```yaml +nomachine::params::server: + ConnectionsLimit: 500 + VirtualDesktopsLimit: 500 + ConnectionsUserLimit: '2' + VirtualDesktopsUserLimit: '2' + EnableNXKerberosForwardingToRemote: '1' + SystemLogFile: '/usr/NX/var/log/nxserver.log' + +nomachine::params::node: + SystemLogFile: '/usr/NX/var/log/nxserver.log' +``` + +To enable direct connections for a node define (to disable set 0): +```yaml +nomachine::params::server: + EnableDirectConnections: 1 +``` + +## Windows + +### Installation +To install NoMachine on a Windows one need to assign a License to the Windows machine (see: https://gitea.psi.ch/nomachine/nomachine_licenses#windows) + +Afterwards trigger the Install NX Desktop job within Baramundi. + +![](baramundi_assign_install_job.png) + +As this will trigger/require a reboot this job has to be manually acknowledged on the Windows PC. + +### Debugging +#### Remote Shell +From the administration machine winadmin.psi.ch one can connect to all Windows nodes with NoMachine installed via remote Shell. For this, open a powershell and issue the following commands: + +![](remote_management_windows.png) + +Note, the `nxserver` is not in the PATH by default. Therefore it is necessary to switch into the folder `cd c: \Program Files (x86) \NoMachine\bin` first. + + + +# nx.psi.ch + +All administration tasks are more or less automated in: https://gitea.psi.ch/nomachine/nomachine_ansible. Please refere to the documentation there to add/remove rules/nodes, etc. + +SSH access to nx.psi.ch is only possible via mgt-gw.psi.ch + +Following things are good to know regarding nx.psi.ch: + +- If a node gets reinstalled it needs to be removed / readded to nx.psi.ch +- If there is no rule for a node everybody that can login on that node can access this node! (therefore each node needs a no access default rule) +- Get members of a group: + ``` + getent group svc-nx | sed -e 's/^svc-nx:\*:35341://g' | tr ',' '\n' | sort + ``` +- A node that is attached to a Cloud Server instance cannot be connected to another Cloud Server instance +- Whether a node can be connected directly (regardless whether it is attached to a Cloud/Teminal Server instance ) depends on the nodes configuration +- There is a notification mechanism inside NX Cloud Server (e.g. to inform users about upcoming downtimes) + + + +# nomachine-proxy +## Troubleshooting + +If a node is marked as unreachable try to use --nodeedit to bring it back again: + +```bash +[root@nx-proxy-1 ~]# nxserver --nodelist --extended +NX> 167 Node list: +Node name Node Protocol Status Load-B Manual-S Weight Limit +--------- --------------------- -------- ----------- ------ -------- ------ ----- +nx-node-3 nx-node-3.psi.ch:4000 NX unreachable yes no 300 +nx-node-2 nx-node-2.psi.ch:4000 NX running yes no 300 +nx-node-1 nx-node-1.psi.ch:4000 NX running yes no 300 +nx-node-4 nx-node-4.psi.ch:4000 NX running yes no 300 +[root@nx-proxy-1 ~]# nxserver --nodeedit nx-node-3.psi.ch +NX> 177 Modifying node: nx-node-3.psi.ch:4000 +NX> 176 With connection type: encrypted +NX> 811 Nodeedit process finished. +NX> 190 Connected to NX Node. +NX> 188 Updating node: nx-node-3.psi.ch with port: 4000 +NX> 192 With protocol: NX +NX> 176 With connection type: encrypted +NX> 175 With load balancing: yes +NX> 195 With manual selection: no +NX> 174 With type: NX +NX> 178 With distribution: Red Hat Enterprise Linux Server release 7.9 (Maipo) +NX> 179 With operation system: Linux +NX> 180 With product: NoMachine Enterprise Terminal Server Node - Version 8.4.2 +NX> 181 With cpu: 8 +NX> 182 With hardware: VMware Inc. VMware Virtual Platform +NX> 187 Session types available on node: shadow,unix-xsession-default +NX> 186 Services denied on node: audio,microphone +NX> 193 Node platform: linux +[root@nx-proxy-1 ~]# nxserver --nodelist --extended +NX> 167 Node list: +Node name Node Protocol Status Load-B Manual-S Weight Limit +--------- --------------------- -------- ------- ------ -------- ------ ----- +nx-node-3 nx-node-3.psi.ch:4000 NX running yes no 300 +nx-node-2 nx-node-2.psi.ch:4000 NX running yes no 300 +nx-node-1 nx-node-1.psi.ch:4000 NX running yes no 300 +nx-node-4 nx-node-4.psi.ch:4000 NX running yes no 300 +[root@nx-proxy-1 ~]# +``` + +# Desktop +## Troubleshooting + +Show local sessions: +``` +/usr/NX/bin/nxserver --list +NX> 127 Available sessions: + +Display Username Remote IP Session ID Node +------- -------- --------- -------------------------------- -------------- +1001 ebner 127.0.0.1 769FC24C051F441941FD0BC251322397 localhost:4000 +``` + +## Testing + +To be able to test the nomachine-enterprise-desktop package the system need to have the "Server with GUI" package group installed. + +``` +dnf groupinstall "Server with GUI" +``` diff --git a/docs/services/admin-guide/nx_nomachine/baramundi_assign_install_job.png b/docs/services/admin-guide/nx_nomachine/baramundi_assign_install_job.png new file mode 100644 index 00000000..c4cb5e12 --- /dev/null +++ b/docs/services/admin-guide/nx_nomachine/baramundi_assign_install_job.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c53b951aee0dba4aaa72db9934d6bfbcbdbca9060606cd582d72fdb1f4119f49 +size 972640 diff --git a/docs/services/admin-guide/nx_nomachine/configuration.md b/docs/services/admin-guide/nx_nomachine/configuration.md index 5ac85c9a..9a6544ac 100644 --- a/docs/services/admin-guide/nx_nomachine/configuration.md +++ b/docs/services/admin-guide/nx_nomachine/configuration.md @@ -1,8 +1,8 @@ -# NoMachine Configuration +# NoMachine - Configuration To install and configure nomachine vie hiera following variables are needed: -``` +```yaml base::enable_nomachine: true nomachine::version: '8.4.2-1' nomachine::profile: 'enterprise-desktop' diff --git a/docs/services/admin-guide/nx_nomachine/design.md b/docs/services/admin-guide/nx_nomachine/design.md new file mode 100644 index 00000000..1f0b54fe --- /dev/null +++ b/docs/services/admin-guide/nx_nomachine/design.md @@ -0,0 +1,34 @@ +# Design + +## Remote Access (nx.psi.ch) + +![sketch](overview_rem-acc.drawio.svg) + +- The rules for merlin-nx and ra-nx are not managed by rama.psi.ch. They need to be setup "manually". +- Access to nx.psi.ch is only possible with PSI accounts (internal, external), no e-accounts, gac-, etc. are supported. + +### Security Policy + +The remote access server must only give access to systems/nodes that are located in secured networks (i.e. networks that are __not__ directly reachable from the PSI Intranet). + +Agreed exception to this rules are the two login clusters: +- merlin-nx.psi.ch +- ra-nx.psi.ch + +Access must only be granted to personal accounts. + +## Terminal Server + +### Nomachine Proxy + +![sketch](overview_nomachine-proxy.drawio.svg) + +- The AD group svc-nx defines who can login to the nomachine proxy service +- The attached nodes only provide a minimal desktop with a browser but no additional tools + +### ra-nx +- ra-nx is administered by Ivano Talamo / Leonardo Sala + +### merlin-nx +- merlin-nx is administered by Marc Caubet + diff --git a/docs/services/admin-guide/nx_nomachine/index.md b/docs/services/admin-guide/nx_nomachine/index.md new file mode 100644 index 00000000..5494a246 --- /dev/null +++ b/docs/services/admin-guide/nx_nomachine/index.md @@ -0,0 +1,45 @@ +# Overview + +This repository holds all nx / nomachine related information, documentation, SLAs or redirects to other sources to find further information. + +The user documentation can be found here: https://www.psi.ch/en/photon-science-data-services/remote-interactive-access +(access rights can be given by Nathalie Wetter) + + +# Contact + +The mailing list: nomachine-announce@lists.psi.ch is a distribution only list to inform about nx related topic. Interested people can subscribe via: https://psilists.ethz.ch/sympa/info/nomachine-announce. The mailing list will only accept messages from the owner of the list. + + +For incoming communication like general questions, etc. the shared mailbox: nomachine@psi.ch can be used. + + +Problems should be reported by ServiceNow css.psi.ch. + +# FAQ / Troubleshooting +Common problems are documented here: +[FAQ_Troubleshooting.md](FAQ_Troubleshooting.md) + +# Usecases +The current nx service covers several usecases. These usecases are described in [Usecases.md](Usecases.md) + + +# Design +Described in [Design.md](Design.md) + + +# Administration +Described in [Administration.md](Administration.md) + + +# Licenses +The management and documentation for the NX licenses can be found within this repository: +https://git.psi.ch/nomachine/licenses + +(this repository is only accessible to the admins dealing with nomachine licenses) + + +# Support +The nomachine support page is located at: https://www.nomachine.com/support. Tickets to nomachine needs to be filed there. We do not have nx-support package subscription. Response times to tickets is few number of days (exact response time defined in license) + +The PSI license manager can issue changes to nx-portal (e.g. grant access, etc.). diff --git a/docs/services/admin-guide/nx_nomachine/overview_nomachine-proxy.drawio.svg b/docs/services/admin-guide/nx_nomachine/overview_nomachine-proxy.drawio.svg new file mode 100644 index 00000000..bce77e99 --- /dev/null +++ b/docs/services/admin-guide/nx_nomachine/overview_nomachine-proxy.drawio.svg @@ -0,0 +1,262 @@ + + + + + + + +
+
+
+ nomachine-proxy.psi.ch +
+
+
+
+ + nomachine-proxy.psi.ch + +
+
+ + + + +
+
+
+ Allowed users: +
+ group svc-nx +
+
+
+
+ + Allowed users:... + +
+
+ + + + + + +
+
+
+ nx-node-1 +
+
+
+
+ + nx-node-1 + +
+
+
+ + + + + + + +
+
+
+ nx-node-2 +
+
+
+
+ + nx-node-2 + +
+
+
+ + + + + + + +
+
+
+ nx-node-3 +
+
+
+
+ + nx-node-3 + +
+
+
+ + + + + + + + + + + + + + + + + + + + +
+
+
+ node randomly choosen +
+ or re-connect to existing connection +
+
+
+
+ + node rando... + +
+
+ + + + + + + +
+
+
+ nx-node-4 +
+
+
+
+ + nx-node-4 + +
+
+
+ + + + + + + +
+
+
+ nx-proxy-1 +
+
+
+
+ + nx-proxy-1 + +
+
+
+ + + + + + + +
+
+
+ nx-proxy-2 +
+
+
+
+ + nx-proxy-2 + +
+
+
+ + + + + + + +
+
+
+ + nmh01.psi.ch:/nomachine/home +
+
+ (home directories) + +
+
+
+
+
+
+ + nmh01.psi.... + +
+
+ + + + + + + + + + + + + +
+
+
+ NetAPP +
+
+
+
+ + NetAPP + +
+
+
+ + + + + Text is not SVG - cannot display + + + +
diff --git a/docs/services/admin-guide/nx_nomachine/overview_rem-acc.drawio.svg b/docs/services/admin-guide/nx_nomachine/overview_rem-acc.drawio.svg new file mode 100644 index 00000000..908ebcee --- /dev/null +++ b/docs/services/admin-guide/nx_nomachine/overview_rem-acc.drawio.svg @@ -0,0 +1,656 @@ + + + + + + + + + +
+
+
+ influx.psi.ch +
+
+
+
+ + influx.psi.ch + +
+
+
+ + + + +
+
+
+ Extranet +
+
+
+
+ + Extranet + +
+
+ + + + +
+
+
+ Intranet +
+
+
+
+ + Intranet + +
+
+ + + + + + + +
+
+
+ ra-nx-1 +
+
+
+
+ + ra-nx-1 + +
+
+
+ + + + + + + +
+
+
+ nodes +
+
+
+
+ + nodes + +
+
+
+ + + + + + + +
+
+
+ ra-nx-2 +
+
+
+
+ + ra-nx-2 + +
+
+
+ + + + +
+
+
+ ra-nx.psi.ch +
+
+
+
+ + ra-nx.psi.ch + +
+
+ + + + + + + +
+
+
+ merlin-nx-2 +
+
+
+
+ + merlin-nx-2 + +
+
+
+ + + + +
+
+
+ merlin-nx.psi.ch +
+
+
+
+ + merlin-nx.psi... + +
+
+ + + + +
+
+
+ svc-cluster_ra +
+
+
+
+ + svc-cluste... + +
+
+ + + + +
+
+
+ svc-cluster_merlin5 +
+
+
+
+ + svc-cluste... + +
+
+ + + + +
+
+
+ svc-cluster_merlin6 +
+
+
+
+ + svc-cluste... + +
+
+ + + + + +
+
+
+ 4000 +
+
+
+
+ + 4000 + +
+
+ + + + + +
+
+
+ 4000 +
+
+
+
+ + 4000 + +
+
+ + + + + +
+
+
+ https/443 +
+
+
+
+ + https/443 + +
+
+ + + + +
+
+
+ Admins/ Beamline Responsible +
+ + (give access to certain consoles) + +
+
+
+
+ + Admins/ Beamline Responsible... + +
+
+ + + + + +
+
+
+ http/8086 +
+ (monitoring) +
+
+
+
+ + http/8086... + +
+
+ + + + + +
+
+
+ ssh/22 +
+ (update access rules) +
+
+
+
+ + ssh/22... + +
+
+ + + + +
+
+
+ pre-shared ssh keys - changes done via ssh command calling +
+ /root/scripts/change_rule.sh +
+
+
+
+ + pre-shared ssh keys - c... + +
+
+ + + + + + + +
+
+
+ nodes ... +
+
+
+
+ + nodes ... + +
+
+
+ + + + + +
+
+
+ 4000 +
+
+
+
+ + 4000 + +
+
+ + + + + +
+
+
+ https/443 +
+ (read/write?) +
+
+
+
+ + https/443... + +
+
+ + + + + +
+
+
+ (group memberships / +
+ authentication) +
+
+
+
+ + (group memberships /... + +
+
+ + + + + + + +
+
+
+ nx.psi.ch +
+
+
+
+ + nx.psi.ch + +
+
+
+ + + + + +
+
+
+ 4000 +
+
+
+
+ + 4000 + +
+
+ + + + + + + +
+
+
+ duo.psi.ch +
+
+
+
+ + duo.psi.ch + +
+
+
+ + + + + + + +
+
+
+ rama.psi.ch +
+
+
+
+ + rama.psi.ch + +
+
+
+ + + + + + + +
+
+
+ AD +
+
+
+
+ + AD + +
+
+
+ + + + + + +
+
+
+ Protected Network +
+
+
+
+ + Protected Network + +
+
+ + + + + + +
+
+
+ merlin-nx-1 +
+
+
+
+ + merlin-nx-1 + +
+
+
+ + + + + + + +
+
+
+ nodes +
+
+
+
+ + nodes + +
+
+
+ + + + + + + +
+
+
+ radius servers +
+ nps01.psi.ch +
+ nps02.psi.ch +
+
+
+
+ + radius servers... + +
+
+
+ + + + + +
+
+
+ 1645 +
+ (MFA authentication) +
+
+
+
+ + 1645... + +
+
+
+ + + + + Text is not SVG - cannot display + + + +
\ No newline at end of file diff --git a/docs/services/admin-guide/nx_nomachine/remote_management_windows.png b/docs/services/admin-guide/nx_nomachine/remote_management_windows.png new file mode 100644 index 00000000..83dbe413 --- /dev/null +++ b/docs/services/admin-guide/nx_nomachine/remote_management_windows.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:11bf59768c58ba03ebaf57801bb97f06ef60f06c626318c4df143b135fbde18f +size 673254 diff --git a/docs/services/admin-guide/nx_nomachine/troubleshooting.md b/docs/services/admin-guide/nx_nomachine/troubleshooting.md index 65dfc24b..30e0c34c 100644 --- a/docs/services/admin-guide/nx_nomachine/troubleshooting.md +++ b/docs/services/admin-guide/nx_nomachine/troubleshooting.md @@ -1,4 +1,4 @@ -# NoMachine Troubleshooting +# NoMachine - Troubleshooting ### Cannot Connect Physical Desktop diff --git a/docs/services/admin-guide/nx_nomachine/usecases.md b/docs/services/admin-guide/nx_nomachine/usecases.md new file mode 100644 index 00000000..0bdffe5f --- /dev/null +++ b/docs/services/admin-guide/nx_nomachine/usecases.md @@ -0,0 +1,85 @@ +# NoMachine - Usecases + +There are 3 major usecases for NX / nomachine at PSI (usecase details see below): + +- Desktop Access +- Terminal Server (e.g. Ra, Merlin, nomachine-proxy) +- Remote Access (nx.psi.ch) + + + +# Desktop Access +NX is used to connect to and/or create physical/virtual desktop session(s) on a machine. The access is always from a node within the PSI network (PSI intranet, nodes connected via VPN, ...) +The two major usecases are: +- create a new session +- connect to existing session (e.g. to support users) + +An advantage of nx is that it can be used for Windows and Linux systems alike. It provides a consistent way to connect to the remote desktop. + + + +# Terminal Server +In the terminal server usecase people want to create private virtual sessions on a terminal server (cluster). These sessions are persistent unless they are intentionally closed by the user. + +This usecase covers: +- CAD Workstations (Jens Ehler) +- nomachine-proxy +- ra-nx +- merlin-nx + + +## nomachine-proxy +nomachine-proxy is a service for whole PSI. It is usually used as a bridge between Windows consoles and Linux world. The main user (historically and by need) is GFA. They usually use this service to ssh to other computers to open applications for monitoring/steering the GFA accelerators. + +nomachine-proxy was a replacement of gfa-nx service, the main purpose was as a bridge between Windwows desktops and the Linux world. From the beginning it was postulated that nomachine-proxy nodes will be small virtual machines, that users shouldn't use for computational intensive purposes. The amount of software on the nodes will be "reasonable" for purpose of interactive work (editiing small files, browsing internal pages, jumping to other hosts etc..). We added few software on user requests: +https://gitea.psi.ch/puppet/data-lx + +Since user can't choose which node to login via nomachine, user home is shared on all these nodes(from netapp), with a very small quota (this is usually a problem for users, since they use firefox on that nodes and cache occupies that quota): + +```bash +$ quota -s +Disk quotas for user ozerov_d (uid 36871): + Filesystem space quota limit grace files quota limit grace +nmh01.psi.ch:/nomachine/home + 217M 750M 1500M 2363 4295m 4295m +``` + +Dimas idea was to merge nomachine-proxy with the llc "cluster". But llc was replaced by login cluster, which runs without graphical access. + +nodes provide a minimal desktop with a browser but no additional tools + + +## merlin-nx + +merlin-nx is used by internal and external users. The main usecase is for preparing jobs, submitting jobs, post-processing and visualization to the merlin cluster. Some applications are pretty heavy if they have to open it through SSH with X11 forwarding, NoMachine is mainly used for such use cases instead. But also there are users using the Merlin desktop as their daily way of working (even for submitting command line based jobs). 3D acceleration is a common use case for visualzation, therefore, GPU card is in general preferred. + +Typical X-based software used in NoMachine are ANSYS, Relion, Paraview, Matlab and Gothic. Using NoMachine for submitting jobs (allocations) with X11 forwarding to the cluster it's also commonly used (ANSYS, Paraview). + +Sometimes, users use it to transfer files. Users are told to avoid this for massive transfers or for doing it in a regular basis, but despide that some use it anyway for transferring a few files from time to time. + +Some users are using the nodes to transfer files between Merlin and Windows shares. + +The commonest access to merlin-nx is from within PSI network but remote access is increasing and important. + +NoMachine is a service used daily by many users. + + +## ra-nx + +ra-nx is use by both, external and internal users. For some users it is just a replacement of ssh (not everybody feels comfortable over a terminal) but in general it is for visual tools (Matlab, fiji, Paraview and other visual tools). Login nodes have a pretty decent accelerated video card to support on this. + +Sessions are accessed from both, within PSI and through the remote access service (nx.psi.ch) + +Users always expect it to be up and running. + + + +# Remote Access (nx.psi.ch) + +The __stakeholders__ of the remote access service can be found in https://gitea.psi.ch/nomachine/nomachine_ansible + +This service is typically used by beamline users to conduct their experiment from remote. Also it is used by beamline staff to help at (support experiment), monitor and work at the beamline . + +The most critical usecase is the access to beamline consoles. A lot of experiments at SLS are running remotely, so users steering/running experiment from the outside. It's extremely critical and time-to-solve issue is certainly within the hours (some experiments(MX) has only one shift to take data (8 hours), so if users can't access consoles at all - it's 100% failed). Most important users to complain/to listen too - are beamline scientists/managers, who usually calls in case of problems. + +The remote access server serves as a single point of entry for remote desktop sessions. Beamline staff can (dynamically) grant remote access to people on demand by the rama service. No VPN, Tunneling and jumping over firewalls is needed to access the desktop sessions.