Install TigerVNC -
$ sudo apt install tigervnc-standalone-server
Configure VNC Server by running
| # CrowdSec local customization for Traefik logs behind Cloudflare. | |
| # | |
| # Traefik sees the Cloudflare edge server as the connection source, so the | |
| # standard crowdsecurity/traefik-logs parser initially sets evt.Meta.source_ip | |
| # to the Cloudflare edge IP (for example, 104.23.251.67). Traefik also preserves | |
| # the original client address in the CF-Connecting-IP request header. | |
| # | |
| # For this header to appear in the Traefik JSON access log, Traefik must | |
| # explicitly retain it in its access-log configuration, e.g.: | |
| # |
| #!/bin/bash | |
| # ☢=u+2622 | |
| : "${TERM:=xterm-256color}" | |
| editscript(){ | |
| local scriptpath script path swp; scriptpath=$(realpath "$0" 2>/dev/null); script="${scriptpath##*/}"; path="${scriptpath%/*}"; swp="$path/.$script.swp" | |
| [[ ! -e "$swp" ]] && printf "\n\n%s\n\n" "$swp" && (/usr/bin/nano "$scriptpath") && exit | |
| printf "\n%s is already being edited.\n%s exists; try fg or look in another window.\n" "$scriptpath" "$swp"; exit ;} |
| #!/bin/bash | |
| # see https://askubuntu.com/questions/1453749/inhibit-esm-messages-at-login | |
| # for more reference | |
| # worked on Ubuntu 22.x | |
| scriptname="$(realpath $0)" | |
| function removeesm(){ | |
| sudo sed -Ezi.orig \ |