Skip to content

Instantly share code, notes, and snippets.

@toriato
Created September 14, 2023 00:25
Show Gist options
  • Save toriato/374c5981ca9ae09f0a7f1093590becc2 to your computer and use it in GitHub Desktop.
Save toriato/374c5981ca9ae09f0a7f1093590becc2 to your computer and use it in GitHub Desktop.
xvfb + x11vnc + torbrowser
export DISPLAY=":0"
test -f ~/.xtor \
|| { sudo apt update -yq && sudo apt install -yq xvfb x11vnc autocutsel libasound2 torbrowser-launcher && touch ~/.xtor; } \
; xdpyinfo -display "$DISPLAY" >/dev/null 2>&1 \
|| { Xvfb "$DISPLAY" & sleep 0.5; autocutsel -fork; } \
; torbrowser-launcher \
&& { x11vnc -display "$DISPLAY" -listen localhost -xrandr -nobell -nopw -xkb; pkill firefox; } \
; pkill Xvfb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment