I
I
Ilya Orlov2019-11-01 22:47:11
linux
Ilya Orlov, 2019-11-01 22:47:11

How to fix Linux terminal?

Greetings
There is a VDS machine on Ubuntu 16.04
A game project is placed there, the processes of individual modes are launched using the screen utility.
In the "screen", if you can call it that, the log of the game server is kept (the server is running there). With certain characters, the "screen" simply freezes, and then does not show anything.
What can be done about it?5dbc8ba8a5fa2482274712.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Kharchenko, 2019-11-01
@AVX

There are more than one solution:
1. Set up the server so that it is impossible to use any characters, but only "normal" ones. Perhaps this is not solved by the server, but by some plugins. For CS1.6 there were similar ones.
2. Don't hold the screen. Let it be logged into files. Yes, it is somewhat more inconvenient to manage, but it will also fall less.
3. Perhaps you need a newer version of screen or some library, if any.
...
Perhaps this is done intentionally to cause a denial of service. And you will have to study the issue, look for where the vulnerability is, and ways to close / bypass. For example, in one version of the cs1.6 server, there was a hole where an attacker could send a specific command that would shut down the server, or restart it (if configured). And for a long time they could not release (I don’t know why) an update with a closed hole. They managed with a tricky rule in iptables, which dropped such a dangerous packet.
In any case, there is too little data for a precise answer.

V
Vladimir, 2019-11-02
@MechanID

You can try changing the ESC sequence for the screen to get around these problems.
When the problem occurs again - try pressing Cntr + a + q this should "unfreeze" the screen. Then you can use the information from here
www.softpanorama.org/Utilities/screen.shtml
to change the ESC sequences for your screen

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question