Soluții

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...]

How to Permanently Change Your MAC Address on Linux

You can set a permanent new MAC address in the terminal using the macchanger utility and a systemctl unit file. Or in GNOME, go to Settings > Wi-Fi [or Network] > Identity, and enter a custom MAC address.

Every network interface has a unique MAC address, set by the manufacturer. It’s how network connections identify connection endpoints. On Linux, you can permanently change a MAC address if you want.

[mai mult...]

How to fix “whea_uncorrectable_error” in Windows 10

As we all know too well, sometimes our computers can fail us at the most inconvenient of times. While some faults are easily solved, many can leave you scratching your head and unable to find the root of the issue – and one problem that falls firmly into the latter category is Windows 10’s notorious ‘blue screen of death’.

If you’re unfortunate enough to encounter the BSOD, you may find an accompanying line of text that reads ‘whea_uncorrectable_error’. To the uninitiated, this means very little other than the device has apparently given up the ghost – but it often indicates that the problem is being caused by a hardware malfunction.

[mai mult...]