Created
September 14, 2023 00:25
-
-
Save toriato/374c5981ca9ae09f0a7f1093590becc2 to your computer and use it in GitHub Desktop.
xvfb + x11vnc + torbrowser
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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