Soluții

Utilizarea butonului de power (pornire/oprire) in scopul diverselor remedieri

Butonul de pornire-oprire (in comutatie) prezent pe laptopuri/PC-uri/servere poate fi utilizat si in alte scopuri decat pornire/oprire/sleep/hibernare/inchiderea ecranului (ori alte optiuni puse la dispozitie prin intermediul sistemului de operare ori firmware-ului integrat). In general aplicabilitatea urmatoarei metode se extinde inclusiv la alte dispozitive cu memorie ram (si condensatori), precum smartphone-uri sau imprimante.

Situatiile ce se pot remedia includ, dar nu se limiteaza la urmatoarele exemple:
-tastatura laptop nefunctionala
-tastatura laptop ce raspunde incorect ori greoi la tastele apasate
-ocazional pentru remedieri ce se manifesta prin BSOD
-permite detectarea dispozitivelor/perifericelor/componentelor ce altfel nu ar fi recunoscute (inclusiv anumite SSD-uri, caz in care se recomanda salvarea datelor de pe acestea si inlocuirea cu un model ce nu prezinta acest simptom).

[mai mult...]

How to Run GUI Applications in a Docker Container

Docker’s normally used to containerise background applications and CLI programs. You can also use it to run graphical programs though! You can either use an existing X Server, where the host machine is already running a graphical environment, or you can run a VNC server within the container.

First it’s important to understand what Docker actually does. A Docker “container” is a form of encapsulation which seems to be superficially similar to a virtual machine. Unlike a virtual machine, containers share the same Linux kernel as their host system.

The next component is the X Window System. X Servers such as Xorg provide the fundamental graphical capabilities of Unix systems. GUI applications can’t render without an X Server available. (Alternative windowing systems, such as Wayland, are available – we’re focusing on X in this article.)

Trying to run an X Server in Docker is theoretically possible but rarely used. You’d need to run Docker in privileged mode (--privileged) so it could access your host’s hardware. Starting the server would try to claim your video devices, usually resulting in loss of video output as your host’s original X server gets its devices yanked away.

A better approach is to mount your host’s X Server socket into the Docker container. This allows your container to use the X Server you already have. GUI applications running in the container would then appear on your existing desktop.

[mai mult...]