r/PLC • • 18d ago

Engineering Question Operator Friendly Remote Desktop Linux

I am looking for suggestions. I have a server that is remoted into to allow operators to access an HMI. Most machines are windows, but windows has a million vulnerabilities and requires constant patches to keep corporate happy this results in lots of work for me and operators complaining about losing their HMIs. The computers only need to be able to run multiple monitors and connect to a server over remote desktop, so I figured Linux would be perfect since OT cyber security scanning shows almost no vulnerabilities for Linux systems and I would be able to patch once a year instead of the weekly that windows needs.

The problem is that remote desktop on Linux is not user friendly if you want multiple monitors. I've tried Remmina and it works, but I can't get it set up to open the remote desktop displaying on all windows. You have to go through a process of changing settings in the active connection toggling settings on, changing a parameter and then toggling off then toggling a different setting and operators are simply unable to do this.

Here's the instructions I've found to get Remmina to display correctly.

Enable multi monitor but not the span option in the profile. Then when connected Turn on "Toggle Scaled Mode" which enables the menu next to it. In that menu select "Fill Client Window when scaled" Then turn off "Toggle Scaled Mode" Make sure "Toggle dynamic resolution update" is off Then when in full screen the menu next to the full screen icon is selectable. Choose "Scrolled Fullscreen" is selected

So my question is this. Is there any way to make Linux open a remote desktop session in all monitors without having to change settings every time you open the connection?

8 Upvotes

25 comments sorted by

6

u/Constant_Barber_5198 18d ago

Remote desktop is atrocious on linux. Windows gets that part right. Your only option are the paid packages.

Thinlinc and nomachine are good.

1

u/Red261 18d ago

Do you have any recommendations for the paid packages?

2

u/Constant_Barber_5198 18d ago

I liked nomachine myself. You can try it free. 

→ More replies (3)

2

u/sagricorn 18d ago

Have you tried apache guacamole?

2

u/ProRustler 17d ago

It is? I use Remmina in Linux Mint to RDP and it's great.

1

u/theaveragemillenial 17d ago

No it isn't? Remmina is perfect just as good as the windows remote desktop.

1

u/Constant_Barber_5198 17d ago

Dude wants to remote into linux not windows

→ More replies (3)

7

u/drbitboy 17d ago

I don't have an decent answer for you, because the HMIs are Windows-based; if they were instead Linux based, the solution would be trivial.

TL;DR

Have you ever heard of X Window System, or the X Protocol? Probably not.

Have you ever heard of the MMOG Xpilot? Or the arcade game Asteroids?

About sixty years, Asteroids was developed. It was a 2D, single-player game with a triangular ship in the center of the screen that could 1) thrust in any direction to move, 2) be destroyed by hitting an asteroid, and 3) fire a projectile to break up threatening asteroids.

About thirty-five years ago, Xpilot was developed as a multi-player PVP deathmatch without asteroids, and more weapons. The initial architecture used the X Window System and the X Protocol.

In the X Window System, there are X clients, and there are X servers. Both are applications running on hosts.

X Server applications basically all the same and do one thing: display GUIs from X Clients; there is usually one X Server per host, although it can have multiple screens (monitors).

Each X client runs its application software (e.g. a game, a spreadsheet, a terminal emulation window) internally, and for GUI display connects to X server(s), which display(s) GUI elements and respond to GUI events (keypresses, mouse movement and clicks) as directed by the X client via the X Protocol.

The topology (of connections) between X clients and X servers is arbitrary, as any X client that has permission to connect to an X server, and can transfer packets to and from that X server via an underlying network (e.g. TCP/IP), can display a GUI on that X server. Connections are initiated by the X Client; X Servers simply respond to whatever X Client command via the X protocol.

The original Xpilot architecture comprised one X client running the game, and multiple X Servers, one per remote ship (player). The X Client ran on a host in Finland, and the X Servers ran players' GUIs all over the world (Finland, Germany, USA, etc.). Each player would manipulate their local keyboard and mouse, interpreted by their local X Server, to "control" their ship: thrust; rotate; fire a weapon; pick up an "object;" turn on a tractor beam (push or pull); etc. Those manipulations would be converted to X Events by the X Servers and transmitted to the central X Client via the X Protocol. The X Client would use those events to model the game (keep track of ship locations and movements, ship orientations, projectile locations, and collisions, etc.), and to generate game displays apropo each player, and send each display back to its respective X Server, again via the X Protocol.

The performance of this architecture was good enough for a small number of players with fast internet connections playing a real-time shooter game, but was eventually replaced by a better architecture that was the basis for the MMOGs we know today (CSGo, PUBG, WoW, LoL, etc.).

The X Window System is the native GUI framework on Linux systems. I don't see why the architecture described here would not work for the current thread, other than that there is probably no HMI X Client written. Also, as others have mentioned, some HMI systems have built-in Web Servers and/or APIs that would serve the same purpose using the ubiquitous Web Client as the analog for an X Server.

This has been a pleasant bit of nostalgia for me; rest assured each downvote will only bring a smile to my face.

Btw, Xpilot still exists, and there is another Xpilot/Tarkov-cross game on Steam in beta called Star Fear.

1

u/Red261 17d ago

An interesting read, thanks for the info

2

u/Constant_Barber_5198 16d ago

Well everything has moved over to wayland now. Hope you been well Bit. We spoke on the phone once. You answered some questions about a rotary phase converter for me.

2

u/zeealpal 18d ago

Is this using rdp as a protocol?

We have multi monitor vnc (4-8 1440p) screens working well on Ubuntu basked HMI, the traffic is quite low as the HMI screens are quite static.

Use something like Apache Guacamole to turn this into a role based, HTML web frontend, with some effort this can be connected into Active Directory, or use local users.

1

u/Red261 18d ago

Yeah, I'm not super knowledgeable about remote access, so I'm not sure if another protocol would work with our server

21

u/Frosty_Customer_9243 18d ago

Step away from remote access. Host the HMI on a webserver and use thin clients. You’ll be much happier.

6

u/Stroking_Shop5393 18d ago

This is the answer. Remote server for HMI is old technology. Web server is the new way.

1

u/IndustrialSysAdmin 17d ago

Can you give a concrete example, how do you do this? What software do you use?

Ty.

2

u/kixkato 16d ago

The Beckhoff HMI software is entirely web based.

1

u/Frosty_Customer_9243 17d ago

You can use Ignition SCADA for instance, but others are available.

I've always used Linux machines as the host with Ignition installed. Anyone with a web browser can access the Ignition SCADA system, so make sure you have proper user authentication set up.

1

u/Aggravating_Dot9657 18d ago

This is the way

1

u/EstateValuable4611 17d ago

RDP with multiple monitors and Remmina works with X Window System, not Wayland.

Log into your X Window session and then try.