Skip to content

Linux snippets

Forward TCP Traffic via socat to an another IP

socat tcp-listen:80,reuseaddr,fork tcp:10.0.0.2:80
socat tcp-listen:443,reuseaddr,fork tcp:10.0.0.2:443

Whats my outgoing IPv4 from CLI?

curl ip.syseleven.de -4

Remmina copy/paste does not Work with Wayland

Launch using ENV variable:

GDK_BACKEND=x11 remmina

Take screenshot to clipboard with Wayland

apt install flameshot wl-clipboard
flameshot gui --raw | wl-copy

Steam Client UI scaling (bigger)

/usr/games/steam -forcedesktopscaling=1.5 %U

Linux Steam + Company of Heroes 3 Error Fix

In my syslog (dmesg -wT) i encountered the error and the game crashed:

SGDT instruction cannot be used by applications

  • To fix this we need to disable a CPU security feature by editing the /etc/default/grub file:
sudo micro /etc/default/grub
  • And adding clearcpuid=514 to GRUB_CMDLINE_LINUX_DEFAULT line:
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX_DEFAULT="clearcpuid=514 quiet splash"
  • Then sudo update-grub and sudo reboot